@alfresco/adf-process-services-cloud 9.1.0-16936596362 → 9.1.0-17001743261
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.
- package/fesm2022/adf-process-services-cloud.mjs +111 -29
- package/fesm2022/adf-process-services-cloud.mjs.map +1 -1
- package/lib/screen/components/screen-cloud/screen-cloud.component.d.ts +1 -1
- package/lib/screen/public-api.d.ts +3 -1
- package/lib/screen/services/provide-screen.d.ts +37 -0
- package/lib/{services → screen/services}/screen-rendering.service.d.ts +29 -0
- package/lib/services/public-api.d.ts +0 -1
- package/package.json +4 -4
- /package/lib/screen/{models → components/screen-cloud}/screen-cloud.model.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentRef, EventEmitter, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { UserTaskCustomUi } from '
|
|
2
|
+
import { UserTaskCustomUi } from './screen-cloud.model';
|
|
3
3
|
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class TaskScreenCloudComponent implements OnInit {
|
|
@@ -14,4 +14,6 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
export * from './
|
|
17
|
+
export * from './components/screen-cloud/screen-cloud.model';
|
|
18
|
+
export * from './services/screen-rendering.service';
|
|
19
|
+
export * from './services/provide-screen';
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { InjectionToken, Provider, Type } from '@angular/core';
|
|
18
|
+
export interface CustomScreen {
|
|
19
|
+
key: string;
|
|
20
|
+
component: Type<any>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Injection token for custom screens.
|
|
24
|
+
* This token can be used to inject custom screen components into the application.
|
|
25
|
+
* It allows for multiple screen components to be registered and injected.
|
|
26
|
+
*/
|
|
27
|
+
export declare const APP_CUSTOM_SCREEN_TOKEN: InjectionToken<CustomScreen>;
|
|
28
|
+
/**
|
|
29
|
+
* Provides a custom screen component to be used in the application.
|
|
30
|
+
* This function allows you to register a custom screen component that can be injected
|
|
31
|
+
* into the application using the `APP_CUSTOM_SCREEN_TOKEN`.
|
|
32
|
+
*
|
|
33
|
+
* @param key - A unique key to identify the screen component.
|
|
34
|
+
* @param component - The screen component to be registered.
|
|
35
|
+
* @returns A provider that can be used in the Angular dependency injection system.
|
|
36
|
+
*/
|
|
37
|
+
export declare function provideScreen(key: string, component: Type<any>): Provider;
|
|
@@ -16,7 +16,36 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import { DynamicComponentMapper } from '@alfresco/adf-core';
|
|
18
18
|
import * as i0 from "@angular/core";
|
|
19
|
+
/**
|
|
20
|
+
* Service for managing and rendering custom screen components.
|
|
21
|
+
*
|
|
22
|
+
* Custom screens can be registered using the {@link provideScreen} helper function
|
|
23
|
+
* and the {@link APP_CUSTOM_SCREEN_TOKEN} injection token.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```
|
|
27
|
+
* // Register a custom screen in your Angular module providers:
|
|
28
|
+
* import { provideScreen, ScreenRenderingService } from '@alfresco/adf-process-services-cloud';
|
|
29
|
+
*
|
|
30
|
+
* @Component({
|
|
31
|
+
* template: '<div>My Custom Screen</div>'
|
|
32
|
+
* })
|
|
33
|
+
* class MyCustomScreenComponent {}
|
|
34
|
+
*
|
|
35
|
+
* @NgModule({
|
|
36
|
+
* providers: [
|
|
37
|
+
* provideScreen('my-custom-screen', MyCustomScreenComponent)
|
|
38
|
+
* ]
|
|
39
|
+
* })
|
|
40
|
+
* export class MyModule {}
|
|
41
|
+
*
|
|
42
|
+
* // The custom screen can now be resolved and rendered by ScreenRenderingService.
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
19
45
|
export declare class ScreenRenderingService extends DynamicComponentMapper {
|
|
46
|
+
private customScreens;
|
|
47
|
+
constructor();
|
|
48
|
+
private registerCustomScreens;
|
|
20
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScreenRenderingService, never>;
|
|
21
50
|
static ɵprov: i0.ɵɵInjectableDeclaration<ScreenRenderingService>;
|
|
22
51
|
}
|
|
@@ -20,7 +20,6 @@ export * from './form-fields.interfaces';
|
|
|
20
20
|
export * from './local-preference-cloud.service';
|
|
21
21
|
export * from './notification-cloud.service';
|
|
22
22
|
export * from './preference-cloud.interface';
|
|
23
|
-
export * from './screen-rendering.service';
|
|
24
23
|
export * from './task-list-cloud.service.interface';
|
|
25
24
|
export * from './user-preference-cloud.service';
|
|
26
25
|
export * from './variable-mapper.sevice';
|
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": "9.1.0-
|
|
4
|
+
"version": "9.1.0-17001743261",
|
|
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": ">=10.1.0-
|
|
25
|
-
"@alfresco/adf-core": ">=9.1.0-
|
|
26
|
-
"@alfresco/adf-content-services": ">=9.1.0-
|
|
24
|
+
"@alfresco/js-api": ">=10.1.0-17001743261",
|
|
25
|
+
"@alfresco/adf-core": ">=9.1.0-17001743261",
|
|
26
|
+
"@alfresco/adf-content-services": ">=9.1.0-17001743261",
|
|
27
27
|
"@apollo/client": ">=3.7.2",
|
|
28
28
|
"@ngx-translate/core": ">=14.0.0",
|
|
29
29
|
"apollo-angular": ">=4.0.1"
|
|
File without changes
|