mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-08-07 17:48:54 +00:00
[MIGRATION] - fixed build and lint
This commit is contained in:
@@ -39,7 +39,6 @@ describe('SavedSearchesService', () => {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a stub with Promise returning a Blob
|
* Creates a stub with Promise returning a Blob
|
||||||
*
|
|
||||||
* @returns Promise with Blob
|
* @returns Promise with Blob
|
||||||
*/
|
*/
|
||||||
function createBlob() {
|
function createBlob() {
|
||||||
|
@@ -47,7 +47,6 @@ export class SavedSearchesService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a list of saved searches by user.
|
* Gets a list of saved searches by user.
|
||||||
*
|
|
||||||
* @returns SavedSearch list containing user saved searches
|
* @returns SavedSearch list containing user saved searches
|
||||||
*/
|
*/
|
||||||
getSavedSearches(): Observable<SavedSearch[]> {
|
getSavedSearches(): Observable<SavedSearch[]> {
|
||||||
@@ -70,7 +69,6 @@ export class SavedSearchesService {
|
|||||||
/**
|
/**
|
||||||
* Saves a new search into state and updates state. If there are less than 5 searches,
|
* Saves a new search into state and updates state. If there are less than 5 searches,
|
||||||
* it will be pushed on first place, if more it will be pushed to 6th place.
|
* it will be pushed on first place, if more it will be pushed to 6th place.
|
||||||
*
|
|
||||||
* @param newSaveSearch object { name: string, description: string, encodedUrl: string }
|
* @param newSaveSearch object { name: string, description: string, encodedUrl: string }
|
||||||
* @returns NodeEntry
|
* @returns NodeEntry
|
||||||
*/
|
*/
|
||||||
@@ -107,7 +105,6 @@ export class SavedSearchesService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Replace Save Search with new one and also updates the state.
|
* Replace Save Search with new one and also updates the state.
|
||||||
*
|
|
||||||
* @param updatedSavedSearch - updated Save Search
|
* @param updatedSavedSearch - updated Save Search
|
||||||
* @returns NodeEntry
|
* @returns NodeEntry
|
||||||
*/
|
*/
|
||||||
@@ -134,7 +131,6 @@ export class SavedSearchesService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes Save Search and update state.
|
* Deletes Save Search and update state.
|
||||||
*
|
|
||||||
* @param deletedSavedSearch - Save Search to delete
|
* @param deletedSavedSearch - Save Search to delete
|
||||||
* @returns NodeEntry
|
* @returns NodeEntry
|
||||||
*/
|
*/
|
||||||
@@ -165,7 +161,6 @@ export class SavedSearchesService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Reorders saved search place
|
* Reorders saved search place
|
||||||
*
|
|
||||||
* @param previousIndex - previous index of saved search
|
* @param previousIndex - previous index of saved search
|
||||||
* @param currentIndex - new index of saved search
|
* @param currentIndex - new index of saved search
|
||||||
*/
|
*/
|
||||||
|
@@ -48,7 +48,7 @@ import { TranslateModule } from '@ngx-translate/core';
|
|||||||
<ng-container>
|
<ng-container>
|
||||||
<mat-icon>{{ expanded ? 'expand_more' : 'chevron_right' }}</mat-icon>
|
<mat-icon>{{ expanded ? 'expand_more' : 'chevron_right' }}</mat-icon>
|
||||||
<mat-panel-title *ngIf="title" class="adf-metadata-properties-title" [title]="title | translate">{{ title | translate }}</mat-panel-title>
|
<mat-panel-title *ngIf="title" class="adf-metadata-properties-title" [title]="title | translate">{{ title | translate }}</mat-panel-title>
|
||||||
<ng-content></ng-content>
|
<ng-content />
|
||||||
</ng-container>
|
</ng-container>
|
||||||
`
|
`
|
||||||
})
|
})
|
||||||
|
@@ -48,7 +48,7 @@
|
|||||||
<img [alt]="'ADF-DATATABLE.EMPTY.DRAG-AND-DROP.TITLE' | translate" class="adf-empty-folder-image" [src]="emptyFolderImageUrl">
|
<img [alt]="'ADF-DATATABLE.EMPTY.DRAG-AND-DROP.TITLE' | translate" class="adf-empty-folder-image" [src]="emptyFolderImageUrl">
|
||||||
</div>
|
</div>
|
||||||
</adf-empty-list>
|
</adf-empty-list>
|
||||||
<ng-content select="adf-custom-empty-content-template, empty-folder-content"></ng-content>
|
<ng-content select="adf-custom-empty-content-template, empty-folder-content" />
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</adf-no-content-template>
|
</adf-no-content-template>
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
<mat-icon>error</mat-icon>
|
<mat-icon>error</mat-icon>
|
||||||
<p class="adf-no-permission__template--text">{{ 'ADF-DOCUMENT-LIST.NO_PERMISSION' | translate }}</p>
|
<p class="adf-no-permission__template--text">{{ 'ADF-DOCUMENT-LIST.NO_PERMISSION' | translate }}</p>
|
||||||
</div>
|
</div>
|
||||||
<ng-content select="adf-custom-no-permission-template, no-permission-content"></ng-content>
|
<ng-content select="adf-custom-no-permission-template, no-permission-content" />
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</adf-no-permission-template>
|
</adf-no-permission-template>
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
[color]="'primary'"
|
[color]="'primary'"
|
||||||
[mode]="'indeterminate'" />
|
[mode]="'indeterminate'" />
|
||||||
</div>
|
</div>
|
||||||
<ng-content select="adf-custom-loading-content-template"></ng-content>
|
<ng-content select="adf-custom-loading-content-template" />
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</adf-loading-content-template>
|
</adf-loading-content-template>
|
||||||
|
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
<div class="adf-empty-search-result">
|
<div class="adf-empty-search-result">
|
||||||
<ng-content></ng-content>
|
<ng-content />
|
||||||
</div>
|
</div>
|
||||||
|
@@ -50,8 +50,7 @@
|
|||||||
*ngIf="data?.list?.entries.length === 0">
|
*ngIf="data?.list?.entries.length === 0">
|
||||||
<ng-content
|
<ng-content
|
||||||
selector="adf-empty-search-result"
|
selector="adf-empty-search-result"
|
||||||
*ngIf="isNoSearchTemplatePresent() else defaultNoResult">
|
*ngIf="isNoSearchTemplatePresent() else defaultNoResult" />
|
||||||
</ng-content>
|
|
||||||
<ng-template #defaultNoResult>
|
<ng-template #defaultNoResult>
|
||||||
<p matListItemLine class="adf-search-fixed-text">{{ 'SEARCH.RESULTS.NONE' | translate:{searchTerm:
|
<p matListItemLine class="adf-search-fixed-text">{{ 'SEARCH.RESULTS.NONE' | translate:{searchTerm:
|
||||||
searchTerm} }}</p>
|
searchTerm} }}</p>
|
||||||
|
@@ -15,5 +15,5 @@
|
|||||||
</ng-container>
|
</ng-container>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<ng-content></ng-content>
|
<ng-content />
|
||||||
</mat-chip-listbox>
|
</mat-chip-listbox>
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<div class="adf-search-filter-menu-card">
|
<div class="adf-search-filter-menu-card">
|
||||||
<div class="adf-search-filter-title">
|
<div class="adf-search-filter-title">
|
||||||
<ng-content select="filter-title"></ng-content>
|
<ng-content select="filter-title" />
|
||||||
<button mat-icon-button
|
<button mat-icon-button
|
||||||
class="adf-search-filter-title-action"
|
class="adf-search-filter-title-action"
|
||||||
aria-hidden="false"
|
aria-hidden="false"
|
||||||
@@ -13,12 +13,12 @@
|
|||||||
<mat-divider />
|
<mat-divider />
|
||||||
|
|
||||||
<div class="adf-search-filter-content">
|
<div class="adf-search-filter-content">
|
||||||
<ng-content select="filter-content"></ng-content>
|
<ng-content select="filter-content" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<mat-divider />
|
<mat-divider />
|
||||||
|
|
||||||
<div class="adf-search-filter-actions">
|
<div class="adf-search-filter-actions">
|
||||||
<ng-content select="filter-actions"></ng-content>
|
<ng-content select="filter-actions" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -2,6 +2,5 @@
|
|||||||
[ngClass]="_classList" #panel>
|
[ngClass]="_classList" #panel>
|
||||||
<ng-template
|
<ng-template
|
||||||
[ngTemplateOutlet]="template"
|
[ngTemplateOutlet]="template"
|
||||||
[ngTemplateOutletContext]="{ $implicit: results }">
|
[ngTemplateOutletContext]="{ $implicit: results }" />
|
||||||
</ng-template>
|
|
||||||
</div>
|
</div>
|
||||||
|
@@ -202,7 +202,6 @@ export abstract class BaseQueryBuilderService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a facet bucket to a field.
|
* Adds a facet bucket to a field.
|
||||||
*
|
|
||||||
* @param field The target field
|
* @param field The target field
|
||||||
* @param bucket Bucket to add
|
* @param bucket Bucket to add
|
||||||
*/
|
*/
|
||||||
@@ -219,7 +218,6 @@ export abstract class BaseQueryBuilderService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the buckets currently added to a field
|
* Gets the buckets currently added to a field
|
||||||
*
|
|
||||||
* @param field The target fields
|
* @param field The target fields
|
||||||
* @returns Bucket array
|
* @returns Bucket array
|
||||||
*/
|
*/
|
||||||
@@ -229,7 +227,6 @@ export abstract class BaseQueryBuilderService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes an existing bucket from a field.
|
* Removes an existing bucket from a field.
|
||||||
*
|
|
||||||
* @param field The target field
|
* @param field The target field
|
||||||
* @param bucket Bucket to remove
|
* @param bucket Bucket to remove
|
||||||
*/
|
*/
|
||||||
@@ -242,7 +239,6 @@ export abstract class BaseQueryBuilderService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a filter query to the current query.
|
* Adds a filter query to the current query.
|
||||||
*
|
|
||||||
* @param query Query string to add
|
* @param query Query string to add
|
||||||
*/
|
*/
|
||||||
addFilterQuery(query: string): void {
|
addFilterQuery(query: string): void {
|
||||||
@@ -257,7 +253,6 @@ export abstract class BaseQueryBuilderService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes an existing filter query.
|
* Removes an existing filter query.
|
||||||
*
|
|
||||||
* @param query The query to remove
|
* @param query The query to remove
|
||||||
*/
|
*/
|
||||||
removeFilterQuery(query: string): void {
|
removeFilterQuery(query: string): void {
|
||||||
@@ -269,7 +264,6 @@ export abstract class BaseQueryBuilderService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a facet query by label.
|
* Gets a facet query by label.
|
||||||
*
|
|
||||||
* @param label Label of the query
|
* @param label Label of the query
|
||||||
* @returns Facet query data
|
* @returns Facet query data
|
||||||
*/
|
*/
|
||||||
@@ -285,7 +279,6 @@ export abstract class BaseQueryBuilderService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a facet field by label.
|
* Gets a facet field by label.
|
||||||
*
|
|
||||||
* @param label Label of the facet field
|
* @param label Label of the facet field
|
||||||
* @returns Facet field data
|
* @returns Facet field data
|
||||||
*/
|
*/
|
||||||
@@ -311,7 +304,6 @@ export abstract class BaseQueryBuilderService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Builds the current query and triggers the `updated` event.
|
* Builds the current query and triggers the `updated` event.
|
||||||
*
|
|
||||||
* @param queryBody query settings
|
* @param queryBody query settings
|
||||||
*/
|
*/
|
||||||
update(queryBody?: SearchRequest): void {
|
update(queryBody?: SearchRequest): void {
|
||||||
@@ -321,7 +313,6 @@ export abstract class BaseQueryBuilderService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Builds and executes the current query.
|
* Builds and executes the current query.
|
||||||
*
|
|
||||||
* @param updateQueryParams whether query params should be updated with encoded query
|
* @param updateQueryParams whether query params should be updated with encoded query
|
||||||
* @param queryBody query settings
|
* @param queryBody query settings
|
||||||
*/
|
*/
|
||||||
@@ -361,7 +352,6 @@ export abstract class BaseQueryBuilderService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Builds the current query.
|
* Builds the current query.
|
||||||
*
|
|
||||||
* @returns The finished query
|
* @returns The finished query
|
||||||
*/
|
*/
|
||||||
buildQuery(): SearchRequest {
|
buildQuery(): SearchRequest {
|
||||||
@@ -402,7 +392,6 @@ export abstract class BaseQueryBuilderService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the primary sorting definition.
|
* Gets the primary sorting definition.
|
||||||
*
|
|
||||||
* @returns The primary sorting definition
|
* @returns The primary sorting definition
|
||||||
*/
|
*/
|
||||||
getPrimarySorting(): SearchSortingDefinition {
|
getPrimarySorting(): SearchSortingDefinition {
|
||||||
@@ -414,7 +403,6 @@ export abstract class BaseQueryBuilderService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets all pre-configured sorting options that users can choose from.
|
* Gets all pre-configured sorting options that users can choose from.
|
||||||
*
|
|
||||||
* @returns Pre-configured sorting options
|
* @returns Pre-configured sorting options
|
||||||
*/
|
*/
|
||||||
getSortingOptions(): SearchSortingDefinition[] {
|
getSortingOptions(): SearchSortingDefinition[] {
|
||||||
@@ -423,7 +411,6 @@ export abstract class BaseQueryBuilderService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the query group.
|
* Gets the query group.
|
||||||
*
|
|
||||||
* @param query Target query
|
* @param query Target query
|
||||||
* @returns Query group
|
* @returns Query group
|
||||||
*/
|
*/
|
||||||
@@ -433,7 +420,6 @@ export abstract class BaseQueryBuilderService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if FacetQueries has been defined
|
* Checks if FacetQueries has been defined
|
||||||
*
|
|
||||||
* @returns True if defined, false otherwise
|
* @returns True if defined, false otherwise
|
||||||
*/
|
*/
|
||||||
get hasFacetQueries(): boolean {
|
get hasFacetQueries(): boolean {
|
||||||
@@ -442,7 +428,6 @@ export abstract class BaseQueryBuilderService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if FacetIntervals has been defined
|
* Checks if FacetIntervals has been defined
|
||||||
*
|
|
||||||
* @returns True if defined, false otherwise
|
* @returns True if defined, false otherwise
|
||||||
*/
|
*/
|
||||||
get hasFacetIntervals(): boolean {
|
get hasFacetIntervals(): boolean {
|
||||||
@@ -563,7 +548,6 @@ export abstract class BaseQueryBuilderService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Encloses a label name with double quotes if it contains whitespace characters.
|
* Encloses a label name with double quotes if it contains whitespace characters.
|
||||||
*
|
|
||||||
* @param configLabel Original label text
|
* @param configLabel Original label text
|
||||||
* @returns Label, possibly with quotes if it contains spaces
|
* @returns Label, possibly with quotes if it contains spaces
|
||||||
*/
|
*/
|
||||||
@@ -596,7 +580,6 @@ export abstract class BaseQueryBuilderService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Builds search query with provided user query, executes query, encodes latest filter config and navigates to search.
|
* Builds search query with provided user query, executes query, encodes latest filter config and navigates to search.
|
||||||
*
|
|
||||||
* @param query user query to search for
|
* @param query user query to search for
|
||||||
* @param searchUrl search url to navigate to
|
* @param searchUrl search url to navigate to
|
||||||
*/
|
*/
|
||||||
|
@@ -99,8 +99,7 @@
|
|||||||
<mat-menu #menu="matMenu">
|
<mat-menu #menu="matMenu">
|
||||||
<ng-template
|
<ng-template
|
||||||
[ngTemplateOutlet]="nodeActionsMenuTemplate"
|
[ngTemplateOutlet]="nodeActionsMenuTemplate"
|
||||||
[ngTemplateOutletContext]="{ node: node }">
|
[ngTemplateOutletContext]="{ node: node }" />
|
||||||
</ng-template>
|
|
||||||
</mat-menu>
|
</mat-menu>
|
||||||
</div>
|
</div>
|
||||||
</mat-tree-node>
|
</mat-tree-node>
|
||||||
@@ -109,8 +108,7 @@
|
|||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<ng-template #emptyContent>
|
<ng-template #emptyContent>
|
||||||
<ng-template [ngTemplateOutlet]="emptyContentTemplate">
|
<ng-template [ngTemplateOutlet]="emptyContentTemplate" />
|
||||||
</ng-template>
|
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|
||||||
<ng-template #loadingSpinner>
|
<ng-template #loadingSpinner>
|
||||||
|
@@ -2,6 +2,5 @@
|
|||||||
<ng-template
|
<ng-template
|
||||||
ngFor
|
ngFor
|
||||||
[ngForOf]="files"
|
[ngForOf]="files"
|
||||||
[ngForTemplate]="template">
|
[ngForTemplate]="template" />
|
||||||
</ng-template>
|
|
||||||
</div>
|
</div>
|
||||||
|
@@ -3,5 +3,5 @@
|
|||||||
(folderEntityDropped)="onFolderEntityDropped($event)"
|
(folderEntityDropped)="onFolderEntityDropped($event)"
|
||||||
(upload-files)="onUploadFiles($any($event))"
|
(upload-files)="onUploadFiles($any($event))"
|
||||||
dropzone="" webkitdropzone="*" #droparea>
|
dropzone="" webkitdropzone="*" #droparea>
|
||||||
<ng-content></ng-content>
|
<ng-content />
|
||||||
</div>
|
</div>
|
||||||
|
@@ -34,23 +34,23 @@
|
|||||||
(submitFile)="onSubmitFile($event)">
|
(submitFile)="onSubmitFile($event)">
|
||||||
|
|
||||||
<adf-viewer-toolbar *ngIf="toolbar">
|
<adf-viewer-toolbar *ngIf="toolbar">
|
||||||
<ng-content select="adf-viewer-toolbar"></ng-content>
|
<ng-content select="adf-viewer-toolbar" />
|
||||||
</adf-viewer-toolbar>
|
</adf-viewer-toolbar>
|
||||||
|
|
||||||
<adf-viewer-toolbar-actions *ngIf="toolbarActions">
|
<adf-viewer-toolbar-actions *ngIf="toolbarActions">
|
||||||
<ng-content select="adf-viewer-toolbar-actions"></ng-content>
|
<ng-content select="adf-viewer-toolbar-actions" />
|
||||||
</adf-viewer-toolbar-actions>
|
</adf-viewer-toolbar-actions>
|
||||||
|
|
||||||
<adf-viewer-more-actions *ngIf="moreActions">
|
<adf-viewer-more-actions *ngIf="moreActions">
|
||||||
<ng-content select="adf-viewer-more-actions"></ng-content>
|
<ng-content select="adf-viewer-more-actions" />
|
||||||
</adf-viewer-more-actions>
|
</adf-viewer-more-actions>
|
||||||
|
|
||||||
<adf-viewer-open-with *ngIf="openWith">
|
<adf-viewer-open-with *ngIf="openWith">
|
||||||
<ng-content select="adf-viewer-open-with"></ng-content>
|
<ng-content select="adf-viewer-open-with" />
|
||||||
</adf-viewer-open-with>
|
</adf-viewer-open-with>
|
||||||
|
|
||||||
<adf-viewer-sidebar *ngIf="sidebar">
|
<adf-viewer-sidebar *ngIf="sidebar">
|
||||||
<ng-content select="adf-viewer-sidebar"></ng-content>
|
<ng-content select="adf-viewer-sidebar" />
|
||||||
</adf-viewer-sidebar>
|
</adf-viewer-sidebar>
|
||||||
|
|
||||||
<adf-viewer-toolbar-custom-actions>
|
<adf-viewer-toolbar-custom-actions>
|
||||||
|
@@ -15,10 +15,9 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { APP_INITIALIZER, ModuleWithProviders, NgModule } from '@angular/core';
|
import { APP_INITIALIZER, inject, ModuleWithProviders, NgModule, InjectionToken } from '@angular/core';
|
||||||
import { AUTH_CONFIG, OAuthModule, OAuthStorage } from 'angular-oauth2-oidc';
|
import { AUTH_CONFIG, OAuthModule, OAuthStorage } from 'angular-oauth2-oidc';
|
||||||
import { AuthenticationService } from '../services/authentication.service';
|
import { AuthenticationService } from '../services/authentication.service';
|
||||||
import { StorageService } from '../../common/services/storage.service';
|
|
||||||
import { AuthModuleConfig, AUTH_MODULE_CONFIG } from './auth-config';
|
import { AuthModuleConfig, AUTH_MODULE_CONFIG } from './auth-config';
|
||||||
import { authConfigFactory, AuthConfigService } from './auth-config.service';
|
import { authConfigFactory, AuthConfigService } from './auth-config.service';
|
||||||
import { AuthRoutingModule } from './auth-routing.module';
|
import { AuthRoutingModule } from './auth-routing.module';
|
||||||
@@ -27,9 +26,16 @@ import { RedirectAuthService } from './redirect-auth.service';
|
|||||||
import { AuthenticationConfirmationComponent } from './view/authentication-confirmation/authentication-confirmation.component';
|
import { AuthenticationConfirmationComponent } from './view/authentication-confirmation/authentication-confirmation.component';
|
||||||
import { HTTP_INTERCEPTORS } from '@angular/common/http';
|
import { HTTP_INTERCEPTORS } from '@angular/common/http';
|
||||||
import { TokenInterceptor } from './token.interceptor';
|
import { TokenInterceptor } from './token.interceptor';
|
||||||
|
import { StorageService } from '../../common/services/storage.service';
|
||||||
|
|
||||||
|
export const JWT_STORAGE_SERVICE = new InjectionToken<OAuthStorage>('JWT_STORAGE_SERVICE', {
|
||||||
|
providedIn: 'root',
|
||||||
|
factory: () => inject(StorageService)
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a Login Factory function
|
* Create a Login Factory function
|
||||||
|
*
|
||||||
* @param redirectService auth redirect service
|
* @param redirectService auth redirect service
|
||||||
* @returns a factory function
|
* @returns a factory function
|
||||||
*/
|
*/
|
||||||
@@ -37,11 +43,18 @@ export function loginFactory(redirectService: RedirectAuthService): () => Promis
|
|||||||
return () => redirectService.init();
|
return () => redirectService.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @returns current instance of OAuthStorage
|
||||||
|
*/
|
||||||
|
export function oauthStorageFactory(): OAuthStorage {
|
||||||
|
return inject(JWT_STORAGE_SERVICE);
|
||||||
|
}
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [AuthenticationConfirmationComponent],
|
declarations: [AuthenticationConfirmationComponent],
|
||||||
imports: [AuthRoutingModule, OAuthModule.forRoot()],
|
imports: [AuthRoutingModule, OAuthModule.forRoot()],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: OAuthStorage, useExisting: StorageService },
|
{ provide: OAuthStorage, useFactory: oauthStorageFactory },
|
||||||
{ provide: AuthenticationService },
|
{ provide: AuthenticationService },
|
||||||
{
|
{
|
||||||
provide: AUTH_CONFIG,
|
provide: AUTH_CONFIG,
|
||||||
|
@@ -16,7 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { APP_INITIALIZER, Injectable, NgModule } from '@angular/core';
|
import { APP_INITIALIZER, Injectable, NgModule } from '@angular/core';
|
||||||
import { AuthModule, JWT_STORAGE_SERVICE, RedirectAuthService } from '../auth';
|
import { AuthModule, JWT_STORAGE_SERVICE } from '../auth/oidc/auth.module';
|
||||||
|
import { RedirectAuthService } from '../auth/oidc/redirect-auth.service';
|
||||||
import { HttpClientTestingModule } from '@angular/common/http/testing';
|
import { HttpClientTestingModule } from '@angular/common/http/testing';
|
||||||
import { RouterTestingModule } from '@angular/router/testing';
|
import { RouterTestingModule } from '@angular/router/testing';
|
||||||
import { AppConfigService, StoragePrefixFactory } from '../app-config';
|
import { AppConfigService, StoragePrefixFactory } from '../app-config';
|
||||||
|
@@ -4,17 +4,15 @@
|
|||||||
<mat-icon>more_vert</mat-icon>
|
<mat-icon>more_vert</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<mat-menu #editReportMenu="matMenu" class="adf-buttons-menu-mobile">
|
<mat-menu #editReportMenu="matMenu" class="adf-buttons-menu-mobile">
|
||||||
<ng-content *ngTemplateOutlet="desktop">
|
<ng-content *ngTemplateOutlet="desktop" />
|
||||||
</ng-content>
|
|
||||||
</mat-menu>
|
</mat-menu>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="!isMobile()" class="adf-buttons-menu-desktop">
|
<div *ngIf="!isMobile()" class="adf-buttons-menu-desktop">
|
||||||
<ng-content *ngTemplateOutlet="desktop">
|
<ng-content *ngTemplateOutlet="desktop" />
|
||||||
</ng-content>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ng-template #desktop>
|
<ng-template #desktop>
|
||||||
<ng-content></ng-content>
|
<ng-content />
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
@@ -23,8 +23,7 @@
|
|||||||
<ng-template #noApps>
|
<ng-template #noApps>
|
||||||
<div class="adf-app-list-empty">
|
<div class="adf-app-list-empty">
|
||||||
<ng-content select="adf-custom-empty-content-template" *ngIf="hasEmptyCustomContentTemplate; else defaultEmptyTemplate"
|
<ng-content select="adf-custom-empty-content-template" *ngIf="hasEmptyCustomContentTemplate; else defaultEmptyTemplate"
|
||||||
class="adf-custom-empty-template">
|
class="adf-custom-empty-template" />
|
||||||
</ng-content>
|
|
||||||
|
|
||||||
<ng-template #defaultEmptyTemplate>
|
<ng-template #defaultEmptyTemplate>
|
||||||
<adf-empty-content icon="apps" [title]="'ADF_CLOUD_TASK_LIST.APPS.NO_APPS.TITLE' | translate"
|
<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
|
* Check if the value of the layoutType property is an allowed value
|
||||||
*
|
|
||||||
* @returns `true` if layout type is valid, otherwise `false`
|
* @returns `true` if layout type is valid, otherwise `false`
|
||||||
*/
|
*/
|
||||||
isValidType(): boolean {
|
isValidType(): boolean {
|
||||||
@@ -115,7 +114,6 @@ export class AppListCloudComponent implements OnInit, AfterContentInit {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the layout type is LIST
|
* Check if the layout type is LIST
|
||||||
*
|
|
||||||
* @returns `true` if the layout is list, otherwise `false`
|
* @returns `true` if the layout is list, otherwise `false`
|
||||||
*/
|
*/
|
||||||
isList(): boolean {
|
isList(): boolean {
|
||||||
@@ -124,7 +122,6 @@ export class AppListCloudComponent implements OnInit, AfterContentInit {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the layout type is GRID
|
* Check if the layout type is GRID
|
||||||
*
|
|
||||||
* @returns `true` if layout is grid, otherwise `false`
|
* @returns `true` if layout is grid, otherwise `false`
|
||||||
*/
|
*/
|
||||||
isGrid(): boolean {
|
isGrid(): boolean {
|
||||||
|
@@ -34,7 +34,6 @@ export class AppsProcessCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a list of deployed apps for this user by status.
|
* Gets a list of deployed apps for this user by status.
|
||||||
*
|
|
||||||
* @param status Required status value
|
* @param status Required status value
|
||||||
* @param roles to filter the apps
|
* @param roles to filter the apps
|
||||||
* @returns The list of deployed apps
|
* @returns The list of deployed apps
|
||||||
|
@@ -1229,7 +1229,6 @@ describe('FormCloudComponent', () => {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper function for loading the form in the tests
|
* Helper function for loading the form in the tests
|
||||||
*
|
|
||||||
* @param form The form model to be loaded
|
* @param form The form model to be loaded
|
||||||
*/
|
*/
|
||||||
async function loadForm(form?: any): Promise<void> {
|
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.
|
* Get custom set of outcomes for a Form Definition.
|
||||||
*
|
|
||||||
* @param form Form definition model.
|
* @param form Form definition model.
|
||||||
* @returns list of form outcomes
|
* @returns list of form outcomes
|
||||||
*/
|
*/
|
||||||
|
@@ -82,7 +82,7 @@ export class PropertiesViewerWrapperComponent implements OnInit, OnChanges {
|
|||||||
constructor(private nodesApiService: NodesApiService) {}
|
constructor(private nodesApiService: NodesApiService) {}
|
||||||
|
|
||||||
ngOnChanges(changes: SimpleChanges): void {
|
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);
|
this.getNode(changes['nodeId'].currentValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -43,7 +43,6 @@ export class FormCloudService extends BaseCloudService implements FormCloudServi
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the form definition of a task.
|
* Gets the form definition of a task.
|
||||||
*
|
|
||||||
* @param appName Name of the app
|
* @param appName Name of the app
|
||||||
* @param taskId ID of the target task
|
* @param taskId ID of the target task
|
||||||
* @param version Version of the form
|
* @param version Version of the form
|
||||||
@@ -72,7 +71,6 @@ export class FormCloudService extends BaseCloudService implements FormCloudServi
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Saves a task form.
|
* Saves a task form.
|
||||||
*
|
|
||||||
* @param appName Name of the app
|
* @param appName Name of the app
|
||||||
* @param taskId ID of the target task
|
* @param taskId ID of the target task
|
||||||
* @param processInstanceId ID of processInstance
|
* @param processInstanceId ID of processInstance
|
||||||
@@ -101,7 +99,6 @@ export class FormCloudService extends BaseCloudService implements FormCloudServi
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Completes a task form.
|
* Completes a task form.
|
||||||
*
|
|
||||||
* @param appName Name of the app
|
* @param appName Name of the app
|
||||||
* @param taskId ID of the target task
|
* @param taskId ID of the target task
|
||||||
* @param processInstanceId ID of processInstance
|
* @param processInstanceId ID of processInstance
|
||||||
@@ -136,7 +133,6 @@ export class FormCloudService extends BaseCloudService implements FormCloudServi
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets details of a task
|
* Gets details of a task
|
||||||
*
|
|
||||||
* @param appName Name of the app
|
* @param appName Name of the app
|
||||||
* @param taskId ID of the target task
|
* @param taskId ID of the target task
|
||||||
* @returns Details of the task
|
* @returns Details of the task
|
||||||
@@ -149,7 +145,6 @@ export class FormCloudService extends BaseCloudService implements FormCloudServi
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the variables of a task.
|
* Gets the variables of a task.
|
||||||
*
|
|
||||||
* @param appName Name of the app
|
* @param appName Name of the app
|
||||||
* @param taskId ID of the target task
|
* @param taskId ID of the target task
|
||||||
* @returns Task variables
|
* @returns Task variables
|
||||||
@@ -176,7 +171,6 @@ export class FormCloudService extends BaseCloudService implements FormCloudServi
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a form definition.
|
* Gets a form definition.
|
||||||
*
|
|
||||||
* @param appName Name of the app
|
* @param appName Name of the app
|
||||||
* @param formKey key of the target task
|
* @param formKey key of the target task
|
||||||
* @param version Version of the form
|
* @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.
|
* Parses JSON data to create a corresponding form.
|
||||||
*
|
|
||||||
* @param json JSON data to create the form
|
* @param json JSON data to create the form
|
||||||
* @param data Values for the form's fields
|
* @param data Values for the form's fields
|
||||||
* @param readOnly Toggles whether or not the form should be read-only
|
* @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 {
|
export class FormDefinitionSelectorCloudService extends BaseCloudService implements FormDefinitionSelectorCloudServiceInterface {
|
||||||
/**
|
/**
|
||||||
* Get all forms of an app.
|
* Get all forms of an app.
|
||||||
*
|
|
||||||
* @param appName Name of the application
|
* @param appName Name of the application
|
||||||
* @returns Details of the forms
|
* @returns Details of the forms
|
||||||
*/
|
*/
|
||||||
@@ -42,7 +41,6 @@ export class FormDefinitionSelectorCloudService extends BaseCloudService impleme
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all forms of an app.
|
* Get all forms of an app.
|
||||||
*
|
|
||||||
* @param appName Name of the application
|
* @param appName Name of the application
|
||||||
* @returns Details of the forms
|
* @returns Details of the forms
|
||||||
*/
|
*/
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<form>
|
<form>
|
||||||
<mat-form-field class="adf-cloud-group" [class.adf-invalid]="hasError() && isDirty()">
|
<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-grid #groupChipList data-automation-id="adf-cloud-group-chip-list">
|
||||||
<mat-chip-row
|
<mat-chip-row
|
||||||
*ngFor="let group of selectedGroups"
|
*ngFor="let group of selectedGroups"
|
||||||
|
@@ -39,7 +39,6 @@ describe('GroupCloudComponent', () => {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* search group by value
|
* search group by value
|
||||||
*
|
|
||||||
* @param value element input value
|
* @param value element input value
|
||||||
*/
|
*/
|
||||||
async function searchGroup(value: string) {
|
async function searchGroup(value: string) {
|
||||||
@@ -50,7 +49,6 @@ describe('GroupCloudComponent', () => {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* search group and invoke the blur event
|
* search group and invoke the blur event
|
||||||
*
|
|
||||||
* @param value value
|
* @param value value
|
||||||
*/
|
*/
|
||||||
async function searchGroupsAndBlur(value: string) {
|
async function searchGroupsAndBlur(value: string) {
|
||||||
@@ -62,7 +60,6 @@ describe('GroupCloudComponent', () => {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* get the group list UI
|
* get the group list UI
|
||||||
*
|
|
||||||
* @returns a list of debug elements
|
* @returns a list of debug elements
|
||||||
*/
|
*/
|
||||||
function getGroupListUI(): DebugElement[] {
|
function getGroupListUI(): DebugElement[] {
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
class="adf-people-cloud"
|
class="adf-people-cloud"
|
||||||
[class.adf-invalid]="hasError() && isDirty()"
|
[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-label *ngIf="title">{{ title | translate }}</mat-label>
|
||||||
<mat-chip-grid #userMultipleChipList data-automation-id="adf-cloud-people-chip-list">
|
<mat-chip-grid #userMultipleChipList data-automation-id="adf-cloud-people-chip-list">
|
||||||
<mat-chip-row
|
<mat-chip-row
|
||||||
|
@@ -40,7 +40,6 @@ describe('PeopleCloudComponent', () => {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Search users by value
|
* Search users by value
|
||||||
*
|
|
||||||
* @param value value
|
* @param value value
|
||||||
*/
|
*/
|
||||||
async function searchUsers(value: string) {
|
async function searchUsers(value: string) {
|
||||||
@@ -51,7 +50,6 @@ describe('PeopleCloudComponent', () => {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Search users and blur the input
|
* Search users and blur the input
|
||||||
*
|
|
||||||
* @param value value
|
* @param value value
|
||||||
*/
|
*/
|
||||||
async function searchUsersAndBlur(value: string) {
|
async function searchUsersAndBlur(value: string) {
|
||||||
@@ -63,7 +61,6 @@ describe('PeopleCloudComponent', () => {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get users list UI
|
* Get users list UI
|
||||||
*
|
|
||||||
* @returns list of debug elements
|
* @returns list of debug elements
|
||||||
*/
|
*/
|
||||||
function getUsersListUI(): DebugElement[] {
|
function getUsersListUI(): DebugElement[] {
|
||||||
@@ -72,7 +69,6 @@ describe('PeopleCloudComponent', () => {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the first user from the list
|
* Get the first user from the list
|
||||||
*
|
|
||||||
* @returns native element
|
* @returns native element
|
||||||
*/
|
*/
|
||||||
function getFirstUserFromListUI(): Element {
|
function getFirstUserFromListUI(): Element {
|
||||||
|
@@ -38,7 +38,6 @@ export class IdentityUserService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the name and other basic details of the current user.
|
* Gets the name and other basic details of the current user.
|
||||||
*
|
|
||||||
* @returns The user's details
|
* @returns The user's details
|
||||||
*/
|
*/
|
||||||
public getCurrentUserInfo(): IdentityUserModel {
|
public getCurrentUserInfo(): IdentityUserModel {
|
||||||
@@ -51,7 +50,6 @@ export class IdentityUserService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Search users based on name input and filters.
|
* Search users based on name input and filters.
|
||||||
*
|
|
||||||
* @param name Search query string
|
* @param name Search query string
|
||||||
* @param [filters] Search query filters
|
* @param [filters] Search query filters
|
||||||
* @returns List of users
|
* @returns List of users
|
||||||
|
@@ -511,7 +511,6 @@ export class EditProcessFilterCloudComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a process instance filter
|
* Delete a process instance filter
|
||||||
*
|
|
||||||
* @param deleteAction filter action
|
* @param deleteAction filter action
|
||||||
*/
|
*/
|
||||||
delete(deleteAction: ProcessFilterAction) {
|
delete(deleteAction: ProcessFilterAction) {
|
||||||
@@ -530,7 +529,6 @@ export class EditProcessFilterCloudComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Save As a process instance filter
|
* Save As a process instance filter
|
||||||
*
|
|
||||||
* @param saveAsAction filter action
|
* @param saveAsAction filter action
|
||||||
*/
|
*/
|
||||||
saveAs(saveAsAction: ProcessFilterAction) {
|
saveAs(saveAsAction: ProcessFilterAction) {
|
||||||
@@ -576,7 +574,6 @@ export class EditProcessFilterCloudComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get sanitized filter name
|
* Get sanitized filter name
|
||||||
*
|
|
||||||
* @param filterName filter name
|
* @param filterName filter name
|
||||||
* @returns sanitized filter name
|
* @returns sanitized filter name
|
||||||
*/
|
*/
|
||||||
@@ -587,7 +584,6 @@ export class EditProcessFilterCloudComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return name with hyphen
|
* Return name with hyphen
|
||||||
*
|
|
||||||
* @param name name
|
* @param name name
|
||||||
* @returns updated value
|
* @returns updated value
|
||||||
*/
|
*/
|
||||||
|
@@ -110,7 +110,6 @@ export class ProcessFiltersCloudComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetch the filter list based on appName
|
* Fetch the filter list based on appName
|
||||||
*
|
|
||||||
* @param appName application name
|
* @param appName application name
|
||||||
*/
|
*/
|
||||||
getFilters(appName: string): void {
|
getFilters(appName: string): void {
|
||||||
@@ -140,7 +139,6 @@ export class ProcessFiltersCloudComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Pass the selected filter as next
|
* Pass the selected filter as next
|
||||||
*
|
|
||||||
* @param paramFilter filter model
|
* @param paramFilter filter model
|
||||||
*/
|
*/
|
||||||
selectFilter(paramFilter: FilterParamsModel) {
|
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
|
* Check equality of the filter names by translating the given name strings
|
||||||
*
|
|
||||||
* @param name1 source name
|
* @param name1 source name
|
||||||
* @param name2 target name
|
* @param name2 target name
|
||||||
* @returns `true` if filter names are equal, otherwise `false`
|
* @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
|
* Selects and emits the given filter
|
||||||
*
|
|
||||||
* @param newParamFilter new parameter filter
|
* @param newParamFilter new parameter filter
|
||||||
*/
|
*/
|
||||||
selectFilterAndEmit(newParamFilter: FilterParamsModel) {
|
selectFilterAndEmit(newParamFilter: FilterParamsModel) {
|
||||||
@@ -190,7 +186,6 @@ export class ProcessFiltersCloudComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Select filter with the id
|
* Select filter with the id
|
||||||
*
|
|
||||||
* @param id filter id
|
* @param id filter id
|
||||||
*/
|
*/
|
||||||
selectFilterById(id: string) {
|
selectFilterById(id: string) {
|
||||||
@@ -199,7 +194,6 @@ export class ProcessFiltersCloudComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Selects and emits the clicked filter
|
* Selects and emits the clicked filter
|
||||||
*
|
|
||||||
* @param filter filter model
|
* @param filter filter model
|
||||||
*/
|
*/
|
||||||
onFilterClick(filter: ProcessFilterCloudModel) {
|
onFilterClick(filter: ProcessFilterCloudModel) {
|
||||||
@@ -224,7 +218,6 @@ export class ProcessFiltersCloudComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get current filter
|
* Get current filter
|
||||||
*
|
|
||||||
* @returns filter model
|
* @returns filter model
|
||||||
*/
|
*/
|
||||||
getCurrentFilter(): ProcessFilterCloudModel {
|
getCurrentFilter(): ProcessFilterCloudModel {
|
||||||
@@ -233,7 +226,6 @@ export class ProcessFiltersCloudComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the filter list is empty
|
* Check if the filter list is empty
|
||||||
*
|
|
||||||
* @returns `true` if filter list is empty, otherwise `false`
|
* @returns `true` if filter list is empty, otherwise `false`
|
||||||
*/
|
*/
|
||||||
isFilterListEmpty(): boolean {
|
isFilterListEmpty(): boolean {
|
||||||
@@ -274,7 +266,6 @@ export class ProcessFiltersCloudComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get current value for filter and check if value has changed
|
* Get current value for filter and check if value has changed
|
||||||
*
|
|
||||||
* @param filter filter
|
* @param filter filter
|
||||||
*/
|
*/
|
||||||
updateFilterCounter(filter: ProcessFilterCloudModel): void {
|
updateFilterCounter(filter: ProcessFilterCloudModel): void {
|
||||||
|
@@ -114,7 +114,6 @@ export class ProcessFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and returns the default process instance filters for a app.
|
* Creates and returns the default process instance filters for a app.
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
*/
|
*/
|
||||||
private createDefaultFilters(appName: string): void {
|
private createDefaultFilters(appName: string): void {
|
||||||
@@ -141,7 +140,6 @@ export class ProcessFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets all process instance filters for a process app.
|
* Gets all process instance filters for a process app.
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @returns Observable of process filters details
|
* @returns Observable of process filters details
|
||||||
*/
|
*/
|
||||||
@@ -152,7 +150,6 @@ export class ProcessFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get process instance filter for given filter id
|
* Get process instance filter for given filter id
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @param id Id of the target process instance filter
|
* @param id Id of the target process instance filter
|
||||||
* @returns Observable of process instance filter details
|
* @returns Observable of process instance filter details
|
||||||
@@ -173,7 +170,6 @@ export class ProcessFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a new process instance filter
|
* Adds a new process instance filter
|
||||||
*
|
|
||||||
* @param newFilter The new filter to add
|
* @param newFilter The new filter to add
|
||||||
* @returns Observable of process instance filters with newly added filter
|
* @returns Observable of process instance filters with newly added filter
|
||||||
*/
|
*/
|
||||||
@@ -204,7 +200,6 @@ export class ProcessFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Update process instance filter
|
* Update process instance filter
|
||||||
*
|
|
||||||
* @param updatedFilter The new filter to update
|
* @param updatedFilter The new filter to update
|
||||||
* @returns Observable of process instance filters with updated filter
|
* @returns Observable of process instance filters with updated filter
|
||||||
*/
|
*/
|
||||||
@@ -229,7 +224,6 @@ export class ProcessFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete process instance filter
|
* Delete process instance filter
|
||||||
*
|
|
||||||
* @param deletedFilter The new filter to delete
|
* @param deletedFilter The new filter to delete
|
||||||
* @returns Observable of process instance filters without deleted filter
|
* @returns Observable of process instance filters without deleted filter
|
||||||
*/
|
*/
|
||||||
@@ -254,7 +248,6 @@ export class ProcessFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if given filter is a default filter
|
* Checks if given filter is a default filter
|
||||||
*
|
|
||||||
* @param filterName Name of the target process filter
|
* @param filterName Name of the target process filter
|
||||||
* @returns Boolean value for whether the filter is a default 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.
|
* 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,
|
* 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
|
* then it changes nothing but stores the current values of the filter
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @param filter The process filter to be restored to defaults
|
* @param filter The process filter to be restored to defaults
|
||||||
* @returns Observable of process filters details
|
* @returns Observable of process filters details
|
||||||
@@ -281,7 +273,6 @@ export class ProcessFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks user preference are empty or not
|
* Checks user preference are empty or not
|
||||||
*
|
|
||||||
* @param preferences User preferences of the target app
|
* @param preferences User preferences of the target app
|
||||||
* @returns Boolean value if the preferences are not empty
|
* @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
|
* Checks for process instance filters in given user preferences
|
||||||
*
|
|
||||||
* @param preferences User preferences of the target app
|
* @param preferences User preferences of the target app
|
||||||
* @param key Key of the process instance filters
|
* @param key Key of the process instance filters
|
||||||
* @returns Boolean value if the preference has 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
|
* Calls create preference api to create process instance filters
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @param key Key of the process instance filters
|
* @param key Key of the process instance filters
|
||||||
* @param filters Details of new process instance filter
|
* @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
|
* Calls get preference api to get process instance filter by preference key
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @param key Key of the process instance filters
|
* @param key Key of the process instance filters
|
||||||
* @returns Observable of 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
|
* Calls update preference api to update process instance filter
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @param key Key of the process instance filters
|
* @param key Key of the process instance filters
|
||||||
* @param filters Details of update filter
|
* @param filters Details of update filter
|
||||||
@@ -338,7 +325,6 @@ export class ProcessFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a uniq key with appName and username
|
* Creates a uniq key with appName and username
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @returns String of process instance filters preference key
|
* @returns String of process instance filters preference key
|
||||||
*/
|
*/
|
||||||
@@ -349,7 +335,6 @@ export class ProcessFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds and returns the process instance filters from preferences
|
* Finds and returns the process instance filters from preferences
|
||||||
*
|
|
||||||
* @returns Array of ProcessFilterCloudModel
|
* @returns Array of ProcessFilterCloudModel
|
||||||
* @param preferences preferences
|
* @param preferences preferences
|
||||||
* @param key key
|
* @param key key
|
||||||
@@ -365,7 +350,6 @@ export class ProcessFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and returns the default filters for a process app.
|
* Creates and returns the default filters for a process app.
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @returns Array of ProcessFilterCloudModel
|
* @returns Array of ProcessFilterCloudModel
|
||||||
*/
|
*/
|
||||||
@@ -409,7 +393,6 @@ export class ProcessFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Refresh filter key
|
* Refresh filter key
|
||||||
*
|
|
||||||
* @param filterKey Key of the filter
|
* @param filterKey Key of the filter
|
||||||
*/
|
*/
|
||||||
refreshFilter(filterKey: string): void {
|
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.
|
* 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.
|
* The filters are then updated in the preferences and returned.
|
||||||
* Old properties are left untouched for purposes like feature toggling.
|
* Old properties are left untouched for purposes like feature toggling.
|
||||||
*
|
|
||||||
* @param appName Name of the target app.
|
* @param appName Name of the target app.
|
||||||
* @param key Key of the process filters.
|
* @param key Key of the process filters.
|
||||||
* @param filters Array of process filters to be checked for backward compatibility.
|
* @param filters Array of process filters to be checked for backward compatibility.
|
||||||
|
@@ -31,7 +31,7 @@
|
|||||||
class="adf-cloud-process-list-loading-margin"
|
class="adf-cloud-process-list-loading-margin"
|
||||||
[color]="'primary'"
|
[color]="'primary'"
|
||||||
[mode]="'indeterminate'" />
|
[mode]="'indeterminate'" />
|
||||||
<ng-content select="adf-custom-loading-content-template"></ng-content>
|
<ng-content select="adf-custom-loading-content-template" />
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</adf-loading-content-template>
|
</adf-loading-content-template>
|
||||||
<adf-no-content-template>
|
<adf-no-content-template>
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
icon="assessment"
|
icon="assessment"
|
||||||
[title]="'ADF_CLOUD_PROCESS_LIST.MESSAGES.TITLE' | translate"
|
[title]="'ADF_CLOUD_PROCESS_LIST.MESSAGES.TITLE' | translate"
|
||||||
[subtitle]="'ADF_CLOUD_PROCESS_LIST.MESSAGES.SUBTITLE'| 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>
|
</ng-template>
|
||||||
</adf-no-content-template>
|
</adf-no-content-template>
|
||||||
|
|
||||||
|
@@ -27,7 +27,6 @@ import { TaskListCloudSortingModel } from '../../../models/task-list-sorting.mod
|
|||||||
export class ProcessTaskListCloudService extends BaseCloudService {
|
export class ProcessTaskListCloudService extends BaseCloudService {
|
||||||
/**
|
/**
|
||||||
* Finds a task using an object with optional query properties.
|
* Finds a task using an object with optional query properties.
|
||||||
*
|
|
||||||
* @param requestNode Query object
|
* @param requestNode Query object
|
||||||
* @param queryUrl Query url
|
* @param queryUrl Query url
|
||||||
* @returns Task information
|
* @returns Task information
|
||||||
|
@@ -31,7 +31,6 @@ export class ProcessCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets details of a process instance.
|
* Gets details of a process instance.
|
||||||
*
|
|
||||||
* @param appName Name of the app
|
* @param appName Name of the app
|
||||||
* @param processInstanceId ID of the process instance whose details you want
|
* @param processInstanceId ID of the process instance whose details you want
|
||||||
* @returns Process instance details
|
* @returns Process instance details
|
||||||
@@ -53,7 +52,6 @@ export class ProcessCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the process definitions associated with an app.
|
* Gets the process definitions associated with an app.
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @returns Array of process definitions
|
* @returns Array of process definitions
|
||||||
*/
|
*/
|
||||||
@@ -69,7 +67,6 @@ export class ProcessCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the application versions associated with an app.
|
* Gets the application versions associated with an app.
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @returns Array of Application Version Models
|
* @returns Array of Application Version Models
|
||||||
*/
|
*/
|
||||||
@@ -85,7 +82,6 @@ export class ProcessCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Cancels a process.
|
* Cancels a process.
|
||||||
*
|
|
||||||
* @param appName Name of the app
|
* @param appName Name of the app
|
||||||
* @param processInstanceId Id of the process to cancel
|
* @param processInstanceId Id of the process to cancel
|
||||||
* @returns Operation Information
|
* @returns Operation Information
|
||||||
|
@@ -88,8 +88,7 @@
|
|||||||
(formLoaded)="onFormLoaded($event)"
|
(formLoaded)="onFormLoaded($event)"
|
||||||
(executeOutcome)="onCustomOutcomeClicked($event.outcome.name)">
|
(executeOutcome)="onCustomOutcomeClicked($event.outcome.name)">
|
||||||
<adf-cloud-form-custom-outcomes>
|
<adf-cloud-form-custom-outcomes>
|
||||||
<ng-template [ngTemplateOutlet]="taskFormCloudButtons">
|
<ng-template [ngTemplateOutlet]="taskFormCloudButtons" />
|
||||||
</ng-template>
|
|
||||||
</adf-cloud-form-custom-outcomes>
|
</adf-cloud-form-custom-outcomes>
|
||||||
</adf-cloud-form>
|
</adf-cloud-form>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
@@ -104,7 +104,6 @@ describe('StartProcessCloudComponent', () => {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Setup the component with the given start event information.
|
* Setup the component with the given start event information.
|
||||||
*
|
|
||||||
* @param values the values for the form
|
* @param values the values for the form
|
||||||
* @param staticValues the static values retrieved from the API 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
|
* @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 {
|
export class StartProcessCloudService extends BaseCloudService {
|
||||||
/**
|
/**
|
||||||
* Gets the process definitions associated with an app.
|
* Gets the process definitions associated with an app.
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @param queryParams optional query parameters
|
* @param queryParams optional query parameters
|
||||||
* @returns Array of process definitions
|
* @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.
|
* Starts a process based on a process definition, name, form values or variables.
|
||||||
*
|
|
||||||
* @param appName name of the Application
|
* @param appName name of the Application
|
||||||
* @param payload Details of the process (definition key, name, variables, etc)
|
* @param payload Details of the process (definition key, name, variables, etc)
|
||||||
* @returns Details of the process instance just started
|
* @returns Details of the process instance just started
|
||||||
@@ -74,7 +72,6 @@ export class StartProcessCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Update an existing process instance
|
* Update an existing process instance
|
||||||
*
|
|
||||||
* @param appName name of the Application
|
* @param appName name of the Application
|
||||||
* @param processInstanceId process instance to update
|
* @param processInstanceId process instance to update
|
||||||
* @param payload Details of the process (definition key, name, variables, etc)
|
* @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
|
* Delete an existing process instance
|
||||||
*
|
|
||||||
* @param appName Application name
|
* @param appName Application name
|
||||||
* @param processInstanceId the identifier of the process instance to update
|
* @param processInstanceId the identifier of the process instance to update
|
||||||
* @returns Observable<void>
|
* @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.
|
* Gets the static values mapped to the start form of a process definition.
|
||||||
*
|
|
||||||
* @param appName Name of the app
|
* @param appName Name of the app
|
||||||
* @param processDefinitionId ID of the target process definition
|
* @param processDefinitionId ID of the target process definition
|
||||||
* @returns Static mappings for the start event
|
* @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.
|
* Gets the constants mapped to the start form of a process definition.
|
||||||
*
|
|
||||||
* @param appName Name of the app
|
* @param appName Name of the app
|
||||||
* @param processDefinitionId ID of the target process definition
|
* @param processDefinitionId ID of the target process definition
|
||||||
* @returns Constants values for the start event
|
* @returns Constants values for the start event
|
||||||
|
@@ -27,7 +27,6 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets local preferences
|
* Gets local preferences
|
||||||
*
|
|
||||||
* @param _ Name of the target app
|
* @param _ Name of the target app
|
||||||
* @param key Key of the target preference
|
* @param key Key of the target preference
|
||||||
* @returns List of local preferences
|
* @returns List of local preferences
|
||||||
@@ -47,7 +46,6 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets local preference.
|
* Gets local preference.
|
||||||
*
|
|
||||||
* @param _ Name of the target app
|
* @param _ Name of the target app
|
||||||
* @param key Key of the target preference
|
* @param key Key of the target preference
|
||||||
* @returns Observable of local preference
|
* @returns Observable of local preference
|
||||||
@@ -58,7 +56,6 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates local preference.
|
* Creates local preference.
|
||||||
*
|
|
||||||
* @param _ Name of the target app
|
* @param _ Name of the target app
|
||||||
* @param key Key of the target preference
|
* @param key Key of the target preference
|
||||||
* @param newPreference Details of new local preference
|
* @param newPreference Details of new local preference
|
||||||
@@ -73,7 +70,6 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates local preference.
|
* Updates local preference.
|
||||||
*
|
|
||||||
* @param _ Name of the target app
|
* @param _ Name of the target app
|
||||||
* @param key Key of the target preference
|
* @param key Key of the target preference
|
||||||
* @param updatedPreference Details of updated preference
|
* @param updatedPreference Details of updated preference
|
||||||
@@ -88,7 +84,6 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes local preference by given preference key.
|
* Deletes local preference by given preference key.
|
||||||
*
|
|
||||||
* @param key Key of the target preference
|
* @param key Key of the target preference
|
||||||
* @param preferences Details of updated preferences
|
* @param preferences Details of updated preferences
|
||||||
* @returns Observable of preferences without deleted preference
|
* @returns Observable of preferences without deleted preference
|
||||||
|
@@ -21,7 +21,6 @@ import { TaskListRequestModel, TaskQueryCloudRequestModel } from '../models/filt
|
|||||||
export interface TaskListCloudServiceInterface {
|
export interface TaskListCloudServiceInterface {
|
||||||
/**
|
/**
|
||||||
* Finds a task using an object with optional query properties.
|
* Finds a task using an object with optional query properties.
|
||||||
*
|
|
||||||
* @deprecated From Activiti 8.7.0 forward, use TaskListCloudService.fetchTaskList instead.
|
* @deprecated From Activiti 8.7.0 forward, use TaskListCloudService.fetchTaskList instead.
|
||||||
* @param requestNode Query object
|
* @param requestNode Query object
|
||||||
* @param queryUrl Query url
|
* @param queryUrl Query url
|
||||||
@@ -32,7 +31,6 @@ export interface TaskListCloudServiceInterface {
|
|||||||
/**
|
/**
|
||||||
* Available from Activiti version 8.7.0 onwards.
|
* Available from Activiti version 8.7.0 onwards.
|
||||||
* Retrieves a list of tasks using an object with optional query properties.
|
* Retrieves a list of tasks using an object with optional query properties.
|
||||||
*
|
|
||||||
* @param requestNode Query object
|
* @param requestNode Query object
|
||||||
* @param queryUrl Query url
|
* @param queryUrl Query url
|
||||||
* @returns List of tasks
|
* @returns List of tasks
|
||||||
|
@@ -24,7 +24,6 @@ import { BaseCloudService } from './base-cloud.service';
|
|||||||
export class UserPreferenceCloudService extends BaseCloudService implements PreferenceCloudServiceInterface {
|
export class UserPreferenceCloudService extends BaseCloudService implements PreferenceCloudServiceInterface {
|
||||||
/**
|
/**
|
||||||
* Gets user preferences
|
* Gets user preferences
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @returns List of user preferences
|
* @returns List of user preferences
|
||||||
*/
|
*/
|
||||||
@@ -39,7 +38,6 @@ export class UserPreferenceCloudService extends BaseCloudService implements Pref
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets user preference.
|
* Gets user preference.
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @param key Key of the target preference
|
* @param key Key of the target preference
|
||||||
* @returns Observable of user preference
|
* @returns Observable of user preference
|
||||||
@@ -55,7 +53,6 @@ export class UserPreferenceCloudService extends BaseCloudService implements Pref
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates user preference.
|
* Creates user preference.
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @param key Key of the target preference
|
* @param key Key of the target preference
|
||||||
* @param newPreference Details of new user preference
|
* @param newPreference Details of new user preference
|
||||||
@@ -74,7 +71,6 @@ export class UserPreferenceCloudService extends BaseCloudService implements Pref
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates user preference.
|
* Updates user preference.
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @param key Key of the target preference
|
* @param key Key of the target preference
|
||||||
* @param updatedPreference Details of updated 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.
|
* Deletes user preference by given preference key.
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @param key Key of the target preference
|
* @param key Key of the target preference
|
||||||
* @returns Observable of delete operation status
|
* @returns Observable of delete operation status
|
||||||
|
@@ -49,7 +49,6 @@ export class TaskCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Complete a task.
|
* Complete a task.
|
||||||
*
|
|
||||||
* @param appName Name of the app
|
* @param appName Name of the app
|
||||||
* @param taskId ID of the task to complete
|
* @param taskId ID of the task to complete
|
||||||
* @returns Details of the task that was completed
|
* @returns Details of the task that was completed
|
||||||
@@ -67,7 +66,6 @@ export class TaskCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate if a task can be completed.
|
* Validate if a task can be completed.
|
||||||
*
|
|
||||||
* @param taskDetails task details object
|
* @param taskDetails task details object
|
||||||
* @returns Boolean value if the task can be completed
|
* @returns Boolean value if the task can be completed
|
||||||
*/
|
*/
|
||||||
@@ -77,7 +75,6 @@ export class TaskCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate if a task is editable.
|
* Validate if a task is editable.
|
||||||
*
|
|
||||||
* @param taskDetails task details object
|
* @param taskDetails task details object
|
||||||
* @returns Boolean value if the task is editable
|
* @returns Boolean value if the task is editable
|
||||||
*/
|
*/
|
||||||
@@ -100,7 +97,6 @@ export class TaskCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate if a task can be claimed.
|
* Validate if a task can be claimed.
|
||||||
*
|
|
||||||
* @param taskDetails task details object
|
* @param taskDetails task details object
|
||||||
* @returns Boolean value if the task can be completed
|
* @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.
|
* Validate if a task can be unclaimed.
|
||||||
*
|
|
||||||
* @param taskDetails task details object
|
* @param taskDetails task details object
|
||||||
* @returns Boolean value if the task can be completed
|
* @returns Boolean value if the task can be completed
|
||||||
*/
|
*/
|
||||||
@@ -126,7 +121,6 @@ export class TaskCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Claims a task for an assignee.
|
* Claims a task for an assignee.
|
||||||
*
|
|
||||||
* @param appName Name of the app
|
* @param appName Name of the app
|
||||||
* @param taskId ID of the task to claim
|
* @param taskId ID of the task to claim
|
||||||
* @param assignee User to assign the task to
|
* @param assignee User to assign the task to
|
||||||
@@ -149,7 +143,6 @@ export class TaskCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Un-claims a task.
|
* Un-claims a task.
|
||||||
*
|
|
||||||
* @param appName Name of the app
|
* @param appName Name of the app
|
||||||
* @param taskId ID of the task to unclaim
|
* @param taskId ID of the task to unclaim
|
||||||
* @returns Details of the task that was unclaimed
|
* @returns Details of the task that was unclaimed
|
||||||
@@ -171,7 +164,6 @@ export class TaskCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets details of a task.
|
* Gets details of a task.
|
||||||
*
|
|
||||||
* @param appName Name of the app
|
* @param appName Name of the app
|
||||||
* @param taskId ID of the task whose details you want
|
* @param taskId ID of the task whose details you want
|
||||||
* @returns Task details
|
* @returns Task details
|
||||||
@@ -188,7 +180,6 @@ export class TaskCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new standalone task.
|
* Creates a new standalone task.
|
||||||
*
|
|
||||||
* @param startTaskRequest request model
|
* @param startTaskRequest request model
|
||||||
* @param appName application name
|
* @param appName application name
|
||||||
* @returns Details of the newly created task
|
* @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.
|
* Updates the details (name, description, due date) for a task.
|
||||||
*
|
|
||||||
* @param appName Name of the app
|
* @param appName Name of the app
|
||||||
* @param taskId ID of the task to update
|
* @param taskId ID of the task to update
|
||||||
* @param payload Data to update the task
|
* @param payload Data to update the task
|
||||||
@@ -221,7 +211,6 @@ export class TaskCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets candidate users of the task.
|
* Gets candidate users of the task.
|
||||||
*
|
|
||||||
* @param appName Name of the app
|
* @param appName Name of the app
|
||||||
* @param taskId ID of the task
|
* @param taskId ID of the task
|
||||||
* @returns Candidate users
|
* @returns Candidate users
|
||||||
@@ -237,7 +226,6 @@ export class TaskCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets candidate groups of the task.
|
* Gets candidate groups of the task.
|
||||||
*
|
|
||||||
* @param appName Name of the app
|
* @param appName Name of the app
|
||||||
* @param taskId ID of the task
|
* @param taskId ID of the task
|
||||||
* @returns Candidate groups
|
* @returns Candidate groups
|
||||||
@@ -253,7 +241,6 @@ export class TaskCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the process definitions associated with an app.
|
* Gets the process definitions associated with an app.
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @returns Array of process definitions
|
* @returns Array of process definitions
|
||||||
*/
|
*/
|
||||||
@@ -269,7 +256,6 @@ export class TaskCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates the task assignee.
|
* Updates the task assignee.
|
||||||
*
|
|
||||||
* @param appName Name of the app
|
* @param appName Name of the app
|
||||||
* @param taskId ID of the task to update assignee
|
* @param taskId ID of the task to update assignee
|
||||||
* @param assignee assignee to update current user task 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
|
* Get the sanitized filter name
|
||||||
*
|
|
||||||
* @param filterName filter name
|
* @param filterName filter name
|
||||||
* @returns sanitized filter name
|
* @returns sanitized filter name
|
||||||
*/
|
*/
|
||||||
|
@@ -122,7 +122,6 @@ describe('EditTaskFilterCloudComponent', () => {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* resolve filter instance input element
|
* resolve filter instance input element
|
||||||
*
|
|
||||||
* @returns native element
|
* @returns native element
|
||||||
*/
|
*/
|
||||||
function getProcessInstanceIdInputElement() {
|
function getProcessInstanceIdInputElement() {
|
||||||
|
@@ -67,7 +67,6 @@ export class ServiceTaskFiltersCloudComponent extends BaseTaskFiltersCloudCompon
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Load the filter list filtered by appName
|
* Load the filter list filtered by appName
|
||||||
*
|
|
||||||
* @param appName application name
|
* @param appName application name
|
||||||
*/
|
*/
|
||||||
getFilters(appName: string): void {
|
getFilters(appName: string): void {
|
||||||
@@ -88,7 +87,6 @@ export class ServiceTaskFiltersCloudComponent extends BaseTaskFiltersCloudCompon
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Select filter
|
* Select filter
|
||||||
*
|
|
||||||
* @param paramFilter filter model
|
* @param paramFilter filter model
|
||||||
*/
|
*/
|
||||||
selectFilter(paramFilter: FilterParamsModel) {
|
selectFilter(paramFilter: FilterParamsModel) {
|
||||||
@@ -123,7 +121,6 @@ export class ServiceTaskFiltersCloudComponent extends BaseTaskFiltersCloudCompon
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Selects and emits the clicked filter.
|
* Selects and emits the clicked filter.
|
||||||
*
|
|
||||||
* @param filter filter to select
|
* @param filter filter to select
|
||||||
*/
|
*/
|
||||||
onFilterClick(filter: FilterParamsModel) {
|
onFilterClick(filter: FilterParamsModel) {
|
||||||
@@ -146,7 +143,6 @@ export class ServiceTaskFiltersCloudComponent extends BaseTaskFiltersCloudCompon
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the filter list is empty
|
* Check if the filter list is empty
|
||||||
*
|
|
||||||
* @returns `true` if filter list is empty, otherwise `false`
|
* @returns `true` if filter list is empty, otherwise `false`
|
||||||
*/
|
*/
|
||||||
isFilterListEmpty(): boolean {
|
isFilterListEmpty(): boolean {
|
||||||
|
@@ -38,7 +38,6 @@ describe('TaskAssignmentFilterComponent', () => {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* select the assignment type
|
* select the assignment type
|
||||||
*
|
|
||||||
* @param type type to select
|
* @param type type to select
|
||||||
*/
|
*/
|
||||||
function selectAssignmentType(type: AssignmentType) {
|
function selectAssignmentType(type: AssignmentType) {
|
||||||
|
@@ -91,7 +91,6 @@ export class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent imp
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads the filter list filtered by appName
|
* Loads the filter list filtered by appName
|
||||||
*
|
|
||||||
* @param appName application name
|
* @param appName application name
|
||||||
*/
|
*/
|
||||||
getFilters(appName: string): void {
|
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
|
* Get current value for filter and check if value has changed
|
||||||
*
|
|
||||||
* @param filter filter
|
* @param filter filter
|
||||||
*/
|
*/
|
||||||
updateFilterCounter(filter: TaskFilterCloudModel): void {
|
updateFilterCounter(filter: TaskFilterCloudModel): void {
|
||||||
@@ -219,7 +217,6 @@ export class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent imp
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Selects and emits the clicked filter.
|
* Selects and emits the clicked filter.
|
||||||
*
|
|
||||||
* @param filter filter model
|
* @param filter filter model
|
||||||
*/
|
*/
|
||||||
onFilterClick(filter: FilterParamsModel) {
|
onFilterClick(filter: FilterParamsModel) {
|
||||||
@@ -245,7 +242,6 @@ export class TaskFiltersCloudComponent extends BaseTaskFiltersCloudComponent imp
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the filter list is empty
|
* Check if the filter list is empty
|
||||||
*
|
|
||||||
* @returns `true` if filter list is empty, otherwise `false`
|
* @returns `true` if filter list is empty, otherwise `false`
|
||||||
*/
|
*/
|
||||||
isFilterListEmpty(): boolean {
|
isFilterListEmpty(): boolean {
|
||||||
|
@@ -38,7 +38,6 @@ export class ServiceTaskFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and returns the default task filters for an app.
|
* Creates and returns the default task filters for an app.
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
*/
|
*/
|
||||||
private createDefaultFilters(appName: string): void {
|
private createDefaultFilters(appName: string): void {
|
||||||
@@ -62,7 +61,6 @@ export class ServiceTaskFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks user preference are empty or not
|
* Checks user preference are empty or not
|
||||||
*
|
|
||||||
* @param preferences User preferences of the target app
|
* @param preferences User preferences of the target app
|
||||||
* @returns Boolean value if the preferences are not empty
|
* @returns Boolean value if the preferences are not empty
|
||||||
*/
|
*/
|
||||||
@@ -72,7 +70,6 @@ export class ServiceTaskFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks for task filters in given user preferences
|
* Checks for task filters in given user preferences
|
||||||
*
|
|
||||||
* @param preferences User preferences of the target app
|
* @param preferences User preferences of the target app
|
||||||
* @param key Key of the task filters
|
* @param key Key of the task filters
|
||||||
* @returns Boolean value if the preference has 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
|
* Calls create preference api to create task filters
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @param key Key of the task instance filters
|
* @param key Key of the task instance filters
|
||||||
* @param filters Details of new task filter
|
* @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
|
* Calls get preference api to get task filter by preference key
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @param key Key of the task filters
|
* @param key Key of the task filters
|
||||||
* @returns Observable of task filters
|
* @returns Observable of task filters
|
||||||
@@ -107,7 +102,6 @@ export class ServiceTaskFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets all task filters for a task app.
|
* Gets all task filters for a task app.
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @returns Observable of task filter details
|
* @returns Observable of task filter details
|
||||||
*/
|
*/
|
||||||
@@ -118,7 +112,6 @@ export class ServiceTaskFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a task filter.
|
* Gets a task filter.
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @param id ID of the task
|
* @param id ID of the task
|
||||||
* @returns Details of the task filter
|
* @returns Details of the task filter
|
||||||
@@ -139,7 +132,6 @@ export class ServiceTaskFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a new task filter.
|
* Adds a new task filter.
|
||||||
*
|
|
||||||
* @param newFilter The new filter to add
|
* @param newFilter The new filter to add
|
||||||
* @returns Observable of task instance filters with newly added filter
|
* @returns Observable of task instance filters with newly added filter
|
||||||
*/
|
*/
|
||||||
@@ -167,7 +159,6 @@ export class ServiceTaskFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates a task filter.
|
* Updates a task filter.
|
||||||
*
|
|
||||||
* @param updatedFilter The filter to update
|
* @param updatedFilter The filter to update
|
||||||
* @returns Observable of task instance filters with updated filter
|
* @returns Observable of task instance filters with updated filter
|
||||||
*/
|
*/
|
||||||
@@ -192,7 +183,6 @@ export class ServiceTaskFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes a task filter
|
* Deletes a task filter
|
||||||
*
|
|
||||||
* @param deletedFilter The filter to delete
|
* @param deletedFilter The filter to delete
|
||||||
* @returns Observable of task instance filters without deleted filter
|
* @returns Observable of task instance filters without deleted filter
|
||||||
*/
|
*/
|
||||||
@@ -215,7 +205,6 @@ export class ServiceTaskFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if given filter is a default filter
|
* Checks if given filter is a default filter
|
||||||
*
|
|
||||||
* @param filterName Name of the target task filter
|
* @param filterName Name of the target task filter
|
||||||
* @returns Boolean value for whether the filter is a default 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
|
* Calls update preference api to update task filter
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @param key Key of the task filters
|
* @param key Key of the task filters
|
||||||
* @param filters Details of update filter
|
* @param filters Details of update filter
|
||||||
@@ -238,7 +226,6 @@ export class ServiceTaskFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a uniq key with appName and username
|
* Creates a uniq key with appName and username
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @returns String of task filters preference key
|
* @returns String of task filters preference key
|
||||||
*/
|
*/
|
||||||
@@ -248,7 +235,6 @@ export class ServiceTaskFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds and returns the task filters from preferences
|
* Finds and returns the task filters from preferences
|
||||||
*
|
|
||||||
* @returns Array of TaskFilterCloudModel
|
* @returns Array of TaskFilterCloudModel
|
||||||
* @param preferences preferences
|
* @param preferences preferences
|
||||||
* @param key key
|
* @param key key
|
||||||
@@ -260,7 +246,6 @@ export class ServiceTaskFilterCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and returns the default filters for a task app.
|
* Creates and returns the default filters for a task app.
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @returns Array of TaskFilterCloudModel
|
* @returns Array of TaskFilterCloudModel
|
||||||
*/
|
*/
|
||||||
|
@@ -65,7 +65,6 @@ export class TaskFilterCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and returns the default task filters for an app.
|
* Creates and returns the default task filters for an app.
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
*/
|
*/
|
||||||
private createDefaultFilters(appName: string): void {
|
private createDefaultFilters(appName: string): void {
|
||||||
@@ -90,7 +89,6 @@ export class TaskFilterCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks user preference are empty or not
|
* Checks user preference are empty or not
|
||||||
*
|
|
||||||
* @param preferences User preferences of the target app
|
* @param preferences User preferences of the target app
|
||||||
* @returns Boolean value if the preferences are not empty
|
* @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
|
* Checks for task filters in given user preferences
|
||||||
*
|
|
||||||
* @param preferences User preferences of the target app
|
* @param preferences User preferences of the target app
|
||||||
* @param key Key of the task filters
|
* @param key Key of the task filters
|
||||||
* @returns Boolean value if the preference has 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
|
* Calls create preference api to create task filters
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @param key Key of the task instance filters
|
* @param key Key of the task instance filters
|
||||||
* @param filters Details of new task filter
|
* @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
|
* Calls get preference api to get task filter by preference key
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @param key Key of the task filters
|
* @param key Key of the task filters
|
||||||
* @returns Observable of task filters
|
* @returns Observable of task filters
|
||||||
@@ -135,7 +130,6 @@ export class TaskFilterCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets all task filters for a task app.
|
* Gets all task filters for a task app.
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @returns Observable of task filter details
|
* @returns Observable of task filter details
|
||||||
*/
|
*/
|
||||||
@@ -146,7 +140,6 @@ export class TaskFilterCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a task filter.
|
* Gets a task filter.
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @param id ID of the task
|
* @param id ID of the task
|
||||||
* @returns Details of the task filter
|
* @returns Details of the task filter
|
||||||
@@ -167,7 +160,6 @@ export class TaskFilterCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a new task filter.
|
* Adds a new task filter.
|
||||||
*
|
|
||||||
* @param newFilter The new filter to add
|
* @param newFilter The new filter to add
|
||||||
* @returns Observable of task instance filters with newly added filter
|
* @returns Observable of task instance filters with newly added filter
|
||||||
*/
|
*/
|
||||||
@@ -195,7 +187,6 @@ export class TaskFilterCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates a task filter.
|
* Updates a task filter.
|
||||||
*
|
|
||||||
* @param updatedFilter The filter to update
|
* @param updatedFilter The filter to update
|
||||||
* @returns Observable of task instance filters with updated filter
|
* @returns Observable of task instance filters with updated filter
|
||||||
*/
|
*/
|
||||||
@@ -220,7 +211,6 @@ export class TaskFilterCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes a task filter
|
* Deletes a task filter
|
||||||
*
|
|
||||||
* @param deletedFilter The filter to delete
|
* @param deletedFilter The filter to delete
|
||||||
* @returns Observable of task instance filters without deleted filter
|
* @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
|
* Checks if given filter is a default filter
|
||||||
*
|
|
||||||
* @param filterName Name of the target task filter
|
* @param filterName Name of the target task filter
|
||||||
* @returns Boolean value for whether the filter is a default 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.
|
* Finds a task using an object with optional query properties.
|
||||||
*
|
|
||||||
* @returns Task information
|
* @returns Task information
|
||||||
* @param taskFilter task filter model
|
* @param taskFilter task filter model
|
||||||
*/
|
*/
|
||||||
@@ -291,7 +279,6 @@ export class TaskFilterCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Calls update preference api to update task filter
|
* Calls update preference api to update task filter
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @param key Key of the task filters
|
* @param key Key of the task filters
|
||||||
* @param filters Details of update filter
|
* @param filters Details of update filter
|
||||||
@@ -303,7 +290,6 @@ export class TaskFilterCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a uniq key with appName and username
|
* Creates a uniq key with appName and username
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @returns String of task filters preference key
|
* @returns String of task filters preference key
|
||||||
*/
|
*/
|
||||||
@@ -313,7 +299,6 @@ export class TaskFilterCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds and returns the task filters from preferences
|
* Finds and returns the task filters from preferences
|
||||||
*
|
|
||||||
* @returns Array of TaskFilterCloudModel
|
* @returns Array of TaskFilterCloudModel
|
||||||
* @param preferences preferences
|
* @param preferences preferences
|
||||||
* @param key key
|
* @param key key
|
||||||
@@ -325,7 +310,6 @@ export class TaskFilterCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and returns the default filters for a task app.
|
* Creates and returns the default filters for a task app.
|
||||||
*
|
|
||||||
* @param appName Name of the target app
|
* @param appName Name of the target app
|
||||||
* @returns Array of TaskFilterCloudModel
|
* @returns Array of TaskFilterCloudModel
|
||||||
*/
|
*/
|
||||||
@@ -374,7 +358,6 @@ export class TaskFilterCloudService extends BaseCloudService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Refresh filter key
|
* Refresh filter key
|
||||||
*
|
|
||||||
* @param filterKey Key of the filter
|
* @param filterKey Key of the filter
|
||||||
*/
|
*/
|
||||||
refreshFilter(filterKey: string): void {
|
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.
|
* 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.
|
* The filters are then updated in the preferences and returned.
|
||||||
* Old properties are left untouched for purposes like feature toggling.
|
* Old properties are left untouched for purposes like feature toggling.
|
||||||
*
|
|
||||||
* @param appName Name of the target app.
|
* @param appName Name of the target app.
|
||||||
* @param key Key of the task filters.
|
* @param key Key of the task filters.
|
||||||
* @param filters Array of task filters to be checked for backward compatibility.
|
* @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
|
* Save a task detail and update it after a successful response
|
||||||
*
|
|
||||||
* @param updateNotification notification model
|
* @param updateNotification notification model
|
||||||
*/
|
*/
|
||||||
private updateTaskDetails(updateNotification: UpdateNotification) {
|
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
|
* as per [ACA-3960] it required an empty array argument for now
|
||||||
* Empty array will be replaced with candidateGroups in feature
|
* Empty array will be replaced with candidateGroups in feature
|
||||||
*
|
|
||||||
* @returns `true` if assignee property is clickable, otherwise `false`
|
* @returns `true` if assignee property is clickable, otherwise `false`
|
||||||
*/
|
*/
|
||||||
isAssigneePropertyClickable(): boolean {
|
isAssigneePropertyClickable(): boolean {
|
||||||
|
@@ -165,29 +165,29 @@ export abstract class BaseTaskListCloudComponent<T = unknown>
|
|||||||
|
|
||||||
/** Emitted when rows are selected/unselected */
|
/** Emitted when rows are selected/unselected */
|
||||||
@Output()
|
@Output()
|
||||||
rowsSelected: EventEmitter<any[]> = new EventEmitter<any[]>();
|
rowsSelected: EventEmitter<unknown[]> = new EventEmitter<unknown[]>();
|
||||||
|
|
||||||
/** Emitted when the task list is loaded */
|
/** Emitted when the task list is loaded */
|
||||||
@Output()
|
@Output()
|
||||||
success: EventEmitter<any> = new EventEmitter<any>();
|
success: EventEmitter<unknown> = new EventEmitter<unknown>();
|
||||||
|
|
||||||
/** Emitted when an error occurs. */
|
/** Emitted when an error occurs. */
|
||||||
@Output()
|
@Output()
|
||||||
error: EventEmitter<any> = new EventEmitter<any>();
|
error: EventEmitter<unknown> = new EventEmitter<unknown>();
|
||||||
|
|
||||||
pagination: BehaviorSubject<PaginationModel>;
|
pagination: BehaviorSubject<PaginationModel>;
|
||||||
|
|
||||||
requestNode: TaskQueryCloudRequestModel;
|
requestNode: TaskQueryCloudRequestModel;
|
||||||
rows: any[] = [];
|
rows: unknown[] = [];
|
||||||
size: number;
|
size: number;
|
||||||
skipCount: number = 0;
|
skipCount: number = 0;
|
||||||
currentInstanceId: any;
|
currentInstanceId: string;
|
||||||
selectedInstances: any[];
|
selectedInstances: string[];
|
||||||
formattedSorting: any[];
|
formattedSorting: string[];
|
||||||
dataAdapter: ObjectDataTableAdapter | undefined;
|
dataAdapter: ObjectDataTableAdapter | undefined;
|
||||||
|
|
||||||
protected defaultSorting = { key: 'startDate', direction: 'desc' };
|
protected defaultSorting = { key: 'startDate', direction: 'desc' };
|
||||||
boundReplacePriorityValues: (row: DataRow, col: DataColumn) => any;
|
boundReplacePriorityValues: (row: DataRow, col: DataColumn) => unknown;
|
||||||
|
|
||||||
protected abstract isLoading$: Observable<boolean>;
|
protected abstract isLoading$: Observable<boolean>;
|
||||||
protected isLoadingPreferences$ = new BehaviorSubject<boolean>(true);
|
protected isLoadingPreferences$ = new BehaviorSubject<boolean>(true);
|
||||||
|
@@ -26,7 +26,6 @@ import { map } from 'rxjs/operators';
|
|||||||
export class ServiceTaskListCloudService extends BaseCloudService {
|
export class ServiceTaskListCloudService extends BaseCloudService {
|
||||||
/**
|
/**
|
||||||
* Finds a task using an object with optional query properties.
|
* Finds a task using an object with optional query properties.
|
||||||
*
|
|
||||||
* @param requestNode Query object
|
* @param requestNode Query object
|
||||||
* @returns Task information
|
* @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.
|
* Finds a service task integration context using an object with optional query properties.
|
||||||
*
|
|
||||||
* @param appName string
|
* @param appName string
|
||||||
* @param serviceTaskId string
|
* @param serviceTaskId string
|
||||||
* @returns Service Task Integration Context information
|
* @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
|
* Replay a service task based on the related execution id and flow-node id
|
||||||
*
|
|
||||||
* @param appName string
|
* @param appName string
|
||||||
* @param executionId string
|
* @param executionId string
|
||||||
* @param flowNodeId string
|
* @param flowNodeId string
|
||||||
|
@@ -28,7 +28,6 @@ import { TaskListCloudServiceInterface } from '../../../services/task-list-cloud
|
|||||||
export class TaskListCloudService extends BaseCloudService implements TaskListCloudServiceInterface {
|
export class TaskListCloudService extends BaseCloudService implements TaskListCloudServiceInterface {
|
||||||
/**
|
/**
|
||||||
* Finds a task using an object with optional query properties.
|
* Finds a task using an object with optional query properties.
|
||||||
*
|
|
||||||
* @deprecated From Activiti 8.7.0 forward, use TaskListCloudService.fetchTaskList instead.
|
* @deprecated From Activiti 8.7.0 forward, use TaskListCloudService.fetchTaskList instead.
|
||||||
* @param requestNode Query object
|
* @param requestNode Query object
|
||||||
* @param queryUrl Query url
|
* @param queryUrl Query url
|
||||||
@@ -60,7 +59,6 @@ export class TaskListCloudService extends BaseCloudService implements TaskListCl
|
|||||||
/**
|
/**
|
||||||
* Available from Activiti version 8.7.0 onwards.
|
* Available from Activiti version 8.7.0 onwards.
|
||||||
* Retrieves a list of tasks using an object with optional query properties.
|
* Retrieves a list of tasks using an object with optional query properties.
|
||||||
*
|
|
||||||
* @param requestNode Query object
|
* @param requestNode Query object
|
||||||
* @param queryUrl Query url
|
* @param queryUrl Query url
|
||||||
* @returns List of tasks
|
* @returns List of tasks
|
||||||
|
@@ -43,8 +43,7 @@
|
|||||||
<div class="adf-app-list-empty" *ngIf="isEmpty()">
|
<div class="adf-app-list-empty" *ngIf="isEmpty()">
|
||||||
<ng-content select="adf-custom-empty-content-template"
|
<ng-content select="adf-custom-empty-content-template"
|
||||||
*ngIf="hasEmptyCustomContentTemplate; else defaultEmptyTemplate"
|
*ngIf="hasEmptyCustomContentTemplate; else defaultEmptyTemplate"
|
||||||
class="adf-custom-empty-template">
|
class="adf-custom-empty-template" />
|
||||||
</ng-content>
|
|
||||||
|
|
||||||
<ng-template #defaultEmptyTemplate>
|
<ng-template #defaultEmptyTemplate>
|
||||||
<adf-empty-content
|
<adf-empty-content
|
||||||
|
@@ -123,7 +123,6 @@ export class AppsListComponent implements OnInit, AfterContentInit {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Pass the selected app as next
|
* Pass the selected app as next
|
||||||
*
|
|
||||||
* @param app application model
|
* @param app application model
|
||||||
*/
|
*/
|
||||||
selectApp(app: AppDefinitionRepresentation) {
|
selectApp(app: AppDefinitionRepresentation) {
|
||||||
@@ -133,7 +132,6 @@ export class AppsListComponent implements OnInit, AfterContentInit {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return true if the appId is the current app
|
* Return true if the appId is the current app
|
||||||
*
|
|
||||||
* @param appId application id
|
* @param appId application id
|
||||||
* @returns `true` if application is selected, otherwise `false`
|
* @returns `true` if application is selected, otherwise `false`
|
||||||
*/
|
*/
|
||||||
@@ -143,7 +141,6 @@ export class AppsListComponent implements OnInit, AfterContentInit {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the value of the layoutType property is an allowed value
|
* Check if the value of the layoutType property is an allowed value
|
||||||
*
|
|
||||||
* @returns `true` if layout type is valid, otherwise `false`
|
* @returns `true` if layout type is valid, otherwise `false`
|
||||||
*/
|
*/
|
||||||
isValidType(): boolean {
|
isValidType(): boolean {
|
||||||
@@ -159,7 +156,6 @@ export class AppsListComponent implements OnInit, AfterContentInit {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the layout type is LIST
|
* Check if the layout type is LIST
|
||||||
*
|
|
||||||
* @returns `true` if current layout is in the list mode, otherwise `false`
|
* @returns `true` if current layout is in the list mode, otherwise `false`
|
||||||
*/
|
*/
|
||||||
isList(): boolean {
|
isList(): boolean {
|
||||||
@@ -168,7 +164,6 @@ export class AppsListComponent implements OnInit, AfterContentInit {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the layout type is GRID
|
* Check if the layout type is GRID
|
||||||
*
|
|
||||||
* @returns `true` if current layout is in the grid mode, otherwise `false`
|
* @returns `true` if current layout is in the grid mode, otherwise `false`
|
||||||
*/
|
*/
|
||||||
isGrid(): boolean {
|
isGrid(): boolean {
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
<adf-no-content-template>
|
<adf-no-content-template>
|
||||||
<ng-template>
|
<ng-template>
|
||||||
<ng-content *ngIf="hasCustomTemplate; else defaultEmptyList" class="adf-custom-empty-template"></ng-content>
|
<ng-content *ngIf="hasCustomTemplate; else defaultEmptyList" class="adf-custom-empty-template" />
|
||||||
<ng-template #defaultEmptyList>
|
<ng-template #defaultEmptyList>
|
||||||
<adf-empty-list>
|
<adf-empty-list>
|
||||||
<div adf-empty-list-header class="adf-empty-list-header">
|
<div adf-empty-list-header class="adf-empty-list-header">
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
(executeRowAction)="onExecuteRowAction($event)">
|
(executeRowAction)="onExecuteRowAction($event)">
|
||||||
<adf-no-content-template>
|
<adf-no-content-template>
|
||||||
<ng-template>
|
<ng-template>
|
||||||
<ng-content *ngIf="hasCustomTemplate; else defaultEmptyList" class="adf-custom-empty-template"></ng-content>
|
<ng-content *ngIf="hasCustomTemplate; else defaultEmptyList" class="adf-custom-empty-template" />
|
||||||
<ng-template #defaultEmptyList>
|
<ng-template #defaultEmptyList>
|
||||||
<adf-empty-list>
|
<adf-empty-list>
|
||||||
<div adf-empty-list-header class="adf-empty-list-header">
|
<div adf-empty-list-header class="adf-empty-list-header">
|
||||||
|
@@ -20,6 +20,6 @@ import { Component } from '@angular/core';
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'adf-form-custom-outcomes',
|
selector: 'adf-form-custom-outcomes',
|
||||||
standalone: true,
|
standalone: true,
|
||||||
template: '<ng-content></ng-content>'
|
template: '<ng-content />'
|
||||||
})
|
})
|
||||||
export class FormCustomOutcomesComponent {}
|
export class FormCustomOutcomesComponent {}
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
<div *ngIf="!hasForm()">
|
<div *ngIf="!hasForm()">
|
||||||
<ng-content select="[empty-form]">
|
<ng-content select="[empty-form]" />
|
||||||
</ng-content>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="hasForm()" class="adf-form-container">
|
<div *ngIf="hasForm()" class="adf-form-container">
|
||||||
@@ -33,7 +32,7 @@
|
|||||||
<adf-form-renderer [formDefinition]="form" />
|
<adf-form-renderer [formDefinition]="form" />
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
<mat-card-actions *ngIf="form.hasOutcomes()" class="adf-form-mat-card-actions" align="end">
|
<mat-card-actions *ngIf="form.hasOutcomes()" class="adf-form-mat-card-actions" align="end">
|
||||||
<ng-content select="adf-form-custom-outcomes"></ng-content>
|
<ng-content select="adf-form-custom-outcomes" />
|
||||||
<button [id]="'adf-form-'+ outcome.name | formatSpace" *ngFor="let outcome of form.outcomes"
|
<button [id]="'adf-form-'+ outcome.name | formatSpace" *ngFor="let outcome of form.outcomes"
|
||||||
[color]="getColorForOutcome(outcome.name)" mat-button [disabled]="!isOutcomeButtonEnabled(outcome)"
|
[color]="getColorForOutcome(outcome.name)" mat-button [disabled]="!isOutcomeButtonEnabled(outcome)"
|
||||||
[class.adf-form-hide-button]="!isOutcomeButtonVisible(outcome, form.readOnly)"
|
[class.adf-form-hide-button]="!isOutcomeButtonVisible(outcome, form.readOnly)"
|
||||||
|
@@ -319,7 +319,6 @@ export class FormComponent extends FormBaseComponent implements OnInit, OnChange
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get custom set of outcomes for a Form Definition.
|
* Get custom set of outcomes for a Form Definition.
|
||||||
*
|
|
||||||
* @param form Form definition model.
|
* @param form Form definition model.
|
||||||
* @returns list of form outcomes
|
* @returns list of form outcomes
|
||||||
*/
|
*/
|
||||||
@@ -352,7 +351,6 @@ export class FormComponent extends FormBaseComponent implements OnInit, OnChange
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a Form with a field for each metadata property.
|
* Creates a Form with a field for each metadata property.
|
||||||
*
|
|
||||||
* @param formName Name of the new form
|
* @param formName Name of the new form
|
||||||
* @returns The new form
|
* @returns The new form
|
||||||
*/
|
*/
|
||||||
|
@@ -53,7 +53,6 @@ export class ActivitiContentService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a list of child nodes below the specified folder
|
* Returns a list of child nodes below the specified folder
|
||||||
*
|
|
||||||
* @param accountId account id
|
* @param accountId account id
|
||||||
* @param folderId folder id
|
* @param folderId folder id
|
||||||
* @returns list of external content instances
|
* @returns list of external content instances
|
||||||
@@ -68,7 +67,6 @@ export class ActivitiContentService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a list of all the repositories configured
|
* Returns a list of all the repositories configured
|
||||||
*
|
|
||||||
* @param tenantId tenant id
|
* @param tenantId tenant id
|
||||||
* @param includeAccount include accounts
|
* @param includeAccount include accounts
|
||||||
* @returns list of endpoints
|
* @returns list of endpoints
|
||||||
@@ -86,7 +84,6 @@ export class ActivitiContentService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a list of child nodes below the specified folder
|
* Returns a list of child nodes below the specified folder
|
||||||
*
|
|
||||||
* @param accountId account id
|
* @param accountId account id
|
||||||
* @param node node details
|
* @param node node details
|
||||||
* @param siteId site id
|
* @param siteId site id
|
||||||
|
@@ -39,7 +39,6 @@ export class EditorService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Saves a form.
|
* Saves a form.
|
||||||
*
|
|
||||||
* @param formId ID of the form to save
|
* @param formId ID of the form to save
|
||||||
* @param formModel Model data for the form
|
* @param formModel Model data for the form
|
||||||
* @returns Data for the saved form
|
* @returns Data for the saved form
|
||||||
@@ -50,7 +49,6 @@ export class EditorService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a form definition.
|
* Gets a form definition.
|
||||||
*
|
|
||||||
* @param formId ID of the target form
|
* @param formId ID of the target form
|
||||||
* @returns Form definition
|
* @returns Form definition
|
||||||
*/
|
*/
|
||||||
@@ -63,7 +61,6 @@ export class EditorService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a JSON representation of form data.
|
* Creates a JSON representation of form data.
|
||||||
*
|
|
||||||
* @param res Object representing form data
|
* @param res Object representing form data
|
||||||
* @returns JSON data
|
* @returns JSON data
|
||||||
*/
|
*/
|
||||||
@@ -76,7 +73,6 @@ export class EditorService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Reports an error message.
|
* Reports an error message.
|
||||||
*
|
|
||||||
* @param error Data object with optional `message` and `status` fields for the error
|
* @param error Data object with optional `message` and `status` fields for the error
|
||||||
* @returns Error message
|
* @returns Error message
|
||||||
*/
|
*/
|
||||||
|
@@ -38,7 +38,6 @@ export class ModelService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a Form.
|
* Create a Form.
|
||||||
*
|
|
||||||
* @param formName Name of the new form
|
* @param formName Name of the new form
|
||||||
* @returns The new form
|
* @returns The new form
|
||||||
*/
|
*/
|
||||||
@@ -55,7 +54,6 @@ export class ModelService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets all the forms.
|
* Gets all the forms.
|
||||||
*
|
|
||||||
* @returns List of form models
|
* @returns List of form models
|
||||||
*/
|
*/
|
||||||
getForms(): Observable<any> {
|
getForms(): Observable<any> {
|
||||||
@@ -71,7 +69,6 @@ export class ModelService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a JSON array representation of form data.
|
* Creates a JSON array representation of form data.
|
||||||
*
|
|
||||||
* @param res Object representing form data
|
* @param res Object representing form data
|
||||||
* @returns JSON data
|
* @returns JSON data
|
||||||
*/
|
*/
|
||||||
@@ -81,7 +78,6 @@ export class ModelService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Searches for a form by name.
|
* Searches for a form by name.
|
||||||
*
|
|
||||||
* @param name The form name to search for
|
* @param name The form name to search for
|
||||||
* @returns Form model(s) matching the search name
|
* @returns Form model(s) matching the search name
|
||||||
*/
|
*/
|
||||||
@@ -98,7 +94,6 @@ export class ModelService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the form definition with a given name.
|
* Gets the form definition with a given name.
|
||||||
*
|
|
||||||
* @param name The form name
|
* @param name The form name
|
||||||
* @returns Form definition
|
* @returns Form definition
|
||||||
*/
|
*/
|
||||||
@@ -117,7 +112,6 @@ export class ModelService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the ID of a form.
|
* Gets the ID of a form.
|
||||||
*
|
|
||||||
* @param form Object representing a form
|
* @param form Object representing a form
|
||||||
* @returns ID string
|
* @returns ID string
|
||||||
*/
|
*/
|
||||||
@@ -132,7 +126,6 @@ export class ModelService {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Reports an error message.
|
* Reports an error message.
|
||||||
*
|
|
||||||
* @param error Data object with optional `message` and `status` fields for the error
|
* @param error Data object with optional `message` and `status` fields for the error
|
||||||
* @returns Error message
|
* @returns Error message
|
||||||
*/
|
*/
|
||||||
|
@@ -43,7 +43,6 @@ export class ProcessContentService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Create temporary related content from an uploaded file.
|
* Create temporary related content from an uploaded file.
|
||||||
*
|
|
||||||
* @param file File to use for content
|
* @param file File to use for content
|
||||||
* @returns The created content data
|
* @returns The created content data
|
||||||
*/
|
*/
|
||||||
@@ -53,7 +52,6 @@ export class ProcessContentService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the metadata for a related content item.
|
* Gets the metadata for a related content item.
|
||||||
*
|
|
||||||
* @param contentId ID of the content item
|
* @param contentId ID of the content item
|
||||||
* @returns Metadata for the content
|
* @returns Metadata for the content
|
||||||
*/
|
*/
|
||||||
@@ -63,7 +61,6 @@ export class ProcessContentService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets raw binary content data for a related content file.
|
* Gets raw binary content data for a related content file.
|
||||||
*
|
|
||||||
* @param contentId ID of the related content
|
* @param contentId ID of the related content
|
||||||
* @returns Binary data of the related content
|
* @returns Binary data of the related content
|
||||||
*/
|
*/
|
||||||
@@ -73,7 +70,6 @@ export class ProcessContentService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the preview for a related content file.
|
* Gets the preview for a related content file.
|
||||||
*
|
|
||||||
* @param contentId ID of the related content
|
* @param contentId ID of the related content
|
||||||
* @returns Binary data of the content preview
|
* @returns Binary data of the content preview
|
||||||
*/
|
*/
|
||||||
@@ -102,7 +98,6 @@ export class ProcessContentService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a URL for direct access to a related content file.
|
* Gets a URL for direct access to a related content file.
|
||||||
*
|
|
||||||
* @param contentId ID of the related content
|
* @param contentId ID of the related content
|
||||||
* @returns URL to access the content
|
* @returns URL to access the content
|
||||||
*/
|
*/
|
||||||
@@ -112,7 +107,6 @@ export class ProcessContentService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the thumbnail for a related content file.
|
* Gets the thumbnail for a related content file.
|
||||||
*
|
|
||||||
* @param contentId ID of the related content
|
* @param contentId ID of the related content
|
||||||
* @returns Binary data of the thumbnail image
|
* @returns Binary data of the thumbnail image
|
||||||
*/
|
*/
|
||||||
@@ -122,7 +116,6 @@ export class ProcessContentService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets related content items for a task instance.
|
* Gets related content items for a task instance.
|
||||||
*
|
|
||||||
* @param taskId ID of the target task
|
* @param taskId ID of the target task
|
||||||
* @param opts Options supported by JS-API
|
* @param opts Options supported by JS-API
|
||||||
* @returns Metadata for the content
|
* @returns Metadata for the content
|
||||||
@@ -133,7 +126,6 @@ export class ProcessContentService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets related content items for a process instance.
|
* Gets related content items for a process instance.
|
||||||
*
|
|
||||||
* @param processId ID of the target process
|
* @param processId ID of the target process
|
||||||
* @param opts Options supported by JS-API
|
* @param opts Options supported by JS-API
|
||||||
* @returns Metadata for the content
|
* @returns Metadata for the content
|
||||||
@@ -144,7 +136,6 @@ export class ProcessContentService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes related content.
|
* Deletes related content.
|
||||||
*
|
|
||||||
* @param contentId Identifier of the content to delete
|
* @param contentId Identifier of the content to delete
|
||||||
* @returns Null response that notifies when the deletion is complete
|
* @returns Null response that notifies when the deletion is complete
|
||||||
*/
|
*/
|
||||||
@@ -154,7 +145,6 @@ export class ProcessContentService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Associates an uploaded file with a process instance.
|
* Associates an uploaded file with a process instance.
|
||||||
*
|
|
||||||
* @param processInstanceId ID of the target process instance
|
* @param processInstanceId ID of the target process instance
|
||||||
* @param content File to associate
|
* @param content File to associate
|
||||||
* @param opts Options supported by JS-API
|
* @param opts Options supported by JS-API
|
||||||
@@ -168,7 +158,6 @@ export class ProcessContentService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Associates an uploaded file with a task instance.
|
* Associates an uploaded file with a task instance.
|
||||||
*
|
|
||||||
* @param taskId ID of the target task
|
* @param taskId ID of the target task
|
||||||
* @param file File to associate
|
* @param file File to associate
|
||||||
* @param opts Options supported by JS-API
|
* @param opts Options supported by JS-API
|
||||||
@@ -180,7 +169,6 @@ export class ProcessContentService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Lists processes and tasks on workflow started with provided document
|
* Lists processes and tasks on workflow started with provided document
|
||||||
*
|
|
||||||
* @param sourceId - id of the document that workflow or task has been started with
|
* @param sourceId - id of the document that workflow or task has been started with
|
||||||
* @param source - source of the document that workflow or task has been started with
|
* @param source - source of the document that workflow or task has been started with
|
||||||
* @param size - size of the entries to get
|
* @param size - size of the entries to get
|
||||||
@@ -198,7 +186,6 @@ export class ProcessContentService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a JSON representation of data.
|
* Creates a JSON representation of data.
|
||||||
*
|
|
||||||
* @param res Object representing data
|
* @param res Object representing data
|
||||||
* @returns JSON object
|
* @returns JSON object
|
||||||
*/
|
*/
|
||||||
@@ -211,7 +198,6 @@ export class ProcessContentService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a JSON array representation of data.
|
* Creates a JSON array representation of data.
|
||||||
*
|
|
||||||
* @param res Object representing data
|
* @param res Object representing data
|
||||||
* @returns JSON array object
|
* @returns JSON array object
|
||||||
*/
|
*/
|
||||||
@@ -224,7 +210,6 @@ export class ProcessContentService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Reports an error message.
|
* Reports an error message.
|
||||||
*
|
|
||||||
* @param error Data object with optional `message` and `status` fields for the error
|
* @param error Data object with optional `message` and `status` fields for the error
|
||||||
* @returns Callback when an error occurs
|
* @returns Callback when an error occurs
|
||||||
*/
|
*/
|
||||||
|
@@ -40,7 +40,6 @@ export class ProcessDefinitionService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets values of fields populated by a REST backend using a process ID.
|
* Gets values of fields populated by a REST backend using a process ID.
|
||||||
*
|
|
||||||
* @param processDefinitionId Process identifier
|
* @param processDefinitionId Process identifier
|
||||||
* @param field Field identifier
|
* @param field Field identifier
|
||||||
* @returns Field values
|
* @returns Field values
|
||||||
@@ -51,7 +50,6 @@ export class ProcessDefinitionService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets column values of fields populated by a REST backend using a process ID.
|
* Gets column values of fields populated by a REST backend using a process ID.
|
||||||
*
|
|
||||||
* @param processDefinitionId Process identifier
|
* @param processDefinitionId Process identifier
|
||||||
* @param field Field identifier
|
* @param field Field identifier
|
||||||
* @param column Column identifier
|
* @param column Column identifier
|
||||||
@@ -65,7 +63,6 @@ export class ProcessDefinitionService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a JSON representation of form data.
|
* Creates a JSON representation of form data.
|
||||||
*
|
|
||||||
* @param res Object representing form data
|
* @param res Object representing form data
|
||||||
* @returns JSON data
|
* @returns JSON data
|
||||||
*/
|
*/
|
||||||
@@ -78,7 +75,6 @@ export class ProcessDefinitionService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Reports an error message.
|
* Reports an error message.
|
||||||
*
|
|
||||||
* @param error Data object with optional `message` and `status` fields for the error
|
* @param error Data object with optional `message` and `status` fields for the error
|
||||||
* @returns Error message
|
* @returns Error message
|
||||||
*/
|
*/
|
||||||
|
@@ -40,7 +40,6 @@ export class TaskFormService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Saves a task form.
|
* Saves a task form.
|
||||||
*
|
|
||||||
* @param taskId Task Id
|
* @param taskId Task Id
|
||||||
* @param formValues Form Values
|
* @param formValues Form Values
|
||||||
* @returns Null response when the operation is complete
|
* @returns Null response when the operation is complete
|
||||||
@@ -53,7 +52,6 @@ export class TaskFormService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Completes a Task Form.
|
* Completes a Task Form.
|
||||||
*
|
|
||||||
* @param taskId Task Id
|
* @param taskId Task Id
|
||||||
* @param formValues Form Values
|
* @param formValues Form Values
|
||||||
* @param outcome Form Outcome
|
* @param outcome Form Outcome
|
||||||
@@ -70,7 +68,6 @@ export class TaskFormService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a form related to a task.
|
* Gets a form related to a task.
|
||||||
*
|
|
||||||
* @param taskId ID of the target task
|
* @param taskId ID of the target task
|
||||||
* @returns Form definition
|
* @returns Form definition
|
||||||
*/
|
*/
|
||||||
@@ -83,7 +80,6 @@ export class TaskFormService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets values of fields populated by a REST backend.
|
* Gets values of fields populated by a REST backend.
|
||||||
*
|
|
||||||
* @param taskId Task identifier
|
* @param taskId Task identifier
|
||||||
* @param field Field identifier
|
* @param field Field identifier
|
||||||
* @returns Field values
|
* @returns Field values
|
||||||
@@ -94,7 +90,6 @@ export class TaskFormService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets column values of fields populated by a REST backend.
|
* Gets column values of fields populated by a REST backend.
|
||||||
*
|
|
||||||
* @param taskId Task identifier
|
* @param taskId Task identifier
|
||||||
* @param field Field identifier
|
* @param field Field identifier
|
||||||
* @param column Column identifier
|
* @param column Column identifier
|
||||||
@@ -113,7 +108,6 @@ export class TaskFormService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a JSON representation of form data.
|
* Creates a JSON representation of form data.
|
||||||
*
|
|
||||||
* @param res Object representing form data
|
* @param res Object representing form data
|
||||||
* @returns JSON data
|
* @returns JSON data
|
||||||
*/
|
*/
|
||||||
@@ -126,7 +120,6 @@ export class TaskFormService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Reports an error message.
|
* Reports an error message.
|
||||||
*
|
|
||||||
* @param error Data object with optional `message` and `status` fields for the error
|
* @param error Data object with optional `message` and `status` fields for the error
|
||||||
* @returns Error message
|
* @returns Error message
|
||||||
*/
|
*/
|
||||||
|
@@ -38,7 +38,6 @@ export class TaskService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a task.
|
* Gets a task.
|
||||||
*
|
|
||||||
* @param taskId Task Id
|
* @param taskId Task Id
|
||||||
* @returns Task info
|
* @returns Task info
|
||||||
*/
|
*/
|
||||||
@@ -51,7 +50,6 @@ export class TaskService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a JSON representation of form data.
|
* Creates a JSON representation of form data.
|
||||||
*
|
|
||||||
* @param res Object representing form data
|
* @param res Object representing form data
|
||||||
* @returns JSON data
|
* @returns JSON data
|
||||||
*/
|
*/
|
||||||
@@ -64,7 +62,6 @@ export class TaskService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Reports an error message.
|
* Reports an error message.
|
||||||
*
|
|
||||||
* @param error Data object with optional `message` and `status` fields for the error
|
* @param error Data object with optional `message` and `status` fields for the error
|
||||||
* @returns Error message
|
* @returns Error message
|
||||||
*/
|
*/
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
<mat-card-content class="adf-start-form-actions" *ngIf="showOutcomeButtons && form.hasOutcomes()"
|
<mat-card-content class="adf-start-form-actions" *ngIf="showOutcomeButtons && form.hasOutcomes()"
|
||||||
#outcomesContainer>
|
#outcomesContainer>
|
||||||
<ng-content select="[adf-form-custom-button], [form-custom-button]"></ng-content>
|
<ng-content select="[adf-form-custom-button], [form-custom-button]" />
|
||||||
|
|
||||||
<button *ngFor="let outcome of form.outcomes"
|
<button *ngFor="let outcome of form.outcomes"
|
||||||
mat-button
|
mat-button
|
||||||
|
@@ -42,7 +42,6 @@ export class AttachFileWidgetDialogService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Opens a dialog to choose a file to upload.
|
* Opens a dialog to choose a file to upload.
|
||||||
*
|
|
||||||
* @param repository Alfresco endpoint that represents the content service
|
* @param repository Alfresco endpoint that represents the content service
|
||||||
* @param currentFolderId Upload file from specific folder
|
* @param currentFolderId Upload file from specific folder
|
||||||
* @param accountIdentifier account identifier
|
* @param accountIdentifier account identifier
|
||||||
|
@@ -130,7 +130,6 @@ export class ContentWidgetComponent implements OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Invoke content download.
|
* Invoke content download.
|
||||||
*
|
|
||||||
* @param content content link model
|
* @param content content link model
|
||||||
*/
|
*/
|
||||||
download(content: ContentLinkModel): void {
|
download(content: ContentLinkModel): void {
|
||||||
|
@@ -76,7 +76,7 @@ export class DynamicTableModel extends FormWidgetModel {
|
|||||||
private getColumns(field: FormFieldModel): DynamicTableColumn[] {
|
private getColumns(field: FormFieldModel): DynamicTableColumn[] {
|
||||||
if (field?.json) {
|
if (field?.json) {
|
||||||
let definitions = field.json.columnDefinitions;
|
let definitions = field.json.columnDefinitions;
|
||||||
if (!definitions && field.json.params && field.json.params.field) {
|
if (!definitions && field.json.params?.field) {
|
||||||
definitions = field.json.params.field.columnDefinitions;
|
definitions = field.json.params.field.columnDefinitions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -37,7 +37,6 @@ export class CommentProcessService implements CommentsService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets all comments that have been added to a process instance.
|
* Gets all comments that have been added to a process instance.
|
||||||
*
|
|
||||||
* @param id ID of the target process instance
|
* @param id ID of the target process instance
|
||||||
* @returns Details for each comment
|
* @returns Details for each comment
|
||||||
*/
|
*/
|
||||||
@@ -59,7 +58,6 @@ export class CommentProcessService implements CommentsService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a comment to a process instance.
|
* Adds a comment to a process instance.
|
||||||
*
|
|
||||||
* @param id ID of the target process instance
|
* @param id ID of the target process instance
|
||||||
* @param message Text for the comment
|
* @param message Text for the comment
|
||||||
* @returns Details of the comment added
|
* @returns Details of the comment added
|
||||||
|
@@ -125,7 +125,6 @@ export class ProcessFiltersComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the filter list filtered by appId
|
* Return the filter list filtered by appId
|
||||||
*
|
|
||||||
* @param appId - optional
|
* @param appId - optional
|
||||||
*/
|
*/
|
||||||
getFiltersByAppId(appId?: number) {
|
getFiltersByAppId(appId?: number) {
|
||||||
@@ -158,7 +157,6 @@ export class ProcessFiltersComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the filter list filtered by appName
|
* Return the filter list filtered by appName
|
||||||
*
|
|
||||||
* @param appName application name
|
* @param appName application name
|
||||||
*/
|
*/
|
||||||
getFiltersByAppName(appName: string): void {
|
getFiltersByAppName(appName: string): void {
|
||||||
@@ -175,7 +173,6 @@ export class ProcessFiltersComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Pass the selected filter as next
|
* Pass the selected filter as next
|
||||||
*
|
|
||||||
* @param filterModel filter model
|
* @param filterModel filter model
|
||||||
*/
|
*/
|
||||||
selectFilter(filterModel: ProcessInstanceFilterRepresentation) {
|
selectFilter(filterModel: ProcessInstanceFilterRepresentation) {
|
||||||
@@ -186,7 +183,6 @@ export class ProcessFiltersComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Select the first filter of a list if present
|
* Select the first filter of a list if present
|
||||||
*
|
|
||||||
* @param filterParam filter parameter
|
* @param filterParam filter parameter
|
||||||
*/
|
*/
|
||||||
selectProcessFilter(filterParam: UserProcessInstanceFilterRepresentation): void {
|
selectProcessFilter(filterParam: UserProcessInstanceFilterRepresentation): void {
|
||||||
@@ -207,7 +203,6 @@ export class ProcessFiltersComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Select the Running filter
|
* Select the Running filter
|
||||||
*
|
|
||||||
* @deprecated in 3.9.0, Use the filterParam Input() with a running filter instance instead
|
* @deprecated in 3.9.0, Use the filterParam Input() with a running filter instance instead
|
||||||
*/
|
*/
|
||||||
selectRunningFilter() {
|
selectRunningFilter() {
|
||||||
@@ -216,7 +211,6 @@ export class ProcessFiltersComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the current task
|
* Get the current task
|
||||||
*
|
|
||||||
* @returns process instance filter
|
* @returns process instance filter
|
||||||
*/
|
*/
|
||||||
getCurrentFilter(): ProcessInstanceFilterRepresentation {
|
getCurrentFilter(): ProcessInstanceFilterRepresentation {
|
||||||
@@ -225,7 +219,6 @@ export class ProcessFiltersComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the filter list is empty
|
* Check if the filter list is empty
|
||||||
*
|
|
||||||
* @returns `true` if filter list is empty, otherwise `false`
|
* @returns `true` if filter list is empty, otherwise `false`
|
||||||
*/
|
*/
|
||||||
isFilterListEmpty(): boolean {
|
isFilterListEmpty(): boolean {
|
||||||
@@ -234,7 +227,6 @@ export class ProcessFiltersComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the material icons equivalent of the glyphicon icon
|
* Get the material icons equivalent of the glyphicon icon
|
||||||
*
|
|
||||||
* @param icon glyphicon name
|
* @param icon glyphicon name
|
||||||
* @returns material icons equivalent of the icon
|
* @returns material icons equivalent of the icon
|
||||||
*/
|
*/
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
class="adf-process-list-loading-margin"
|
class="adf-process-list-loading-margin"
|
||||||
color="primary"
|
color="primary"
|
||||||
mode="indeterminate" />
|
mode="indeterminate" />
|
||||||
<ng-content select="adf-custom-loading-content-template"></ng-content>
|
<ng-content select="adf-custom-loading-content-template" />
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</adf-loading-content-template>
|
</adf-loading-content-template>
|
||||||
<adf-no-content-template>
|
<adf-no-content-template>
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
icon="assessment"
|
icon="assessment"
|
||||||
[title]="(requestNode ? 'ADF_PROCESS_LIST.LIST.TITLE' : 'ADF_PROCESS_LIST.FILTERS.MESSAGES.NONE') | translate"
|
[title]="(requestNode ? 'ADF_PROCESS_LIST.LIST.TITLE' : 'ADF_PROCESS_LIST.FILTERS.MESSAGES.NONE') | translate"
|
||||||
[subtitle]="'ADF_PROCESS_LIST.LIST.SUBTITLE'| translate" />
|
[subtitle]="'ADF_PROCESS_LIST.LIST.SUBTITLE'| translate" />
|
||||||
<ng-content select="adf-custom-empty-content-template"></ng-content>
|
<ng-content select="adf-custom-empty-content-template" />
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</adf-no-content-template>
|
</adf-no-content-template>
|
||||||
</adf-datatable>
|
</adf-datatable>
|
||||||
|
@@ -252,7 +252,6 @@ export class ProcessInstanceListComponent extends DataTableSchema implements OnC
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the id of the current instance
|
* Get the id of the current instance
|
||||||
*
|
|
||||||
* @returns instance id
|
* @returns instance id
|
||||||
*/
|
*/
|
||||||
getCurrentId(): string {
|
getCurrentId(): string {
|
||||||
@@ -261,7 +260,6 @@ export class ProcessInstanceListComponent extends DataTableSchema implements OnC
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the list is empty
|
* Check if the list is empty
|
||||||
*
|
|
||||||
* @returns `true` if list is empty, otherwise `false`
|
* @returns `true` if list is empty, otherwise `false`
|
||||||
*/
|
*/
|
||||||
isListEmpty(): boolean {
|
isListEmpty(): boolean {
|
||||||
@@ -270,7 +268,6 @@ export class ProcessInstanceListComponent extends DataTableSchema implements OnC
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Emit the event rowClick passing the current task id when the row is clicked
|
* Emit the event rowClick passing the current task id when the row is clicked
|
||||||
*
|
|
||||||
* @param event input event
|
* @param event input event
|
||||||
*/
|
*/
|
||||||
onRowClick(event: DataRowEvent) {
|
onRowClick(event: DataRowEvent) {
|
||||||
@@ -286,7 +283,6 @@ export class ProcessInstanceListComponent extends DataTableSchema implements OnC
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Emit the event rowClick passing the current task id when pressed the Enter key on the selected row
|
* Emit the event rowClick passing the current task id when pressed the Enter key on the selected row
|
||||||
*
|
|
||||||
* @param event keyboard event
|
* @param event keyboard event
|
||||||
*/
|
*/
|
||||||
onRowKeyUp(event: CustomEvent<any>) {
|
onRowKeyUp(event: CustomEvent<any>) {
|
||||||
|
@@ -77,7 +77,6 @@ describe('StartProcessComponent', () => {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Change application id
|
* Change application id
|
||||||
*
|
|
||||||
* @param appId application id
|
* @param appId application id
|
||||||
*/
|
*/
|
||||||
function changeAppId(appId: number) {
|
function changeAppId(appId: number) {
|
||||||
|
@@ -39,7 +39,6 @@ export class ProcessFilterService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets all filters defined for a Process App.
|
* Gets all filters defined for a Process App.
|
||||||
*
|
|
||||||
* @param appId ID of the target app
|
* @param appId ID of the target app
|
||||||
* @returns Array of filter details
|
* @returns Array of filter details
|
||||||
*/
|
*/
|
||||||
@@ -59,7 +58,6 @@ export class ProcessFilterService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the process filter by ID.
|
* Retrieves the process filter by ID.
|
||||||
*
|
|
||||||
* @param filterId ID of the filter
|
* @param filterId ID of the filter
|
||||||
* @param appId ID of the target app
|
* @param appId ID of the target app
|
||||||
* @returns Details of the filter
|
* @returns Details of the filter
|
||||||
@@ -70,7 +68,6 @@ export class ProcessFilterService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the process filter by name.
|
* Retrieves the process filter by name.
|
||||||
*
|
|
||||||
* @param filterName Name of the filter
|
* @param filterName Name of the filter
|
||||||
* @param appId ID of the target app
|
* @param appId ID of the target app
|
||||||
* @returns Details of the filter
|
* @returns Details of the filter
|
||||||
@@ -81,7 +78,6 @@ export class ProcessFilterService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and returns the default filters for an app.
|
* Creates and returns the default filters for an app.
|
||||||
*
|
|
||||||
* @param appId ID of the target app
|
* @param appId ID of the target app
|
||||||
* @returns Default filters just created
|
* @returns Default filters just created
|
||||||
*/
|
*/
|
||||||
@@ -117,7 +113,6 @@ export class ProcessFilterService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if a filter with the given name already exists in the list of filters.
|
* Checks if a filter with the given name already exists in the list of filters.
|
||||||
*
|
|
||||||
* @param filters - An array of objects representing the existing filters.
|
* @param filters - An array of objects representing the existing filters.
|
||||||
* @param filterName - The name of the filter to check for existence.
|
* @param filterName - The name of the filter to check for existence.
|
||||||
* @returns - True if a filter with the specified name already exists, false otherwise.
|
* @returns - True if a filter with the specified name already exists, false otherwise.
|
||||||
@@ -128,7 +123,6 @@ export class ProcessFilterService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and returns a filter that matches "running" process instances.
|
* Creates and returns a filter that matches "running" process instances.
|
||||||
*
|
|
||||||
* @param appId ID of the target app
|
* @param appId ID of the target app
|
||||||
* @param index of the filter (optional)
|
* @param index of the filter (optional)
|
||||||
* @returns Filter just created
|
* @returns Filter just created
|
||||||
@@ -146,7 +140,6 @@ export class ProcessFilterService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a filter.
|
* Adds a filter.
|
||||||
*
|
|
||||||
* @param filter The filter to add
|
* @param filter The filter to add
|
||||||
* @returns The filter just added
|
* @returns The filter just added
|
||||||
*/
|
*/
|
||||||
@@ -156,7 +149,6 @@ export class ProcessFilterService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Calls `getUserProcessInstanceFilters` from the Alfresco JS API.
|
* Calls `getUserProcessInstanceFilters` from the Alfresco JS API.
|
||||||
*
|
|
||||||
* @param appId ID of the target app
|
* @param appId ID of the target app
|
||||||
* @returns List of filter details
|
* @returns List of filter details
|
||||||
*/
|
*/
|
||||||
|
@@ -64,7 +64,6 @@ export class ProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets process instances for a filter and optionally a process definition.
|
* Gets process instances for a filter and optionally a process definition.
|
||||||
*
|
|
||||||
* @param requestNode Filter for instances
|
* @param requestNode Filter for instances
|
||||||
* @param processDefinitionKey Limits returned instances to a process definition
|
* @param processDefinitionKey Limits returned instances to a process definition
|
||||||
* @returns List of process instances
|
* @returns List of process instances
|
||||||
@@ -85,7 +84,6 @@ export class ProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets processes for a filter and optionally a process definition.
|
* Gets processes for a filter and optionally a process definition.
|
||||||
*
|
|
||||||
* @param requestNode Filter for instances
|
* @param requestNode Filter for instances
|
||||||
* @param processDefinitionKey Limits returned instances to a process definition
|
* @param processDefinitionKey Limits returned instances to a process definition
|
||||||
* @returns List of processes
|
* @returns List of processes
|
||||||
@@ -107,7 +105,6 @@ export class ProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetches the Process Audit information as a PDF.
|
* Fetches the Process Audit information as a PDF.
|
||||||
*
|
|
||||||
* @param processId ID of the target process
|
* @param processId ID of the target process
|
||||||
* @returns Binary PDF data
|
* @returns Binary PDF data
|
||||||
*/
|
*/
|
||||||
@@ -117,7 +114,6 @@ export class ProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetches the Process Audit information in a JSON format.
|
* Fetches the Process Audit information in a JSON format.
|
||||||
*
|
|
||||||
* @param processId ID of the target process
|
* @param processId ID of the target process
|
||||||
* @returns JSON data
|
* @returns JSON data
|
||||||
*/
|
*/
|
||||||
@@ -127,7 +123,6 @@ export class ProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets Process Instance metadata.
|
* Gets Process Instance metadata.
|
||||||
*
|
|
||||||
* @param processInstanceId ID of the target process
|
* @param processInstanceId ID of the target process
|
||||||
* @returns Metadata for the instance
|
* @returns Metadata for the instance
|
||||||
*/
|
*/
|
||||||
@@ -137,7 +132,6 @@ export class ProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the start form definition for a given process.
|
* Gets the start form definition for a given process.
|
||||||
*
|
|
||||||
* @param processId Process definition ID
|
* @param processId Process definition ID
|
||||||
* @returns Form definition
|
* @returns Form definition
|
||||||
*/
|
*/
|
||||||
@@ -147,7 +141,6 @@ export class ProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the start form instance for a given process.
|
* Gets the start form instance for a given process.
|
||||||
*
|
|
||||||
* @param processId Process definition ID
|
* @param processId Process definition ID
|
||||||
* @returns Form definition
|
* @returns Form definition
|
||||||
*/
|
*/
|
||||||
@@ -157,7 +150,6 @@ export class ProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a JSON representation of form data.
|
* Creates a JSON representation of form data.
|
||||||
*
|
|
||||||
* @param res Object representing form data
|
* @param res Object representing form data
|
||||||
* @returns JSON data
|
* @returns JSON data
|
||||||
*/
|
*/
|
||||||
@@ -170,7 +162,6 @@ export class ProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets task instances for a process instance.
|
* Gets task instances for a process instance.
|
||||||
*
|
|
||||||
* @param processInstanceId ID of the process instance
|
* @param processInstanceId ID of the process instance
|
||||||
* @param state Task state filter (can be "active" or "completed")
|
* @param state Task state filter (can be "active" or "completed")
|
||||||
* @returns Array of task instance details
|
* @returns Array of task instance details
|
||||||
@@ -197,7 +188,6 @@ export class ProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets process definitions associated with an app.
|
* Gets process definitions associated with an app.
|
||||||
*
|
|
||||||
* @param appId ID of a target app
|
* @param appId ID of a target app
|
||||||
* @returns Array of process definitions
|
* @returns Array of process definitions
|
||||||
*/
|
*/
|
||||||
@@ -215,7 +205,6 @@ export class ProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Starts a process based on a process definition, name, form values or variables.
|
* Starts a process based on a process definition, name, form values or variables.
|
||||||
*
|
|
||||||
* @param processDefinitionId Process definition ID
|
* @param processDefinitionId Process definition ID
|
||||||
* @param name Process name
|
* @param name Process name
|
||||||
* @param outcome Process outcome
|
* @param outcome Process outcome
|
||||||
@@ -248,7 +237,6 @@ export class ProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Cancels a process instance.
|
* Cancels a process instance.
|
||||||
*
|
|
||||||
* @param processInstanceId ID of process to cancel
|
* @param processInstanceId ID of process to cancel
|
||||||
* @returns Null response notifying when the operation is complete
|
* @returns Null response notifying when the operation is complete
|
||||||
*/
|
*/
|
||||||
@@ -258,7 +246,6 @@ export class ProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the variables for a process instance.
|
* Gets the variables for a process instance.
|
||||||
*
|
|
||||||
* @param processInstanceId ID of the target process
|
* @param processInstanceId ID of the target process
|
||||||
* @returns Array of instance variable info
|
* @returns Array of instance variable info
|
||||||
*/
|
*/
|
||||||
@@ -268,7 +255,6 @@ export class ProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates or updates variables for a process instance.
|
* Creates or updates variables for a process instance.
|
||||||
*
|
|
||||||
* @param processInstanceId ID of the target process
|
* @param processInstanceId ID of the target process
|
||||||
* @param variables Variables to update
|
* @param variables Variables to update
|
||||||
* @returns Array of instance variable info
|
* @returns Array of instance variable info
|
||||||
@@ -279,7 +265,6 @@ export class ProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes a variable for a process instance.
|
* Deletes a variable for a process instance.
|
||||||
*
|
|
||||||
* @param processInstanceId ID of the target process
|
* @param processInstanceId ID of the target process
|
||||||
* @param variableName Name of the variable to delete
|
* @param variableName Name of the variable to delete
|
||||||
* @returns Null response notifying when the operation is complete
|
* @returns Null response notifying when the operation is complete
|
||||||
|
@@ -35,7 +35,6 @@ export class AppsProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a list of deployed apps for this user.
|
* Gets a list of deployed apps for this user.
|
||||||
*
|
|
||||||
* @returns The list of deployed apps
|
* @returns The list of deployed apps
|
||||||
*/
|
*/
|
||||||
getDeployedApplications(): Observable<AppDefinitionRepresentation[]> {
|
getDeployedApplications(): Observable<AppDefinitionRepresentation[]> {
|
||||||
@@ -44,7 +43,6 @@ export class AppsProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a list of deployed apps for this user, where the app name is `name`.
|
* Gets a list of deployed apps for this user, where the app name is `name`.
|
||||||
*
|
|
||||||
* @param name Name of the app
|
* @param name Name of the app
|
||||||
* @returns The list of deployed apps
|
* @returns The list of deployed apps
|
||||||
*/
|
*/
|
||||||
|
@@ -54,7 +54,6 @@ export class PeopleProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets information about the current user.
|
* Gets information about the current user.
|
||||||
*
|
|
||||||
* @returns User information object
|
* @returns User information object
|
||||||
*/
|
*/
|
||||||
getCurrentUserInfo(): Observable<UserRepresentation> {
|
getCurrentUserInfo(): Observable<UserRepresentation> {
|
||||||
@@ -63,7 +62,6 @@ export class PeopleProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the current user's profile image as a URL.
|
* Gets the current user's profile image as a URL.
|
||||||
*
|
|
||||||
* @returns URL string
|
* @returns URL string
|
||||||
*/
|
*/
|
||||||
getCurrentUserProfileImage(): string {
|
getCurrentUserProfileImage(): string {
|
||||||
@@ -72,7 +70,6 @@ export class PeopleProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a list of groups in a workflow.
|
* Gets a list of groups in a workflow.
|
||||||
*
|
|
||||||
* @param filter Filter to select specific groups
|
* @param filter Filter to select specific groups
|
||||||
* @param groupId Group ID for the search
|
* @param groupId Group ID for the search
|
||||||
* @returns Array of groups
|
* @returns Array of groups
|
||||||
@@ -87,7 +84,6 @@ export class PeopleProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets information about users across all tasks.
|
* Gets information about users across all tasks.
|
||||||
*
|
|
||||||
* @param taskId ID of the task
|
* @param taskId ID of the task
|
||||||
* @param searchWord Filter text to search for
|
* @param searchWord Filter text to search for
|
||||||
* @param groupId group id
|
* @param groupId group id
|
||||||
@@ -100,7 +96,6 @@ export class PeopleProcessService {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Gets the profile picture URL for the specified user.
|
* Gets the profile picture URL for the specified user.
|
||||||
*
|
|
||||||
* @param userId The target user
|
* @param userId The target user
|
||||||
* @returns Profile picture URL
|
* @returns Profile picture URL
|
||||||
*/
|
*/
|
||||||
@@ -110,7 +105,6 @@ export class PeopleProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets a user to be involved with a task.
|
* Sets a user to be involved with a task.
|
||||||
*
|
|
||||||
* @param taskId ID of the target task
|
* @param taskId ID of the target task
|
||||||
* @param idToInvolve ID of the user to involve
|
* @param idToInvolve ID of the user to involve
|
||||||
* @returns Empty response when the update completes
|
* @returns Empty response when the update completes
|
||||||
@@ -121,7 +115,6 @@ export class PeopleProcessService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes a user who is currently involved with a task.
|
* Removes a user who is currently involved with a task.
|
||||||
*
|
|
||||||
* @param taskId ID of the target task
|
* @param taskId ID of the target task
|
||||||
* @param idToRemove ID of the user to remove
|
* @param idToRemove ID of the user to remove
|
||||||
* @returns Empty response when the update completes
|
* @returns Empty response when the update completes
|
||||||
|
@@ -38,7 +38,6 @@ export class TaskCommentsService implements CommentsService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets all comments that have been added to a task.
|
* Gets all comments that have been added to a task.
|
||||||
*
|
|
||||||
* @param id ID of the target task
|
* @param id ID of the target task
|
||||||
* @returns Details for each comment
|
* @returns Details for each comment
|
||||||
*/
|
*/
|
||||||
@@ -48,7 +47,6 @@ export class TaskCommentsService implements CommentsService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a comment to a task.
|
* Adds a comment to a task.
|
||||||
*
|
|
||||||
* @param id ID of the target task
|
* @param id ID of the target task
|
||||||
* @param message Text for the comment
|
* @param message Text for the comment
|
||||||
* @returns Details about the comment
|
* @returns Details about the comment
|
||||||
|
@@ -127,7 +127,6 @@ export class TaskFiltersComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the filter list filtered by appId
|
* Return the filter list filtered by appId
|
||||||
*
|
|
||||||
* @param appId - optional
|
* @param appId - optional
|
||||||
*/
|
*/
|
||||||
getFiltersByAppId(appId?: number) {
|
getFiltersByAppId(appId?: number) {
|
||||||
@@ -150,7 +149,6 @@ export class TaskFiltersComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the filter list filtered by appName
|
* Return the filter list filtered by appName
|
||||||
*
|
|
||||||
* @param appName application name
|
* @param appName application name
|
||||||
*/
|
*/
|
||||||
getFiltersByAppName(appName: string): void {
|
getFiltersByAppName(appName: string): void {
|
||||||
@@ -166,7 +164,6 @@ export class TaskFiltersComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Create default filters by appId
|
* Create default filters by appId
|
||||||
*
|
|
||||||
* @param appId application id
|
* @param appId application id
|
||||||
*/
|
*/
|
||||||
private createFiltersByAppId(appId?: number): void {
|
private createFiltersByAppId(appId?: number): void {
|
||||||
@@ -185,7 +182,6 @@ export class TaskFiltersComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Pass the selected filter as next
|
* Pass the selected filter as next
|
||||||
*
|
|
||||||
* @param newFilter new filter model
|
* @param newFilter new filter model
|
||||||
*/
|
*/
|
||||||
public selectFilter(newFilter: UserTaskFilterRepresentation): void {
|
public selectFilter(newFilter: UserTaskFilterRepresentation): void {
|
||||||
@@ -206,7 +202,6 @@ export class TaskFiltersComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Selects and emits the clicked filter.
|
* Selects and emits the clicked filter.
|
||||||
*
|
|
||||||
* @param filterParams filter parameters model
|
* @param filterParams filter parameters model
|
||||||
*/
|
*/
|
||||||
onFilterClick(filterParams: UserTaskFilterRepresentation) {
|
onFilterClick(filterParams: UserTaskFilterRepresentation) {
|
||||||
@@ -216,7 +211,6 @@ export class TaskFiltersComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Select filter with task
|
* Select filter with task
|
||||||
*
|
|
||||||
* @param taskId task id
|
* @param taskId task id
|
||||||
*/
|
*/
|
||||||
selectFilterWithTask(taskId: string): void {
|
selectFilterWithTask(taskId: string): void {
|
||||||
@@ -239,7 +233,6 @@ export class TaskFiltersComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the current filter
|
* Get the current filter
|
||||||
*
|
|
||||||
* @returns filter model
|
* @returns filter model
|
||||||
*/
|
*/
|
||||||
getCurrentFilter(): UserTaskFilterRepresentation {
|
getCurrentFilter(): UserTaskFilterRepresentation {
|
||||||
@@ -248,7 +241,6 @@ export class TaskFiltersComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the filter list is empty
|
* Check if the filter list is empty
|
||||||
*
|
|
||||||
* @returns `true` if filter list is empty, otherwise `false`
|
* @returns `true` if filter list is empty, otherwise `false`
|
||||||
*/
|
*/
|
||||||
isFilterListEmpty(): boolean {
|
isFilterListEmpty(): boolean {
|
||||||
@@ -257,7 +249,6 @@ export class TaskFiltersComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the material icons equivalent of the glyphicon icon
|
* Get the material icons equivalent of the glyphicon icon
|
||||||
*
|
|
||||||
* @param icon glyphicon name
|
* @param icon glyphicon name
|
||||||
* @returns material icons equivalent of the icon
|
* @returns material icons equivalent of the icon
|
||||||
*/
|
*/
|
||||||
|
@@ -17,8 +17,7 @@
|
|||||||
(error)='onError($event)'
|
(error)='onError($event)'
|
||||||
(executeOutcome)='onFormExecuteOutcome($event)'>
|
(executeOutcome)='onFormExecuteOutcome($event)'>
|
||||||
<adf-form-custom-outcomes>
|
<adf-form-custom-outcomes>
|
||||||
<ng-template [ngTemplateOutlet]="taskFormButtons">
|
<ng-template [ngTemplateOutlet]="taskFormButtons" />
|
||||||
</ng-template>
|
|
||||||
</adf-form-custom-outcomes>
|
</adf-form-custom-outcomes>
|
||||||
</adf-form>
|
</adf-form>
|
||||||
<ng-template #withoutForm>
|
<ng-template #withoutForm>
|
||||||
@@ -58,7 +57,7 @@
|
|||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
<mat-card-actions align="end">
|
<mat-card-actions align="end">
|
||||||
<div class="adf-task-form-actions">
|
<div class="adf-task-form-actions">
|
||||||
<ng-template [ngTemplateOutlet]="taskFormButtons"></ng-template>
|
<ng-template [ngTemplateOutlet]="taskFormButtons" />
|
||||||
<button mat-button
|
<button mat-button
|
||||||
*ngIf="!isCompletedTask()" id="adf-no-form-complete-button"
|
*ngIf="!isCompletedTask()" id="adf-no-form-complete-button"
|
||||||
color="primary"
|
color="primary"
|
||||||
|
@@ -176,7 +176,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the process parent information
|
* Get the process parent information
|
||||||
*
|
|
||||||
* @returns a map of process instance and definition
|
* @returns a map of process instance and definition
|
||||||
*/
|
*/
|
||||||
private getParentInfo(): Map<string, string> {
|
private getParentInfo(): Map<string, string> {
|
||||||
@@ -188,7 +187,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the task has an assignee
|
* Check if the task has an assignee
|
||||||
*
|
|
||||||
* @returns `true` if the task has an assignee, otherwise `false`
|
* @returns `true` if the task has an assignee, otherwise `false`
|
||||||
*/
|
*/
|
||||||
hasAssignee(): boolean {
|
hasAssignee(): boolean {
|
||||||
@@ -197,7 +195,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the task is assigned to a user
|
* Check if the task is assigned to a user
|
||||||
*
|
|
||||||
* @param userId the id of the user to check
|
* @param userId the id of the user to check
|
||||||
* @returns `true` if the task assigned to a user, otherwise `false`
|
* @returns `true` if the task assigned to a user, otherwise `false`
|
||||||
*/
|
*/
|
||||||
@@ -207,7 +204,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the task is assigned to the current user
|
* Check if the task is assigned to the current user
|
||||||
*
|
|
||||||
* @returns `true` if the task assigned to current user, otherwise `false`
|
* @returns `true` if the task assigned to current user, otherwise `false`
|
||||||
*/
|
*/
|
||||||
isAssignedToCurrentUser(): boolean {
|
isAssignedToCurrentUser(): boolean {
|
||||||
@@ -216,7 +212,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the user is a candidate member
|
* Check if the user is a candidate member
|
||||||
*
|
|
||||||
* @returns `true` if user is a candidate member, otherwise false
|
* @returns `true` if user is a candidate member, otherwise false
|
||||||
*/
|
*/
|
||||||
isCandidateMember(): boolean {
|
isCandidateMember(): boolean {
|
||||||
@@ -225,7 +220,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the task is claimable
|
* Check if the task is claimable
|
||||||
*
|
|
||||||
* @returns `true` if task can be claimed, otherwise `false`
|
* @returns `true` if task can be claimed, otherwise `false`
|
||||||
*/
|
*/
|
||||||
isTaskClaimable(): boolean {
|
isTaskClaimable(): boolean {
|
||||||
@@ -234,7 +228,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return true if the task claimed by candidate member.
|
* Return true if the task claimed by candidate member.
|
||||||
*
|
|
||||||
* @returns `true` if the task is claimed, otherwise `false`
|
* @returns `true` if the task is claimed, otherwise `false`
|
||||||
*/
|
*/
|
||||||
isTaskClaimedByCandidateMember(): boolean {
|
isTaskClaimedByCandidateMember(): boolean {
|
||||||
@@ -243,7 +236,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the status of the task
|
* Get the status of the task
|
||||||
*
|
|
||||||
* @returns `Completed` or `Running`
|
* @returns `Completed` or `Running`
|
||||||
*/
|
*/
|
||||||
getTaskStatus(): 'Completed' | 'Running' {
|
getTaskStatus(): 'Completed' | 'Running' {
|
||||||
@@ -252,7 +244,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Emit the claim event
|
* Emit the claim event
|
||||||
*
|
|
||||||
* @param taskId the id of the task to claim
|
* @param taskId the id of the task to claim
|
||||||
*/
|
*/
|
||||||
onClaimTask(taskId: string) {
|
onClaimTask(taskId: string) {
|
||||||
@@ -261,7 +252,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Emit the unclaim event
|
* Emit the unclaim event
|
||||||
*
|
|
||||||
* @param taskId the id of the task to unclaim
|
* @param taskId the id of the task to unclaim
|
||||||
*/
|
*/
|
||||||
onUnclaimTask(taskId: string) {
|
onUnclaimTask(taskId: string) {
|
||||||
@@ -270,7 +260,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the task completion state
|
* Returns the task completion state
|
||||||
*
|
|
||||||
* @returns `true` if the task is completed, otherwise `false`
|
* @returns `true` if the task is completed, otherwise `false`
|
||||||
*/
|
*/
|
||||||
isCompleted(): boolean {
|
isCompleted(): boolean {
|
||||||
@@ -279,7 +268,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the form is clickable
|
* Check if the form is clickable
|
||||||
*
|
|
||||||
* @returns `true` if the form is clickable, otherwise `false`
|
* @returns `true` if the form is clickable, otherwise `false`
|
||||||
*/
|
*/
|
||||||
isFormClickable(): boolean {
|
isFormClickable(): boolean {
|
||||||
@@ -288,7 +276,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the task duration
|
* Get the task duration
|
||||||
*
|
|
||||||
* @returns the task duration in milliseconds
|
* @returns the task duration in milliseconds
|
||||||
*/
|
*/
|
||||||
getTaskDuration(): string {
|
getTaskDuration(): string {
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
<ng-template>
|
<ng-template>
|
||||||
<!--Add your custom loading template here-->
|
<!--Add your custom loading template here-->
|
||||||
<mat-progress-spinner *ngIf="!customLoadingContent" class="adf-task-list-loading-margin" color="primary" mode="indeterminate" />
|
<mat-progress-spinner *ngIf="!customLoadingContent" class="adf-task-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>
|
</ng-template>
|
||||||
</adf-loading-content-template>
|
</adf-loading-content-template>
|
||||||
<adf-no-content-template>
|
<adf-no-content-template>
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
[title]="'ADF_TASK_LIST.LIST.MESSAGES.TITLE' | translate"
|
[title]="'ADF_TASK_LIST.LIST.MESSAGES.TITLE' | translate"
|
||||||
[subtitle]="'ADF_TASK_LIST.LIST.MESSAGES.SUBTITLE' | translate"
|
[subtitle]="'ADF_TASK_LIST.LIST.MESSAGES.SUBTITLE' | translate"
|
||||||
/>
|
/>
|
||||||
<ng-content select="adf-custom-empty-content-template"></ng-content>
|
<ng-content select="adf-custom-empty-content-template" />
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</adf-no-content-template>
|
</adf-no-content-template>
|
||||||
</adf-datatable>
|
</adf-datatable>
|
||||||
|
@@ -287,7 +287,6 @@ export class TaskListComponent extends DataTableSchema implements OnChanges, Aft
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Select the task given in input if present
|
* Select the task given in input if present
|
||||||
*
|
|
||||||
* @param taskIdSelected selected task id
|
* @param taskIdSelected selected task id
|
||||||
*/
|
*/
|
||||||
selectTask(taskIdSelected: string): void {
|
selectTask(taskIdSelected: string): void {
|
||||||
@@ -313,7 +312,6 @@ export class TaskListComponent extends DataTableSchema implements OnChanges, Aft
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the current instance id
|
* Return the current instance id
|
||||||
*
|
|
||||||
* @returns the current instance id
|
* @returns the current instance id
|
||||||
*/
|
*/
|
||||||
getCurrentId(): string {
|
getCurrentId(): string {
|
||||||
@@ -322,7 +320,6 @@ export class TaskListComponent extends DataTableSchema implements OnChanges, Aft
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the taskId is the same of the selected task
|
* Check if the taskId is the same of the selected task
|
||||||
*
|
|
||||||
* @param taskId task id
|
* @param taskId task id
|
||||||
* @returns `true` if current instance id is the same as task id, otherwise `false`
|
* @returns `true` if current instance id is the same as task id, otherwise `false`
|
||||||
*/
|
*/
|
||||||
@@ -332,7 +329,6 @@ export class TaskListComponent extends DataTableSchema implements OnChanges, Aft
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the list is empty
|
* Check if the list is empty
|
||||||
*
|
|
||||||
* @returns `true` if list is empty, otherwise `false`
|
* @returns `true` if list is empty, otherwise `false`
|
||||||
*/
|
*/
|
||||||
isListEmpty(): boolean {
|
isListEmpty(): boolean {
|
||||||
@@ -430,7 +426,6 @@ export class TaskListComponent extends DataTableSchema implements OnChanges, Aft
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Optimize name field
|
* Optimize name field
|
||||||
*
|
|
||||||
* @param instances task detail models
|
* @param instances task detail models
|
||||||
* @returns list of task detail models
|
* @returns list of task detail models
|
||||||
*/
|
*/
|
||||||
|
@@ -35,7 +35,6 @@ export class TaskFilterService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and returns the default filters for a process app.
|
* Creates and returns the default filters for a process app.
|
||||||
*
|
|
||||||
* @param appId ID of the target app
|
* @param appId ID of the target app
|
||||||
* @returns Array of default filters just created
|
* @returns Array of default filters just created
|
||||||
*/
|
*/
|
||||||
@@ -100,7 +99,6 @@ export class TaskFilterService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets all task filters for a process app.
|
* Gets all task filters for a process app.
|
||||||
*
|
|
||||||
* @param appId Optional ID for a specific app
|
* @param appId Optional ID for a specific app
|
||||||
* @returns Array of task filter details
|
* @returns Array of task filter details
|
||||||
*/
|
*/
|
||||||
@@ -121,7 +119,6 @@ export class TaskFilterService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if a filter with the given name already exists in the list of filters.
|
* Checks if a filter with the given name already exists in the list of filters.
|
||||||
*
|
|
||||||
* @param filters - An array of objects representing the existing filters.
|
* @param filters - An array of objects representing the existing filters.
|
||||||
* @param filterName - The name of the filter to check for existence.
|
* @param filterName - The name of the filter to check for existence.
|
||||||
* @returns - True if a filter with the specified name already exists, false otherwise.
|
* @returns - True if a filter with the specified name already exists, false otherwise.
|
||||||
@@ -132,7 +129,6 @@ export class TaskFilterService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a task filter by ID.
|
* Gets a task filter by ID.
|
||||||
*
|
|
||||||
* @param filterId ID of the filter
|
* @param filterId ID of the filter
|
||||||
* @param appId ID of the app for the filter
|
* @param appId ID of the app for the filter
|
||||||
* @returns Details of task filter
|
* @returns Details of task filter
|
||||||
@@ -143,7 +139,6 @@ export class TaskFilterService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a task filter by name.
|
* Gets a task filter by name.
|
||||||
*
|
|
||||||
* @param taskName Name of the filter
|
* @param taskName Name of the filter
|
||||||
* @param appId ID of the app for the filter
|
* @param appId ID of the app for the filter
|
||||||
* @returns Details of task filter
|
* @returns Details of task filter
|
||||||
@@ -154,7 +149,6 @@ export class TaskFilterService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a new task filter
|
* Adds a new task filter
|
||||||
*
|
|
||||||
* @param filter The new filter to add
|
* @param filter The new filter to add
|
||||||
* @returns Details of task filter just added
|
* @returns Details of task filter just added
|
||||||
*/
|
*/
|
||||||
@@ -164,7 +158,6 @@ export class TaskFilterService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Calls `getUserTaskFilters` from the Alfresco JS API.
|
* Calls `getUserTaskFilters` from the Alfresco JS API.
|
||||||
*
|
|
||||||
* @param appId ID of the target app
|
* @param appId ID of the target app
|
||||||
* @returns List of task filters
|
* @returns List of task filters
|
||||||
*/
|
*/
|
||||||
@@ -178,7 +171,6 @@ export class TaskFilterService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and returns a filter for "My Tasks" task instances.
|
* Creates and returns a filter for "My Tasks" task instances.
|
||||||
*
|
|
||||||
* @param appId ID of the target app
|
* @param appId ID of the target app
|
||||||
* @param index of the filter (optional)
|
* @param index of the filter (optional)
|
||||||
* @returns The newly created filter
|
* @returns The newly created filter
|
||||||
@@ -201,7 +193,6 @@ export class TaskFilterService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and returns a filter for "Involved" task instances.
|
* Creates and returns a filter for "Involved" task instances.
|
||||||
*
|
|
||||||
* @param appId ID of the target app
|
* @param appId ID of the target app
|
||||||
* @param index of the filter (optional)
|
* @param index of the filter (optional)
|
||||||
* @returns The newly created filter
|
* @returns The newly created filter
|
||||||
@@ -219,7 +210,6 @@ export class TaskFilterService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and returns a filter for "Queued Tasks" task instances.
|
* Creates and returns a filter for "Queued Tasks" task instances.
|
||||||
*
|
|
||||||
* @param appId ID of the target app
|
* @param appId ID of the target app
|
||||||
* @param index of the filter (optional)
|
* @param index of the filter (optional)
|
||||||
* @returns The newly created filter
|
* @returns The newly created filter
|
||||||
@@ -237,7 +227,6 @@ export class TaskFilterService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and returns a filter for "Completed" task instances.
|
* Creates and returns a filter for "Completed" task instances.
|
||||||
*
|
|
||||||
* @param appId ID of the target app
|
* @param appId ID of the target app
|
||||||
* @param index of the filter (optional)
|
* @param index of the filter (optional)
|
||||||
* @returns The newly created filter
|
* @returns The newly created filter
|
||||||
|
@@ -64,7 +64,6 @@ export class TaskListService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets all the filters in the list that belong to a task.
|
* Gets all the filters in the list that belong to a task.
|
||||||
*
|
|
||||||
* @param taskId ID of the target task
|
* @param taskId ID of the target task
|
||||||
* @param filterList List of filters to search through
|
* @param filterList List of filters to search through
|
||||||
* @returns Filters belonging to the task
|
* @returns Filters belonging to the task
|
||||||
@@ -78,7 +77,6 @@ export class TaskListService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if a taskId is filtered with the given filter.
|
* Checks if a taskId is filtered with the given filter.
|
||||||
*
|
|
||||||
* @param taskId ID of the target task
|
* @param taskId ID of the target task
|
||||||
* @param filterModel The filter you want to check
|
* @param filterModel The filter you want to check
|
||||||
* @returns The filter if it is related or null otherwise
|
* @returns The filter if it is related or null otherwise
|
||||||
@@ -97,7 +95,6 @@ export class TaskListService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets all the tasks matching the supplied query.
|
* Gets all the tasks matching the supplied query.
|
||||||
*
|
|
||||||
* @param requestNode Query to search for tasks
|
* @param requestNode Query to search for tasks
|
||||||
* @returns List of tasks
|
* @returns List of tasks
|
||||||
*/
|
*/
|
||||||
@@ -107,7 +104,6 @@ export class TaskListService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets tasks matching a query and state value.
|
* Gets tasks matching a query and state value.
|
||||||
*
|
|
||||||
* @param requestNode Query to search for tasks
|
* @param requestNode Query to search for tasks
|
||||||
* @returns List of tasks
|
* @returns List of tasks
|
||||||
*/
|
*/
|
||||||
@@ -117,7 +113,6 @@ export class TaskListService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets details for a task.
|
* Gets details for a task.
|
||||||
*
|
|
||||||
* @param taskId ID of the target task.
|
* @param taskId ID of the target task.
|
||||||
* @returns Task details
|
* @returns Task details
|
||||||
*/
|
*/
|
||||||
@@ -127,7 +122,6 @@ export class TaskListService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the checklist for a task.
|
* Gets the checklist for a task.
|
||||||
*
|
|
||||||
* @param id ID of the target task
|
* @param id ID of the target task
|
||||||
* @returns Array of checklist task details
|
* @returns Array of checklist task details
|
||||||
*/
|
*/
|
||||||
@@ -137,7 +131,6 @@ export class TaskListService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets all available reusable forms.
|
* Gets all available reusable forms.
|
||||||
*
|
|
||||||
* @returns Array of form details
|
* @returns Array of form details
|
||||||
*/
|
*/
|
||||||
getFormList(): Observable<Form[]> {
|
getFormList(): Observable<Form[]> {
|
||||||
@@ -152,7 +145,6 @@ export class TaskListService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Attaches a form to a task.
|
* Attaches a form to a task.
|
||||||
*
|
|
||||||
* @param taskId ID of the target task
|
* @param taskId ID of the target task
|
||||||
* @param formId ID of the form to add
|
* @param formId ID of the form to add
|
||||||
* @returns Null response notifying when the operation is complete
|
* @returns Null response notifying when the operation is complete
|
||||||
@@ -163,7 +155,6 @@ export class TaskListService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a subtask (ie, a checklist task) to a parent task.
|
* Adds a subtask (ie, a checklist task) to a parent task.
|
||||||
*
|
|
||||||
* @param task The task to add
|
* @param task The task to add
|
||||||
* @returns The subtask that was added
|
* @returns The subtask that was added
|
||||||
*/
|
*/
|
||||||
@@ -173,7 +164,6 @@ export class TaskListService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes a subtask (ie, a checklist task) from a parent task.
|
* Deletes a subtask (ie, a checklist task) from a parent task.
|
||||||
*
|
|
||||||
* @param taskId The task to delete
|
* @param taskId The task to delete
|
||||||
* @returns Null response notifying when the operation is complete
|
* @returns Null response notifying when the operation is complete
|
||||||
*/
|
*/
|
||||||
@@ -183,7 +173,6 @@ export class TaskListService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes a form from a task.
|
* Deletes a form from a task.
|
||||||
*
|
|
||||||
* @param taskId Task id related to form
|
* @param taskId Task id related to form
|
||||||
* @returns Null response notifying when the operation is complete
|
* @returns Null response notifying when the operation is complete
|
||||||
*/
|
*/
|
||||||
@@ -193,7 +182,6 @@ export class TaskListService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gives completed status to a task.
|
* Gives completed status to a task.
|
||||||
*
|
|
||||||
* @param taskId ID of the target task
|
* @param taskId ID of the target task
|
||||||
* @returns Null response notifying when the operation is complete
|
* @returns Null response notifying when the operation is complete
|
||||||
*/
|
*/
|
||||||
@@ -203,7 +191,6 @@ export class TaskListService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new standalone task.
|
* Creates a new standalone task.
|
||||||
*
|
|
||||||
* @param task Details of the new task
|
* @param task Details of the new task
|
||||||
* @returns Details of the newly created task
|
* @returns Details of the newly created task
|
||||||
*/
|
*/
|
||||||
@@ -213,7 +200,6 @@ export class TaskListService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Assigns a task to a user or group.
|
* Assigns a task to a user or group.
|
||||||
*
|
|
||||||
* @param taskId The task to assign
|
* @param taskId The task to assign
|
||||||
* @param requestNode User or group to assign the task to
|
* @param requestNode User or group to assign the task to
|
||||||
* @returns Details of the assigned task
|
* @returns Details of the assigned task
|
||||||
@@ -225,7 +211,6 @@ export class TaskListService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Assigns a task to a user.
|
* Assigns a task to a user.
|
||||||
*
|
|
||||||
* @param taskId ID of the task to assign
|
* @param taskId ID of the task to assign
|
||||||
* @param userId ID of the user to assign the task to
|
* @param userId ID of the user to assign the task to
|
||||||
* @returns Details of the assigned task
|
* @returns Details of the assigned task
|
||||||
@@ -238,7 +223,6 @@ export class TaskListService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Claims a task for the current user.
|
* Claims a task for the current user.
|
||||||
*
|
|
||||||
* @param taskId ID of the task to claim
|
* @param taskId ID of the task to claim
|
||||||
* @returns Details of the claimed task
|
* @returns Details of the claimed task
|
||||||
*/
|
*/
|
||||||
@@ -248,7 +232,6 @@ export class TaskListService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Un-claims a task for the current user.
|
* Un-claims a task for the current user.
|
||||||
*
|
|
||||||
* @param taskId ID of the task to unclaim
|
* @param taskId ID of the task to unclaim
|
||||||
* @returns Null response notifying when the operation is complete
|
* @returns Null response notifying when the operation is complete
|
||||||
*/
|
*/
|
||||||
@@ -258,7 +241,6 @@ export class TaskListService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates the details (name, description, due date) for a task.
|
* Updates the details (name, description, due date) for a task.
|
||||||
*
|
|
||||||
* @param taskId ID of the task to update
|
* @param taskId ID of the task to update
|
||||||
* @param updated Data to update the task (as a `TaskUpdateRepresentation` instance).
|
* @param updated Data to update the task (as a `TaskUpdateRepresentation` instance).
|
||||||
* @returns Updated task details
|
* @returns Updated task details
|
||||||
@@ -269,7 +251,6 @@ export class TaskListService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetches the Task Audit information in PDF format.
|
* Fetches the Task Audit information in PDF format.
|
||||||
*
|
|
||||||
* @param taskId ID of the target task
|
* @param taskId ID of the target task
|
||||||
* @returns Binary PDF data
|
* @returns Binary PDF data
|
||||||
*/
|
*/
|
||||||
@@ -279,7 +260,6 @@ export class TaskListService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetch the Task Audit information in JSON format
|
* Fetch the Task Audit information in JSON format
|
||||||
*
|
|
||||||
* @param taskId ID of the target task
|
* @param taskId ID of the target task
|
||||||
* @returns JSON data
|
* @returns JSON data
|
||||||
*/
|
*/
|
||||||
|
82
package-lock.json
generated
82
package-lock.json
generated
@@ -17994,22 +17994,22 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/typescript-estree": {
|
"node_modules/@typescript-eslint/typescript-estree": {
|
||||||
"version": "8.14.0",
|
"version": "7.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.14.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.1.1.tgz",
|
||||||
"integrity": "sha512-OPXPLYKGZi9XS/49rdaCbR5j/S14HazviBlUQFvSKz3npr3NikF+mrgK7CFVur6XEt95DZp/cmke9d5i3vtVnQ==",
|
"integrity": "sha512-9ZOncVSfr+sMXVxxca2OJOPagRwT0u/UHikM2Rd6L/aB+kL/QAuTnsv6MeXtjzCJYb8PzrXarypSGIPx3Jemxw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "8.14.0",
|
"@typescript-eslint/types": "7.1.1",
|
||||||
"@typescript-eslint/visitor-keys": "8.14.0",
|
"@typescript-eslint/visitor-keys": "7.1.1",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"fast-glob": "^3.3.2",
|
"globby": "^11.1.0",
|
||||||
"is-glob": "^4.0.3",
|
"is-glob": "^4.0.3",
|
||||||
"minimatch": "^9.0.4",
|
"minimatch": "9.0.3",
|
||||||
"semver": "^7.6.0",
|
"semver": "^7.5.4",
|
||||||
"ts-api-utils": "^1.3.0"
|
"ts-api-utils": "^1.0.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
"node": "^16.0.0 || >=18.0.0"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
@@ -18022,12 +18022,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/typescript-estree/node_modules/@typescript-eslint/types": {
|
"node_modules/@typescript-eslint/typescript-estree/node_modules/@typescript-eslint/types": {
|
||||||
"version": "8.14.0",
|
"version": "7.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.14.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.1.1.tgz",
|
||||||
"integrity": "sha512-yjeB9fnO/opvLJFAsPNYlKPnEM8+z4og09Pk504dkqonT02AyL5Z9SSqlE0XqezS93v6CXn49VHvB2G7XSsl0g==",
|
"integrity": "sha512-KhewzrlRMrgeKm1U9bh2z5aoL4s7K3tK5DwHDn8MHv0yQfWFz/0ZR6trrIHHa5CsF83j/GgHqzdbzCXJ3crx0Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
"node": "^16.0.0 || >=18.0.0"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
@@ -18035,16 +18035,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/typescript-estree/node_modules/@typescript-eslint/visitor-keys": {
|
"node_modules/@typescript-eslint/typescript-estree/node_modules/@typescript-eslint/visitor-keys": {
|
||||||
"version": "8.14.0",
|
"version": "7.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.14.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.1.1.tgz",
|
||||||
"integrity": "sha512-vG0XZo8AdTH9OE6VFRwAZldNc7qtJ/6NLGWak+BtENuEUXGZgFpihILPiBvKXvJ2nFu27XNGC6rKiwuaoMbYzQ==",
|
"integrity": "sha512-yTdHDQxY7cSoCcAtiBzVzxleJhkGB9NncSIyMYe2+OGON1ZsP9zOPws/Pqgopa65jvknOjlk/w7ulPlZ78PiLQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "8.14.0",
|
"@typescript-eslint/types": "7.1.1",
|
||||||
"eslint-visitor-keys": "^3.4.3"
|
"eslint-visitor-keys": "^3.4.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
"node": "^16.0.0 || >=18.0.0"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
@@ -18060,26 +18060,10 @@
|
|||||||
"balanced-match": "^1.0.0"
|
"balanced-match": "^1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/typescript-estree/node_modules/fast-glob": {
|
|
||||||
"version": "3.3.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz",
|
|
||||||
"integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"@nodelib/fs.stat": "^2.0.2",
|
|
||||||
"@nodelib/fs.walk": "^1.2.3",
|
|
||||||
"glob-parent": "^5.1.2",
|
|
||||||
"merge2": "^1.3.0",
|
|
||||||
"micromatch": "^4.0.4"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=8.6.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {
|
"node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {
|
||||||
"version": "9.0.5",
|
"version": "9.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz",
|
||||||
"integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
|
"integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"brace-expansion": "^2.0.1"
|
"brace-expansion": "^2.0.1"
|
||||||
@@ -23171,26 +23155,6 @@
|
|||||||
"node": ">=10"
|
"node": ">=10"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/eslint-plugin-storybook/node_modules/eslint-scope": {
|
|
||||||
"version": "5.1.1",
|
|
||||||
"dev": true,
|
|
||||||
"license": "BSD-2-Clause",
|
|
||||||
"dependencies": {
|
|
||||||
"esrecurse": "^4.3.0",
|
|
||||||
"estraverse": "^4.1.1"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=8.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/eslint-plugin-storybook/node_modules/estraverse": {
|
|
||||||
"version": "4.3.0",
|
|
||||||
"dev": true,
|
|
||||||
"license": "BSD-2-Clause",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/eslint-plugin-unicorn": {
|
"node_modules/eslint-plugin-unicorn": {
|
||||||
"version": "49.0.0",
|
"version": "49.0.0",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
Reference in New Issue
Block a user