[MIGRATION] - fixed build and lint

This commit is contained in:
VitoAlbano
2025-01-24 13:05:01 +00:00
committed by Vito Albano
parent 4d1108e77e
commit f14f38a059
90 changed files with 93 additions and 453 deletions
@@ -23,8 +23,7 @@
<ng-template #noApps>
<div class="adf-app-list-empty">
<ng-content select="adf-custom-empty-content-template" *ngIf="hasEmptyCustomContentTemplate; else defaultEmptyTemplate"
class="adf-custom-empty-template">
</ng-content>
class="adf-custom-empty-template" />
<ng-template #defaultEmptyTemplate>
<adf-empty-content icon="apps" [title]="'ADF_CLOUD_TASK_LIST.APPS.NO_APPS.TITLE' | translate"
@@ -96,7 +96,6 @@ export class AppListCloudComponent implements OnInit, AfterContentInit {
/**
* Check if the value of the layoutType property is an allowed value
*
* @returns `true` if layout type is valid, otherwise `false`
*/
isValidType(): boolean {
@@ -115,7 +114,6 @@ export class AppListCloudComponent implements OnInit, AfterContentInit {
/**
* Check if the layout type is LIST
*
* @returns `true` if the layout is list, otherwise `false`
*/
isList(): boolean {
@@ -124,7 +122,6 @@ export class AppListCloudComponent implements OnInit, AfterContentInit {
/**
* Check if the layout type is GRID
*
* @returns `true` if layout is grid, otherwise `false`
*/
isGrid(): boolean {
@@ -34,7 +34,6 @@ export class AppsProcessCloudService {
/**
* Gets a list of deployed apps for this user by status.
*
* @param status Required status value
* @param roles to filter the apps
* @returns The list of deployed apps
@@ -1229,7 +1229,6 @@ describe('FormCloudComponent', () => {
/**
* Helper function for loading the form in the tests
*
* @param form The form model to be loaded
*/
async function loadForm(form?: any): Promise<void> {
@@ -425,7 +425,6 @@ export class FormCloudComponent extends FormBaseComponent implements OnChanges,
/**
* Get custom set of outcomes for a Form Definition.
*
* @param form Form definition model.
* @returns list of form outcomes
*/
@@ -82,7 +82,7 @@ export class PropertiesViewerWrapperComponent implements OnInit, OnChanges {
constructor(private nodesApiService: NodesApiService) {}
ngOnChanges(changes: SimpleChanges): void {
if (changes?.['nodeId'] && changes['nodeId'].currentValue && !changes['nodeId'].isFirstChange()) {
if (changes?.['nodeId']?.currentValue && !changes['nodeId'].isFirstChange()) {
this.getNode(changes['nodeId'].currentValue);
}
}
@@ -43,7 +43,6 @@ export class FormCloudService extends BaseCloudService implements FormCloudServi
/**
* Gets the form definition of a task.
*
* @param appName Name of the app
* @param taskId ID of the target task
* @param version Version of the form
@@ -72,7 +71,6 @@ export class FormCloudService extends BaseCloudService implements FormCloudServi
/**
* Saves a task form.
*
* @param appName Name of the app
* @param taskId ID of the target task
* @param processInstanceId ID of processInstance
@@ -101,7 +99,6 @@ export class FormCloudService extends BaseCloudService implements FormCloudServi
/**
* Completes a task form.
*
* @param appName Name of the app
* @param taskId ID of the target task
* @param processInstanceId ID of processInstance
@@ -136,7 +133,6 @@ export class FormCloudService extends BaseCloudService implements FormCloudServi
/**
* Gets details of a task
*
* @param appName Name of the app
* @param taskId ID of the target task
* @returns Details of the task
@@ -149,7 +145,6 @@ export class FormCloudService extends BaseCloudService implements FormCloudServi
/**
* Gets the variables of a task.
*
* @param appName Name of the app
* @param taskId ID of the target task
* @returns Task variables
@@ -176,7 +171,6 @@ export class FormCloudService extends BaseCloudService implements FormCloudServi
/**
* Gets a form definition.
*
* @param appName Name of the app
* @param formKey key of the target task
* @param version Version of the form
@@ -200,7 +194,6 @@ export class FormCloudService extends BaseCloudService implements FormCloudServi
/**
* Parses JSON data to create a corresponding form.
*
* @param json JSON data to create the form
* @param data Values for the form's fields
* @param readOnly Toggles whether or not the form should be read-only
@@ -28,7 +28,6 @@ import { FormDefinitionSelectorCloudServiceInterface } from './form-definition-s
export class FormDefinitionSelectorCloudService extends BaseCloudService implements FormDefinitionSelectorCloudServiceInterface {
/**
* Get all forms of an app.
*
* @param appName Name of the application
* @returns Details of the forms
*/
@@ -42,7 +41,6 @@ export class FormDefinitionSelectorCloudService extends BaseCloudService impleme
/**
* Get all forms of an app.
*
* @param appName Name of the application
* @returns Details of the forms
*/
@@ -1,6 +1,6 @@
<form>
<mat-form-field class="adf-cloud-group" [class.adf-invalid]="hasError() && isDirty()">
<ng-content select="[label]"></ng-content>
<ng-content select="[label]" />
<mat-chip-grid #groupChipList data-automation-id="adf-cloud-group-chip-list">
<mat-chip-row
*ngFor="let group of selectedGroups"
@@ -39,7 +39,6 @@ describe('GroupCloudComponent', () => {
/**
* search group by value
*
* @param value element input value
*/
async function searchGroup(value: string) {
@@ -50,7 +49,6 @@ describe('GroupCloudComponent', () => {
/**
* search group and invoke the blur event
*
* @param value value
*/
async function searchGroupsAndBlur(value: string) {
@@ -62,7 +60,6 @@ describe('GroupCloudComponent', () => {
/**
* get the group list UI
*
* @returns a list of debug elements
*/
function getGroupListUI(): DebugElement[] {
@@ -6,7 +6,7 @@
class="adf-people-cloud"
[class.adf-invalid]="hasError() && isDirty()"
>
<ng-content *ngIf="!title" select="[label]"></ng-content>
<ng-content *ngIf="!title" select="[label]" />
<mat-label *ngIf="title">{{ title | translate }}</mat-label>
<mat-chip-grid #userMultipleChipList data-automation-id="adf-cloud-people-chip-list">
<mat-chip-row
@@ -40,7 +40,6 @@ describe('PeopleCloudComponent', () => {
/**
* Search users by value
*
* @param value value
*/
async function searchUsers(value: string) {
@@ -51,7 +50,6 @@ describe('PeopleCloudComponent', () => {
/**
* Search users and blur the input
*
* @param value value
*/
async function searchUsersAndBlur(value: string) {
@@ -63,7 +61,6 @@ describe('PeopleCloudComponent', () => {
/**
* Get users list UI
*
* @returns list of debug elements
*/
function getUsersListUI(): DebugElement[] {
@@ -72,7 +69,6 @@ describe('PeopleCloudComponent', () => {
/**
* Get the first user from the list
*
* @returns native element
*/
function getFirstUserFromListUI(): Element {
@@ -38,7 +38,6 @@ export class IdentityUserService {
/**
* Gets the name and other basic details of the current user.
*
* @returns The user's details
*/
public getCurrentUserInfo(): IdentityUserModel {
@@ -51,7 +50,6 @@ export class IdentityUserService {
/**
* Search users based on name input and filters.
*
* @param name Search query string
* @param [filters] Search query filters
* @returns List of users
@@ -511,7 +511,6 @@ export class EditProcessFilterCloudComponent implements OnInit, OnChanges {
/**
* Delete a process instance filter
*
* @param deleteAction filter action
*/
delete(deleteAction: ProcessFilterAction) {
@@ -530,7 +529,6 @@ export class EditProcessFilterCloudComponent implements OnInit, OnChanges {
/**
* Save As a process instance filter
*
* @param saveAsAction filter action
*/
saveAs(saveAsAction: ProcessFilterAction) {
@@ -576,7 +574,6 @@ export class EditProcessFilterCloudComponent implements OnInit, OnChanges {
/**
* Get sanitized filter name
*
* @param filterName filter name
* @returns sanitized filter name
*/
@@ -587,7 +584,6 @@ export class EditProcessFilterCloudComponent implements OnInit, OnChanges {
/**
* Return name with hyphen
*
* @param name name
* @returns updated value
*/
@@ -110,7 +110,6 @@ export class ProcessFiltersCloudComponent implements OnInit, OnChanges {
/**
* Fetch the filter list based on appName
*
* @param appName application name
*/
getFilters(appName: string): void {
@@ -140,7 +139,6 @@ export class ProcessFiltersCloudComponent implements OnInit, OnChanges {
/**
* Pass the selected filter as next
*
* @param paramFilter filter model
*/
selectFilter(paramFilter: FilterParamsModel) {
@@ -162,7 +160,6 @@ export class ProcessFiltersCloudComponent implements OnInit, OnChanges {
/**
* Check equality of the filter names by translating the given name strings
*
* @param name1 source name
* @param name2 target name
* @returns `true` if filter names are equal, otherwise `false`
@@ -176,7 +173,6 @@ export class ProcessFiltersCloudComponent implements OnInit, OnChanges {
/**
* Selects and emits the given filter
*
* @param newParamFilter new parameter filter
*/
selectFilterAndEmit(newParamFilter: FilterParamsModel) {
@@ -190,7 +186,6 @@ export class ProcessFiltersCloudComponent implements OnInit, OnChanges {
/**
* Select filter with the id
*
* @param id filter id
*/
selectFilterById(id: string) {
@@ -199,7 +194,6 @@ export class ProcessFiltersCloudComponent implements OnInit, OnChanges {
/**
* Selects and emits the clicked filter
*
* @param filter filter model
*/
onFilterClick(filter: ProcessFilterCloudModel) {
@@ -224,7 +218,6 @@ export class ProcessFiltersCloudComponent implements OnInit, OnChanges {
/**
* Get current filter
*
* @returns filter model
*/
getCurrentFilter(): ProcessFilterCloudModel {
@@ -233,7 +226,6 @@ export class ProcessFiltersCloudComponent implements OnInit, OnChanges {
/**
* Check if the filter list is empty
*
* @returns `true` if filter list is empty, otherwise `false`
*/
isFilterListEmpty(): boolean {
@@ -274,7 +266,6 @@ export class ProcessFiltersCloudComponent implements OnInit, OnChanges {
/**
* Get current value for filter and check if value has changed
*
* @param filter filter
*/
updateFilterCounter(filter: ProcessFilterCloudModel): void {
@@ -114,7 +114,6 @@ export class ProcessFilterCloudService {
/**
* Creates and returns the default process instance filters for a app.
*
* @param appName Name of the target app
*/
private createDefaultFilters(appName: string): void {
@@ -141,7 +140,6 @@ export class ProcessFilterCloudService {
/**
* Gets all process instance filters for a process app.
*
* @param appName Name of the target app
* @returns Observable of process filters details
*/
@@ -152,7 +150,6 @@ export class ProcessFilterCloudService {
/**
* Get process instance filter for given filter id
*
* @param appName Name of the target app
* @param id Id of the target process instance filter
* @returns Observable of process instance filter details
@@ -173,7 +170,6 @@ export class ProcessFilterCloudService {
/**
* Adds a new process instance filter
*
* @param newFilter The new filter to add
* @returns Observable of process instance filters with newly added filter
*/
@@ -204,7 +200,6 @@ export class ProcessFilterCloudService {
/**
* Update process instance filter
*
* @param updatedFilter The new filter to update
* @returns Observable of process instance filters with updated filter
*/
@@ -229,7 +224,6 @@ export class ProcessFilterCloudService {
/**
* Delete process instance filter
*
* @param deletedFilter The new filter to delete
* @returns Observable of process instance filters without deleted filter
*/
@@ -254,7 +248,6 @@ export class ProcessFilterCloudService {
/**
* Checks if given filter is a default filter
*
* @param filterName Name of the target process filter
* @returns Boolean value for whether the filter is a default filter
*/
@@ -267,7 +260,6 @@ export class ProcessFilterCloudService {
* Reset the process filters to the default configuration if it exists and stores it.
* If there is no default configuration for the process cloud filter with the provided filter name,
* then it changes nothing but stores the current values of the filter
*
* @param appName Name of the target app
* @param filter The process filter to be restored to defaults
* @returns Observable of process filters details
@@ -281,7 +273,6 @@ export class ProcessFilterCloudService {
/**
* Checks user preference are empty or not
*
* @param preferences User preferences of the target app
* @returns Boolean value if the preferences are not empty
*/
@@ -291,7 +282,6 @@ export class ProcessFilterCloudService {
/**
* Checks for process instance filters in given user preferences
*
* @param preferences User preferences of the target app
* @param key Key of the process instance filters
* @returns Boolean value if the preference has process instance filters
@@ -303,7 +293,6 @@ export class ProcessFilterCloudService {
/**
* Calls create preference api to create process instance filters
*
* @param appName Name of the target app
* @param key Key of the process instance filters
* @param filters Details of new process instance filter
@@ -315,7 +304,6 @@ export class ProcessFilterCloudService {
/**
* Calls get preference api to get process instance filter by preference key
*
* @param appName Name of the target app
* @param key Key of the process instance filters
* @returns Observable of process instance filters
@@ -326,7 +314,6 @@ export class ProcessFilterCloudService {
/**
* Calls update preference api to update process instance filter
*
* @param appName Name of the target app
* @param key Key of the process instance filters
* @param filters Details of update filter
@@ -338,7 +325,6 @@ export class ProcessFilterCloudService {
/**
* Creates a uniq key with appName and username
*
* @param appName Name of the target app
* @returns String of process instance filters preference key
*/
@@ -349,7 +335,6 @@ export class ProcessFilterCloudService {
/**
* Finds and returns the process instance filters from preferences
*
* @returns Array of ProcessFilterCloudModel
* @param preferences preferences
* @param key key
@@ -365,7 +350,6 @@ export class ProcessFilterCloudService {
/**
* Creates and returns the default filters for a process app.
*
* @param appName Name of the target app
* @returns Array of ProcessFilterCloudModel
*/
@@ -409,7 +393,6 @@ export class ProcessFilterCloudService {
/**
* Refresh filter key
*
* @param filterKey Key of the filter
*/
refreshFilter(filterKey: string): void {
@@ -422,7 +405,6 @@ export class ProcessFilterCloudService {
* If the new property is not found, it is created and assigned the value constructed from the old property.
* The filters are then updated in the preferences and returned.
* Old properties are left untouched for purposes like feature toggling.
*
* @param appName Name of the target app.
* @param key Key of the process filters.
* @param filters Array of process filters to be checked for backward compatibility.
@@ -31,7 +31,7 @@
class="adf-cloud-process-list-loading-margin"
[color]="'primary'"
[mode]="'indeterminate'" />
<ng-content select="adf-custom-loading-content-template"></ng-content>
<ng-content select="adf-custom-loading-content-template" />
</ng-template>
</adf-loading-content-template>
<adf-no-content-template>
@@ -40,7 +40,7 @@
icon="assessment"
[title]="'ADF_CLOUD_PROCESS_LIST.MESSAGES.TITLE' | translate"
[subtitle]="'ADF_CLOUD_PROCESS_LIST.MESSAGES.SUBTITLE'| translate" />
<ng-content select="adf-custom-empty-content-template"></ng-content>
<ng-content select="adf-custom-empty-content-template" />
</ng-template>
</adf-no-content-template>
@@ -27,7 +27,6 @@ import { TaskListCloudSortingModel } from '../../../models/task-list-sorting.mod
export class ProcessTaskListCloudService extends BaseCloudService {
/**
* Finds a task using an object with optional query properties.
*
* @param requestNode Query object
* @param queryUrl Query url
* @returns Task information
@@ -31,7 +31,6 @@ export class ProcessCloudService extends BaseCloudService {
/**
* Gets details of a process instance.
*
* @param appName Name of the app
* @param processInstanceId ID of the process instance whose details you want
* @returns Process instance details
@@ -53,7 +52,6 @@ export class ProcessCloudService extends BaseCloudService {
/**
* Gets the process definitions associated with an app.
*
* @param appName Name of the target app
* @returns Array of process definitions
*/
@@ -69,7 +67,6 @@ export class ProcessCloudService extends BaseCloudService {
/**
* Gets the application versions associated with an app.
*
* @param appName Name of the target app
* @returns Array of Application Version Models
*/
@@ -85,7 +82,6 @@ export class ProcessCloudService extends BaseCloudService {
/**
* Cancels a process.
*
* @param appName Name of the app
* @param processInstanceId Id of the process to cancel
* @returns Operation Information
@@ -88,8 +88,7 @@
(formLoaded)="onFormLoaded($event)"
(executeOutcome)="onCustomOutcomeClicked($event.outcome.name)">
<adf-cloud-form-custom-outcomes>
<ng-template [ngTemplateOutlet]="taskFormCloudButtons">
</ng-template>
<ng-template [ngTemplateOutlet]="taskFormCloudButtons" />
</adf-cloud-form-custom-outcomes>
</adf-cloud-form>
</ng-container>
@@ -104,7 +104,6 @@ describe('StartProcessCloudComponent', () => {
/**
* Setup the component with the given start event information.
*
* @param values the values for the form
* @param staticValues the static values retrieved from the API for the form
* @param constantValues the constant values retrieved from the API for customising the buttons
@@ -34,7 +34,6 @@ export interface QueryParams {
export class StartProcessCloudService extends BaseCloudService {
/**
* Gets the process definitions associated with an app.
*
* @param appName Name of the target app
* @param queryParams optional query parameters
* @returns Array of process definitions
@@ -53,7 +52,6 @@ export class StartProcessCloudService extends BaseCloudService {
/**
* Starts a process based on a process definition, name, form values or variables.
*
* @param appName name of the Application
* @param payload Details of the process (definition key, name, variables, etc)
* @returns Details of the process instance just started
@@ -74,7 +72,6 @@ export class StartProcessCloudService extends BaseCloudService {
/**
* Update an existing process instance
*
* @param appName name of the Application
* @param processInstanceId process instance to update
* @param payload Details of the process (definition key, name, variables, etc)
@@ -89,7 +86,6 @@ export class StartProcessCloudService extends BaseCloudService {
/**
* Delete an existing process instance
*
* @param appName Application name
* @param processInstanceId the identifier of the process instance to update
* @returns Observable<void>
@@ -102,7 +98,6 @@ export class StartProcessCloudService extends BaseCloudService {
/**
* Gets the static values mapped to the start form of a process definition.
*
* @param appName Name of the app
* @param processDefinitionId ID of the target process definition
* @returns Static mappings for the start event
@@ -122,7 +117,6 @@ export class StartProcessCloudService extends BaseCloudService {
/**
* Gets the constants mapped to the start form of a process definition.
*
* @param appName Name of the app
* @param processDefinitionId ID of the target process definition
* @returns Constants values for the start event
@@ -27,7 +27,6 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
/**
* Gets local preferences
*
* @param _ Name of the target app
* @param key Key of the target preference
* @returns List of local preferences
@@ -47,7 +46,6 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
/**
* Gets local preference.
*
* @param _ Name of the target app
* @param key Key of the target preference
* @returns Observable of local preference
@@ -58,7 +56,6 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
/**
* Creates local preference.
*
* @param _ Name of the target app
* @param key Key of the target preference
* @param newPreference Details of new local preference
@@ -73,7 +70,6 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
/**
* Updates local preference.
*
* @param _ Name of the target app
* @param key Key of the target preference
* @param updatedPreference Details of updated preference
@@ -88,7 +84,6 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
/**
* Deletes local preference by given preference key.
*
* @param key Key of the target preference
* @param preferences Details of updated preferences
* @returns Observable of preferences without deleted preference
@@ -21,7 +21,6 @@ import { TaskListRequestModel, TaskQueryCloudRequestModel } from '../models/filt
export interface TaskListCloudServiceInterface {
/**
* Finds a task using an object with optional query properties.
*
* @deprecated From Activiti 8.7.0 forward, use TaskListCloudService.fetchTaskList instead.
* @param requestNode Query object
* @param queryUrl Query url
@@ -32,7 +31,6 @@ export interface TaskListCloudServiceInterface {
/**
* Available from Activiti version 8.7.0 onwards.
* Retrieves a list of tasks using an object with optional query properties.
*
* @param requestNode Query object
* @param queryUrl Query url
* @returns List of tasks
@@ -24,7 +24,6 @@ import { BaseCloudService } from './base-cloud.service';
export class UserPreferenceCloudService extends BaseCloudService implements PreferenceCloudServiceInterface {
/**
* Gets user preferences
*
* @param appName Name of the target app
* @returns List of user preferences
*/
@@ -39,7 +38,6 @@ export class UserPreferenceCloudService extends BaseCloudService implements Pref
/**
* Gets user preference.
*
* @param appName Name of the target app
* @param key Key of the target preference
* @returns Observable of user preference
@@ -55,7 +53,6 @@ export class UserPreferenceCloudService extends BaseCloudService implements Pref
/**
* Creates user preference.
*
* @param appName Name of the target app
* @param key Key of the target preference
* @param newPreference Details of new user preference
@@ -74,7 +71,6 @@ export class UserPreferenceCloudService extends BaseCloudService implements Pref
/**
* Updates user preference.
*
* @param appName Name of the target app
* @param key Key of the target preference
* @param updatedPreference Details of updated preference
@@ -86,7 +82,6 @@ export class UserPreferenceCloudService extends BaseCloudService implements Pref
/**
* Deletes user preference by given preference key.
*
* @param appName Name of the target app
* @param key Key of the target preference
* @returns Observable of delete operation status
@@ -49,7 +49,6 @@ export class TaskCloudService extends BaseCloudService {
/**
* Complete a task.
*
* @param appName Name of the app
* @param taskId ID of the task to complete
* @returns Details of the task that was completed
@@ -67,7 +66,6 @@ export class TaskCloudService extends BaseCloudService {
/**
* Validate if a task can be completed.
*
* @param taskDetails task details object
* @returns Boolean value if the task can be completed
*/
@@ -77,7 +75,6 @@ export class TaskCloudService extends BaseCloudService {
/**
* Validate if a task is editable.
*
* @param taskDetails task details object
* @returns Boolean value if the task is editable
*/
@@ -100,7 +97,6 @@ export class TaskCloudService extends BaseCloudService {
/**
* Validate if a task can be claimed.
*
* @param taskDetails task details object
* @returns Boolean value if the task can be completed
*/
@@ -110,7 +106,6 @@ export class TaskCloudService extends BaseCloudService {
/**
* Validate if a task can be unclaimed.
*
* @param taskDetails task details object
* @returns Boolean value if the task can be completed
*/
@@ -126,7 +121,6 @@ export class TaskCloudService extends BaseCloudService {
/**
* Claims a task for an assignee.
*
* @param appName Name of the app
* @param taskId ID of the task to claim
* @param assignee User to assign the task to
@@ -149,7 +143,6 @@ export class TaskCloudService extends BaseCloudService {
/**
* Un-claims a task.
*
* @param appName Name of the app
* @param taskId ID of the task to unclaim
* @returns Details of the task that was unclaimed
@@ -171,7 +164,6 @@ export class TaskCloudService extends BaseCloudService {
/**
* Gets details of a task.
*
* @param appName Name of the app
* @param taskId ID of the task whose details you want
* @returns Task details
@@ -188,7 +180,6 @@ export class TaskCloudService extends BaseCloudService {
/**
* Creates a new standalone task.
*
* @param startTaskRequest request model
* @param appName application name
* @returns Details of the newly created task
@@ -202,7 +193,6 @@ export class TaskCloudService extends BaseCloudService {
/**
* Updates the details (name, description, due date) for a task.
*
* @param appName Name of the app
* @param taskId ID of the task to update
* @param payload Data to update the task
@@ -221,7 +211,6 @@ export class TaskCloudService extends BaseCloudService {
/**
* Gets candidate users of the task.
*
* @param appName Name of the app
* @param taskId ID of the task
* @returns Candidate users
@@ -237,7 +226,6 @@ export class TaskCloudService extends BaseCloudService {
/**
* Gets candidate groups of the task.
*
* @param appName Name of the app
* @param taskId ID of the task
* @returns Candidate groups
@@ -253,7 +241,6 @@ export class TaskCloudService extends BaseCloudService {
/**
* Gets the process definitions associated with an app.
*
* @param appName Name of the target app
* @returns Array of process definitions
*/
@@ -269,7 +256,6 @@ export class TaskCloudService extends BaseCloudService {
/**
* Updates the task assignee.
*
* @param appName Name of the app
* @param taskId ID of the task to update assignee
* @param assignee assignee to update current user task assignee
@@ -217,7 +217,6 @@ export abstract class BaseEditTaskFilterCloudComponent<T> implements OnInit, OnC
/**
* Get the sanitized filter name
*
* @param filterName filter name
* @returns sanitized filter name
*/
@@ -122,7 +122,6 @@ describe('EditTaskFilterCloudComponent', () => {
/**
* resolve filter instance input element
*
* @returns native element
*/
function getProcessInstanceIdInputElement() {
@@ -67,7 +67,6 @@ export class ServiceTaskFiltersCloudComponent extends BaseTaskFiltersCloudCompon
/**
* Load the filter list filtered by appName
*
* @param appName application name
*/
getFilters(appName: string): void {
@@ -88,7 +87,6 @@ export class ServiceTaskFiltersCloudComponent extends BaseTaskFiltersCloudCompon
/**
* Select filter
*
* @param paramFilter filter model
*/
selectFilter(paramFilter: FilterParamsModel) {
@@ -123,7 +121,6 @@ export class ServiceTaskFiltersCloudComponent extends BaseTaskFiltersCloudCompon
/**
* Selects and emits the clicked filter.
*
* @param filter filter to select
*/
onFilterClick(filter: FilterParamsModel) {
@@ -146,7 +143,6 @@ export class ServiceTaskFiltersCloudComponent extends BaseTaskFiltersCloudCompon
/**
* Check if the filter list is empty
*
* @returns `true` if filter list is empty, otherwise `false`
*/
isFilterListEmpty(): boolean {
@@ -38,7 +38,6 @@ describe('TaskAssignmentFilterComponent', () => {
/**
* select the assignment type
*
* @param type type to select
*/
function selectAssignmentType(type: AssignmentType) {
@@ -91,7 +91,6 @@ export class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent imp
/**
* Loads the filter list filtered by appName
*
* @param appName application name
*/
getFilters(appName: string): void {
@@ -128,7 +127,6 @@ export class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent imp
/**
* Get current value for filter and check if value has changed
*
* @param filter filter
*/
updateFilterCounter(filter: TaskFilterCloudModel): void {
@@ -219,7 +217,6 @@ export class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent imp
/**
* Selects and emits the clicked filter.
*
* @param filter filter model
*/
onFilterClick(filter: FilterParamsModel) {
@@ -245,7 +242,6 @@ export class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent imp
/**
* Check if the filter list is empty
*
* @returns `true` if filter list is empty, otherwise `false`
*/
isFilterListEmpty(): boolean {
@@ -38,7 +38,6 @@ export class ServiceTaskFilterCloudService {
/**
* Creates and returns the default task filters for an app.
*
* @param appName Name of the target app
*/
private createDefaultFilters(appName: string): void {
@@ -62,7 +61,6 @@ export class ServiceTaskFilterCloudService {
/**
* Checks user preference are empty or not
*
* @param preferences User preferences of the target app
* @returns Boolean value if the preferences are not empty
*/
@@ -72,7 +70,6 @@ export class ServiceTaskFilterCloudService {
/**
* Checks for task filters in given user preferences
*
* @param preferences User preferences of the target app
* @param key Key of the task filters
* @returns Boolean value if the preference has task filters
@@ -84,7 +81,6 @@ export class ServiceTaskFilterCloudService {
/**
* Calls create preference api to create task filters
*
* @param appName Name of the target app
* @param key Key of the task instance filters
* @param filters Details of new task filter
@@ -96,7 +92,6 @@ export class ServiceTaskFilterCloudService {
/**
* Calls get preference api to get task filter by preference key
*
* @param appName Name of the target app
* @param key Key of the task filters
* @returns Observable of task filters
@@ -107,7 +102,6 @@ export class ServiceTaskFilterCloudService {
/**
* Gets all task filters for a task app.
*
* @param appName Name of the target app
* @returns Observable of task filter details
*/
@@ -118,7 +112,6 @@ export class ServiceTaskFilterCloudService {
/**
* Gets a task filter.
*
* @param appName Name of the target app
* @param id ID of the task
* @returns Details of the task filter
@@ -139,7 +132,6 @@ export class ServiceTaskFilterCloudService {
/**
* Adds a new task filter.
*
* @param newFilter The new filter to add
* @returns Observable of task instance filters with newly added filter
*/
@@ -167,7 +159,6 @@ export class ServiceTaskFilterCloudService {
/**
* Updates a task filter.
*
* @param updatedFilter The filter to update
* @returns Observable of task instance filters with updated filter
*/
@@ -192,7 +183,6 @@ export class ServiceTaskFilterCloudService {
/**
* Deletes a task filter
*
* @param deletedFilter The filter to delete
* @returns Observable of task instance filters without deleted filter
*/
@@ -215,7 +205,6 @@ export class ServiceTaskFilterCloudService {
/**
* Checks if given filter is a default filter
*
* @param filterName Name of the target task filter
* @returns Boolean value for whether the filter is a default filter
*/
@@ -226,7 +215,6 @@ export class ServiceTaskFilterCloudService {
/**
* Calls update preference api to update task filter
*
* @param appName Name of the target app
* @param key Key of the task filters
* @param filters Details of update filter
@@ -238,7 +226,6 @@ export class ServiceTaskFilterCloudService {
/**
* Creates a uniq key with appName and username
*
* @param appName Name of the target app
* @returns String of task filters preference key
*/
@@ -248,7 +235,6 @@ export class ServiceTaskFilterCloudService {
/**
* Finds and returns the task filters from preferences
*
* @returns Array of TaskFilterCloudModel
* @param preferences preferences
* @param key key
@@ -260,7 +246,6 @@ export class ServiceTaskFilterCloudService {
/**
* Creates and returns the default filters for a task app.
*
* @param appName Name of the target app
* @returns Array of TaskFilterCloudModel
*/
@@ -65,7 +65,6 @@ export class TaskFilterCloudService extends BaseCloudService {
/**
* Creates and returns the default task filters for an app.
*
* @param appName Name of the target app
*/
private createDefaultFilters(appName: string): void {
@@ -90,7 +89,6 @@ export class TaskFilterCloudService extends BaseCloudService {
/**
* Checks user preference are empty or not
*
* @param preferences User preferences of the target app
* @returns Boolean value if the preferences are not empty
*/
@@ -100,7 +98,6 @@ export class TaskFilterCloudService extends BaseCloudService {
/**
* Checks for task filters in given user preferences
*
* @param preferences User preferences of the target app
* @param key Key of the task filters
* @returns Boolean value if the preference has task filters
@@ -112,7 +109,6 @@ export class TaskFilterCloudService extends BaseCloudService {
/**
* Calls create preference api to create task filters
*
* @param appName Name of the target app
* @param key Key of the task instance filters
* @param filters Details of new task filter
@@ -124,7 +120,6 @@ export class TaskFilterCloudService extends BaseCloudService {
/**
* Calls get preference api to get task filter by preference key
*
* @param appName Name of the target app
* @param key Key of the task filters
* @returns Observable of task filters
@@ -135,7 +130,6 @@ export class TaskFilterCloudService extends BaseCloudService {
/**
* Gets all task filters for a task app.
*
* @param appName Name of the target app
* @returns Observable of task filter details
*/
@@ -146,7 +140,6 @@ export class TaskFilterCloudService extends BaseCloudService {
/**
* Gets a task filter.
*
* @param appName Name of the target app
* @param id ID of the task
* @returns Details of the task filter
@@ -167,7 +160,6 @@ export class TaskFilterCloudService extends BaseCloudService {
/**
* Adds a new task filter.
*
* @param newFilter The new filter to add
* @returns Observable of task instance filters with newly added filter
*/
@@ -195,7 +187,6 @@ export class TaskFilterCloudService extends BaseCloudService {
/**
* Updates a task filter.
*
* @param updatedFilter The filter to update
* @returns Observable of task instance filters with updated filter
*/
@@ -220,7 +211,6 @@ export class TaskFilterCloudService extends BaseCloudService {
/**
* Deletes a task filter
*
* @param deletedFilter The filter to delete
* @returns Observable of task instance filters without deleted filter
*/
@@ -243,7 +233,6 @@ export class TaskFilterCloudService extends BaseCloudService {
/**
* Checks if given filter is a default filter
*
* @param filterName Name of the target task filter
* @returns Boolean value for whether the filter is a default filter
*/
@@ -254,7 +243,6 @@ export class TaskFilterCloudService extends BaseCloudService {
/**
* Finds a task using an object with optional query properties.
*
* @returns Task information
* @param taskFilter task filter model
*/
@@ -291,7 +279,6 @@ export class TaskFilterCloudService extends BaseCloudService {
/**
* Calls update preference api to update task filter
*
* @param appName Name of the target app
* @param key Key of the task filters
* @param filters Details of update filter
@@ -303,7 +290,6 @@ export class TaskFilterCloudService extends BaseCloudService {
/**
* Creates a uniq key with appName and username
*
* @param appName Name of the target app
* @returns String of task filters preference key
*/
@@ -313,7 +299,6 @@ export class TaskFilterCloudService extends BaseCloudService {
/**
* Finds and returns the task filters from preferences
*
* @returns Array of TaskFilterCloudModel
* @param preferences preferences
* @param key key
@@ -325,7 +310,6 @@ export class TaskFilterCloudService extends BaseCloudService {
/**
* Creates and returns the default filters for a task app.
*
* @param appName Name of the target app
* @returns Array of TaskFilterCloudModel
*/
@@ -374,7 +358,6 @@ export class TaskFilterCloudService extends BaseCloudService {
/**
* Refresh filter key
*
* @param filterKey Key of the filter
*/
refreshFilter(filterKey: string): void {
@@ -387,7 +370,6 @@ export class TaskFilterCloudService extends BaseCloudService {
* If the new property is not found, it is created and assigned the value constructed from the old property.
* The filters are then updated in the preferences and returned.
* Old properties are left untouched for purposes like feature toggling.
*
* @param appName Name of the target app.
* @param key Key of the task filters.
* @param filters Array of task filters to be checked for backward compatibility.
@@ -265,7 +265,6 @@ export class TaskHeaderCloudComponent implements OnInit, OnChanges {
/**
* Save a task detail and update it after a successful response
*
* @param updateNotification notification model
*/
private updateTaskDetails(updateNotification: UpdateNotification) {
@@ -314,7 +313,6 @@ export class TaskHeaderCloudComponent implements OnInit, OnChanges {
/**
* as per [ACA-3960] it required an empty array argument for now
* Empty array will be replaced with candidateGroups in feature
*
* @returns `true` if assignee property is clickable, otherwise `false`
*/
isAssigneePropertyClickable(): boolean {
@@ -165,29 +165,29 @@ export abstract class BaseTaskListCloudComponent<T = unknown>
/** Emitted when rows are selected/unselected */
@Output()
rowsSelected: EventEmitter<any[]> = new EventEmitter<any[]>();
rowsSelected: EventEmitter<unknown[]> = new EventEmitter<unknown[]>();
/** Emitted when the task list is loaded */
@Output()
success: EventEmitter<any> = new EventEmitter<any>();
success: EventEmitter<unknown> = new EventEmitter<unknown>();
/** Emitted when an error occurs. */
@Output()
error: EventEmitter<any> = new EventEmitter<any>();
error: EventEmitter<unknown> = new EventEmitter<unknown>();
pagination: BehaviorSubject<PaginationModel>;
requestNode: TaskQueryCloudRequestModel;
rows: any[] = [];
rows: unknown[] = [];
size: number;
skipCount: number = 0;
currentInstanceId: any;
selectedInstances: any[];
formattedSorting: any[];
currentInstanceId: string;
selectedInstances: string[];
formattedSorting: string[];
dataAdapter: ObjectDataTableAdapter | undefined;
protected defaultSorting = { key: 'startDate', direction: 'desc' };
boundReplacePriorityValues: (row: DataRow, col: DataColumn) => any;
boundReplacePriorityValues: (row: DataRow, col: DataColumn) => unknown;
protected abstract isLoading$: Observable<boolean>;
protected isLoadingPreferences$ = new BehaviorSubject<boolean>(true);
@@ -26,7 +26,6 @@ import { map } from 'rxjs/operators';
export class ServiceTaskListCloudService extends BaseCloudService {
/**
* Finds a task using an object with optional query properties.
*
* @param requestNode Query object
* @returns Task information
*/
@@ -46,7 +45,6 @@ export class ServiceTaskListCloudService extends BaseCloudService {
/**
* Finds a service task integration context using an object with optional query properties.
*
* @param appName string
* @param serviceTaskId string
* @returns Service Task Integration Context information
@@ -62,7 +60,6 @@ export class ServiceTaskListCloudService extends BaseCloudService {
/**
* Replay a service task based on the related execution id and flow-node id
*
* @param appName string
* @param executionId string
* @param flowNodeId string
@@ -28,7 +28,6 @@ import { TaskListCloudServiceInterface } from '../../../services/task-list-cloud
export class TaskListCloudService extends BaseCloudService implements TaskListCloudServiceInterface {
/**
* Finds a task using an object with optional query properties.
*
* @deprecated From Activiti 8.7.0 forward, use TaskListCloudService.fetchTaskList instead.
* @param requestNode Query object
* @param queryUrl Query url
@@ -60,7 +59,6 @@ export class TaskListCloudService extends BaseCloudService implements TaskListCl
/**
* Available from Activiti version 8.7.0 onwards.
* Retrieves a list of tasks using an object with optional query properties.
*
* @param requestNode Query object
* @param queryUrl Query url
* @returns List of tasks