From 42a1ddf540bfc2f40b376cf3ef53435dc44df5c4 Mon Sep 17 00:00:00 2001 From: dominikiwanekhyland <141320833+dominikiwanekhyland@users.noreply.github.com> Date: Mon, 27 Oct 2025 07:33:06 +0100 Subject: [PATCH] [ACS-10178] Remove deprecated ADF components (#11221) --- docs/README.md | 4 - .../login-dialog-panel.component.md | 9 - .../core/components/login-dialog.component.md | 89 ------- docs/core/services/login-dialog.service.md | 24 -- .../components/app-list-cloud.component.md | 61 ----- ...orm-definition-selector-cloud.component.md | 32 --- .../services/process-list-cloud.service.md | 4 - docs/versionIndex.md | 2 - lib/core/src/lib/i18n/ar.json | 5 - lib/core/src/lib/i18n/cs.json | 5 - lib/core/src/lib/i18n/da.json | 5 - lib/core/src/lib/i18n/de.json | 5 - lib/core/src/lib/i18n/en.json | 5 - lib/core/src/lib/i18n/es.json | 5 - lib/core/src/lib/i18n/fi.json | 5 - lib/core/src/lib/i18n/fr.json | 5 - lib/core/src/lib/i18n/it.json | 5 - lib/core/src/lib/i18n/ja.json | 5 - lib/core/src/lib/i18n/nb.json | 5 - lib/core/src/lib/i18n/nl.json | 5 - lib/core/src/lib/i18n/pl.json | 5 - lib/core/src/lib/i18n/pt-BR.json | 5 - lib/core/src/lib/i18n/pt.json | 5 - lib/core/src/lib/i18n/ru.json | 5 - lib/core/src/lib/i18n/sv.json | 5 - lib/core/src/lib/i18n/zh-CN.json | 5 - .../login-dialog-component-data.interface.ts | 24 -- .../login-dialog/login-dialog.component.html | 23 -- .../login-dialog/login-dialog.component.scss | 4 - .../login-dialog/login-dialog.component.ts | 59 ----- lib/core/src/lib/login/login.module.ts | 9 +- lib/core/src/lib/login/public-api.ts | 2 - .../src/lib/app/app-list-cloud.module.ts | 21 -- .../app-details-cloud.component.html | 23 -- .../app-details-cloud.component.scss | 167 ------------- .../app-details-cloud.component.spec.ts | 72 ------ .../app-details-cloud.component.ts | 65 ------ .../app-list-cloud.component.html | 46 ---- .../app-list-cloud.component.scss | 41 ---- .../app-list-cloud.component.spec.ts | 220 ------------------ .../app-list-cloud.component.ts | 133 ----------- .../app/models/application-instance.model.ts | 3 - .../src/lib/app/public-api.ts | 3 - ...m-definition-selector-cloud.component.html | 7 - ...m-definition-selector-cloud.component.scss | 5 - ...efinition-selector-cloud.component.spec.ts | 79 ------- ...orm-definition-selector-cloud.component.ts | 53 ----- .../src/lib/form/form-cloud.module.ts | 2 - .../form/mocks/form-representation.mock.ts | 45 ---- .../src/lib/form/public-api.ts | 2 - ...nition-selector-cloud.service.interface.ts | 24 -- ...-definition-selector-cloud.service.spec.ts | 55 ----- .../form-definition-selector-cloud.service.ts | 54 ----- .../src/lib/i18n/ar.json | 12 - .../src/lib/i18n/cs.json | 12 - .../src/lib/i18n/da.json | 12 - .../src/lib/i18n/de.json | 12 - .../src/lib/i18n/en.json | 12 - .../src/lib/i18n/es.json | 12 - .../src/lib/i18n/fi.json | 12 - .../src/lib/i18n/fr.json | 12 - .../src/lib/i18n/it.json | 12 - .../src/lib/i18n/ja.json | 12 - .../src/lib/i18n/nb.json | 12 - .../src/lib/i18n/nl.json | 12 - .../src/lib/i18n/pl.json | 12 - .../src/lib/i18n/pt-BR.json | 12 - .../src/lib/i18n/pt.json | 12 - .../src/lib/i18n/ru.json | 12 - .../src/lib/i18n/sv.json | 12 - .../src/lib/i18n/zh-CN.json | 12 - .../src/lib/process-services-cloud.module.ts | 8 +- 72 files changed, 2 insertions(+), 1778 deletions(-) delete mode 100644 docs/core/components/login-dialog.component.md delete mode 100644 docs/core/services/login-dialog.service.md delete mode 100644 docs/process-services-cloud/components/app-list-cloud.component.md delete mode 100644 docs/process-services-cloud/components/form-definition-selector-cloud.component.md delete mode 100644 lib/core/src/lib/login/components/login-dialog/login-dialog-component-data.interface.ts delete mode 100644 lib/core/src/lib/login/components/login-dialog/login-dialog.component.html delete mode 100644 lib/core/src/lib/login/components/login-dialog/login-dialog.component.scss delete mode 100644 lib/core/src/lib/login/components/login-dialog/login-dialog.component.ts delete mode 100644 lib/process-services-cloud/src/lib/app/app-list-cloud.module.ts delete mode 100644 lib/process-services-cloud/src/lib/app/components/app-details-cloud/app-details-cloud.component.html delete mode 100644 lib/process-services-cloud/src/lib/app/components/app-details-cloud/app-details-cloud.component.scss delete mode 100644 lib/process-services-cloud/src/lib/app/components/app-details-cloud/app-details-cloud.component.spec.ts delete mode 100644 lib/process-services-cloud/src/lib/app/components/app-details-cloud/app-details-cloud.component.ts delete mode 100644 lib/process-services-cloud/src/lib/app/components/app-list-cloud/app-list-cloud.component.html delete mode 100644 lib/process-services-cloud/src/lib/app/components/app-list-cloud/app-list-cloud.component.scss delete mode 100644 lib/process-services-cloud/src/lib/app/components/app-list-cloud/app-list-cloud.component.spec.ts delete mode 100644 lib/process-services-cloud/src/lib/app/components/app-list-cloud/app-list-cloud.component.ts delete mode 100644 lib/process-services-cloud/src/lib/form/components/form-definition-selector-cloud.component.html delete mode 100644 lib/process-services-cloud/src/lib/form/components/form-definition-selector-cloud.component.scss delete mode 100644 lib/process-services-cloud/src/lib/form/components/form-definition-selector-cloud.component.spec.ts delete mode 100644 lib/process-services-cloud/src/lib/form/components/form-definition-selector-cloud.component.ts delete mode 100644 lib/process-services-cloud/src/lib/form/mocks/form-representation.mock.ts delete mode 100644 lib/process-services-cloud/src/lib/form/services/form-definition-selector-cloud.service.interface.ts delete mode 100644 lib/process-services-cloud/src/lib/form/services/form-definition-selector-cloud.service.spec.ts delete mode 100644 lib/process-services-cloud/src/lib/form/services/form-definition-selector-cloud.service.ts diff --git a/docs/README.md b/docs/README.md index 3abe069214..23941f6a11 100644 --- a/docs/README.md +++ b/docs/README.md @@ -113,7 +113,6 @@ A collection of Angular components for generic use. | [Json Cell component](core/components/json-cell.component.md) | Shows a JSON-formatted value inside a datatable component. | [Source](../lib/core/src/lib/datatable/components/json-cell/json-cell.component.ts) | | [Language Menu component](core/components/language-menu.component.md) | Displays all the languages that are present in "app.config.json" and the default (EN). | [Source](../lib/core/src/lib/language-menu/language-menu.component.ts) | | [Login Dialog Panel component](core/components/login-dialog-panel.component.md) | Shows and manages a login dialog. | [Source](../lib/core/src/lib/login/components/login-dialog-panel.component.ts) | -| [Login Dialog component](core/components/login-dialog.component.md) | Allows a user to perform a login via a dialog. | [Source](../lib/core/src/lib/login/components/login-dialog.component.ts) | | [Login component](core/components/login.component.md) | Authenticates to Alfresco Content Services and Alfresco Process Services. | [Source](../lib/core/src/lib/login/components/login.component.ts) | | [Notification History component](core/components/notification-history.component.md) ![Experimental](docassets/images/ExperimentalIcon.png) | This component is in the current status just an experimental component. The main purpose of the Notification history component is list all the notification received in the current session. They will disappear from the list after the refresh. | [Source](../lib/core/src/lib/notifications/components/notification-history.component.ts) | | | [Pagination Component](core/components/pagination.component.md) | Adds pagination to the component it is used with. | [Source](../lib/core/src/lib/pagination/pagination.component.ts) | @@ -222,7 +221,6 @@ A collection of Angular components for generic use. | [Identity user service](core/services/identity-user.service.md) | Gets OAuth2 personal details and roles for users and performs CRUD operations on identity users. | [Source](../lib/process-services-cloud/src/lib/people/services/identity-user.service.ts) | | [JWT helper service](core/services/jwt-helper.service.md) | Decodes a JSON Web Token (JWT) to a JavaScript object. | [Source](../lib/core/src/lib/auth/services/jwt-helper.service.ts) | | [Log Service](core/services/log.service.md) | Provides log functionality. | [Source](../lib/core/src/lib/common/services/log.service.ts) | -| [Login Dialog service](core/services/login-dialog.service.md) | Manages login dialogs. | [Source](../lib/core/src/lib/services/login-dialog.service.ts) | | [Nodes Api service](core/services/nodes-api.service.md) | Accesses and manipulates ACS document nodes using their node IDs. | [Source](../lib/content-services/src/lib/common/services/nodes-api.service.ts) | | [Notification Service](core/services/notification.service.md) | Shows a notification message with optional feedback. | [Source](../lib/core/src/lib/notifications/services/notification.service.ts) | | [Page Title service](core/services/page-title.service.md) | Sets the page title. | [Source](../lib/core/src/lib/common/services/page-title.service.ts) | @@ -472,12 +470,10 @@ for more information about installing and using the source code. | Name | Description | Source link | | ---- | ----------- | ----------- | -| [App List Cloud Component](process-services-cloud/components/app-list-cloud.component.md) ![Experimental](docassets/images/ExperimentalIcon.png) | Shows all deployed cloud application instances. | [Source](../lib/process-services-cloud/src/lib/app/components/app-list-cloud.component.ts) | | [Edit Process Filter Cloud component](process-services-cloud/components/edit-process-filter-cloud.component.md) ![Experimental](docassets/images/ExperimentalIcon.png) | Shows/edits process filter details. | [Source](../lib/process-services-cloud/src/lib/process/process-filters/components/edit-process-filter/edit-process-filter-cloud.component.ts) | | [Edit Task Filter Cloud component](process-services-cloud/components/edit-task-filter-cloud.component.md) ![Experimental](docassets/images/ExperimentalIcon.png) | Edits task filter details. | [Source](../lib/process-services-cloud/src/lib/task/task-filters/components/edit-task-filters/edit-task-filter-cloud.component.ts) | | [Form cloud custom outcomes component](process-services-cloud/components/form-cloud-custom-outcome.component.md) | Supplies custom outcome buttons to be included in Form cloud component. | [Source](../lib/process-services-cloud/src/lib/form/components/form-cloud-custom-outcomes.component.ts) | | [Form cloud component](process-services-cloud/components/form-cloud.component.md) | Shows a form from Process Services. | [Source](../lib/process-services-cloud/src/lib/form/components/form-cloud.component.ts) | -| [Form Definition Selector Cloud](process-services-cloud/components/form-definition-selector-cloud.component.md) | Allows one form to be selected from a dropdown list. For forms to be displayed in this component they will need to be compatible with standAlone tasks. | [Source](../lib/process-services-cloud/src/lib/form/components/form-definition-selector-cloud.component.ts) | | [Group Cloud component](process-services-cloud/components/group-cloud.component.md) ![Experimental](docassets/images/ExperimentalIcon.png) | Searches Groups. | [Source](../lib/process-services-cloud/src/lib/group/components/group-cloud.component.ts) | | [](process-services-cloud/components/people-cloud.component.md) | Title: People Cloud Component | | diff --git a/docs/core/components/login-dialog-panel.component.md b/docs/core/components/login-dialog-panel.component.md index 2f2790043a..550070e43b 100644 --- a/docs/core/components/login-dialog-panel.component.md +++ b/docs/core/components/login-dialog-panel.component.md @@ -16,12 +16,3 @@ Shows and manages a login dialog. | Name | Type | Description | | ---- | ---- | ----------- | | success | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<`[`LoginSuccessEvent`](../../../lib/core/src/lib/login/models/login-success.event.ts)`>` | Emitted when the login succeeds. | - -## Details - -This component has similar features to the [Login Dialog component](login-dialog.component.md) -but it also creates and manages the dialog for you. - -## See also - -- [Login Dialog component](login-dialog.component.md) diff --git a/docs/core/components/login-dialog.component.md b/docs/core/components/login-dialog.component.md deleted file mode 100644 index 98126589d8..0000000000 --- a/docs/core/components/login-dialog.component.md +++ /dev/null @@ -1,89 +0,0 @@ ---- -Title: Login Dialog component -Added: v2.6.0 -Status: Active -Last reviewed: 2018-10-02 ---- - -# [Login Dialog component](../../../lib/core/src/lib/login/components/login-dialog.component.ts "Defined in login-dialog.component.ts") - -Allows a user to perform a login via a dialog. - -## Details - -The [Login Dialog component](login-dialog.component.md) allows you to perform a login via a dialog. - -### Showing the dialog - -Unlike most components, the [Login Dialog Component](login-dialog.component.md) is typically shown in a dialog box -rather than the main page and you are responsible for opening the dialog yourself. You can use the -[Angular Material Dialog](https://material.angular.io/components/dialog/overview) for this, -as shown in the usage example. ADF provides the [`LoginDialogComponentData`](../../../lib/core/src/lib/login/components/login-dialog-component-data.interface.ts) interface -to work with the Dialog's -[data option](https://material.angular.io/components/dialog/overview#sharing-data-with-the-dialog-component-): - -```ts -export interface LoginDialogComponentData { - title: string; - actionName?: string; - logged: Subject; -} -``` - -The properties are described in the table below: - -| Name | Type | Default value | Description | -| ---- | ---- | ------------- | ----------- | -| title | `string` | "" | Dialog title | -| actionName | `string` | "" | Text to appear on the dialog's main action button ("Login", "Access", etc) | -| logged | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`` | | Event emitted when the login succeeds. | - -If you don't want to manage the dialog yourself then it is easier to use the -[Login Dialog Panel component](login-dialog-panel.component.md), or the -methods of the [Login Dialog service](../services/login-dialog.service.md), which create -the dialog for you. - -### Usage example - -```ts -import { MatDialog } from '@angular/material/dialog'; -import { LoginDialogComponentData, LoginDialogComponent} from '@adf/core' -import { Subject } from 'rxjs/Subject'; - ... - -constructor(dialog: MatDialog ... ) {} - -openLoginDialog() { - data: LoginDialogComponentData = { - title: "Perform a Login", - actionName: "Access", - logged: new Subject() - }; - - this.dialog.open( - LoginDialogComponent, - { - data, panelClass: 'adf-login-dialog', - width: '630px' - } - ); - - data.logged.subscribe(() => { - // Action after being logged in... - }, - (error)=>{ - //your error handling - }, - ()=>{ - //action called when an action or cancel is clicked on the dialog - this.dialog.closeAll(); - }); -} -``` - -All the results will be streamed to the logged [subject](http://reactivex.io/rxjs/manual/overview.html#subject) present in the [`LoginDialogComponentData`](../../../lib/core/src/lib/login/components/login-dialog-component-data.interface.ts) object passed to the dialog. -When the dialog action is selected by clicking, the `data.logged` stream will be completed. - -## See also - -- [Login component](login.component.md) diff --git a/docs/core/services/login-dialog.service.md b/docs/core/services/login-dialog.service.md deleted file mode 100644 index e01131730e..0000000000 --- a/docs/core/services/login-dialog.service.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -Title: Login Dialog service -Added: v2.6.0 -Status: Active -Last reviewed: 2019-02-08 ---- - -# [Login Dialog service](../../../lib/core/src/lib/services/login-dialog.service.ts "Defined in login-dialog.service.ts") - -Manages login dialogs. - -## Methods - -- **openLogin**(actionName: `string`, title: `string`): [`Observable`](http://reactivex.io/documentation/observable.html)``
- Opens a login dialog. - - _actionName:_ `string` - Text to show in the main action button - - _title:_ `string` - Title for the login dialog - - **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`` - Confirmation of login from the dialog -- **close**(): ``
- Closes the currently open login dialog. - -## See also - -- [Login component](../components/login.component.md) diff --git a/docs/process-services-cloud/components/app-list-cloud.component.md b/docs/process-services-cloud/components/app-list-cloud.component.md deleted file mode 100644 index 30f20eb9b4..0000000000 --- a/docs/process-services-cloud/components/app-list-cloud.component.md +++ /dev/null @@ -1,61 +0,0 @@ ---- -Title: App List Cloud Component -Added: v3.0.0 -Status: Experimental -Last reviewed: 2025-01-03 ---- - -# App List Cloud Component - -`standalone`, `component` - -Shows all deployed cloud application instances. - -## Basic Usage - -```html - -``` - -### [Transclusions](../../user-guide/transclusion.md) - -You can show custom content when there are no apps available by supplying an -`` section: - -```html - - - No Apps present - - -``` - -## Activiti 7 - -If you are generating a project for Activiti 7, you must add the list of apps you want to use in **app.config.json** . - -For example : - -```json -{ - "alfresco-deployed-apps": [ - { - "name": "simple-app" - } - ] -} -``` - -## Class members - -### Properties - -| Name | Type | Default value | Description | -|------------|----------|---------------|--------------------------------------------------------------------------------------------------| -| layoutType | `string` | LAYOUT_GRID | (**required**) Defines the layout of the apps. There are two possible values, "GRID" and "LIST". | - -### Events - -| Name | Type | Description | -|----------|------------------------------------------|---------------------------------------| -| appClick | `EventEmitter` | Emitted when an app entry is clicked. | diff --git a/docs/process-services-cloud/components/form-definition-selector-cloud.component.md b/docs/process-services-cloud/components/form-definition-selector-cloud.component.md deleted file mode 100644 index d75f8afe7a..0000000000 --- a/docs/process-services-cloud/components/form-definition-selector-cloud.component.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -Title: Form Definition Selector Cloud -Added: v3.3.0 -Status: Active ---- - -# [Form Definition Selector Cloud](../../../lib/process-services-cloud/src/lib/form/components/form-definition-selector-cloud.component.ts "Defined in form-definition-selector-cloud.component.ts") - -Allows one form to be selected from a dropdown list. For forms to be displayed in this component they will need to be compatible with standAlone tasks. - -## Basic Usage - -```html - - -``` - -## Class members - -### Properties - -| Name | Type | Default value | Description | -| ---- | ---- | ------------- | ----------- | -| appName | `string` | "" | Name of the application. If specified, this shows the users who have access to the app. | - -### Events - -| Name | Type | Description | -| ---- | ---- | ----------- | -| selectForm | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`` | Emitted when a form is selected. | diff --git a/docs/process-services-cloud/services/process-list-cloud.service.md b/docs/process-services-cloud/services/process-list-cloud.service.md index d3f27ba494..8ffd459290 100644 --- a/docs/process-services-cloud/services/process-list-cloud.service.md +++ b/docs/process-services-cloud/services/process-list-cloud.service.md @@ -44,7 +44,3 @@ For example : ```json "alfresco-deployed-apps" : [{"name": "simple-app"}] ``` - -## See also - -- [App list cloud component](../components/app-list-cloud.component.md) diff --git a/docs/versionIndex.md b/docs/versionIndex.md index dcfb75a78c..a99ae64a5e 100644 --- a/docs/versionIndex.md +++ b/docs/versionIndex.md @@ -395,8 +395,6 @@ backend services have been tested with each released version of ADF. - [Login dialog panel component](core/components/login-dialog-panel.component.md) -- [Login dialog component](core/components/login-dialog.component.md) -- [Login dialog service](core/services/login-dialog.service.md) diff --git a/lib/core/src/lib/i18n/ar.json b/lib/core/src/lib/i18n/ar.json index c3e40b415d..b69ba7ad1d 100755 --- a/lib/core/src/lib/i18n/ar.json +++ b/lib/core/src/lib/i18n/ar.json @@ -285,11 +285,6 @@ "ACTION": { "HELP": "بحاجة لمساعدة؟", "REGISTER": "تسجيل" - }, - "DIALOG": { - "CANCEL": "إلغاء", - "CHOOSE": "اختيار", - "LOGIN": "تسجيل دخول" } }, "ADF-DATATABLE": { diff --git a/lib/core/src/lib/i18n/cs.json b/lib/core/src/lib/i18n/cs.json index 8eb7e2f0d4..43a4bc6727 100755 --- a/lib/core/src/lib/i18n/cs.json +++ b/lib/core/src/lib/i18n/cs.json @@ -285,11 +285,6 @@ "ACTION": { "HELP": "Potřebujete pomoc?", "REGISTER": "Zaregistrovat" - }, - "DIALOG": { - "CANCEL": "Zrušit", - "CHOOSE": "Vybrat", - "LOGIN": "Přihlásit se" } }, "ADF-DATATABLE": { diff --git a/lib/core/src/lib/i18n/da.json b/lib/core/src/lib/i18n/da.json index 89f8199e7e..beb120aa85 100755 --- a/lib/core/src/lib/i18n/da.json +++ b/lib/core/src/lib/i18n/da.json @@ -285,11 +285,6 @@ "ACTION": { "HELP": "Har du brug for hjælp?", "REGISTER": "Tilmeld" - }, - "DIALOG": { - "CANCEL": "Annuller", - "CHOOSE": "Vælg", - "LOGIN": "Log ind" } }, "ADF-DATATABLE": { diff --git a/lib/core/src/lib/i18n/de.json b/lib/core/src/lib/i18n/de.json index bf35f70295..4fe5de40c0 100644 --- a/lib/core/src/lib/i18n/de.json +++ b/lib/core/src/lib/i18n/de.json @@ -364,11 +364,6 @@ "ACTION": { "HELP": "Brauchen Sie Hilfe?", "REGISTER": "Registrieren" - }, - "DIALOG": { - "CANCEL": "Abbrechen", - "CHOOSE": "Auswählen", - "LOGIN": "Anmelden" } }, "ADF-DATATABLE": { diff --git a/lib/core/src/lib/i18n/en.json b/lib/core/src/lib/i18n/en.json index e5bb432b90..5bc5f441e8 100644 --- a/lib/core/src/lib/i18n/en.json +++ b/lib/core/src/lib/i18n/en.json @@ -366,11 +366,6 @@ "ACTION": { "HELP": "NEED HELP?", "REGISTER": "REGISTER" - }, - "DIALOG": { - "CANCEL": "Cancel", - "CHOOSE": "Choose", - "LOGIN": "Sign in" } }, "ADF-DATATABLE": { diff --git a/lib/core/src/lib/i18n/es.json b/lib/core/src/lib/i18n/es.json index 3a6c7e5028..dbbba076b7 100644 --- a/lib/core/src/lib/i18n/es.json +++ b/lib/core/src/lib/i18n/es.json @@ -364,11 +364,6 @@ "ACTION": { "HELP": "¿Necesita ayuda?", "REGISTER": "Registrarse" - }, - "DIALOG": { - "CANCEL": "Cancelar", - "CHOOSE": "Elegir", - "LOGIN": "Iniciar sesión" } }, "ADF-DATATABLE": { diff --git a/lib/core/src/lib/i18n/fi.json b/lib/core/src/lib/i18n/fi.json index cb92a2c677..eb17f0fe25 100755 --- a/lib/core/src/lib/i18n/fi.json +++ b/lib/core/src/lib/i18n/fi.json @@ -285,11 +285,6 @@ "ACTION": { "HELP": "Tarvitsetko apua?", "REGISTER": "Rekisteröidy" - }, - "DIALOG": { - "CANCEL": "Peruuta", - "CHOOSE": "Valitse", - "LOGIN": "Kirjaudu sisään" } }, "ADF-DATATABLE": { diff --git a/lib/core/src/lib/i18n/fr.json b/lib/core/src/lib/i18n/fr.json index 4f42f7f534..8605f7d20c 100644 --- a/lib/core/src/lib/i18n/fr.json +++ b/lib/core/src/lib/i18n/fr.json @@ -364,11 +364,6 @@ "ACTION": { "HELP": "Besoin d'aide ?", "REGISTER": "S'inscrire" - }, - "DIALOG": { - "CANCEL": "Annuler", - "CHOOSE": "Choisir", - "LOGIN": "Connexion" } }, "ADF-DATATABLE": { diff --git a/lib/core/src/lib/i18n/it.json b/lib/core/src/lib/i18n/it.json index 4150d80b1e..f49d2c3c01 100644 --- a/lib/core/src/lib/i18n/it.json +++ b/lib/core/src/lib/i18n/it.json @@ -364,11 +364,6 @@ "ACTION": { "HELP": "Hai bisogno di aiuto?", "REGISTER": "Registrati" - }, - "DIALOG": { - "CANCEL": "Annulla", - "CHOOSE": "Scegli", - "LOGIN": "Accedi" } }, "ADF-DATATABLE": { diff --git a/lib/core/src/lib/i18n/ja.json b/lib/core/src/lib/i18n/ja.json index e26d30d314..0e4032e141 100755 --- a/lib/core/src/lib/i18n/ja.json +++ b/lib/core/src/lib/i18n/ja.json @@ -285,11 +285,6 @@ "ACTION": { "HELP": "ヘルプが必要ですか?", "REGISTER": "登録" - }, - "DIALOG": { - "CANCEL": "キャンセル", - "CHOOSE": "選択", - "LOGIN": "サインイン" } }, "ADF-DATATABLE": { diff --git a/lib/core/src/lib/i18n/nb.json b/lib/core/src/lib/i18n/nb.json index 2614aff03b..eaf62089ae 100755 --- a/lib/core/src/lib/i18n/nb.json +++ b/lib/core/src/lib/i18n/nb.json @@ -285,11 +285,6 @@ "ACTION": { "HELP": "Trenger hjelp?", "REGISTER": "Registrer" - }, - "DIALOG": { - "CANCEL": "Avbryt", - "CHOOSE": "Velg", - "LOGIN": "Logg på" } }, "ADF-DATATABLE": { diff --git a/lib/core/src/lib/i18n/nl.json b/lib/core/src/lib/i18n/nl.json index 7549b1d8f6..d5b445cb7f 100755 --- a/lib/core/src/lib/i18n/nl.json +++ b/lib/core/src/lib/i18n/nl.json @@ -285,11 +285,6 @@ "ACTION": { "HELP": "Hulp nodig?", "REGISTER": "Registreren" - }, - "DIALOG": { - "CANCEL": "Annuleren", - "CHOOSE": "Kiezen", - "LOGIN": "Aanmelden" } }, "ADF-DATATABLE": { diff --git a/lib/core/src/lib/i18n/pl.json b/lib/core/src/lib/i18n/pl.json index ea44ff5481..3a1b144a32 100644 --- a/lib/core/src/lib/i18n/pl.json +++ b/lib/core/src/lib/i18n/pl.json @@ -364,11 +364,6 @@ "ACTION": { "HELP": "Potrzebujesz pomocy?", "REGISTER": "Zarejestruj się" - }, - "DIALOG": { - "CANCEL": "Anuluj", - "CHOOSE": "Wybierz", - "LOGIN": "Zaloguj się" } }, "ADF-DATATABLE": { diff --git a/lib/core/src/lib/i18n/pt-BR.json b/lib/core/src/lib/i18n/pt-BR.json index a4d24d67a4..443edb7b46 100755 --- a/lib/core/src/lib/i18n/pt-BR.json +++ b/lib/core/src/lib/i18n/pt-BR.json @@ -285,11 +285,6 @@ "ACTION": { "HELP": "Precisa de ajuda?", "REGISTER": "Registrar" - }, - "DIALOG": { - "CANCEL": "Cancelar", - "CHOOSE": "Escolher", - "LOGIN": "Entrar" } }, "ADF-DATATABLE": { diff --git a/lib/core/src/lib/i18n/pt.json b/lib/core/src/lib/i18n/pt.json index bb40bf73f3..04fde7c008 100644 --- a/lib/core/src/lib/i18n/pt.json +++ b/lib/core/src/lib/i18n/pt.json @@ -364,11 +364,6 @@ "ACTION": { "HELP": "PRECISA DE AJUDA?", "REGISTER": "REGISTAR" - }, - "DIALOG": { - "CANCEL": "Cancelar", - "CHOOSE": "Escolher", - "LOGIN": "Iniciar sessão" } }, "ADF-DATATABLE": { diff --git a/lib/core/src/lib/i18n/ru.json b/lib/core/src/lib/i18n/ru.json index 7a39467f1e..7e5400d5d3 100755 --- a/lib/core/src/lib/i18n/ru.json +++ b/lib/core/src/lib/i18n/ru.json @@ -285,11 +285,6 @@ "ACTION": { "HELP": "Справка?", "REGISTER": "Регистрация" - }, - "DIALOG": { - "CANCEL": "Отмена", - "CHOOSE": "Выбрать", - "LOGIN": "Войти" } }, "ADF-DATATABLE": { diff --git a/lib/core/src/lib/i18n/sv.json b/lib/core/src/lib/i18n/sv.json index 6354167e15..25801b367f 100755 --- a/lib/core/src/lib/i18n/sv.json +++ b/lib/core/src/lib/i18n/sv.json @@ -285,11 +285,6 @@ "ACTION": { "HELP": "Behöver du hjälp?", "REGISTER": "Registrera" - }, - "DIALOG": { - "CANCEL": "Avbryt", - "CHOOSE": "Välj", - "LOGIN": "Logga in" } }, "ADF-DATATABLE": { diff --git a/lib/core/src/lib/i18n/zh-CN.json b/lib/core/src/lib/i18n/zh-CN.json index 4a24c399fe..ef8e436f71 100755 --- a/lib/core/src/lib/i18n/zh-CN.json +++ b/lib/core/src/lib/i18n/zh-CN.json @@ -285,11 +285,6 @@ "ACTION": { "HELP": "是否需要帮助?", "REGISTER": "注册" - }, - "DIALOG": { - "CANCEL": "取消", - "CHOOSE": "选择", - "LOGIN": "登录" } }, "ADF-DATATABLE": { diff --git a/lib/core/src/lib/login/components/login-dialog/login-dialog-component-data.interface.ts b/lib/core/src/lib/login/components/login-dialog/login-dialog-component-data.interface.ts deleted file mode 100644 index d058ff6792..0000000000 --- a/lib/core/src/lib/login/components/login-dialog/login-dialog-component-data.interface.ts +++ /dev/null @@ -1,24 +0,0 @@ -/*! - * @license - * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Subject } from 'rxjs'; - -export interface LoginDialogComponentData { - title: string; - actionName?: string; - logged: Subject; -} diff --git a/lib/core/src/lib/login/components/login-dialog/login-dialog.component.html b/lib/core/src/lib/login/components/login-dialog/login-dialog.component.html deleted file mode 100644 index 22b918bfac..0000000000 --- a/lib/core/src/lib/login/components/login-dialog/login-dialog.component.html +++ /dev/null @@ -1,23 +0,0 @@ -
- {{ data?.title }} -
- - - - diff --git a/lib/core/src/lib/login/components/login-dialog/login-dialog.component.scss b/lib/core/src/lib/login/components/login-dialog/login-dialog.component.scss deleted file mode 100644 index 7956689d96..0000000000 --- a/lib/core/src/lib/login/components/login-dialog/login-dialog.component.scss +++ /dev/null @@ -1,4 +0,0 @@ -.adf-login-dialog-content adf-login .adf-login-content .adf-login-card-wide { - padding: 0; - box-shadow: none; -} diff --git a/lib/core/src/lib/login/components/login-dialog/login-dialog.component.ts b/lib/core/src/lib/login/components/login-dialog/login-dialog.component.ts deleted file mode 100644 index bd152e9be7..0000000000 --- a/lib/core/src/lib/login/components/login-dialog/login-dialog.component.ts +++ /dev/null @@ -1,59 +0,0 @@ -/*! - * @license - * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Component, Inject, ViewChild, ViewEncapsulation } from '@angular/core'; -import { MatButtonModule } from '@angular/material/button'; -import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog'; -import { TranslatePipe } from '@ngx-translate/core'; -import { LoginDialogPanelComponent } from '../login-dialog-panel/login-dialog-panel.component'; -import { LoginDialogComponentData } from './login-dialog-component-data.interface'; - -/** @deprecated this component will be removed because it's unused https://hyland.atlassian.net/browse/ACS-10178 */ -@Component({ - selector: 'adf-login-dialog', - templateUrl: './login-dialog.component.html', - styleUrls: ['./login-dialog.component.scss'], - imports: [MatDialogModule, LoginDialogPanelComponent, TranslatePipe, MatButtonModule], - encapsulation: ViewEncapsulation.None -}) -export class LoginDialogComponent { - @ViewChild('adfLoginPanel', { static: true }) - loginPanel: LoginDialogPanelComponent; - - buttonActionName = ''; - - constructor(@Inject(MAT_DIALOG_DATA) public data: LoginDialogComponentData) { - this.buttonActionName = data.actionName ? `LOGIN.DIALOG.${data.actionName.toUpperCase()}` : 'LOGIN.DIALOG.CHOOSE'; - } - - close() { - this.data.logged.complete(); - } - - submitForm(): void { - this.loginPanel.submitForm(); - } - - onLoginSuccess(event: any) { - this.data.logged.next(event); - this.close(); - } - - isFormValid() { - return this.loginPanel ? this.loginPanel.isValid() : false; - } -} diff --git a/lib/core/src/lib/login/login.module.ts b/lib/core/src/lib/login/login.module.ts index 251a1892f4..c07e8e9177 100644 --- a/lib/core/src/lib/login/login.module.ts +++ b/lib/core/src/lib/login/login.module.ts @@ -17,19 +17,12 @@ import { NgModule } from '@angular/core'; import { LoginDialogPanelComponent } from './components/login-dialog-panel/login-dialog-panel.component'; -import { LoginDialogComponent } from './components/login-dialog/login-dialog.component'; import { LoginComponent } from './components/login/login.component'; import { LoginFooterDirective } from './directives/login-footer.directive'; import { LoginHeaderDirective } from './directives/login-header.directive'; -export const LOGIN_DIRECTIVES = [ - LoginComponent, - LoginFooterDirective, - LoginHeaderDirective, - LoginDialogComponent, - LoginDialogPanelComponent -] as const; +export const LOGIN_DIRECTIVES = [LoginComponent, LoginFooterDirective, LoginHeaderDirective, LoginDialogPanelComponent] as const; /** @deprecated use `...LOGIN_DIRECTIVES` or import the standalone directives directly */ @NgModule({ diff --git a/lib/core/src/lib/login/public-api.ts b/lib/core/src/lib/login/public-api.ts index 2544c678b6..9a971286f8 100644 --- a/lib/core/src/lib/login/public-api.ts +++ b/lib/core/src/lib/login/public-api.ts @@ -19,8 +19,6 @@ export * from './directives/login-header.directive'; export * from './directives/login-footer.directive'; export * from './components/login/login.component'; -export * from './components/login-dialog/login-dialog.component'; -export * from './components/login-dialog/login-dialog-component-data.interface'; export * from './components/login-dialog-panel/login-dialog-panel.component'; export * from './models/login-error.event'; diff --git a/lib/process-services-cloud/src/lib/app/app-list-cloud.module.ts b/lib/process-services-cloud/src/lib/app/app-list-cloud.module.ts deleted file mode 100644 index 26041a814d..0000000000 --- a/lib/process-services-cloud/src/lib/app/app-list-cloud.module.ts +++ /dev/null @@ -1,21 +0,0 @@ -/*! - * @license - * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { AppDetailsCloudComponent } from './components/app-details-cloud/app-details-cloud.component'; -import { AppListCloudComponent } from './components/app-list-cloud/app-list-cloud.component'; - -export const APP_LIST_CLOUD_DIRECTIVES = [AppListCloudComponent, AppDetailsCloudComponent] as const; diff --git a/lib/process-services-cloud/src/lib/app/components/app-details-cloud/app-details-cloud.component.html b/lib/process-services-cloud/src/lib/app/components/app-details-cloud/app-details-cloud.component.html deleted file mode 100644 index 268506c2f1..0000000000 --- a/lib/process-services-cloud/src/lib/app/components/app-details-cloud/app-details-cloud.component.html +++ /dev/null @@ -1,23 +0,0 @@ -
-
- - -
-

{{applicationInstance.name}}

-
- -
{{applicationInstance.description}}
-
-
-
-
diff --git a/lib/process-services-cloud/src/lib/app/components/app-details-cloud/app-details-cloud.component.scss b/lib/process-services-cloud/src/lib/app/components/app-details-cloud/app-details-cloud.component.scss deleted file mode 100644 index 6547eaaed5..0000000000 --- a/lib/process-services-cloud/src/lib/app/components/app-details-cloud/app-details-cloud.component.scss +++ /dev/null @@ -1,167 +0,0 @@ -/* stylelint-disable scss/no-global-function-names */ -@mixin adf-line-clamp($line-height: 1.25, $lines: 3) { - position: relative; - line-height: $line-height; - padding: 0; - overflow: hidden; - text-overflow: ellipsis; - - /* stylelint-disable */ - @supports (-webkit-line-clamp: 1) { - display: -webkit-box; - -webkit-box-orient: vertical; - -webkit-line-clamp: $lines; - height: calc(0.99em * #{$line-height} * #{$lines}); - } - - @supports not (-webkit-line-clamp: 1) { - white-space: nowrap; - width: 100%; - } - /* stylelint-enable */ -} - -$tile-themes: ( - theme-1: ( - bg: #269abc, - color: #168aac - ), - theme-2: ( - bg: #7da9b0, - color: #6d99a0 - ), - theme-3: ( - bg: #7689ab, - color: #66799b - ), - theme-4: ( - bg: #c74e3e, - color: #b73e2e - ), - theme-5: ( - bg: #fab96c, - color: #eaa95c - ), - theme-6: ( - bg: #759d4c, - color: #658d3c - ), - theme-7: ( - bg: #b1b489, - color: #a1a479 - ), - theme-8: ( - bg: #a17299, - color: #916289 - ), - theme-9: ( - bg: #696c67, - color: #595c57 - ), - theme-10: ( - bg: #cabb33, - color: #baab23 - ) -); - -adf-cloud-app-details { - .adf-app-listgrid { - padding: 8px; - display: block; - - .adf-app-listgrid-item { - outline: none; - padding: 8px; - box-sizing: border-box; - flex: unset; - max-width: unset; - - &-card { - @for $i from 1 through 10 { - &.theme-#{$i} { - $tile-theme: map-get($tile-themes, theme-#{$i}); - - background-color: map-get($tile-theme, bg); - - .adf-app-listgrid-item-card-logo-icon { - color: map-get($tile-theme, color); - } - } - } - - outline: none; - transition: - transform 280ms cubic-bezier(0.4, 0, 0.2, 1), - box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); - min-height: 200px; - flex-direction: column; - box-sizing: border-box; - display: flex; - padding: 0; - max-width: unset; - - &:hover { - box-shadow: - 0 8px 10px 1px rgba(0, 0, 0, 0.14), - 0 3px 14px 2px rgba(0, 0, 0, 0.12), - 0 5px 5px -3px rgba(0, 0, 0, 0.2); - cursor: pointer; - transform: scale(1.015); - } - - &-logo { - position: absolute; - right: 20px; - top: 20px; - padding: 16px; - z-index: 9; - - .adf-app-listgrid-item-card-logo-icon { - font-size: 70px; - width: 1em; - height: 1em; - } - } - - &-title:has(.adf-app-listgrid-item-card-title-text) { - padding: 16px; - margin-bottom: 0; - z-index: 9999; - - h1 { - color: white; - width: 80%; - font-size: var(--theme-headline-font-size); - margin: 0; - line-height: normal; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - } - } - - &-subtitle:has(.adf-line-clamp) { - color: white; - z-index: 9999; - padding: 16px; - flex: 1 0 auto; - - .adf-line-clamp { - @include adf-line-clamp(1.25, 3); - } - } - - &-actions { - padding: 0 16px 16px; - border-top: 1px solid rgba(0, 0, 0, 0.1); - min-height: 48px; - box-sizing: border-box; - - &-icon { - color: #e9f1f3; - } - } - } - } - } -} diff --git a/lib/process-services-cloud/src/lib/app/components/app-details-cloud/app-details-cloud.component.spec.ts b/lib/process-services-cloud/src/lib/app/components/app-details-cloud/app-details-cloud.component.spec.ts deleted file mode 100644 index e9193787df..0000000000 --- a/lib/process-services-cloud/src/lib/app/components/app-details-cloud/app-details-cloud.component.spec.ts +++ /dev/null @@ -1,72 +0,0 @@ -/*! - * @license - * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { ComponentFixture, TestBed } from '@angular/core/testing'; -import { fakeApplicationInstance } from '../../mock/app-model.mock'; -import { AppDetailsCloudComponent } from './app-details-cloud.component'; -import { DEFAULT_APP_INSTANCE_THEME } from '../../models/application-instance.model'; -import { NoopTranslateModule } from '@alfresco/adf-core'; - -describe('AppDetailsCloudComponent', () => { - let component: AppDetailsCloudComponent; - let fixture: ComponentFixture; - let host: HTMLElement; - - beforeEach(() => { - TestBed.configureTestingModule({ - imports: [NoopTranslateModule, AppDetailsCloudComponent] - }); - fixture = TestBed.createComponent(AppDetailsCloudComponent); - component = fixture.componentInstance; - host = fixture.nativeElement as HTMLElement; - component.applicationInstance = fakeApplicationInstance[0]; - }); - - const getAppCard = () => host.querySelector('.adf-app-listgrid-item-card'); - - it('should display application name', () => { - fixture.detectChanges(); - const appName = host.querySelector('.adf-app-listgrid-item-card-title'); - expect(appName.innerText.trim()).toEqual(fakeApplicationInstance[0].name); - }); - - it('should emit a click event when app selected', () => { - spyOn(component.selectedApp, 'emit'); - fixture.detectChanges(); - const app = getAppCard(); - app.click(); - expect(component.selectedApp.emit).toHaveBeenCalledWith(fakeApplicationInstance[0]); - }); - - it('should render card with default icon and theme when are not provided', () => { - component.applicationInstance = fakeApplicationInstance[2]; - fixture.detectChanges(); - - const card = getAppCard(); - expect(card.classList.contains(DEFAULT_APP_INSTANCE_THEME)); - - const icon = host.querySelector('.adf-app-listgrid-item-card-logo-icon'); - expect(icon).toBeTruthy(); - }); - - it('should render card with a non ApplicationInstanceModel input object', () => { - component.applicationInstance = { name: 'application-new-3', createdAt: '2018-09-21T12:31:39.000Z', status: 'Pending' }; - fixture.detectChanges(); - const app = getAppCard(); - expect(app).toBeTruthy(); - }); -}); diff --git a/lib/process-services-cloud/src/lib/app/components/app-details-cloud/app-details-cloud.component.ts b/lib/process-services-cloud/src/lib/app/components/app-details-cloud/app-details-cloud.component.ts deleted file mode 100644 index 5b0eed6abb..0000000000 --- a/lib/process-services-cloud/src/lib/app/components/app-details-cloud/app-details-cloud.component.ts +++ /dev/null @@ -1,65 +0,0 @@ -/*! - * @license - * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core'; -import { ApplicationInstanceModel, DEFAULT_APP_INSTANCE_ICON, DEFAULT_APP_INSTANCE_THEME } from '../../models/application-instance.model'; -import { CommonModule } from '@angular/common'; -import { MatIconModule } from '@angular/material/icon'; -import { MatCardModule } from '@angular/material/card'; - -/** @deprecated this component will be removed because it's unused https://hyland.atlassian.net/browse/ACS-10178 */ -@Component({ - selector: 'adf-cloud-app-details', - imports: [CommonModule, MatIconModule, MatCardModule], - templateUrl: './app-details-cloud.component.html', - styleUrls: ['./app-details-cloud.component.scss'], - encapsulation: ViewEncapsulation.None -}) -export class AppDetailsCloudComponent { - @Input({ required: true }) - applicationInstance: ApplicationInstanceModel; - - @Output() - selectedApp = new EventEmitter(); - - /** - * Pass the selected app as next - * - * @param app application model - */ - onSelectApp(app: ApplicationInstanceModel): void { - this.selectedApp.emit(app); - } - - /** - * Get application instance theme - * - * @returns the name of the theme - */ - getTheme(): string { - return this.applicationInstance.theme || DEFAULT_APP_INSTANCE_THEME; - } - - /** - * Get application instance icon - * - * @returns the name of the icon - */ - getIcon(): string { - return this.applicationInstance.icon || DEFAULT_APP_INSTANCE_ICON; - } -} diff --git a/lib/process-services-cloud/src/lib/app/components/app-list-cloud/app-list-cloud.component.html b/lib/process-services-cloud/src/lib/app/components/app-list-cloud/app-list-cloud.component.html deleted file mode 100644 index ded3c2eefc..0000000000 --- a/lib/process-services-cloud/src/lib/app/components/app-list-cloud/app-list-cloud.component.html +++ /dev/null @@ -1,46 +0,0 @@ - - -
- - - - - -
-
- -
- -
- - -
- -
-
-
-
diff --git a/lib/process-services-cloud/src/lib/app/components/app-list-cloud/app-list-cloud.component.scss b/lib/process-services-cloud/src/lib/app/components/app-list-cloud/app-list-cloud.component.scss deleted file mode 100644 index 7d7ffa931a..0000000000 --- a/lib/process-services-cloud/src/lib/app/components/app-list-cloud/app-list-cloud.component.scss +++ /dev/null @@ -1,41 +0,0 @@ -@use '../../../flex' as flex; - -adf-cloud-app-list { - width: 100%; - - .adf-app-list-item { - cursor: pointer; - } - - .adf-app-list-spinner, - .adf-app-list-empty, - .adf-app-list-error { - display: flex; - align-items: center; - justify-content: center; - flex-direction: column; - height: 85vh; - - .adf-app-list-cloud-spinner { - margin: 0 auto; - } - } - - .adf-app-apps-grid { - flex-flow: row wrap; - display: flex; - - adf-cloud-app-details { - flex: 1 1 100%; - max-width: 33.3333%; - - @include flex.layout-bp(lt-md) { - max-width: 50%; - } - - @include flex.layout-bp(lt-sm) { - max-width: 100%; - } - } - } -} diff --git a/lib/process-services-cloud/src/lib/app/components/app-list-cloud/app-list-cloud.component.spec.ts b/lib/process-services-cloud/src/lib/app/components/app-list-cloud/app-list-cloud.component.spec.ts deleted file mode 100644 index aa3445f25b..0000000000 --- a/lib/process-services-cloud/src/lib/app/components/app-list-cloud/app-list-cloud.component.spec.ts +++ /dev/null @@ -1,220 +0,0 @@ -/*! - * @license - * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Component } from '@angular/core'; -import { ComponentFixture, TestBed } from '@angular/core/testing'; -import { AlfrescoApiService } from '@alfresco/adf-content-services'; -import { of, throwError } from 'rxjs'; -import { fakeApplicationInstance } from '../../mock/app-model.mock'; -import { AppListCloudComponent, LAYOUT_GRID, LAYOUT_LIST } from './app-list-cloud.component'; -import { AppsProcessCloudService } from '../../services/apps-process-cloud.service'; -import { MatIconModule } from '@angular/material/icon'; -import { CustomEmptyContentTemplateDirective, NoopTranslateModule } from '@alfresco/adf-core'; - -describe('AppListCloudComponent', () => { - let component: AppListCloudComponent; - let fixture: ComponentFixture; - let appsProcessCloudService: AppsProcessCloudService; - let getAppsSpy: jasmine.Spy; - let alfrescoApiService: AlfrescoApiService; - - const mock: any = { - oauth2Auth: { - callCustomApi: () => Promise.resolve(fakeApplicationInstance) - }, - isLoggedIn: () => false, - reply: jasmine.createSpy('reply') - }; - - @Component({ - imports: [MatIconModule, CustomEmptyContentTemplateDirective, AppListCloudComponent], - template: ` - - - apps -

No Apps Found

-
-
- ` - }) - class CustomEmptyAppListCloudTemplateComponent {} - - beforeEach(() => { - TestBed.configureTestingModule({ - imports: [NoopTranslateModule, AppListCloudComponent, CustomEmptyAppListCloudTemplateComponent] - }); - fixture = TestBed.createComponent(AppListCloudComponent); - component = fixture.componentInstance; - alfrescoApiService = TestBed.inject(AlfrescoApiService); - appsProcessCloudService = TestBed.inject(AppsProcessCloudService); - - spyOn(alfrescoApiService, 'getInstance').and.returnValue(mock); - getAppsSpy = spyOn(appsProcessCloudService, 'getDeployedApplicationsByStatus').and.returnValue(of(fakeApplicationInstance)); - }); - - it('should define layoutType with the default value', () => { - component.layoutType = ''; - fixture.detectChanges(); - expect(component.isGrid()).toBe(true); - }); - - it('Should fetch deployed apps', (done) => { - fixture.detectChanges(); - fixture.whenStable().then(() => { - component.apps$.subscribe((response: any[]) => { - expect(response).toBeDefined(); - expect(response.length).toEqual(3); - expect(response[0].name).toEqual('application-new-1'); - expect(response[0].status).toEqual('Deployed'); - expect(response[0].icon).toEqual('favorite_border'); - expect(response[0].theme).toEqual('theme-2'); - expect(response[1].name).toEqual('application-new-2'); - expect(response[1].status).toEqual('Pending'); - expect(response[1].icon).toEqual('favorite_border'); - expect(response[1].theme).toEqual('theme-2'); - done(); - }); - }); - }); - - it('should display default adf-empty-content template when response empty', () => { - getAppsSpy.and.returnValue(of([])); - fixture.detectChanges(); - const defaultEmptyTemplate = fixture.nativeElement.querySelector('.adf-app-list-empty'); - const emptyContent = fixture.debugElement.nativeElement.querySelector('.adf-empty-content'); - const emptyTitle = fixture.debugElement.nativeElement.querySelector('.adf-empty-content__title'); - const emptySubtitle = fixture.debugElement.nativeElement.querySelector('.adf-empty-content__subtitle'); - expect(defaultEmptyTemplate).toBeDefined(); - expect(defaultEmptyTemplate).not.toBeNull(); - expect(emptyContent).not.toBeNull(); - expect(emptyTitle.innerText).toBe('ADF_CLOUD_TASK_LIST.APPS.NO_APPS.TITLE'); - expect(emptySubtitle.innerText).toBe('ADF_CLOUD_TASK_LIST.APPS.NO_APPS.SUBTITLE'); - expect(getAppsSpy).toHaveBeenCalled(); - }); - - it('should display default no permissions template when response returns exception', (done) => { - getAppsSpy.and.returnValue(throwError({})); - fixture.detectChanges(); - fixture.whenStable().then(() => { - component.loadingError$.next(true); - fixture.detectChanges(); - const errorTemplate = fixture.nativeElement.querySelector('.adf-app-list-error'); - const errorTitle = fixture.debugElement.nativeElement.querySelector('.adf-empty-content__title'); - const errorSubtitle = fixture.debugElement.nativeElement.querySelector('.adf-empty-content__subtitle'); - expect(errorTemplate).not.toBeNull(); - expect(errorTitle.innerText).toBe('ADF_CLOUD_TASK_LIST.APPS.ERROR.TITLE'); - expect(errorSubtitle.innerText).toBe('ADF_CLOUD_TASK_LIST.APPS.ERROR.SUBTITLE'); - expect(getAppsSpy).toHaveBeenCalled(); - done(); - }); - }); - - describe('Grid Layout ', () => { - it('should display a grid by default', () => { - fixture.detectChanges(); - expect(component.isGrid()).toBe(true); - expect(component.isList()).toBe(false); - }); - - it('should defined adf-cloud-app-details when layout type is grid', () => { - fixture.detectChanges(); - const adfCloudDetailsElement = fixture.nativeElement.querySelectorAll('adf-cloud-app-details'); - const appName = fixture.nativeElement.querySelector('.adf-app-listgrid-item-card-title'); - expect(adfCloudDetailsElement).toBeDefined(); - expect(adfCloudDetailsElement).not.toBeNull(); - - expect(adfCloudDetailsElement.length).toEqual(3); - expect(component.isGrid()).toBe(true); - expect(component.isList()).toBe(false); - - expect(appName.innerText.trim()).toEqual(fakeApplicationInstance[0].name); - }); - - it('should display a grid when configured to', () => { - component.layoutType = LAYOUT_GRID; - fixture.detectChanges(); - expect(component.isGrid()).toBe(true); - expect(component.isList()).toBe(false); - }); - - it('should throw an exception on init if unknown type configured', () => { - component.layoutType = 'unknown'; - expect(component.ngOnInit).toThrowError(); - }); - }); - - describe('List Layout ', () => { - beforeEach(() => { - component.layoutType = LAYOUT_LIST; - }); - - it('should display a LIST when configured to', () => { - fixture.detectChanges(); - expect(component.isGrid()).toBe(false); - expect(component.isList()).toBe(true); - }); - - it('should display list when layout type is LIST', () => { - fixture.detectChanges(); - const appListElement = fixture.nativeElement.querySelectorAll('.adf-app-list'); - const appListItemElement = fixture.nativeElement.querySelectorAll('.adf-app-list-item'); - const appName = fixture.nativeElement.querySelector('.adf-app-list-item-text'); - expect(appListElement).toBeDefined(); - expect(appListElement).not.toBeNull(); - - expect(appListItemElement.length).toEqual(3); - expect(component.isGrid()).toBe(false); - expect(component.isList()).toBe(true); - - expect(appName.innerText.trim()).toEqual(fakeApplicationInstance[0].name); - }); - - it('should throw an exception on init if unknown type configured', () => { - component.layoutType = 'unknown'; - expect(component.ngOnInit).toThrowError(); - }); - }); - - it('should emit a click event when app selected', () => { - spyOn(component.appClick, 'emit'); - fixture.detectChanges(); - const onAppClick = fixture.nativeElement.querySelector('.adf-app-listgrid-item-card'); - onAppClick.click(); - expect(component.appClick.emit).toHaveBeenCalledWith(fakeApplicationInstance[0]); - }); - - describe('Custom CustomEmptyAppListCloudTemplateComponent', () => { - let customFixture: ComponentFixture; - - beforeEach(() => { - getAppsSpy.and.returnValue(of([])); - customFixture = TestBed.createComponent(CustomEmptyAppListCloudTemplateComponent); - }); - - afterEach(() => { - customFixture.destroy(); - }); - - it('should render the custom empty template', async () => { - customFixture.detectChanges(); - await customFixture.whenStable(); - - const title = customFixture.nativeElement.querySelector('#custom-id'); - expect(title.innerText).toBe('No Apps Found'); - }); - }); -}); diff --git a/lib/process-services-cloud/src/lib/app/components/app-list-cloud/app-list-cloud.component.ts b/lib/process-services-cloud/src/lib/app/components/app-list-cloud/app-list-cloud.component.ts deleted file mode 100644 index ca7711a8e7..0000000000 --- a/lib/process-services-cloud/src/lib/app/components/app-list-cloud/app-list-cloud.component.ts +++ /dev/null @@ -1,133 +0,0 @@ -/*! - * @license - * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { CustomEmptyContentTemplateDirective, EmptyContentComponent } from '@alfresco/adf-core'; -import { AfterContentInit, Component, ContentChild, EventEmitter, Input, OnInit, Output, ViewEncapsulation } from '@angular/core'; -import { Observable, of, Subject } from 'rxjs'; -import { AppsProcessCloudService } from '../../services/apps-process-cloud.service'; -import { ApplicationInstanceModel } from '../../models/application-instance.model'; -import { catchError } from 'rxjs/operators'; -import { CommonModule } from '@angular/common'; -import { TranslatePipe } from '@ngx-translate/core'; -import { AppDetailsCloudComponent } from '../app-details-cloud/app-details-cloud.component'; -import { MatIconModule } from '@angular/material/icon'; -import { MatLineModule } from '@angular/material/core'; -import { MatListModule } from '@angular/material/list'; -import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; - -export const LAYOUT_LIST: string = 'LIST'; -export const LAYOUT_GRID: string = 'GRID'; -export const DEPLOYED_STATUS: string = 'DEPLOYED'; - -/** @deprecated this component will be removed because it's unused https://hyland.atlassian.net/browse/ACS-10178 */ -@Component({ - selector: 'adf-cloud-app-list', - imports: [ - CommonModule, - TranslatePipe, - AppDetailsCloudComponent, - MatIconModule, - MatLineModule, - MatListModule, - EmptyContentComponent, - MatProgressSpinnerModule - ], - templateUrl: './app-list-cloud.component.html', - styleUrls: ['./app-list-cloud.component.scss'], - encapsulation: ViewEncapsulation.None -}) -export class AppListCloudComponent implements OnInit, AfterContentInit { - @ContentChild(CustomEmptyContentTemplateDirective) - emptyCustomContent: CustomEmptyContentTemplateDirective; - - /** - * Defines the layout of the apps. There are two possible - * values, "GRID" and "LIST". - */ - @Input() - layoutType: string = LAYOUT_GRID; - - /** Emitted when an app entry is clicked. */ - @Output() - appClick = new EventEmitter(); - - apps$: Observable; - loadingError$ = new Subject(); - hasEmptyCustomContentTemplate: boolean = false; - - constructor(private appsProcessCloudService: AppsProcessCloudService) {} - - ngOnInit() { - if (!this.isValidType()) { - this.setDefaultLayoutType(); - } - - this.apps$ = this.appsProcessCloudService.getDeployedApplicationsByStatus(DEPLOYED_STATUS).pipe( - catchError(() => { - this.loadingError$.next(true); - return of(); - }) - ); - } - - ngAfterContentInit() { - if (this.emptyCustomContent) { - this.hasEmptyCustomContentTemplate = true; - } - } - - onSelectApp(app: ApplicationInstanceModel): void { - this.appClick.emit(app); - } - - /** - * Check if the value of the layoutType property is an allowed value - * - * @returns `true` if layout type is valid, otherwise `false` - */ - isValidType(): boolean { - if (this.layoutType && (this.layoutType === LAYOUT_LIST || this.layoutType === LAYOUT_GRID)) { - return true; - } - return false; - } - - /** - * Assign the default value to LayoutType - */ - setDefaultLayoutType(): void { - this.layoutType = LAYOUT_GRID; - } - - /** - * Check if the layout type is LIST - * - * @returns `true` if the layout is list, otherwise `false` - */ - isList(): boolean { - return this.layoutType === LAYOUT_LIST; - } - - /** - * Check if the layout type is GRID - * - * @returns `true` if layout is grid, otherwise `false` - */ - isGrid(): boolean { - return this.layoutType === LAYOUT_GRID; - } -} diff --git a/lib/process-services-cloud/src/lib/app/models/application-instance.model.ts b/lib/process-services-cloud/src/lib/app/models/application-instance.model.ts index b079fc07fb..5f3c2999f0 100644 --- a/lib/process-services-cloud/src/lib/app/models/application-instance.model.ts +++ b/lib/process-services-cloud/src/lib/app/models/application-instance.model.ts @@ -15,9 +15,6 @@ * limitations under the License. */ -export const DEFAULT_APP_INSTANCE_THEME = 'theme-2'; -export const DEFAULT_APP_INSTANCE_ICON = 'favorite_border'; - export interface ApplicationInstanceModel { name?: string; displayName?: string; diff --git a/lib/process-services-cloud/src/lib/app/public-api.ts b/lib/process-services-cloud/src/lib/app/public-api.ts index 7f623ee58a..b76bb93e14 100644 --- a/lib/process-services-cloud/src/lib/app/public-api.ts +++ b/lib/process-services-cloud/src/lib/app/public-api.ts @@ -17,6 +17,3 @@ export * from './services/apps-process-cloud.service'; export * from './models/application-instance.model'; -export * from './app-list-cloud.module'; -export * from './components/app-list-cloud/app-list-cloud.component'; -export * from './components/app-details-cloud/app-details-cloud.component'; diff --git a/lib/process-services-cloud/src/lib/form/components/form-definition-selector-cloud.component.html b/lib/process-services-cloud/src/lib/form/components/form-definition-selector-cloud.component.html deleted file mode 100644 index a65729f038..0000000000 --- a/lib/process-services-cloud/src/lib/form/components/form-definition-selector-cloud.component.html +++ /dev/null @@ -1,7 +0,0 @@ - - {{'ADF_CLOUD_TASK_LIST.START_TASK.FORM.LABEL.FORM' | translate}} - - {{'ADF_CLOUD_TASK_LIST.START_TASK.FORM.LABEL.NONE' | translate}} - {{ form.name }} - - diff --git a/lib/process-services-cloud/src/lib/form/components/form-definition-selector-cloud.component.scss b/lib/process-services-cloud/src/lib/form/components/form-definition-selector-cloud.component.scss deleted file mode 100644 index d5db4f165d..0000000000 --- a/lib/process-services-cloud/src/lib/form/components/form-definition-selector-cloud.component.scss +++ /dev/null @@ -1,5 +0,0 @@ -.adf { - &-form-definition-selector { - width: 100%; - } -} diff --git a/lib/process-services-cloud/src/lib/form/components/form-definition-selector-cloud.component.spec.ts b/lib/process-services-cloud/src/lib/form/components/form-definition-selector-cloud.component.spec.ts deleted file mode 100644 index 3d76891b92..0000000000 --- a/lib/process-services-cloud/src/lib/form/components/form-definition-selector-cloud.component.spec.ts +++ /dev/null @@ -1,79 +0,0 @@ -/*! - * @license - * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { ComponentFixture, TestBed } from '@angular/core/testing'; -import { FormDefinitionSelectorCloudComponent } from './form-definition-selector-cloud.component'; -import { of } from 'rxjs'; -import { FormDefinitionSelectorCloudService } from '../services/form-definition-selector-cloud.service'; -import { HarnessLoader } from '@angular/cdk/testing'; -import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed'; -import { MatSelectHarness } from '@angular/material/select/testing'; -import { NoopTranslateModule } from '@alfresco/adf-core'; - -describe('FormDefinitionCloudComponent', () => { - let fixture: ComponentFixture; - let service: FormDefinitionSelectorCloudService; - let getFormsSpy: jasmine.Spy; - let loader: HarnessLoader; - - beforeEach(() => { - TestBed.configureTestingModule({ - imports: [NoopTranslateModule, FormDefinitionSelectorCloudComponent] - }); - fixture = TestBed.createComponent(FormDefinitionSelectorCloudComponent); - service = TestBed.inject(FormDefinitionSelectorCloudService); - getFormsSpy = spyOn(service, 'getStandAloneTaskForms').and.returnValue(of([{ id: 'fake-form', name: 'fakeForm' } as any])); - loader = TestbedHarnessEnvironment.loader(fixture); - }); - - it('should load the forms by default', async () => { - const selectElement = await loader.getHarness(MatSelectHarness.with({ selector: '.adf-form-selector-dropdown' })); - await selectElement.open(); - const options = await selectElement.getOptions(); - - expect(options.length).toBe(2); - expect(await options[0].getText()).toBe('ADF_CLOUD_TASK_LIST.START_TASK.FORM.LABEL.NONE'); - expect(await options[1].getText()).toBe('fakeForm'); - expect(getFormsSpy).toHaveBeenCalled(); - }); - - it('should load only None option when no forms exist', async () => { - getFormsSpy.and.returnValue(of([])); - const selectElement = await loader.getHarness(MatSelectHarness.with({ selector: '.adf-form-selector-dropdown' })); - await selectElement.open(); - - const options = await selectElement.getOptions(); - - expect(options.length).toBe(1); - }); - - it('should not preselect any form by default', async () => { - const selectElement = await loader.getHarness(MatSelectHarness.with({ selector: '.adf-form-selector-dropdown' })); - - expect(await selectElement.getValueText()).toBe(''); - }); - - it('should display the name of the form that is selected', async () => { - const selectElement = await loader.getHarness(MatSelectHarness.with({ selector: '.adf-form-selector-dropdown' })); - await selectElement.open(); - const options = await selectElement.getOptions(); - - await options[1].click(); - - expect(await selectElement.getValueText()).toBe('fakeForm'); - }); -}); diff --git a/lib/process-services-cloud/src/lib/form/components/form-definition-selector-cloud.component.ts b/lib/process-services-cloud/src/lib/form/components/form-definition-selector-cloud.component.ts deleted file mode 100644 index 81991a37a2..0000000000 --- a/lib/process-services-cloud/src/lib/form/components/form-definition-selector-cloud.component.ts +++ /dev/null @@ -1,53 +0,0 @@ -/*! - * @license - * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; -import { Observable } from 'rxjs'; -import { FormDefinitionSelectorCloudService } from '../services/form-definition-selector-cloud.service'; -import { MatSelectChange, MatSelectModule } from '@angular/material/select'; -import { FormRepresentation } from '../../services/form-fields.interfaces'; -import { CommonModule } from '@angular/common'; -import { TranslatePipe } from '@ngx-translate/core'; - -/** @deprecated this component will be removed because it's unused https://hyland.atlassian.net/browse/ACS-10178 */ -@Component({ - selector: 'adf-cloud-form-definition-selector', - imports: [CommonModule, TranslatePipe, MatSelectModule], - templateUrl: './form-definition-selector-cloud.component.html', - styleUrls: ['./form-definition-selector-cloud.component.scss'] -}) -export class FormDefinitionSelectorCloudComponent implements OnInit { - /** Name of the application. If specified, this shows the users who have access to the app. */ - @Input() - appName: string = ''; - - /** Emitted when a form is selected. */ - @Output() - selectForm: EventEmitter = new EventEmitter(); - - forms$: Observable; - - constructor(private formDefinitionCloudService: FormDefinitionSelectorCloudService) {} - - ngOnInit(): void { - this.forms$ = this.formDefinitionCloudService.getStandAloneTaskForms(this.appName); - } - - onSelect(event: MatSelectChange) { - this.selectForm.emit(event.value); - } -} diff --git a/lib/process-services-cloud/src/lib/form/form-cloud.module.ts b/lib/process-services-cloud/src/lib/form/form-cloud.module.ts index 76e07901a5..1876c055b1 100644 --- a/lib/process-services-cloud/src/lib/form/form-cloud.module.ts +++ b/lib/process-services-cloud/src/lib/form/form-cloud.module.ts @@ -17,7 +17,6 @@ import { NgModule } from '@angular/core'; import { FormCloudComponent } from './components/form-cloud.component'; -import { FormDefinitionSelectorCloudComponent } from './components/form-definition-selector-cloud.component'; import { FormCustomOutcomesComponent } from './components/form-cloud-custom-outcomes.component'; import { GroupCloudWidgetComponent } from './components/widgets/group/group-cloud.widget'; import { PeopleCloudWidgetComponent } from './components/widgets/people/people-cloud.widget'; @@ -39,7 +38,6 @@ export const FORM_CLOUD_DIRECTIVES = [ FileViewerWidgetComponent, FilePropertiesTableCloudComponent, FormCustomOutcomesComponent, - FormDefinitionSelectorCloudComponent, RadioButtonsCloudWidgetComponent, AttachFileCloudWidgetComponent, UploadCloudWidgetComponent, diff --git a/lib/process-services-cloud/src/lib/form/mocks/form-representation.mock.ts b/lib/process-services-cloud/src/lib/form/mocks/form-representation.mock.ts deleted file mode 100644 index bc771b4ce0..0000000000 --- a/lib/process-services-cloud/src/lib/form/mocks/form-representation.mock.ts +++ /dev/null @@ -1,45 +0,0 @@ -/*! - * @license - * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export const mockFormRepresentations = [ - { - formRepresentation: { - id: 'form-de8895be-d0d7-4434-beef-559b15305d72', - name: 'Form 1', - description: '', - version: 0, - standalone: true - } - }, - { - formRepresentation: { - id: 'form-de8895be-d0d7-4434-beef-fgr34ttgrtgd', - name: 'Form 2', - description: '', - version: 0, - standalone: false - } - }, - { - formRepresentation: { - id: 'form-de8895be-d0d7-4434-beef-53453453452', - name: 'Form 3', - description: '', - version: 0 - } - } -]; diff --git a/lib/process-services-cloud/src/lib/form/public-api.ts b/lib/process-services-cloud/src/lib/form/public-api.ts index c0c665c563..636244a4fb 100644 --- a/lib/process-services-cloud/src/lib/form/public-api.ts +++ b/lib/process-services-cloud/src/lib/form/public-api.ts @@ -20,7 +20,6 @@ export * from './models/task-variable-cloud.model'; export * from './components/spinner/form-spinner.component'; export * from './components/form-cloud-custom-outcomes.component'; export * from './components/form-cloud.component'; -export * from './components/form-definition-selector-cloud.component'; export * from './components/cloud-form-rendering.service'; export * from './components/widgets/attach-file/attach-file-cloud-widget.component'; @@ -41,7 +40,6 @@ export * from './components/widgets/radio-buttons/radio-buttons-cloud.schema'; export * from './services/content-cloud-node-selector.service'; export * from './services/form-cloud.service'; -export * from './services/form-definition-selector-cloud.service'; export * from './services/content-cloud-node-selector.service'; export * from './services/process-cloud-content.service'; export * from './services/display-mode.service'; diff --git a/lib/process-services-cloud/src/lib/form/services/form-definition-selector-cloud.service.interface.ts b/lib/process-services-cloud/src/lib/form/services/form-definition-selector-cloud.service.interface.ts deleted file mode 100644 index da5c587ac3..0000000000 --- a/lib/process-services-cloud/src/lib/form/services/form-definition-selector-cloud.service.interface.ts +++ /dev/null @@ -1,24 +0,0 @@ -/*! - * @license - * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Observable } from 'rxjs'; -import { FormRepresentation } from '../../services/form-fields.interfaces'; - -export interface FormDefinitionSelectorCloudServiceInterface { - getForms(appName: string): Observable; - getStandAloneTaskForms(appName: string): Observable; -} diff --git a/lib/process-services-cloud/src/lib/form/services/form-definition-selector-cloud.service.spec.ts b/lib/process-services-cloud/src/lib/form/services/form-definition-selector-cloud.service.spec.ts deleted file mode 100644 index f7458429a6..0000000000 --- a/lib/process-services-cloud/src/lib/form/services/form-definition-selector-cloud.service.spec.ts +++ /dev/null @@ -1,55 +0,0 @@ -/*! - * @license - * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { TestBed } from '@angular/core/testing'; -import { FormDefinitionSelectorCloudService } from './form-definition-selector-cloud.service'; -import { mockFormRepresentations } from '../mocks/form-representation.mock'; -import { AdfHttpClient } from '@alfresco/adf-core/api'; -import { NoopTranslateModule } from '@alfresco/adf-core'; - -describe('Form Definition Selector Cloud Service', () => { - let service: FormDefinitionSelectorCloudService; - let adfHttpClient: AdfHttpClient; - const appName = 'app-name'; - - beforeEach(() => { - TestBed.configureTestingModule({ - imports: [NoopTranslateModule] - }); - service = TestBed.inject(FormDefinitionSelectorCloudService); - adfHttpClient = TestBed.inject(AdfHttpClient); - spyOn(adfHttpClient, 'request').and.returnValue(Promise.resolve(mockFormRepresentations)); - }); - - it('should fetch all the forms when getForms is called', (done) => { - service.getForms(appName).subscribe((result) => { - expect(result).toBeDefined(); - expect(result.length).toBe(3); - done(); - }); - }); - - it('should fetch only standalone enabled forms when getStandaloneTaskForms is called', (done) => { - service.getStandAloneTaskForms(appName).subscribe((result) => { - expect(result).toBeDefined(); - expect(result.length).toBe(2); - expect(result[0].name).toBe('Form 1'); - expect(result[1].name).toBe('Form 3'); - done(); - }); - }); -}); diff --git a/lib/process-services-cloud/src/lib/form/services/form-definition-selector-cloud.service.ts b/lib/process-services-cloud/src/lib/form/services/form-definition-selector-cloud.service.ts deleted file mode 100644 index 94a508f0db..0000000000 --- a/lib/process-services-cloud/src/lib/form/services/form-definition-selector-cloud.service.ts +++ /dev/null @@ -1,54 +0,0 @@ -/*! - * @license - * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Injectable } from '@angular/core'; -import { map } from 'rxjs/operators'; -import { from, Observable } from 'rxjs'; -import { BaseCloudService } from '../../services/base-cloud.service'; -import { FormRepresentation } from '../../services/form-fields.interfaces'; -import { FormDefinitionSelectorCloudServiceInterface } from './form-definition-selector-cloud.service.interface'; - -/** @deprecated this service will be removed because it's component is unused https://hyland.atlassian.net/browse/ACS-10178 */ - -@Injectable({ - providedIn: 'root' -}) -export class FormDefinitionSelectorCloudService extends BaseCloudService implements FormDefinitionSelectorCloudServiceInterface { - /** - * Get all forms of an app. - * - * @param appName Name of the application - * @returns Details of the forms - */ - getForms(appName: string): Observable { - const url = `${this.getBasePath(appName)}/form/v1/forms`; - - return this.get(url).pipe(map((data: any) => data.map((formData: any) => formData.formRepresentation))); - } - - /** - * Get all forms of an app. - * - * @param appName Name of the application - * @returns Details of the forms - */ - getStandAloneTaskForms(appName: string): Observable { - return from(this.getForms(appName)).pipe( - map((data: any) => data.filter((formData: any) => formData.standalone || formData.standalone === undefined)) - ); - } -} diff --git a/lib/process-services-cloud/src/lib/i18n/ar.json b/lib/process-services-cloud/src/lib/i18n/ar.json index 0f89a7cfc5..05bb8df6b1 100644 --- a/lib/process-services-cloud/src/lib/i18n/ar.json +++ b/lib/process-services-cloud/src/lib/i18n/ar.json @@ -53,16 +53,6 @@ } }, "ADF_CLOUD_TASK_LIST": { - "APPS": { - "NO_APPS": { - "TITLE": "لم يتم العثور على تطبيقات", - "SUBTITLE": "أنشئ تطبيقًا جديدًا تريد العثور عليه بسهولة لاحقًا" - }, - "ERROR": { - "TITLE": "حدث خطأ", - "SUBTITLE": "تأكد أن لديك الإذن بالوصول إلى التطبيق" - } - }, "START_TASK": { "FORM": { "TITLE": "بدء مهمة", @@ -72,9 +62,7 @@ "ATTACHFORM": "إرفاق نموذج", "ASSIGNEE": "معين له", "CANDIDATE_GROUP": "المجموعة المرشحة", - "FORM": "نموذج", "DATE": "اختيار تاريخ", - "NONE": "بلا", "PRIORITY": "أولوية" }, "ACTION": { diff --git a/lib/process-services-cloud/src/lib/i18n/cs.json b/lib/process-services-cloud/src/lib/i18n/cs.json index 0019514d2c..2d699f52e2 100644 --- a/lib/process-services-cloud/src/lib/i18n/cs.json +++ b/lib/process-services-cloud/src/lib/i18n/cs.json @@ -53,16 +53,6 @@ } }, "ADF_CLOUD_TASK_LIST": { - "APPS": { - "NO_APPS": { - "TITLE": "Nenalezeny žádné aplikace", - "SUBTITLE": "Pro lepší přehlednost vytvořte novou aplikaci" - }, - "ERROR": { - "TITLE": "Došlo k chybě", - "SUBTITLE": "Ověřte svá oprávnění pro přístup k aplikacím" - } - }, "START_TASK": { "FORM": { "TITLE": "Zahájit úkol", @@ -72,9 +62,7 @@ "ATTACHFORM": "Připojit formulář", "ASSIGNEE": "Pověřená osoba", "CANDIDATE_GROUP": "Skupina kandidáta", - "FORM": "Formulář", "DATE": "Zvolit datum", - "NONE": "Žádné", "PRIORITY": "Priorita" }, "ACTION": { diff --git a/lib/process-services-cloud/src/lib/i18n/da.json b/lib/process-services-cloud/src/lib/i18n/da.json index 6d1a0ff4df..b7ecc077c1 100644 --- a/lib/process-services-cloud/src/lib/i18n/da.json +++ b/lib/process-services-cloud/src/lib/i18n/da.json @@ -53,16 +53,6 @@ } }, "ADF_CLOUD_TASK_LIST": { - "APPS": { - "NO_APPS": { - "TITLE": "Der blev ikke fundet nogen programmer", - "SUBTITLE": "Opret et nyt program, som skal være nemt at finde senere" - }, - "ERROR": { - "TITLE": "Der opstod en fejl", - "SUBTITLE": "Kontrollér, at du har adgangstilladelse til disse apps" - } - }, "START_TASK": { "FORM": { "TITLE": "Start opgave", @@ -72,9 +62,7 @@ "ATTACHFORM": "Vedhæft formular", "ASSIGNEE": "Modtager", "CANDIDATE_GROUP": "Kandidatgruppe", - "FORM": "Formular", "DATE": "Vælg dato", - "NONE": "Ingen", "PRIORITY": "Prioritet" }, "ACTION": { diff --git a/lib/process-services-cloud/src/lib/i18n/de.json b/lib/process-services-cloud/src/lib/i18n/de.json index 775fa01534..3b62d99595 100644 --- a/lib/process-services-cloud/src/lib/i18n/de.json +++ b/lib/process-services-cloud/src/lib/i18n/de.json @@ -53,16 +53,6 @@ } }, "ADF_CLOUD_TASK_LIST": { - "APPS": { - "NO_APPS": { - "TITLE": "Keine Anwendungen gefunden", - "SUBTITLE": "Erstellen Sie eine neue Anwendung, die sich später leicht wiederfinden lässt" - }, - "ERROR": { - "TITLE": "Es ist ein Fehler aufgetreten", - "SUBTITLE": "Überprüfen Sie, ob Sie zum Zugriff auf die Anwendungen berechtigt sind" - } - }, "START_TASK": { "FORM": { "TITLE": "Aufgabe starten", @@ -72,9 +62,7 @@ "ATTACHFORM": "Formular anhängen", "ASSIGNEE": "Zugewiesener Benutzer", "CANDIDATE_GROUP": "Kandidatengruppe", - "FORM": "Formular", "DATE": "Datum auswählen", - "NONE": "Keine", "PRIORITY": "Priorität" }, "ACTION": { diff --git a/lib/process-services-cloud/src/lib/i18n/en.json b/lib/process-services-cloud/src/lib/i18n/en.json index 5bce112575..238da5542d 100644 --- a/lib/process-services-cloud/src/lib/i18n/en.json +++ b/lib/process-services-cloud/src/lib/i18n/en.json @@ -53,16 +53,6 @@ } }, "ADF_CLOUD_TASK_LIST": { - "APPS": { - "NO_APPS": { - "TITLE": "No Applications Found", - "SUBTITLE": "Create a new application that you want to easily find later" - }, - "ERROR": { - "TITLE": "There was an error", - "SUBTITLE": "Check you have permission to access the apps" - } - }, "START_TASK": { "FORM": { "TITLE": "Start Task", @@ -72,9 +62,7 @@ "ATTACHFORM": "Attach Form", "ASSIGNEE": "Assignee", "CANDIDATE_GROUP": "Candidate Group", - "FORM": "Form", "DATE": "Choose Date", - "NONE": "None", "PRIORITY": "Priority" }, "ACTION": { diff --git a/lib/process-services-cloud/src/lib/i18n/es.json b/lib/process-services-cloud/src/lib/i18n/es.json index 62a1d25ddb..3e14d9604f 100644 --- a/lib/process-services-cloud/src/lib/i18n/es.json +++ b/lib/process-services-cloud/src/lib/i18n/es.json @@ -53,16 +53,6 @@ } }, "ADF_CLOUD_TASK_LIST": { - "APPS": { - "NO_APPS": { - "TITLE": "No se han encontrado aplicaciones", - "SUBTITLE": "Cree una nueva aplicación que desee encontrar fácilmente después" - }, - "ERROR": { - "TITLE": "Se ha producido un error", - "SUBTITLE": "Compruebe que dispone de permiso de acceso a las aplicaciones" - } - }, "START_TASK": { "FORM": { "TITLE": "Iniciar tarea", @@ -72,9 +62,7 @@ "ATTACHFORM": "Adjuntar formulario", "ASSIGNEE": "Usuario asignado", "CANDIDATE_GROUP": "Grupo de candidatos", - "FORM": "Formulario", "DATE": "Elegir fecha", - "NONE": "Ninguno", "PRIORITY": "Prioridad" }, "ACTION": { diff --git a/lib/process-services-cloud/src/lib/i18n/fi.json b/lib/process-services-cloud/src/lib/i18n/fi.json index 32d610bd47..d91ea1f6d4 100644 --- a/lib/process-services-cloud/src/lib/i18n/fi.json +++ b/lib/process-services-cloud/src/lib/i18n/fi.json @@ -53,16 +53,6 @@ } }, "ADF_CLOUD_TASK_LIST": { - "APPS": { - "NO_APPS": { - "TITLE": "Yhtään sovellusta ei löydy", - "SUBTITLE": "Luo uusi sovellus, jonka löydät helposti myöhemmin" - }, - "ERROR": { - "TITLE": "Tapahtui virhe", - "SUBTITLE": "Tarkista, että sinulla on oikeus käyttää sovelluksia" - } - }, "START_TASK": { "FORM": { "TITLE": "Aloita tehtävä", @@ -72,9 +62,7 @@ "ATTACHFORM": "Liitä lomake", "ASSIGNEE": "Vastuuhenkilö", "CANDIDATE_GROUP": "Kandidaattiryhmä", - "FORM": "Lomake", "DATE": "Valitse päivämäärä", - "NONE": "Ei mitään", "PRIORITY": "Prioriteetti" }, "ACTION": { diff --git a/lib/process-services-cloud/src/lib/i18n/fr.json b/lib/process-services-cloud/src/lib/i18n/fr.json index 9ad69f0451..488527f60d 100644 --- a/lib/process-services-cloud/src/lib/i18n/fr.json +++ b/lib/process-services-cloud/src/lib/i18n/fr.json @@ -53,16 +53,6 @@ } }, "ADF_CLOUD_TASK_LIST": { - "APPS": { - "NO_APPS": { - "TITLE": "Aucune application trouvée", - "SUBTITLE": "Créer une nouvelle application à laquelle vous pourrez accéder facilement par la suite" - }, - "ERROR": { - "TITLE": "Une erreur est survenue", - "SUBTITLE": "Vérifiez que vous avez les droits d'accès aux applications" - } - }, "START_TASK": { "FORM": { "TITLE": "Démarrer la tâche", @@ -72,9 +62,7 @@ "ATTACHFORM": "Joindre un formulaire", "ASSIGNEE": "Personne assignée", "CANDIDATE_GROUP": "Groupe candidat", - "FORM": "Formulaire", "DATE": "Choisir la date", - "NONE": "Aucun", "PRIORITY": "Priorité" }, "ACTION": { diff --git a/lib/process-services-cloud/src/lib/i18n/it.json b/lib/process-services-cloud/src/lib/i18n/it.json index 2ba64553f4..d444c0cecd 100644 --- a/lib/process-services-cloud/src/lib/i18n/it.json +++ b/lib/process-services-cloud/src/lib/i18n/it.json @@ -53,16 +53,6 @@ } }, "ADF_CLOUD_TASK_LIST": { - "APPS": { - "NO_APPS": { - "TITLE": "Nessuna applicazione trovata", - "SUBTITLE": "Creare una nuova applicazione per trovarla facilmente più tardi" - }, - "ERROR": { - "TITLE": "Si è verificato un errore", - "SUBTITLE": "Verificare di disporre dell'autorizzazione per accedere alle app" - } - }, "START_TASK": { "FORM": { "TITLE": "Avvia compito", @@ -72,9 +62,7 @@ "ATTACHFORM": "Allega modulo", "ASSIGNEE": "Assegnatario", "CANDIDATE_GROUP": "Gruppo candidati", - "FORM": "Modulo", "DATE": "Seleziona data", - "NONE": "Nessuno", "PRIORITY": "Priorità" }, "ACTION": { diff --git a/lib/process-services-cloud/src/lib/i18n/ja.json b/lib/process-services-cloud/src/lib/i18n/ja.json index 09e5c48910..67bfe96b29 100644 --- a/lib/process-services-cloud/src/lib/i18n/ja.json +++ b/lib/process-services-cloud/src/lib/i18n/ja.json @@ -53,16 +53,6 @@ } }, "ADF_CLOUD_TASK_LIST": { - "APPS": { - "NO_APPS": { - "TITLE": "アプリケーションが見つかりません", - "SUBTITLE": "後で簡単に見つけられるよう、新しいアプリケーションを作成してください" - }, - "ERROR": { - "TITLE": "エラーが発生しました", - "SUBTITLE": "アプリケーションにアクセスする権限があることを確認してください" - } - }, "START_TASK": { "FORM": { "TITLE": "タスクの開始", @@ -72,9 +62,7 @@ "ATTACHFORM": "フォームの添付", "ASSIGNEE": "担当者", "CANDIDATE_GROUP": "候補グループ", - "FORM": "フォーム", "DATE": "日付の選択", - "NONE": "なし", "PRIORITY": "優先度" }, "ACTION": { diff --git a/lib/process-services-cloud/src/lib/i18n/nb.json b/lib/process-services-cloud/src/lib/i18n/nb.json index e4430119cd..8c2d5070dc 100644 --- a/lib/process-services-cloud/src/lib/i18n/nb.json +++ b/lib/process-services-cloud/src/lib/i18n/nb.json @@ -53,16 +53,6 @@ } }, "ADF_CLOUD_TASK_LIST": { - "APPS": { - "NO_APPS": { - "TITLE": "Ingen applikasjoner funnet", - "SUBTITLE": "Opprett en ny applikasjon som er lett å finne senere" - }, - "ERROR": { - "TITLE": "Det oppstod en feil", - "SUBTITLE": "Sjekk at du har tillatelse til å gå inn i appene" - } - }, "START_TASK": { "FORM": { "TITLE": "Start oppgave", @@ -72,9 +62,7 @@ "ATTACHFORM": "Legg ved skjema", "ASSIGNEE": "Tilordnet", "CANDIDATE_GROUP": "Kandidatgruppe", - "FORM": "Skjema", "DATE": "Velg dato", - "NONE": "Ingen", "PRIORITY": "Prioritet" }, "ACTION": { diff --git a/lib/process-services-cloud/src/lib/i18n/nl.json b/lib/process-services-cloud/src/lib/i18n/nl.json index 3dfa623a7c..6efb4af3a3 100644 --- a/lib/process-services-cloud/src/lib/i18n/nl.json +++ b/lib/process-services-cloud/src/lib/i18n/nl.json @@ -53,16 +53,6 @@ } }, "ADF_CLOUD_TASK_LIST": { - "APPS": { - "NO_APPS": { - "TITLE": "Geen toepassingen gevonden", - "SUBTITLE": "Maak een nieuwe toepassing die u later gemakkelijk wilt kunnen vinden" - }, - "ERROR": { - "TITLE": "Er is een fout opgetreden", - "SUBTITLE": "Controleer of u rechten hebt voor toegang tot de apps" - } - }, "START_TASK": { "FORM": { "TITLE": "Taak starten", @@ -72,9 +62,7 @@ "ATTACHFORM": "Formulier bijvoegen", "ASSIGNEE": "Toegewezen persoon", "CANDIDATE_GROUP": "Kandidaatgroep", - "FORM": "Formulier", "DATE": "Datum kiezen", - "NONE": "Geen", "PRIORITY": "Prioriteit" }, "ACTION": { diff --git a/lib/process-services-cloud/src/lib/i18n/pl.json b/lib/process-services-cloud/src/lib/i18n/pl.json index 13e0256aea..3d0b0be261 100644 --- a/lib/process-services-cloud/src/lib/i18n/pl.json +++ b/lib/process-services-cloud/src/lib/i18n/pl.json @@ -53,16 +53,6 @@ } }, "ADF_CLOUD_TASK_LIST": { - "APPS": { - "NO_APPS": { - "TITLE": "Nie znaleziono aplikacji.", - "SUBTITLE": "Utwórz nową aplikację, którą później będzie łatwo znaleźć." - }, - "ERROR": { - "TITLE": "Wystąpił błąd", - "SUBTITLE": "Sprawdź, czy masz uprawnienie dostępu do aplikacji" - } - }, "START_TASK": { "FORM": { "TITLE": "Rozpocznij zadanie", @@ -72,9 +62,7 @@ "ATTACHFORM": "Załącz formularz", "ASSIGNEE": "Osoba przypisana", "CANDIDATE_GROUP": "Grupa kandydatów", - "FORM": "Formularz", "DATE": "Wybierz datę", - "NONE": "Brak", "PRIORITY": "Priorytet" }, "ACTION": { diff --git a/lib/process-services-cloud/src/lib/i18n/pt-BR.json b/lib/process-services-cloud/src/lib/i18n/pt-BR.json index 975ba52fe4..1863e81b29 100644 --- a/lib/process-services-cloud/src/lib/i18n/pt-BR.json +++ b/lib/process-services-cloud/src/lib/i18n/pt-BR.json @@ -53,16 +53,6 @@ } }, "ADF_CLOUD_TASK_LIST": { - "APPS": { - "NO_APPS": { - "TITLE": "Nenhum Aplicativo Encontrado", - "SUBTITLE": "Crie um aplicativo que você possa identificar com facilidade depois" - }, - "ERROR": { - "TITLE": "Houve um erro", - "SUBTITLE": "Verifique se você tem permissão para acessar os aplicativos" - } - }, "START_TASK": { "FORM": { "TITLE": "Iniciar tarefa", @@ -72,9 +62,7 @@ "ATTACHFORM": "Anexar formulário", "ASSIGNEE": "Destinatário", "CANDIDATE_GROUP": "Grupo de Candidato", - "FORM": "Formulário", "DATE": "Escolher Data", - "NONE": "Nenhum", "PRIORITY": "Prioridade" }, "ACTION": { diff --git a/lib/process-services-cloud/src/lib/i18n/pt.json b/lib/process-services-cloud/src/lib/i18n/pt.json index 73b61ba6c4..6a477b90a3 100644 --- a/lib/process-services-cloud/src/lib/i18n/pt.json +++ b/lib/process-services-cloud/src/lib/i18n/pt.json @@ -53,16 +53,6 @@ } }, "ADF_CLOUD_TASK_LIST": { - "APPS": { - "NO_APPS": { - "TITLE": "Não foram encontradas aplicaçõe", - "SUBTITLE": "Crie uma nova aplicação que pretenda encontrar facilmente mais tarde" - }, - "ERROR": { - "TITLE": "Ocorreu um erro", - "SUBTITLE": "Verifique se tem permissão para aceder às aplicações" - } - }, "START_TASK": { "FORM": { "TITLE": "Iniciar tarefa", @@ -72,9 +62,7 @@ "ATTACHFORM": "Anexar formulário", "ASSIGNEE": "Destinatário", "CANDIDATE_GROUP": "Grupo de candidatos", - "FORM": "Formulário", "DATE": "Selecionar data Iniciar", - "NONE": "Nenhum", "PRIORITY": "Prioridade" }, "ACTION": { diff --git a/lib/process-services-cloud/src/lib/i18n/ru.json b/lib/process-services-cloud/src/lib/i18n/ru.json index 13a971f025..8cbe0847ac 100644 --- a/lib/process-services-cloud/src/lib/i18n/ru.json +++ b/lib/process-services-cloud/src/lib/i18n/ru.json @@ -53,16 +53,6 @@ } }, "ADF_CLOUD_TASK_LIST": { - "APPS": { - "NO_APPS": { - "TITLE": "Приложения не найдены", - "SUBTITLE": "Создайте новое приложение, которое вы сможете легко найти позже" - }, - "ERROR": { - "TITLE": "Произошла ошибка", - "SUBTITLE": "Убедитесь, что у вас есть разрешение на доступ к приложениям" - } - }, "START_TASK": { "FORM": { "TITLE": "Начать задачу", @@ -72,9 +62,7 @@ "ATTACHFORM": "Прикрепить форму", "ASSIGNEE": "Исполнитель", "CANDIDATE_GROUP": "Группа-кандидат", - "FORM": "Форма", "DATE": "Выбрать дату", - "NONE": "Нет", "PRIORITY": "Приоритет" }, "ACTION": { diff --git a/lib/process-services-cloud/src/lib/i18n/sv.json b/lib/process-services-cloud/src/lib/i18n/sv.json index 8b1e9d78cf..03faec3bd2 100644 --- a/lib/process-services-cloud/src/lib/i18n/sv.json +++ b/lib/process-services-cloud/src/lib/i18n/sv.json @@ -53,16 +53,6 @@ } }, "ADF_CLOUD_TASK_LIST": { - "APPS": { - "NO_APPS": { - "TITLE": "Inga program hittades", - "SUBTITLE": "Skapa ett nytt program som du enkelt hittar senare" - }, - "ERROR": { - "TITLE": "Ett fel uppstod", - "SUBTITLE": "Kontrollera att du har behörighet att öppna programmen" - } - }, "START_TASK": { "FORM": { "TITLE": "Starta uppgift", @@ -72,9 +62,7 @@ "ATTACHFORM": "Bifoga formulär", "ASSIGNEE": "Tilldelad användare", "CANDIDATE_GROUP": "Kandidatgrupp", - "FORM": "Formulär", "DATE": "Välj datum", - "NONE": "Ingen", "PRIORITY": "Prioritet" }, "ACTION": { diff --git a/lib/process-services-cloud/src/lib/i18n/zh-CN.json b/lib/process-services-cloud/src/lib/i18n/zh-CN.json index 43b32584a6..58e7998e41 100644 --- a/lib/process-services-cloud/src/lib/i18n/zh-CN.json +++ b/lib/process-services-cloud/src/lib/i18n/zh-CN.json @@ -53,16 +53,6 @@ } }, "ADF_CLOUD_TASK_LIST": { - "APPS": { - "NO_APPS": { - "TITLE": "找不到应用程序", - "SUBTITLE": "创建您想要今后轻松查找的新应用程序" - }, - "ERROR": { - "TITLE": "存在错误", - "SUBTITLE": "请确定您是否有访问应用程序的权限" - } - }, "START_TASK": { "FORM": { "TITLE": "启动任务", @@ -72,9 +62,7 @@ "ATTACHFORM": "附加表单", "ASSIGNEE": "被指派者", "CANDIDATE_GROUP": "候选组", - "FORM": "表单", "DATE": "选择日期", - "NONE": "无", "PRIORITY": "优先级" }, "ACTION": { diff --git a/lib/process-services-cloud/src/lib/process-services-cloud.module.ts b/lib/process-services-cloud/src/lib/process-services-cloud.module.ts index 65b812c7a9..11d6bb57aa 100644 --- a/lib/process-services-cloud/src/lib/process-services-cloud.module.ts +++ b/lib/process-services-cloud/src/lib/process-services-cloud.module.ts @@ -17,7 +17,6 @@ import { NgModule, ModuleWithProviders } from '@angular/core'; import { provideTranslations } from '@alfresco/adf-core'; -import { APP_LIST_CLOUD_DIRECTIVES } from './app/app-list-cloud.module'; import { TaskCloudModule } from './task/task-cloud.module'; import { ProcessCloudModule } from './process/process-cloud.module'; import { FORM_CLOUD_DIRECTIVES } from './form/form-cloud.module'; @@ -28,12 +27,7 @@ import { PeopleCloudComponent } from './people/components/people-cloud.component import { provideCloudFormRenderer, provideCloudPreferences } from './providers'; import { TaskListCloudService } from './task/task-list/services/task-list-cloud.service'; -export const PROCESS_SERVICES_CLOUD_DIRECTIVES = [ - ...APP_LIST_CLOUD_DIRECTIVES, - ...FORM_CLOUD_DIRECTIVES, - ...TASK_FORM_CLOUD_DIRECTIVES, - PeopleCloudComponent -] as const; +export const PROCESS_SERVICES_CLOUD_DIRECTIVES = [...FORM_CLOUD_DIRECTIVES, ...TASK_FORM_CLOUD_DIRECTIVES, PeopleCloudComponent] as const; /** * @deprecated this module is deprecated and will be removed in the future versions