@alfresco/adf-process-services-cloud 8.4.0-18457986000 → 8.4.0-18495283872

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.
@@ -75,6 +75,7 @@ export declare class StartProcessCloudComponent implements OnChanges, OnInit {
75
75
  isFormCloudLoaded: boolean;
76
76
  isFormCloudLoading: boolean;
77
77
  processDefinitionLoaded: boolean;
78
+ disableStartProcessForScreen: boolean;
78
79
  showStartProcessButton$: Observable<boolean>;
79
80
  startProcessButtonLabel: string;
80
81
  cancelButtonLabel: string;
@@ -89,6 +90,8 @@ export declare class StartProcessCloudComponent implements OnChanges, OnInit {
89
90
  private readonly displayStartSubject;
90
91
  private readonly hasVisibleOutcomesSubject;
91
92
  private readonly dialog;
93
+ private readonly taskTypeResolverService;
94
+ private screenSubmitPayload;
92
95
  showSaveButton: boolean;
93
96
  showCompleteButton: boolean;
94
97
  get isProcessFormValid(): boolean;
@@ -97,6 +100,8 @@ export declare class StartProcessCloudComponent implements OnChanges, OnInit {
97
100
  get processInstanceName(): FormControl<string>;
98
101
  get processDefinition(): FormControl<string>;
99
102
  get hasForm(): boolean;
103
+ get hasScreen(): boolean;
104
+ get screenId(): string;
100
105
  get defaultStartProcessButtonLabel(): string;
101
106
  get defaultCancelProcessButtonLabel(): string;
102
107
  constructor(translateService: TranslationService);
@@ -104,6 +109,8 @@ export declare class StartProcessCloudComponent implements OnChanges, OnInit {
104
109
  ngOnChanges(changes: SimpleChanges): void;
105
110
  onKeyDown(event: KeyboardEvent): void;
106
111
  onFormLoaded(form: FormModel): void;
112
+ onDisableStartProcessButtonForScreen(disable: boolean): void;
113
+ onScreenStartProcessPayloadChange(payload: unknown): void;
107
114
  private getMaxNameLength;
108
115
  private selectProcessDefinitionByProcessDefinitionName;
109
116
  setProcessDefinitionOnForm(selectedProcessDefinitionName: string): void;
@@ -0,0 +1,31 @@
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 { ComponentRef, OnInit, ViewContainerRef } from '@angular/core';
18
+ import { ScreenRenderingService } from '../../../services/screen-rendering.service';
19
+ import * as i0 from "@angular/core";
20
+ export declare abstract class BaseScreenCloudComponent<TScreenComponent = unknown> implements OnInit {
21
+ screenId: string;
22
+ container: ViewContainerRef;
23
+ protected componentRef: ComponentRef<TScreenComponent>;
24
+ protected readonly screenRenderingService: ScreenRenderingService;
25
+ ngOnInit(): void;
26
+ private createDynamicComponent;
27
+ protected abstract setInputsForDynamicComponent(): void;
28
+ protected abstract subscribeToOutputs(): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseScreenCloudComponent<any>, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseScreenCloudComponent<any>, "ng-component", never, { "screenId": { "alias": "screenId"; "required": false; }; }, {}, never, never, true, never>;
31
+ }
@@ -0,0 +1,13 @@
1
+ import { BaseScreenCloudComponent } from '../base-screen/base-screen-cloud.component';
2
+ import { StartProcessScreenCloud } from './start-process-screen.model';
3
+ import * as i0 from "@angular/core";
4
+ export declare class StartProcessScreenCloudComponent extends BaseScreenCloudComponent<StartProcessScreenCloud> {
5
+ processDefinitionId: import("@angular/core").InputSignal<string>;
6
+ screenStartProcessPayloadChange: import("@angular/core").OutputEmitterRef<unknown>;
7
+ disableStartProcessButton: import("@angular/core").OutputEmitterRef<boolean>;
8
+ showStartProcessButtons: import("@angular/core").WritableSignal<boolean>;
9
+ protected setInputsForDynamicComponent(): void;
10
+ protected subscribeToOutputs(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<StartProcessScreenCloudComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<StartProcessScreenCloudComponent, "adf-cloud-start-process-screen-cloud", never, { "processDefinitionId": { "alias": "processDefinitionId"; "required": false; "isSignal": true; }; }, { "screenStartProcessPayloadChange": "screenStartProcessPayloadChange"; "disableStartProcessButton": "disableStartProcessButton"; }, never, ["*"], true, never>;
13
+ }
@@ -0,0 +1,8 @@
1
+ .adf-cloud-start-process-screen-cloud {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ width: 100%;
6
+ height: 100%;
7
+ z-index: 100;
8
+ }
@@ -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
+ import { InputSignal, OutputEmitterRef } from '@angular/core';
18
+ export interface StartProcessScreenDefaultButtons {
19
+ show: boolean;
20
+ disable: boolean;
21
+ }
22
+ export interface StartProcessScreenCloud {
23
+ processDefinitionId: InputSignal<string>;
24
+ defaultStartProcessButtonsConfigurationChange: OutputEmitterRef<StartProcessScreenDefaultButtons>;
25
+ startProcessPayloadChanged: OutputEmitterRef<unknown>;
26
+ }
@@ -1,8 +1,9 @@
1
- import { ComponentRef, EventEmitter, OnInit, ViewContainerRef } from '@angular/core';
1
+ import { EventEmitter } from '@angular/core';
2
2
  import { UserTaskCustomUi } from './screen-cloud.model';
3
3
  import { MatCheckboxChange } from '@angular/material/checkbox';
4
+ import { BaseScreenCloudComponent } from '../base-screen/base-screen-cloud.component';
4
5
  import * as i0 from "@angular/core";
5
- export declare class TaskScreenCloudComponent implements OnInit {
6
+ export declare class TaskScreenCloudComponent extends BaseScreenCloudComponent<UserTaskCustomUi> {
6
7
  /** Task id to fetch corresponding form and values. */
7
8
  taskId: string;
8
9
  /** App name to fetch data for dynamic component. */
@@ -12,8 +13,6 @@ export declare class TaskScreenCloudComponent implements OnInit {
12
13
  /** Boolean informing if a task can be unclaimed. */
13
14
  canUnclaimTask: boolean;
14
15
  showCancelButton: boolean;
15
- /** Screen id to create dynamic component. */
16
- screenId: string;
17
16
  /** Process Instance Id to fetch corresponding data. */
18
17
  processInstanceId: string;
19
18
  /** Name of the task. */
@@ -40,15 +39,10 @@ export declare class TaskScreenCloudComponent implements OnInit {
40
39
  unclaimTask: EventEmitter<any>;
41
40
  /** Emitted when the `Open next task` checkbox was toggled. */
42
41
  nextTaskCheckboxCheckedChanged: EventEmitter<MatCheckboxChange>;
43
- container: ViewContainerRef;
44
- private destroyRef;
45
- componentRef: ComponentRef<UserTaskCustomUi>;
46
- private readonly screenRenderingService;
47
- ngOnInit(): void;
48
- createDynamicComponent(): void;
49
- setInputsForDynamicComponent(): void;
50
- subscribeToOutputs(): void;
42
+ private readonly destroyRef;
43
+ protected setInputsForDynamicComponent(): void;
44
+ protected subscribeToOutputs(): void;
51
45
  switchToDisplayMode(newDisplayMode?: string): void;
52
46
  static ɵfac: i0.ɵɵFactoryDeclaration<TaskScreenCloudComponent, never>;
53
- static ɵcmp: i0.ɵɵComponentDeclaration<TaskScreenCloudComponent, "adf-cloud-task-screen", never, { "taskId": { "alias": "taskId"; "required": false; }; "appName": { "alias": "appName"; "required": false; }; "canClaimTask": { "alias": "canClaimTask"; "required": false; }; "canUnclaimTask": { "alias": "canUnclaimTask"; "required": false; }; "showCancelButton": { "alias": "showCancelButton"; "required": false; }; "screenId": { "alias": "screenId"; "required": false; }; "processInstanceId": { "alias": "processInstanceId"; "required": false; }; "taskName": { "alias": "taskName"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "rootProcessInstanceId": { "alias": "rootProcessInstanceId"; "required": false; }; "isNextTaskCheckboxChecked": { "alias": "isNextTaskCheckboxChecked"; "required": false; }; "showNextTaskCheckbox": { "alias": "showNextTaskCheckbox"; "required": false; }; }, { "taskSaved": "taskSaved"; "taskCompleted": "taskCompleted"; "error": "error"; "cancelTask": "cancelTask"; "claimTask": "claimTask"; "unclaimTask": "unclaimTask"; "nextTaskCheckboxCheckedChanged": "nextTaskCheckboxCheckedChanged"; }, never, never, true, never>;
47
+ static ɵcmp: i0.ɵɵComponentDeclaration<TaskScreenCloudComponent, "adf-cloud-task-screen", never, { "taskId": { "alias": "taskId"; "required": false; }; "appName": { "alias": "appName"; "required": false; }; "canClaimTask": { "alias": "canClaimTask"; "required": false; }; "canUnclaimTask": { "alias": "canUnclaimTask"; "required": false; }; "showCancelButton": { "alias": "showCancelButton"; "required": false; }; "processInstanceId": { "alias": "processInstanceId"; "required": false; }; "taskName": { "alias": "taskName"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "rootProcessInstanceId": { "alias": "rootProcessInstanceId"; "required": false; }; "isNextTaskCheckboxChecked": { "alias": "isNextTaskCheckboxChecked"; "required": false; }; "showNextTaskCheckbox": { "alias": "showNextTaskCheckbox"; "required": false; }; }, { "taskSaved": "taskSaved"; "taskCompleted": "taskCompleted"; "error": "error"; "cancelTask": "cancelTask"; "claimTask": "claimTask"; "unclaimTask": "unclaimTask"; "nextTaskCheckboxCheckedChanged": "nextTaskCheckboxCheckedChanged"; }, never, never, true, never>;
54
48
  }
@@ -14,6 +14,7 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- export * from './components/screen-cloud/screen-cloud.model';
17
+ export * from './components/screen-cloud/user-task-screen/screen-cloud.model';
18
+ export * from './components/screen-cloud/start-process-event-screen/start-process-screen-cloud.component';
18
19
  export * from './services/screen-rendering.service';
19
20
  export * from './services/provide-screen';
@@ -0,0 +1,15 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare const UserTaskContentType: {
3
+ readonly Form: "form";
4
+ readonly Screen: "screen";
5
+ readonly None: "";
6
+ };
7
+ export type UserTaskType = (typeof UserTaskContentType)[keyof typeof UserTaskContentType];
8
+ export declare class TaskTypeResolverService {
9
+ isScreenTask(formKey?: string): boolean;
10
+ isFormTask(formKey?: string): boolean;
11
+ getScreenId(formKey?: string): string;
12
+ getUserTaskType(formKey?: string): UserTaskType;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<TaskTypeResolverService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<TaskTypeResolverService>;
15
+ }
@@ -19,15 +19,10 @@ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
19
19
  import { FormCloudDisplayModeConfiguration } from '../../../../services/form-fields.interfaces';
20
20
  import { TaskDetailsCloudModel } from '../../../models/task-details-cloud.model';
21
21
  import { TaskFormCloudComponent } from '../task-form-cloud/task-form-cloud.component';
22
- import { TaskScreenCloudComponent } from '../../../../screen/components/screen-cloud/screen-cloud.component';
22
+ import { TaskScreenCloudComponent } from '../../../../screen/components/screen-cloud/user-task-screen/screen-cloud.component';
23
23
  import { MatCheckboxChange } from '@angular/material/checkbox';
24
+ import { UserTaskType } from '../../../../services/task-type-resolver/task-type-resolver.service';
24
25
  import * as i0 from "@angular/core";
25
- declare const TaskTypes: {
26
- readonly Form: "form";
27
- readonly Screen: "screen";
28
- readonly None: "";
29
- };
30
- type TaskTypesType = (typeof TaskTypes)[keyof typeof TaskTypes];
31
26
  export declare class UserTaskCloudComponent implements OnInit, OnChanges {
32
27
  adfCloudTaskForm: TaskFormCloudComponent;
33
28
  adfCloudTaskScreen: TaskScreenCloudComponent;
@@ -98,15 +93,16 @@ export declare class UserTaskCloudComponent implements OnInit, OnChanges {
98
93
  candidateUsers: string[];
99
94
  candidateGroups: string[];
100
95
  loading: boolean;
101
- screenId: string;
102
96
  taskDetails: TaskDetailsCloudModel;
103
- taskType: TaskTypesType;
97
+ taskType: UserTaskType;
104
98
  taskTypeEnum: {
105
99
  readonly Form: "form";
106
100
  readonly Screen: "screen";
107
101
  readonly None: "";
108
102
  };
103
+ screenId: string;
109
104
  private taskCloudService;
105
+ private readonly taskTypeResolverService;
110
106
  private readonly destroyRef;
111
107
  ngOnChanges(changes: SimpleChanges): void;
112
108
  ngOnInit(): void;
@@ -135,4 +131,3 @@ export declare class UserTaskCloudComponent implements OnInit, OnChanges {
135
131
  static ɵfac: i0.ɵɵFactoryDeclaration<UserTaskCloudComponent, never>;
136
132
  static ɵcmp: i0.ɵɵComponentDeclaration<UserTaskCloudComponent, "adf-cloud-user-task", never, { "appName": { "alias": "appName"; "required": false; }; "displayModeConfigurations": { "alias": "displayModeConfigurations"; "required": false; }; "readOnly": { "alias": "readOnly"; "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; }; "showNextTaskCheckbox": { "alias": "showNextTaskCheckbox"; "required": false; }; "isNextTaskCheckboxChecked": { "alias": "isNextTaskCheckboxChecked"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "showValidationIcon": { "alias": "showValidationIcon"; "required": false; }; "taskId": { "alias": "taskId"; "required": false; }; }, { "cancelClick": "cancelClick"; "error": "error"; "nextTaskCheckboxCheckedChanged": "nextTaskCheckboxCheckedChanged"; "executeOutcome": "executeOutcome"; "formContentClicked": "formContentClicked"; "formLoaded": "formLoaded"; "formSaved": "formSaved"; "onTaskLoaded": "onTaskLoaded"; "taskClaimed": "taskClaimed"; "taskUnclaimed": "taskUnclaimed"; "taskCompleted": "taskCompleted"; }, never, never, true, never>;
137
133
  }
138
- export {};
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.4.0-18457986000",
4
+ "version": "8.4.0-18495283872",
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.4.0-18457986000",
25
- "@alfresco/adf-core": ">=8.4.0-18457986000",
26
- "@alfresco/adf-content-services": ">=8.4.0-18457986000",
24
+ "@alfresco/js-api": ">=9.4.0-18495283872",
25
+ "@alfresco/adf-core": ">=8.4.0-18495283872",
26
+ "@alfresco/adf-content-services": ">=8.4.0-18495283872",
27
27
  "@apollo/client": ">=3.7.2",
28
28
  "@ngx-translate/core": ">=14.0.0",
29
29
  "apollo-angular": ">=4.0.1",