@gloww/gloww 20.0.0-beta.41 → 20.0.0-beta.42
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 +160 -3
- package/fesm2022/gloww-gloww.mjs.map +1 -1
- package/index.d.ts +65 -4
- package/package.json +1 -1
package/fesm2022/gloww-gloww.mjs
CHANGED
|
@@ -4,22 +4,29 @@ import { Subject, firstValueFrom, BehaviorSubject, of, combineLatest, forkJoin,
|
|
|
4
4
|
import * as i1 from '@angular/common/http';
|
|
5
5
|
import { HttpClient, HttpParams, HttpEventType, HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi, HttpResponse } from '@angular/common/http';
|
|
6
6
|
import * as i3 from '@angular/common';
|
|
7
|
-
import { Location, PlatformLocation, AsyncPipe, NgClass, isPlatformBrowser, NgStyle, CommonModule } from '@angular/common';
|
|
7
|
+
import { Location, PlatformLocation, AsyncPipe, NgClass, isPlatformBrowser, NgStyle, CommonModule, DatePipe } from '@angular/common';
|
|
8
8
|
import * as i1$2 from '@angular/material/dialog';
|
|
9
9
|
import { MAT_DIALOG_DATA, MatDialogTitle, MatDialogContent, MatDialogActions, MatDialogConfig, MatDialogModule } from '@angular/material/dialog';
|
|
10
10
|
import { CdkScrollable } from '@angular/cdk/scrolling';
|
|
11
11
|
import * as i2 from '@angular/router';
|
|
12
12
|
import { NavigationEnd, RouterLink, RouterModule } from '@angular/router';
|
|
13
|
+
import * as i4$1 from '@angular/material/button';
|
|
13
14
|
import { MatButton, MatButtonModule } from '@angular/material/button';
|
|
14
15
|
import * as i1$1 from '@angular/platform-browser';
|
|
15
16
|
import * as i5 from '@kolkov/angular-editor';
|
|
16
17
|
import { AngularEditorModule } from '@kolkov/angular-editor';
|
|
17
|
-
import { switchMap, map, tap, filter, catchError, take, mergeMap, retryWhen, scan, delay, first, distinctUntilChanged, debounceTime } from 'rxjs/operators';
|
|
18
|
+
import { switchMap, map, tap, filter, catchError, take, mergeMap, retryWhen, scan, delay, first, distinctUntilChanged, debounceTime, finalize } from 'rxjs/operators';
|
|
19
|
+
import * as i9 from '@angular/material/sort';
|
|
18
20
|
import { MatSort, MatSortModule } from '@angular/material/sort';
|
|
21
|
+
import * as i7 from '@angular/material/paginator';
|
|
19
22
|
import { MatPaginator, MatPaginatorIntl, MatPaginatorModule } from '@angular/material/paginator';
|
|
23
|
+
import * as i10 from '@angular/material/table';
|
|
20
24
|
import { MatColumnDef, MatTableDataSource, MatTable, MatHeaderCellDef, MatHeaderCell, MatCellDef, MatCell, MatHeaderRowDef, MatHeaderRow, MatRowDef, MatRow, MatTableModule } from '@angular/material/table';
|
|
25
|
+
import * as i8 from '@angular/material/progress-spinner';
|
|
21
26
|
import { MatProgressSpinner, MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
27
|
+
import * as i5$1 from '@angular/material/card';
|
|
22
28
|
import { MatCard, MatCardContent, MatCardActions, MatCardHeader, MatCardTitle, MatCardModule } from '@angular/material/card';
|
|
29
|
+
import * as i6 from '@angular/material/icon';
|
|
23
30
|
import { MatIcon, MatIconModule } from '@angular/material/icon';
|
|
24
31
|
import { MatError, MatFormField, MatInput, MatLabel, MatInputModule, MatSuffix } from '@angular/material/input';
|
|
25
32
|
import * as i4 from '@ctrl/ngx-codemirror';
|
|
@@ -4164,6 +4171,152 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
4164
4171
|
type: Injectable
|
|
4165
4172
|
}], ctorParameters: () => [{ type: GlowwI18nService }] });
|
|
4166
4173
|
|
|
4174
|
+
class AssignedUserTasksComponent {
|
|
4175
|
+
constructor(glowwService, authenticationService, i18n, router) {
|
|
4176
|
+
this.glowwService = glowwService;
|
|
4177
|
+
this.authenticationService = authenticationService;
|
|
4178
|
+
this.i18n = i18n;
|
|
4179
|
+
this.router = router;
|
|
4180
|
+
this.displayedColumns = ['action', 'task', 'definition', 'execution', 'status', 'message', 'assignment'];
|
|
4181
|
+
this.dataSource = new MatTableDataSource([]);
|
|
4182
|
+
this.loading = false;
|
|
4183
|
+
this.errorMessage = '';
|
|
4184
|
+
}
|
|
4185
|
+
ngOnInit() {
|
|
4186
|
+
this.dataSource.sortingDataAccessor = (item, property) => this.getSortValue(item, property);
|
|
4187
|
+
this.dataSource.sort = this.sort;
|
|
4188
|
+
this.loadAssignments();
|
|
4189
|
+
}
|
|
4190
|
+
ngAfterViewInit() {
|
|
4191
|
+
this.dataSource.paginator = this.paginator;
|
|
4192
|
+
}
|
|
4193
|
+
t(key, fallback) {
|
|
4194
|
+
return this.i18n.instant(key, fallback);
|
|
4195
|
+
}
|
|
4196
|
+
loadAssignments() {
|
|
4197
|
+
const query = this.buildQuery();
|
|
4198
|
+
this.loading = true;
|
|
4199
|
+
this.errorMessage = '';
|
|
4200
|
+
this.glowwService.searchBPMN2_UserTask_Assignment(query).pipe(catchError(error => {
|
|
4201
|
+
this.errorMessage = error?.error?.message || error?.message || `${error}`;
|
|
4202
|
+
return of([]);
|
|
4203
|
+
}), finalize(() => {
|
|
4204
|
+
this.loading = false;
|
|
4205
|
+
})).subscribe((items) => {
|
|
4206
|
+
this.dataSource.data = items ?? [];
|
|
4207
|
+
if (this.paginator) {
|
|
4208
|
+
this.dataSource.paginator = this.paginator;
|
|
4209
|
+
}
|
|
4210
|
+
});
|
|
4211
|
+
}
|
|
4212
|
+
openExecution(taskAssignment) {
|
|
4213
|
+
const executionId = taskAssignment.IsCandidate?.HasAsExecutionStep?.ExecutionID;
|
|
4214
|
+
if (!executionId) {
|
|
4215
|
+
return;
|
|
4216
|
+
}
|
|
4217
|
+
this.router.navigate(['/execution', executionId]);
|
|
4218
|
+
}
|
|
4219
|
+
openExecutionSteps(taskAssignment) {
|
|
4220
|
+
const executionId = taskAssignment.IsCandidate?.HasAsExecutionStep?.ExecutionID;
|
|
4221
|
+
if (!executionId) {
|
|
4222
|
+
return;
|
|
4223
|
+
}
|
|
4224
|
+
this.router.navigate(['/executionsteps', executionId]);
|
|
4225
|
+
}
|
|
4226
|
+
hasExecution(taskAssignment) {
|
|
4227
|
+
return !!taskAssignment.IsCandidate?.HasAsExecutionStep?.ExecutionID;
|
|
4228
|
+
}
|
|
4229
|
+
getTaskLabel(taskAssignment) {
|
|
4230
|
+
return taskAssignment.IsCandidate?.Title
|
|
4231
|
+
|| taskAssignment.IsCandidate?.DialogTitle
|
|
4232
|
+
|| `${this.t('GLOWW.USER_TASK', 'User task')} #${taskAssignment.UserTaskId ?? taskAssignment.AssignmentID}`;
|
|
4233
|
+
}
|
|
4234
|
+
getDefinitionLabel(taskAssignment) {
|
|
4235
|
+
const execution = taskAssignment.IsCandidate?.HasAsExecutionStep?.HasAsExecution;
|
|
4236
|
+
if (!execution?.DefinitionID) {
|
|
4237
|
+
return '';
|
|
4238
|
+
}
|
|
4239
|
+
return execution.ProcessID
|
|
4240
|
+
? `${execution.DefinitionID} (${execution.ProcessID})`
|
|
4241
|
+
: execution.DefinitionID;
|
|
4242
|
+
}
|
|
4243
|
+
getExecutionLabel(taskAssignment) {
|
|
4244
|
+
const step = taskAssignment.IsCandidate?.HasAsExecutionStep;
|
|
4245
|
+
if (!step?.ExecutionID) {
|
|
4246
|
+
return '';
|
|
4247
|
+
}
|
|
4248
|
+
const processStepId = step.ProcessStepID ?? taskAssignment.IsCandidate?.ProcessStepID;
|
|
4249
|
+
return processStepId
|
|
4250
|
+
? `${step.ExecutionID} / ${processStepId}`
|
|
4251
|
+
: `${step.ExecutionID}`;
|
|
4252
|
+
}
|
|
4253
|
+
getStatusLabel(taskAssignment) {
|
|
4254
|
+
return taskAssignment.IsCandidate?.Statut
|
|
4255
|
+
|| taskAssignment.STATUT
|
|
4256
|
+
|| '';
|
|
4257
|
+
}
|
|
4258
|
+
getAssignmentLabel(taskAssignment) {
|
|
4259
|
+
const type = taskAssignment.Responsible
|
|
4260
|
+
? this.t('GLOWW.RESPONSIBLE', 'Responsible')
|
|
4261
|
+
: this.t('GLOWW.CANDIDATE', 'Candidate');
|
|
4262
|
+
return `${taskAssignment.Domain ? `${taskAssignment.Domain}\\` : ''}${taskAssignment.Username ?? ''} (${type})`;
|
|
4263
|
+
}
|
|
4264
|
+
buildQuery() {
|
|
4265
|
+
const currentUser = this.authenticationService.currentUserValue;
|
|
4266
|
+
const query = {};
|
|
4267
|
+
if (currentUser?.username) {
|
|
4268
|
+
query.Username = currentUser.username;
|
|
4269
|
+
}
|
|
4270
|
+
if (currentUser?.domain) {
|
|
4271
|
+
query.Domain = currentUser.domain;
|
|
4272
|
+
}
|
|
4273
|
+
return query;
|
|
4274
|
+
}
|
|
4275
|
+
getSortValue(item, property) {
|
|
4276
|
+
switch (property) {
|
|
4277
|
+
case 'task':
|
|
4278
|
+
return this.getTaskLabel(item).toLowerCase();
|
|
4279
|
+
case 'definition':
|
|
4280
|
+
return this.getDefinitionLabel(item).toLowerCase();
|
|
4281
|
+
case 'execution':
|
|
4282
|
+
return item.IsCandidate?.HasAsExecutionStep?.ExecutionID ?? 0;
|
|
4283
|
+
case 'status':
|
|
4284
|
+
return this.getStatusLabel(item).toLowerCase();
|
|
4285
|
+
case 'message':
|
|
4286
|
+
return (item.IsCandidate?.MESSAGE ?? '').toLowerCase();
|
|
4287
|
+
case 'assignment':
|
|
4288
|
+
return this.getAssignmentLabel(item).toLowerCase();
|
|
4289
|
+
default:
|
|
4290
|
+
return item.AssignmentID ?? 0;
|
|
4291
|
+
}
|
|
4292
|
+
}
|
|
4293
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: AssignedUserTasksComponent, deps: [{ token: 'glowwService' }, { token: AuthenticationService }, { token: GlowwI18nService }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4294
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: AssignedUserTasksComponent, isStandalone: true, selector: "glw-assigned-user-tasks", viewQueries: [{ propertyName: "sort", first: true, predicate: MatSort, descendants: true, static: true }, { propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true }], ngImport: i0, template: "<mat-card class=\"assigned-user-tasks-card\" appearance=\"outlined\">\n <mat-card-header class=\"assigned-user-tasks-header\">\n <mat-card-title>{{ t('GLOWW.MY_ASSIGNED_TASKS', 'My assigned tasks') }}</mat-card-title>\n <button mat-stroked-button color=\"primary\" type=\"button\" (click)=\"loadAssignments()\">\n <mat-icon>refresh</mat-icon>\n {{ t('COMMON.REFRESH', 'Refresh') }}\n </button>\n </mat-card-header>\n\n <mat-card-content>\n @if (errorMessage) {\n <div class=\"assigned-user-tasks-error\">\n {{ t('GLOWW.UNABLE_TO_QUERY', 'Unable to query') }}: {{ errorMessage }}\n </div>\n }\n\n @if (loading) {\n <div class=\"assigned-user-tasks-loading\">\n <mat-spinner diameter=\"36\"></mat-spinner>\n </div>\n }\n\n @if (!loading) {\n <div class=\"assigned-user-tasks-table-wrapper\">\n <table mat-table [dataSource]=\"dataSource\" matSort>\n <ng-container matColumnDef=\"action\">\n <th mat-header-cell *matHeaderCellDef></th>\n <td mat-cell *matCellDef=\"let obj\">\n <button mat-icon-button type=\"button\" (click)=\"openExecution(obj)\" [disabled]=\"!hasExecution(obj)\" [attr.aria-label]=\"t('LISTS.DISPLAY', 'Display')\">\n <i class=\"fal fa-eye\"></i>\n </button>\n <button mat-icon-button type=\"button\" (click)=\"openExecutionSteps(obj)\" [disabled]=\"!hasExecution(obj)\" [attr.aria-label]=\"t('LISTS.STEPS', 'Steps')\">\n <i class=\"fal fa-list-check\"></i>\n </button>\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"task\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"task\">{{ t('LISTS.TASK', 'Task') }}</th>\n <td mat-cell *matCellDef=\"let obj\">{{ getTaskLabel(obj) }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"definition\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"definition\">{{ t('LISTS.DEFINITION_ID', 'Definition ID') }}</th>\n <td mat-cell *matCellDef=\"let obj\">{{ getDefinitionLabel(obj) }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"execution\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"execution\">{{ t('LISTS.EXECUTION', 'Execution') }}</th>\n <td mat-cell *matCellDef=\"let obj\">{{ getExecutionLabel(obj) }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"status\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"status\">{{ t('LISTS.STATUS', 'Status') }}</th>\n <td mat-cell *matCellDef=\"let obj\">{{ getStatusLabel(obj) }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"message\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"message\">{{ t('LISTS.MESSAGE', 'Message') }}</th>\n <td mat-cell *matCellDef=\"let obj\">{{ obj.IsCandidate?.MESSAGE }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"assignment\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"assignment\">{{ t('LISTS.ASSIGNED_TO', 'Assigned to') }}</th>\n <td mat-cell *matCellDef=\"let obj\">{{ getAssignmentLabel(obj) }}</td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\"></tr>\n </table>\n </div>\n\n @if (!dataSource.data.length) {\n <div class=\"assigned-user-tasks-empty\">\n {{ t('GLOWW.NO_ASSIGNED_TASKS', 'No task is currently assigned to you.') }}\n </div>\n }\n }\n </mat-card-content>\n\n <mat-card-actions>\n <mat-paginator [pageSize]=\"10\" [pageSizeOptions]=\"[10, 20, 50, 100]\" [showFirstLastButtons]=\"true\"></mat-paginator>\n </mat-card-actions>\n</mat-card>\n", styles: [":host{display:block}.assigned-user-tasks-card{margin:16px}.assigned-user-tasks-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px}.assigned-user-tasks-loading,.assigned-user-tasks-empty,.assigned-user-tasks-error{padding:16px 0}.assigned-user-tasks-table-wrapper{overflow:auto}table{width:100%}th:first-child,td:first-child{width:88px;white-space:nowrap}button[mat-icon-button]{margin-right:4px}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i4$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i5$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i5$1.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i5$1.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i5$1.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i5$1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatPaginatorModule }, { kind: "component", type: i7.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i8.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatSortModule }, { kind: "directive", type: i9.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i9.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i10.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i10.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i10.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i10.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i10.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i10.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i10.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i10.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i10.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i10.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }] }); }
|
|
4295
|
+
}
|
|
4296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: AssignedUserTasksComponent, decorators: [{
|
|
4297
|
+
type: Component,
|
|
4298
|
+
args: [{ selector: 'glw-assigned-user-tasks', imports: [
|
|
4299
|
+
RouterLink,
|
|
4300
|
+
DatePipe,
|
|
4301
|
+
MatButtonModule,
|
|
4302
|
+
MatCardModule,
|
|
4303
|
+
MatIconModule,
|
|
4304
|
+
MatPaginatorModule,
|
|
4305
|
+
MatProgressSpinnerModule,
|
|
4306
|
+
MatSortModule,
|
|
4307
|
+
MatTableModule
|
|
4308
|
+
], template: "<mat-card class=\"assigned-user-tasks-card\" appearance=\"outlined\">\n <mat-card-header class=\"assigned-user-tasks-header\">\n <mat-card-title>{{ t('GLOWW.MY_ASSIGNED_TASKS', 'My assigned tasks') }}</mat-card-title>\n <button mat-stroked-button color=\"primary\" type=\"button\" (click)=\"loadAssignments()\">\n <mat-icon>refresh</mat-icon>\n {{ t('COMMON.REFRESH', 'Refresh') }}\n </button>\n </mat-card-header>\n\n <mat-card-content>\n @if (errorMessage) {\n <div class=\"assigned-user-tasks-error\">\n {{ t('GLOWW.UNABLE_TO_QUERY', 'Unable to query') }}: {{ errorMessage }}\n </div>\n }\n\n @if (loading) {\n <div class=\"assigned-user-tasks-loading\">\n <mat-spinner diameter=\"36\"></mat-spinner>\n </div>\n }\n\n @if (!loading) {\n <div class=\"assigned-user-tasks-table-wrapper\">\n <table mat-table [dataSource]=\"dataSource\" matSort>\n <ng-container matColumnDef=\"action\">\n <th mat-header-cell *matHeaderCellDef></th>\n <td mat-cell *matCellDef=\"let obj\">\n <button mat-icon-button type=\"button\" (click)=\"openExecution(obj)\" [disabled]=\"!hasExecution(obj)\" [attr.aria-label]=\"t('LISTS.DISPLAY', 'Display')\">\n <i class=\"fal fa-eye\"></i>\n </button>\n <button mat-icon-button type=\"button\" (click)=\"openExecutionSteps(obj)\" [disabled]=\"!hasExecution(obj)\" [attr.aria-label]=\"t('LISTS.STEPS', 'Steps')\">\n <i class=\"fal fa-list-check\"></i>\n </button>\n </td>\n </ng-container>\n\n <ng-container matColumnDef=\"task\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"task\">{{ t('LISTS.TASK', 'Task') }}</th>\n <td mat-cell *matCellDef=\"let obj\">{{ getTaskLabel(obj) }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"definition\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"definition\">{{ t('LISTS.DEFINITION_ID', 'Definition ID') }}</th>\n <td mat-cell *matCellDef=\"let obj\">{{ getDefinitionLabel(obj) }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"execution\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"execution\">{{ t('LISTS.EXECUTION', 'Execution') }}</th>\n <td mat-cell *matCellDef=\"let obj\">{{ getExecutionLabel(obj) }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"status\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"status\">{{ t('LISTS.STATUS', 'Status') }}</th>\n <td mat-cell *matCellDef=\"let obj\">{{ getStatusLabel(obj) }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"message\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"message\">{{ t('LISTS.MESSAGE', 'Message') }}</th>\n <td mat-cell *matCellDef=\"let obj\">{{ obj.IsCandidate?.MESSAGE }}</td>\n </ng-container>\n\n <ng-container matColumnDef=\"assignment\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"assignment\">{{ t('LISTS.ASSIGNED_TO', 'Assigned to') }}</th>\n <td mat-cell *matCellDef=\"let obj\">{{ getAssignmentLabel(obj) }}</td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\"></tr>\n </table>\n </div>\n\n @if (!dataSource.data.length) {\n <div class=\"assigned-user-tasks-empty\">\n {{ t('GLOWW.NO_ASSIGNED_TASKS', 'No task is currently assigned to you.') }}\n </div>\n }\n }\n </mat-card-content>\n\n <mat-card-actions>\n <mat-paginator [pageSize]=\"10\" [pageSizeOptions]=\"[10, 20, 50, 100]\" [showFirstLastButtons]=\"true\"></mat-paginator>\n </mat-card-actions>\n</mat-card>\n", styles: [":host{display:block}.assigned-user-tasks-card{margin:16px}.assigned-user-tasks-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px}.assigned-user-tasks-loading,.assigned-user-tasks-empty,.assigned-user-tasks-error{padding:16px 0}.assigned-user-tasks-table-wrapper{overflow:auto}table{width:100%}th:first-child,td:first-child{width:88px;white-space:nowrap}button[mat-icon-button]{margin-right:4px}\n"] }]
|
|
4309
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
4310
|
+
type: Inject,
|
|
4311
|
+
args: ['glowwService']
|
|
4312
|
+
}] }, { type: AuthenticationService }, { type: GlowwI18nService }, { type: i2.Router }], propDecorators: { sort: [{
|
|
4313
|
+
type: ViewChild,
|
|
4314
|
+
args: [MatSort, { static: true }]
|
|
4315
|
+
}], paginator: [{
|
|
4316
|
+
type: ViewChild,
|
|
4317
|
+
args: [MatPaginator]
|
|
4318
|
+
}] } });
|
|
4319
|
+
|
|
4167
4320
|
class BaseCollectionComponent {
|
|
4168
4321
|
constructor(_formBuilder) {
|
|
4169
4322
|
this._formBuilder = _formBuilder;
|
|
@@ -4230,6 +4383,7 @@ const GLOWW_STANDALONE_DECLARATIONS = [
|
|
|
4230
4383
|
SelectComponent,
|
|
4231
4384
|
AutoCompleteComponent,
|
|
4232
4385
|
DatetimeComponent,
|
|
4386
|
+
AssignedUserTasksComponent,
|
|
4233
4387
|
RouteDirective,
|
|
4234
4388
|
CallbackDirective,
|
|
4235
4389
|
FilterFormComponent
|
|
@@ -4314,6 +4468,7 @@ class GlowwModule {
|
|
|
4314
4468
|
SelectComponent,
|
|
4315
4469
|
AutoCompleteComponent,
|
|
4316
4470
|
DatetimeComponent,
|
|
4471
|
+
AssignedUserTasksComponent,
|
|
4317
4472
|
RouteDirective,
|
|
4318
4473
|
CallbackDirective,
|
|
4319
4474
|
FilterFormComponent], exports: [UploadDocComponent,
|
|
@@ -4340,6 +4495,7 @@ class GlowwModule {
|
|
|
4340
4495
|
SelectComponent,
|
|
4341
4496
|
AutoCompleteComponent,
|
|
4342
4497
|
DatetimeComponent,
|
|
4498
|
+
AssignedUserTasksComponent,
|
|
4343
4499
|
RouteDirective,
|
|
4344
4500
|
CallbackDirective,
|
|
4345
4501
|
FilterFormComponent, MatDatepickerModule,
|
|
@@ -4385,6 +4541,7 @@ class GlowwModule {
|
|
|
4385
4541
|
SelectComponent,
|
|
4386
4542
|
AutoCompleteComponent,
|
|
4387
4543
|
DatetimeComponent,
|
|
4544
|
+
AssignedUserTasksComponent,
|
|
4388
4545
|
FilterFormComponent, MatDatepickerModule,
|
|
4389
4546
|
NgxMatDatetimePickerModule,
|
|
4390
4547
|
NgxMatNativeDateModule] }); }
|
|
@@ -4562,5 +4719,5 @@ class GlowwValidators {
|
|
|
4562
4719
|
* Generated bundle index. Do not edit.
|
|
4563
4720
|
*/
|
|
4564
4721
|
|
|
4565
|
-
export { API_SERVER_URL, AdministratorGuard, AuthGuard, AuthenticationService, AuthenticationServiceConfig, AutoCompleteComponent, BaseCollectionComponent, CallbackDirective, ChangePasswordDlgComponent, CodeEditorComponent, ConfirmationComponent, ConfirmationModel, DatetimeComponent, DialogService, DisplayObjectsComponent, DownloadProgressComponent, DummyComponent, ErrorInterceptor, FileEditComponent, FileSinkDirective, FilterFormComponent, FolderService, FolderServiceConfig, FoldersComponent, GLOWW_APPLI, GLOWW_MODULE_EXPORTS, GLOWW_SECURITY_STANDALONE_DECLARATIONS, GLOWW_STANDALONE_DECLARATIONS, GlowwModule, GlowwSecurityModule, GlowwSecurityService, GlowwService, GlowwValidators, HasUnsavedDataGuard, HeaderComponent, HtmlEditorComponent, HtmlFormatPipe, JwtInterceptor, LoginComponent, MenuListItemComponent, NavService, PromptComponent, PromptModel, ResultTableComponent, RouteDirective, SafeHtmlPipe, SearchFormComponent, SecureAComponent, SecureImgComponent, SecurePipe, SelectComponent, SocialNetworkComponent, SocialNetworkDlgComponent, StagingInterceptor, UploadDocComponent, UploadFileComponent, UserMenuComponent, VersionCheckService, VoiceRecognitionService, provideGloww, provideGlowwSecurity };
|
|
4722
|
+
export { API_SERVER_URL, AdministratorGuard, AssignedUserTasksComponent, AuthGuard, AuthenticationService, AuthenticationServiceConfig, AutoCompleteComponent, BaseCollectionComponent, CallbackDirective, ChangePasswordDlgComponent, CodeEditorComponent, ConfirmationComponent, ConfirmationModel, DatetimeComponent, DialogService, DisplayObjectsComponent, DownloadProgressComponent, DummyComponent, ErrorInterceptor, FileEditComponent, FileSinkDirective, FilterFormComponent, FolderService, FolderServiceConfig, FoldersComponent, GLOWW_APPLI, GLOWW_MODULE_EXPORTS, GLOWW_SECURITY_STANDALONE_DECLARATIONS, GLOWW_STANDALONE_DECLARATIONS, GlowwModule, GlowwSecurityModule, GlowwSecurityService, GlowwService, GlowwValidators, HasUnsavedDataGuard, HeaderComponent, HtmlEditorComponent, HtmlFormatPipe, JwtInterceptor, LoginComponent, MenuListItemComponent, NavService, PromptComponent, PromptModel, ResultTableComponent, RouteDirective, SafeHtmlPipe, SearchFormComponent, SecureAComponent, SecureImgComponent, SecurePipe, SelectComponent, SocialNetworkComponent, SocialNetworkDlgComponent, StagingInterceptor, UploadDocComponent, UploadFileComponent, UserMenuComponent, VersionCheckService, VoiceRecognitionService, provideGloww, provideGlowwSecurity };
|
|
4566
4723
|
//# sourceMappingURL=gloww-gloww.mjs.map
|