@gloww/gloww 20.0.0-beta.42 → 20.0.0-beta.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/gloww-gloww.mjs +416 -41
- package/fesm2022/gloww-gloww.mjs.map +1 -1
- package/index.d.ts +26 -8
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Injector, OnChanges, PipeTransform, OnInit, AfterContentInit, QueryList, EventEmitter, AfterViewInit, TemplateRef, ChangeDetectorRef, SimpleChanges, ModuleWithProviders, EnvironmentProviders, ElementRef } from '@angular/core';
|
|
3
1
|
import * as rxjs from 'rxjs';
|
|
4
2
|
import { Subject, BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { InjectionToken, Injector, OnChanges, PipeTransform, OnInit, AfterContentInit, QueryList, EventEmitter, AfterViewInit, TemplateRef, ChangeDetectorRef, SimpleChanges, ModuleWithProviders, EnvironmentProviders, ElementRef } from '@angular/core';
|
|
5
5
|
import * as _angular_common_http from '@angular/common/http';
|
|
6
6
|
import { HttpClient, HttpParams, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
|
|
7
7
|
import * as i1 from '@angular/common';
|
|
@@ -63,6 +63,7 @@ declare class GlowwService {
|
|
|
63
63
|
getParams(obj: any): HttpParams;
|
|
64
64
|
noSrc(): Promise<boolean>;
|
|
65
65
|
noRestSecurity(): Promise<boolean>;
|
|
66
|
+
commitUserTask(userTaskId: number, args: Record<string, any>): rxjs.Observable<string>;
|
|
66
67
|
static ɵfac: i0.ɵɵFactoryDeclaration<GlowwService, never>;
|
|
67
68
|
static ɵprov: i0.ɵɵInjectableDeclaration<GlowwService>;
|
|
68
69
|
}
|
|
@@ -1105,6 +1106,12 @@ type UserTask = {
|
|
|
1105
1106
|
Category?: string;
|
|
1106
1107
|
Statut?: string;
|
|
1107
1108
|
RepliedBY?: string;
|
|
1109
|
+
Form?: string;
|
|
1110
|
+
FormType?: string;
|
|
1111
|
+
CHOICES?: string;
|
|
1112
|
+
JSINFO?: string;
|
|
1113
|
+
VARIABLES?: string;
|
|
1114
|
+
USERTASKID?: number;
|
|
1108
1115
|
ProcessStepID?: number;
|
|
1109
1116
|
HasAsExecutionStep?: UserTaskExecutionStep;
|
|
1110
1117
|
};
|
|
@@ -1122,30 +1129,41 @@ declare class AssignedUserTasksComponent implements OnInit {
|
|
|
1122
1129
|
private readonly glowwService;
|
|
1123
1130
|
private readonly authenticationService;
|
|
1124
1131
|
private readonly i18n;
|
|
1125
|
-
private readonly
|
|
1132
|
+
private readonly dialog;
|
|
1126
1133
|
sort: MatSort;
|
|
1127
1134
|
paginator: MatPaginator;
|
|
1128
1135
|
displayedColumns: string[];
|
|
1129
1136
|
dataSource: MatTableDataSource<UserTaskAssignment, MatPaginator>;
|
|
1130
1137
|
loading: boolean;
|
|
1131
1138
|
errorMessage: string;
|
|
1139
|
+
respondingTaskId?: number;
|
|
1132
1140
|
constructor(glowwService: GlowwService & {
|
|
1133
1141
|
searchBPMN2_UserTask_Assignment: (obj?: any) => any;
|
|
1134
|
-
|
|
1142
|
+
getBPMN2_UserTask: (userTaskId: number) => any;
|
|
1143
|
+
commitUserTask: (userTaskId: number, args: Record<string, any>) => any;
|
|
1144
|
+
}, authenticationService: AuthenticationService, i18n: GlowwI18nService, dialog: MatDialog);
|
|
1135
1145
|
ngOnInit(): void;
|
|
1136
1146
|
ngAfterViewInit(): void;
|
|
1137
1147
|
t(key: string, fallback: string): string;
|
|
1138
1148
|
loadAssignments(): void;
|
|
1139
|
-
|
|
1140
|
-
openExecutionSteps(taskAssignment: UserTaskAssignment): void;
|
|
1141
|
-
hasExecution(taskAssignment: UserTaskAssignment): boolean;
|
|
1149
|
+
respondToTask(taskAssignment: UserTaskAssignment): Promise<void>;
|
|
1142
1150
|
getTaskLabel(taskAssignment: UserTaskAssignment): string;
|
|
1143
1151
|
getDefinitionLabel(taskAssignment: UserTaskAssignment): string;
|
|
1144
|
-
getExecutionLabel(taskAssignment: UserTaskAssignment): string;
|
|
1145
1152
|
getStatusLabel(taskAssignment: UserTaskAssignment): string;
|
|
1146
1153
|
getAssignmentLabel(taskAssignment: UserTaskAssignment): string;
|
|
1154
|
+
canRespond(taskAssignment: UserTaskAssignment): boolean;
|
|
1147
1155
|
private buildQuery;
|
|
1156
|
+
private isPendingTask;
|
|
1148
1157
|
private getSortValue;
|
|
1158
|
+
private buildDialogData;
|
|
1159
|
+
private parseChoices;
|
|
1160
|
+
private normalizeChoice;
|
|
1161
|
+
private parseMaybeJson;
|
|
1162
|
+
private parseVariables;
|
|
1163
|
+
private normalizeFields;
|
|
1164
|
+
private normalizeField;
|
|
1165
|
+
private resolveExternalConfig;
|
|
1166
|
+
private looksLikeUrl;
|
|
1149
1167
|
static ɵfac: i0.ɵɵFactoryDeclaration<AssignedUserTasksComponent, never>;
|
|
1150
1168
|
static ɵcmp: i0.ɵɵComponentDeclaration<AssignedUserTasksComponent, "glw-assigned-user-tasks", never, {}, {}, never, never, true, never>;
|
|
1151
1169
|
}
|