verben-workflow-ui 0.5.85 → 0.5.87
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/esm2022/public-api.mjs +3 -1
- package/esm2022/src/lib/components/form-viewer/form-viewer.component.mjs +38 -0
- package/esm2022/src/lib/components/form-viewer/form-viewer.module.mjs +78 -0
- package/esm2022/src/lib/components/form-viewer/index.mjs +2 -0
- package/esm2022/src/lib/components/form-viewer/public-api.mjs +3 -0
- package/esm2022/src/lib/components/form-viewer/verben-workflow-ui-src-lib-components-form-viewer.mjs +5 -0
- package/esm2022/src/lib/components/my-queue/my-queue.columns.mjs +6 -1
- package/esm2022/src/lib/components/my-queue/my-queue.component.mjs +201 -17
- package/esm2022/src/lib/components/my-queue/my-queue.facade.mjs +67 -15
- package/esm2022/src/lib/components/my-queue/my-queue.module.mjs +10 -4
- package/esm2022/src/lib/components/my-queue/my-queue.service.mjs +16 -10
- package/esm2022/src/lib/components/my-queue/my-queue.state.mjs +21 -3
- package/esm2022/src/lib/components/my-queue/tasks.form.component.mjs +9 -3
- package/esm2022/src/lib/components/tasks/tasks.columns.mjs +6 -1
- package/esm2022/src/lib/components/tasks/tasks.component.mjs +22 -11
- package/esm2022/src/lib/components/tasks/tasks.facade.mjs +16 -3
- package/esm2022/src/lib/components/tasks/tasks.module.mjs +1 -1
- package/esm2022/src/lib/components/tasks/tasks.service.mjs +7 -6
- package/esm2022/src/lib/components/tasks/tasks.state.mjs +7 -3
- package/esm2022/src/lib/components/workflow-stage/index.mjs +2 -0
- package/esm2022/src/lib/components/workflow-stage/public-api.mjs +3 -0
- package/esm2022/src/lib/components/workflow-stage/verben-workflow-ui-src-lib-components-workflow-stage.mjs +5 -0
- package/esm2022/src/lib/components/workflow-stage/workflow-stage.component.mjs +325 -0
- package/esm2022/src/lib/components/workflow-stage/workflow-stage.module.mjs +82 -0
- package/esm2022/src/lib/models/ActionHistory.mjs +1 -1
- package/esm2022/src/lib/models/Task.mjs +1 -1
- package/esm2022/src/lib/models/user.mjs +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-form-viewer.mjs +118 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-viewer.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs +446 -173
- package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs +50 -17
- package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-stage.mjs +409 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-stage.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui.mjs +2 -0
- package/fesm2022/verben-workflow-ui.mjs.map +1 -1
- package/package.json +76 -64
- package/public-api.d.ts +2 -0
- package/src/lib/components/form-viewer/form-viewer.component.d.ts +17 -0
- package/src/lib/components/form-viewer/form-viewer.module.d.ts +11 -0
- package/src/lib/components/form-viewer/index.d.ts +1 -0
- package/src/lib/components/form-viewer/public-api.d.ts +2 -0
- package/src/lib/components/my-queue/my-queue.component.d.ts +38 -7
- package/src/lib/components/my-queue/my-queue.facade.d.ts +6 -1
- package/src/lib/components/my-queue/my-queue.module.d.ts +2 -1
- package/src/lib/components/my-queue/my-queue.service.d.ts +2 -2
- package/src/lib/components/my-queue/my-queue.state.d.ts +7 -1
- package/src/lib/components/my-queue/tasks.form.component.d.ts +2 -1
- package/src/lib/components/tasks/tasks.component.d.ts +3 -1
- package/src/lib/components/tasks/tasks.state.d.ts +2 -1
- package/src/lib/components/workflow-stage/index.d.ts +1 -0
- package/src/lib/components/workflow-stage/public-api.d.ts +2 -0
- package/src/lib/components/workflow-stage/workflow-stage.component.d.ts +77 -0
- package/src/lib/components/workflow-stage/workflow-stage.module.d.ts +12 -0
- package/src/lib/models/ActionHistory.d.ts +3 -1
- package/src/lib/models/Task.d.ts +13 -5
- package/src/lib/models/user.d.ts +1 -0
|
@@ -1,26 +1,33 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable,
|
|
2
|
+
import { Injectable, EventEmitter, Component, Input, Output, input, ViewChildren, NgModule } from '@angular/core';
|
|
3
3
|
import * as i2 from 'verben-workflow-ui/src/lib/components/tasks';
|
|
4
|
-
import { TaskModel } from 'verben-workflow-ui/src/lib/components/tasks';
|
|
5
|
-
import { SortDirection, ErrorResponse,
|
|
4
|
+
import { TaskModel, TaskFacade } from 'verben-workflow-ui/src/lib/components/tasks';
|
|
5
|
+
import { SortDirection, ErrorResponse, DataType, Status, TaskStatus, ObjectState } from 'verben-workflow-ui/src/lib/models';
|
|
6
6
|
import { BaseDataViewComponent, SharedModule } from 'verben-workflow-ui/src/lib/shared';
|
|
7
|
-
import { BehaviorSubject, lastValueFrom } from 'rxjs';
|
|
8
|
-
import * as
|
|
9
|
-
import * as i3 from '@angular/common';
|
|
7
|
+
import { BehaviorSubject, Subject, debounceTime, distinctUntilChanged, takeUntil, lastValueFrom } from 'rxjs';
|
|
8
|
+
import * as i3 from 'verben-workflow-ui/src/lib/services';
|
|
9
|
+
import * as i3$1 from '@angular/common';
|
|
10
10
|
import { CommonModule } from '@angular/common';
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
11
|
+
import * as i5 from 'verben-ng-ui';
|
|
12
|
+
import * as i6$1 from '@angular/router';
|
|
13
13
|
import { RouterLink } from '@angular/router';
|
|
14
|
-
import * as
|
|
14
|
+
import * as i7 from 'verben-workflow-ui/src/lib/components/operation-popup';
|
|
15
15
|
import { OperationPopupComponent } from 'verben-workflow-ui/src/lib/components/operation-popup';
|
|
16
|
+
import * as i8 from 'verben-workflow-ui/src/lib/components/workflow-stage';
|
|
17
|
+
import { WorkFlowStageLibModule } from 'verben-workflow-ui/src/lib/components/workflow-stage';
|
|
18
|
+
import * as i1 from '@angular/forms';
|
|
19
|
+
import { Validators } from '@angular/forms';
|
|
16
20
|
import * as i5$1 from 'verben-workflow-ui/src/lib/components/form-control';
|
|
17
21
|
import { FormControlerModule } from 'verben-workflow-ui/src/lib/components/form-control';
|
|
18
22
|
import * as i6 from 'verben-workflow-ui/src/lib/components/form-timer';
|
|
19
23
|
import { FormTimerModule } from 'verben-workflow-ui/src/lib/components/form-timer';
|
|
20
|
-
import * as i1$1 from '@angular/forms';
|
|
21
|
-
import { Validators } from '@angular/forms';
|
|
22
24
|
|
|
23
25
|
const columns = [
|
|
26
|
+
{
|
|
27
|
+
id: 'code',
|
|
28
|
+
header: 'CODE',
|
|
29
|
+
accessorKey: 'Code',
|
|
30
|
+
},
|
|
24
31
|
{
|
|
25
32
|
id: 'task',
|
|
26
33
|
header: 'TASK',
|
|
@@ -107,12 +114,17 @@ class MyQueueService {
|
|
|
107
114
|
const url = `DeleteTasks`;
|
|
108
115
|
return this.httpService.delete(`${url}?data=${requestIds.join(',')}`);
|
|
109
116
|
}
|
|
110
|
-
getTasksForUser(user, skip, limit, sortParam, sortOrder) {
|
|
111
|
-
|
|
117
|
+
getTasksForUser(user, skip, limit, sortParam, sortOrder, param) {
|
|
118
|
+
//taskCode
|
|
119
|
+
const url = param
|
|
120
|
+
? `GetTasksForUser/${skip}/${limit}/${sortParam}/${sortOrder}/${user}/undefined/${encodeURIComponent(param)}`
|
|
121
|
+
: `GetTasksForUser/${skip}/${limit}/${sortParam}/${sortOrder}/${user}`;
|
|
112
122
|
return this.httpService.get(url);
|
|
113
123
|
}
|
|
114
|
-
getQueueTasksForUser(user, skip, limit, sortParam, sortOrder) {
|
|
115
|
-
const url =
|
|
124
|
+
getQueueTasksForUser(user, skip, limit, sortParam, sortOrder, param) {
|
|
125
|
+
const url = param
|
|
126
|
+
? `GetQueueTasksForUser/${skip}/${limit}/${sortParam}/${sortOrder}/${user}/undefined/${encodeURIComponent(param)}`
|
|
127
|
+
: `GetQueueTasksForUser/${skip}/${limit}/${sortParam}/${sortOrder}/${user}`;
|
|
116
128
|
return this.httpService.get(url);
|
|
117
129
|
}
|
|
118
130
|
getPossibleTasksForUser(user, skip, limit, sortParam, sortOrder) {
|
|
@@ -155,9 +167,7 @@ class MyQueueService {
|
|
|
155
167
|
const url = `FollowTask/${actorId}`;
|
|
156
168
|
return this.httpService.post(url, task);
|
|
157
169
|
}
|
|
158
|
-
unFollowTask(taskId, actorId
|
|
159
|
-
// task: Task,
|
|
160
|
-
) {
|
|
170
|
+
unFollowTask(taskId, actorId) {
|
|
161
171
|
const url = `UnFollowTask/${taskId}/${actorId}`;
|
|
162
172
|
return this.httpService.post(url, {});
|
|
163
173
|
}
|
|
@@ -177,16 +187,21 @@ class MyQueueService {
|
|
|
177
187
|
const url = `FillForm/${taskCode}`;
|
|
178
188
|
return this.httpService.post(url, form);
|
|
179
189
|
}
|
|
180
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueService, deps: [{ token:
|
|
181
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueService });
|
|
190
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueService, deps: [{ token: i3.HttpWebRequestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
191
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueService, providedIn: 'root' });
|
|
182
192
|
}
|
|
183
193
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueService, decorators: [{
|
|
184
|
-
type: Injectable
|
|
185
|
-
|
|
194
|
+
type: Injectable,
|
|
195
|
+
args: [{
|
|
196
|
+
providedIn: 'root', // 👈 Add this line
|
|
197
|
+
}]
|
|
198
|
+
}], ctorParameters: () => [{ type: i3.HttpWebRequestService }] });
|
|
186
199
|
|
|
187
200
|
class MyQueueState {
|
|
188
201
|
updating$ = new BehaviorSubject(false);
|
|
202
|
+
resetPage = new BehaviorSubject(false);
|
|
189
203
|
tasks$ = new BehaviorSubject([]);
|
|
204
|
+
searchTerm$ = new BehaviorSubject('');
|
|
190
205
|
queryParams$ = new BehaviorSubject({
|
|
191
206
|
skip: 0,
|
|
192
207
|
limit: 50,
|
|
@@ -226,6 +241,15 @@ class MyQueueState {
|
|
|
226
241
|
setTaskForms(taskForms) {
|
|
227
242
|
this.taskForms$.next(taskForms);
|
|
228
243
|
}
|
|
244
|
+
getSearchTerm$() {
|
|
245
|
+
return this.searchTerm$.asObservable();
|
|
246
|
+
}
|
|
247
|
+
getSearchTermValue() {
|
|
248
|
+
return this.searchTerm$.getValue();
|
|
249
|
+
}
|
|
250
|
+
setSearchTerm(term) {
|
|
251
|
+
this.searchTerm$.next(term);
|
|
252
|
+
}
|
|
229
253
|
getQueryParams$() {
|
|
230
254
|
return this.queryParams$.asObservable();
|
|
231
255
|
}
|
|
@@ -247,6 +271,10 @@ class MyQueueState {
|
|
|
247
271
|
const currentValue = this.tasks$.getValue();
|
|
248
272
|
this.tasks$.next([task, ...currentValue]);
|
|
249
273
|
}
|
|
274
|
+
resetPagination() {
|
|
275
|
+
const currentParams = this.queryParams$.getValue();
|
|
276
|
+
this.queryParams$.next({ ...currentParams, skip: 0 });
|
|
277
|
+
}
|
|
250
278
|
updateRequest(updatedRequest) {
|
|
251
279
|
const tasks = this.tasks$.getValue();
|
|
252
280
|
const index = tasks.findIndex((r) => r.Code === updatedRequest.Code);
|
|
@@ -264,24 +292,61 @@ class MyQueueState {
|
|
|
264
292
|
this.tasks$.next([...currentRequests, ...newRequests]);
|
|
265
293
|
}
|
|
266
294
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
267
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueState });
|
|
295
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueState, providedIn: 'root' });
|
|
268
296
|
}
|
|
269
297
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueState, decorators: [{
|
|
270
|
-
type: Injectable
|
|
298
|
+
type: Injectable,
|
|
299
|
+
args: [{
|
|
300
|
+
providedIn: 'root', // 👈 Add this line
|
|
301
|
+
}]
|
|
271
302
|
}] });
|
|
272
303
|
|
|
273
304
|
class MyQueueFacade {
|
|
274
305
|
service;
|
|
275
306
|
state;
|
|
276
307
|
utilService;
|
|
308
|
+
searchSubject = new Subject();
|
|
309
|
+
destroy$ = new Subject();
|
|
277
310
|
constructor(service, state, utilService) {
|
|
278
311
|
this.service = service;
|
|
279
312
|
this.state = state;
|
|
280
313
|
this.utilService = utilService;
|
|
314
|
+
this.searchSubject
|
|
315
|
+
.pipe(debounceTime(1000), distinctUntilChanged((a, b) => a.term === b.term), takeUntil(this.destroy$))
|
|
316
|
+
.subscribe(({ term, isQueue, user }) => {
|
|
317
|
+
this.handleSearch(term, isQueue, user);
|
|
318
|
+
});
|
|
281
319
|
this.isUpdating$().subscribe((loading) => {
|
|
282
320
|
this.utilService.sendBI(loading);
|
|
283
321
|
});
|
|
284
322
|
}
|
|
323
|
+
ngOnDestroy() {
|
|
324
|
+
this.destroy$.next();
|
|
325
|
+
this.destroy$.complete();
|
|
326
|
+
}
|
|
327
|
+
search(term, isQueue, user) {
|
|
328
|
+
this.searchSubject.next({ term, isQueue, user });
|
|
329
|
+
}
|
|
330
|
+
async handleSearch(searchTerm, isQueue, user) {
|
|
331
|
+
this.state.setSearchTerm(searchTerm);
|
|
332
|
+
this.state.resetPagination();
|
|
333
|
+
this.state.resetPage.next(true);
|
|
334
|
+
try {
|
|
335
|
+
this.state.setUpdating(true);
|
|
336
|
+
if (searchTerm.trim().length > 0) {
|
|
337
|
+
await this.loadRequestsWithParam(searchTerm, isQueue);
|
|
338
|
+
}
|
|
339
|
+
else {
|
|
340
|
+
await this.loadRequests(isQueue);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
catch (error) {
|
|
344
|
+
throw error;
|
|
345
|
+
}
|
|
346
|
+
finally {
|
|
347
|
+
this.state.setUpdating(false);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
285
350
|
isUpdating$() {
|
|
286
351
|
return this.state.isUpdating$();
|
|
287
352
|
}
|
|
@@ -316,6 +381,9 @@ class MyQueueFacade {
|
|
|
316
381
|
}
|
|
317
382
|
const { Skip, PageSize, Result } = response;
|
|
318
383
|
if (Result) {
|
|
384
|
+
Result.forEach((x) => {
|
|
385
|
+
x.Id = x.Code;
|
|
386
|
+
});
|
|
319
387
|
this.state.setRequests(Result);
|
|
320
388
|
this.state.updateQueryParams({ skip: Skip });
|
|
321
389
|
}
|
|
@@ -327,17 +395,22 @@ class MyQueueFacade {
|
|
|
327
395
|
this.state.setUpdating(false);
|
|
328
396
|
}
|
|
329
397
|
}
|
|
330
|
-
async loadRequestsWithParam(param) {
|
|
398
|
+
async loadRequestsWithParam(param, queue = false) {
|
|
331
399
|
try {
|
|
332
400
|
this.state.setUpdating(true);
|
|
333
401
|
const params = this.state.getQueryParamsValue();
|
|
334
|
-
const
|
|
335
|
-
|
|
336
|
-
this.
|
|
402
|
+
const response = queue
|
|
403
|
+
? await this.service.getQueueTasksForUser(params.user || '', params.skip, params.limit, params.sortParam || 'CreatedDate', params.sortOrder, param)
|
|
404
|
+
: await this.service.getTasksForUser(params.user || '', params.skip, params.limit, params.sortParam || 'CreatedDate', params.sortOrder, param);
|
|
405
|
+
if (response instanceof ErrorResponse) {
|
|
406
|
+
this.utilService.showError(response.ErrorMsg);
|
|
337
407
|
return;
|
|
338
408
|
}
|
|
339
|
-
|
|
340
|
-
|
|
409
|
+
response.Result.forEach((x) => {
|
|
410
|
+
x.Id = x.Code;
|
|
411
|
+
});
|
|
412
|
+
this.state.setRequests(response.Result);
|
|
413
|
+
this.state.updateQueryParams({ skip: response.Skip });
|
|
341
414
|
}
|
|
342
415
|
catch (error) {
|
|
343
416
|
throw error;
|
|
@@ -682,20 +755,27 @@ class MyQueueFacade {
|
|
|
682
755
|
this.state.setUpdating(true);
|
|
683
756
|
const currentParams = this.state.getQueryParamsValue();
|
|
684
757
|
// const searchTerm = this.state.getSearchTermValue();
|
|
685
|
-
const searchTerm =
|
|
758
|
+
const searchTerm = this.state.getSearchTermValue();
|
|
686
759
|
// Update skip value
|
|
687
760
|
// Load and append data
|
|
688
|
-
const response =
|
|
689
|
-
?
|
|
690
|
-
|
|
761
|
+
const response = searchTerm
|
|
762
|
+
? queue
|
|
763
|
+
? await this.service.getQueueTasksForUser(currentParams.user || '', currentParams.skip, currentParams.limit, currentParams.sortParam || 'CreatedDate', currentParams.sortOrder, searchTerm)
|
|
764
|
+
: await this.service.getTasksForUser(currentParams.user || '', currentParams.skip, currentParams.limit, currentParams.sortParam || 'CreatedDate', currentParams.sortOrder, searchTerm)
|
|
765
|
+
: queue
|
|
766
|
+
? await this.service.getQueueTasksForUser(currentParams.user || '', currentParams.skip, currentParams.limit, currentParams.sortParam || 'CreatedDate', currentParams.sortOrder)
|
|
767
|
+
: await this.service.getTasksForUser(currentParams.user || '', currentParams.skip, currentParams.limit, currentParams.sortParam || 'CreatedDate', currentParams.sortOrder);
|
|
691
768
|
if (response instanceof ErrorResponse) {
|
|
692
769
|
this.utilService.showError(response.ErrorMsg);
|
|
693
770
|
return;
|
|
694
771
|
}
|
|
695
772
|
const { Skip, PageSize, Result } = response;
|
|
773
|
+
response.Result.forEach((x) => {
|
|
774
|
+
x.Id = x.Code;
|
|
775
|
+
});
|
|
696
776
|
this.state.appendRequests(response.Result);
|
|
697
777
|
this.state.updateQueryParams({
|
|
698
|
-
skip: Skip,
|
|
778
|
+
skip: Skip > 0 ? Skip : Result.length,
|
|
699
779
|
limit: currentParams.limit,
|
|
700
780
|
});
|
|
701
781
|
}
|
|
@@ -706,18 +786,164 @@ class MyQueueFacade {
|
|
|
706
786
|
this.state.setUpdating(false);
|
|
707
787
|
}
|
|
708
788
|
}
|
|
709
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueFacade, deps: [{ token: MyQueueService }, { token: MyQueueState }, { token:
|
|
710
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueFacade });
|
|
789
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueFacade, deps: [{ token: MyQueueService }, { token: MyQueueState }, { token: i3.UtilService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
790
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueFacade, providedIn: 'root' });
|
|
711
791
|
}
|
|
712
792
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueFacade, decorators: [{
|
|
713
|
-
type: Injectable
|
|
714
|
-
|
|
793
|
+
type: Injectable,
|
|
794
|
+
args: [{
|
|
795
|
+
providedIn: 'root', // 👈 Add this line
|
|
796
|
+
}]
|
|
797
|
+
}], ctorParameters: () => [{ type: MyQueueService }, { type: MyQueueState }, { type: i3.UtilService }] });
|
|
798
|
+
|
|
799
|
+
class TasksFormComponent {
|
|
800
|
+
fb;
|
|
801
|
+
taskFacade;
|
|
802
|
+
get currentData() {
|
|
803
|
+
return this._currentData;
|
|
804
|
+
}
|
|
805
|
+
set currentData(value) {
|
|
806
|
+
this._currentData = value;
|
|
807
|
+
if (value?.data) {
|
|
808
|
+
this.form.patchValue({
|
|
809
|
+
Name: value.data.Name || '',
|
|
810
|
+
Description: value.data.Description || '',
|
|
811
|
+
WorkflowCode: value.data.WorkflowCode || '',
|
|
812
|
+
Status: value.data.Status || '',
|
|
813
|
+
});
|
|
814
|
+
if (this.readOnly) {
|
|
815
|
+
this.form.disable();
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
else {
|
|
819
|
+
this.form.reset();
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
_currentData = null;
|
|
823
|
+
readOnly = false;
|
|
824
|
+
taskForm = null;
|
|
825
|
+
active = 0;
|
|
826
|
+
dataType = DataType.Text;
|
|
827
|
+
onTaskFormSave = new EventEmitter();
|
|
828
|
+
onSave = new EventEmitter();
|
|
829
|
+
form;
|
|
830
|
+
statuses = Object.values(Status);
|
|
831
|
+
workflows = [];
|
|
832
|
+
loadingTaskForm = false;
|
|
833
|
+
taskFormView = false;
|
|
834
|
+
// active: boolean = false;
|
|
835
|
+
constructor(fb, taskFacade) {
|
|
836
|
+
this.fb = fb;
|
|
837
|
+
this.taskFacade = taskFacade;
|
|
838
|
+
this.taskFacade.getWorkflow$().subscribe((workflows) => {
|
|
839
|
+
this.workflows = workflows;
|
|
840
|
+
});
|
|
841
|
+
this.form = this.fb.group({
|
|
842
|
+
Name: ['', { validators: [Validators.required] }],
|
|
843
|
+
Description: ['', { validators: [Validators.required] }],
|
|
844
|
+
WorkflowCode: ['', { validators: [Validators.required] }],
|
|
845
|
+
Status: ['', { validators: [Validators.required] }],
|
|
846
|
+
TaskForms: [],
|
|
847
|
+
});
|
|
848
|
+
}
|
|
849
|
+
ngOnInit() {
|
|
850
|
+
try {
|
|
851
|
+
this.taskFacade.loadWorkflows().then(() => { });
|
|
852
|
+
}
|
|
853
|
+
catch (error) {
|
|
854
|
+
// Handle error
|
|
855
|
+
}
|
|
856
|
+
this.form.get('WorkflowCode')?.valueChanges.subscribe((value) => {
|
|
857
|
+
if (value) {
|
|
858
|
+
const selectedWorkflow = this.workflows.find(({ Code }) => Code === value);
|
|
859
|
+
if (selectedWorkflow?.Form) {
|
|
860
|
+
this.loadingTaskForm = true;
|
|
861
|
+
this.taskFacade
|
|
862
|
+
.loadFormsWithParam(selectedWorkflow.Form)
|
|
863
|
+
.then((form) => {
|
|
864
|
+
if (form) {
|
|
865
|
+
this.taskForm = form;
|
|
866
|
+
}
|
|
867
|
+
})
|
|
868
|
+
.finally(() => {
|
|
869
|
+
this.loadingTaskForm = false;
|
|
870
|
+
});
|
|
871
|
+
}
|
|
872
|
+
else {
|
|
873
|
+
this.taskForm = null;
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
});
|
|
877
|
+
}
|
|
878
|
+
handleSubmit() {
|
|
879
|
+
if (this.form.valid) {
|
|
880
|
+
// Emit save event with form value
|
|
881
|
+
if (!this.taskForm ||
|
|
882
|
+
this.form.get('TaskForms')?.value?.length > 0) {
|
|
883
|
+
this.onSave.emit(this.form.value);
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
onDelete() {
|
|
888
|
+
// Emit delete event
|
|
889
|
+
}
|
|
890
|
+
sendTaskForm() {
|
|
891
|
+
if (this.taskForm) {
|
|
892
|
+
this.form
|
|
893
|
+
.get('TaskForms')
|
|
894
|
+
?.setValue([{ ...this.taskForm, Swimlane: '' }]);
|
|
895
|
+
this.taskFormView = false;
|
|
896
|
+
this.onTaskFormSave.emit(this.taskForm);
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
areRequiredPropertiesFilled() {
|
|
900
|
+
const properties = this.taskForm?.Entities[this.active].Properties || [];
|
|
901
|
+
// Check if all required properties have valid values
|
|
902
|
+
// return properties.every((property: any) => {
|
|
903
|
+
// console.log(property);
|
|
904
|
+
// return (
|
|
905
|
+
// !property.isRequired ||
|
|
906
|
+
// (property.Value !== undefined &&
|
|
907
|
+
// property.Value !== null &&
|
|
908
|
+
// property.Value !== '')
|
|
909
|
+
// );
|
|
910
|
+
// });
|
|
911
|
+
return true;
|
|
912
|
+
}
|
|
913
|
+
disableProcessing() {
|
|
914
|
+
const selectedWorkflow = this.workflows.find(({ Code }) => Code === this.form.get('WorkflowCode')?.value);
|
|
915
|
+
if (selectedWorkflow?.Form &&
|
|
916
|
+
this.currentData?.data?.TaskForms?.length === 0) {
|
|
917
|
+
return true;
|
|
918
|
+
}
|
|
919
|
+
else
|
|
920
|
+
return this.form.invalid;
|
|
921
|
+
}
|
|
922
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TasksFormComponent, deps: [{ token: i1.FormBuilder }, { token: i2.TaskFacade }], target: i0.ɵɵFactoryTarget.Component });
|
|
923
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: TasksFormComponent, selector: "tasks-form", inputs: { currentData: "currentData", readOnly: "readOnly" }, outputs: { onTaskFormSave: "onTaskFormSave", onSave: "onSave" }, ngImport: i0, template: "@if (taskFormView && taskForm) {\n <div\n *ngIf=\"taskForm.Entities[active]\"\n class=\"flex flex-wrap bg-[#9A9FBF80] rounded-xl px-3 py-2 w-full relative gap-6\"\n >\n <app-form-timer></app-form-timer>\n <div *ngFor=\"let group of taskForm.Entities; let index = index\">\n <p\n (click)=\"active = index\"\n [ngClass]=\"{\n 'bg-[var(--vbn-color-surface)] text-primary rounded-lg shadow-lg':\n active === index,\n }\"\n class=\"px-6 py-2 cursor-pointer\"\n >\n {{ group.Name }}group\n </p>\n </div>\n </div>\n\n <div *ngIf=\"taskForm.Entities[active]; else emptyState\" class=\"mt-4\">\n <form-control\n [dataType]=\"dataType\"\n [formProperties]=\"taskForm.Entities[active].Properties\"\n ></form-control>\n\n <div class=\"flex gap-3 justify-end\">\n <verbena-button\n (click)=\"areRequiredPropertiesFilled()\"\n text=\"CHECK\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button>\n\n <verbena-button\n (click)=\"taskFormView = false\"\n text=\"Close task form\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button>\n\n <verbena-button\n class=\"verben-primary-button\"\n (click)=\"sendTaskForm()\"\n [disable]=\"!areRequiredPropertiesFilled()\"\n text=\"Save\"\n ></verbena-button>\n </div>\n </div>\n\n <!-- Empty state template -->\n <ng-template #emptyState>\n <p class=\"mt-4 p-4 text-gray-600 text-center\">\n No entries available for the selected form group.\n </p>\n </ng-template>\n} @else {\n <form\n [formGroup]=\"form\"\n class=\"flex flex-col px-3 pb-3 rounded-xl h-full w-full relative space-y-4\"\n (ngSubmit)=\"handleSubmit()\"\n >\n <verbena-input\n name=\"Name\"\n label=\"Name\"\n formControlName=\"Name\"\n placeHolder=\"Enter Name\"\n />\n <verbena-input\n name=\"Description\"\n label=\"Description\"\n formControlName=\"Description\"\n placeHolder=\"Enter Description\"\n />\n\n <div class=\"space-y-1\">\n <label for=\"workflow\">Workflow</label>\n\n <verben-drop-down\n label=\"Workflow\"\n styleClass=\"w-full\"\n width=\"100%\"\n [multiselect]=\"false\"\n placeholder=\"Select\"\n [options]=\"workflows\"\n optionLabel=\"Name\"\n optionValue=\"Code\"\n id=\"workflow\"\n formControlName=\"WorkflowCode\"\n class=\"form-control\"\n >\n </verben-drop-down>\n </div>\n\n <div class=\"space-y-1\">\n <label for=\"status\">Status</label>\n\n <verben-drop-down\n label=\"Status\"\n styleClass=\"w-full\"\n width=\"100%\"\n [multiselect]=\"false\"\n [showClear]=\"true\"\n placeholder=\"Null\"\n [(options)]=\"statuses\"\n id=\"status\"\n formControlName=\"Status\"\n class=\"form-control\"\n >\n </verben-drop-down>\n </div>\n\n <!-- buttons -->\n <div *ngIf=\"!readOnly\" class=\"flex justify-between gap-4 my-2\">\n <verbena-button\n width=\"114px\"\n height=\"39px\"\n text=\"Delete\"\n bgColor=\"var(--vbn-color-text-muted)\"\n textColor=\"var(--vbn-color-on-primary)\"\n borderRadius=\"10px\"\n [disable]=\"disableProcessing()\"\n ></verbena-button>\n <verbena-button\n [disable]=\"!taskForm || loadingTaskForm\"\n (click)=\"taskFormView = true\"\n [text]=\"loadingTaskForm ? 'Checking for form' : 'Fill task form'\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button>\n <verbena-button\n type=\"submit\"\n text=\"Save\"\n bgColor=\"var(--vbn-color-primary)\"\n textColor=\"var(--vbn-color-on-primary)\"\n borderRadius=\"10px\"\n pd=\"10px 20px\"\n width=\"114px\"\n height=\"39px\"\n [disable]=\"disableProcessing()\"\n ></verbena-button>\n </div>\n </form>\n}\n", dependencies: [{ kind: "directive", type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i5.VerbenaInputComponent, selector: "verbena-input", inputs: ["disabled", "label", "placeHolder", "required", "svgPosition", "minLength", "maxLength", "type", "bgColor", "border", "borderRadius", "textColor", "value", "labelPosition", "labelColor", "disable", "readOnly", "min", "max", "showBorder", "showErrorMessage", "errorMessageColor", "errorBorderColor", "errorPosition", "svg", "fontSize", "svgWidth", "svgHeight", "svgColor", "capitalization", "inputContainerClass", "inputFieldClass", "passLength", "inputWrapperClass", "passwordToggle", "customErrorMessages", "icon", "textPass"], outputs: ["valueChange"] }, { kind: "component", type: i5.VerbenaButtonComponent, selector: "verbena-button", inputs: ["type", "text", "icon", "useIcon", "svgPosition", "iconPosition", "bgColor", "textColor", "border", "borderRadius", "pd", "width", "height", "fontSize", "fontWeight", "disable", "svgSize", "weight", "variant", "styleType", "svg", "svgWidth", "svgHeight", "iconColor", "svgColor", "buttonClass", "buttonTextClass", "isLoading", "spinnerSize", "spinnerColor"] }, { kind: "component", type: i5.DropDownComponent, selector: "verben-drop-down", inputs: ["options", "width", "overlayWidth", "showHorizontalLine", "horizontalLineColor", "optionLabel", "optionSubLabel", "optionValue", "placeholder", "invalidMessage", "errorPosition", "loadMoreCaption", "display", "showClear", "lazyLoad", "selectKey", "styleClass", "group", "multiselect", "filter", "avoidDuplication", "filterBy", "debounceTime", "minChar", "refPageSize", "disabled", "required", "load", "asyncLabel", "search"], outputs: ["optionsChange", "onChange", "onClick", "onClear"] }, { kind: "component", type: i5$1.FormControlComponent, selector: "form-control", inputs: ["dataType", "value", "boolInputType", "formProperties", "disabled"] }, { kind: "component", type: i6.FormTimerComponent, selector: "app-form-timer", inputs: ["expiryDate"] }] });
|
|
924
|
+
}
|
|
925
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TasksFormComponent, decorators: [{
|
|
926
|
+
type: Component,
|
|
927
|
+
args: [{ selector: 'tasks-form', template: "@if (taskFormView && taskForm) {\n <div\n *ngIf=\"taskForm.Entities[active]\"\n class=\"flex flex-wrap bg-[#9A9FBF80] rounded-xl px-3 py-2 w-full relative gap-6\"\n >\n <app-form-timer></app-form-timer>\n <div *ngFor=\"let group of taskForm.Entities; let index = index\">\n <p\n (click)=\"active = index\"\n [ngClass]=\"{\n 'bg-[var(--vbn-color-surface)] text-primary rounded-lg shadow-lg':\n active === index,\n }\"\n class=\"px-6 py-2 cursor-pointer\"\n >\n {{ group.Name }}group\n </p>\n </div>\n </div>\n\n <div *ngIf=\"taskForm.Entities[active]; else emptyState\" class=\"mt-4\">\n <form-control\n [dataType]=\"dataType\"\n [formProperties]=\"taskForm.Entities[active].Properties\"\n ></form-control>\n\n <div class=\"flex gap-3 justify-end\">\n <verbena-button\n (click)=\"areRequiredPropertiesFilled()\"\n text=\"CHECK\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button>\n\n <verbena-button\n (click)=\"taskFormView = false\"\n text=\"Close task form\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button>\n\n <verbena-button\n class=\"verben-primary-button\"\n (click)=\"sendTaskForm()\"\n [disable]=\"!areRequiredPropertiesFilled()\"\n text=\"Save\"\n ></verbena-button>\n </div>\n </div>\n\n <!-- Empty state template -->\n <ng-template #emptyState>\n <p class=\"mt-4 p-4 text-gray-600 text-center\">\n No entries available for the selected form group.\n </p>\n </ng-template>\n} @else {\n <form\n [formGroup]=\"form\"\n class=\"flex flex-col px-3 pb-3 rounded-xl h-full w-full relative space-y-4\"\n (ngSubmit)=\"handleSubmit()\"\n >\n <verbena-input\n name=\"Name\"\n label=\"Name\"\n formControlName=\"Name\"\n placeHolder=\"Enter Name\"\n />\n <verbena-input\n name=\"Description\"\n label=\"Description\"\n formControlName=\"Description\"\n placeHolder=\"Enter Description\"\n />\n\n <div class=\"space-y-1\">\n <label for=\"workflow\">Workflow</label>\n\n <verben-drop-down\n label=\"Workflow\"\n styleClass=\"w-full\"\n width=\"100%\"\n [multiselect]=\"false\"\n placeholder=\"Select\"\n [options]=\"workflows\"\n optionLabel=\"Name\"\n optionValue=\"Code\"\n id=\"workflow\"\n formControlName=\"WorkflowCode\"\n class=\"form-control\"\n >\n </verben-drop-down>\n </div>\n\n <div class=\"space-y-1\">\n <label for=\"status\">Status</label>\n\n <verben-drop-down\n label=\"Status\"\n styleClass=\"w-full\"\n width=\"100%\"\n [multiselect]=\"false\"\n [showClear]=\"true\"\n placeholder=\"Null\"\n [(options)]=\"statuses\"\n id=\"status\"\n formControlName=\"Status\"\n class=\"form-control\"\n >\n </verben-drop-down>\n </div>\n\n <!-- buttons -->\n <div *ngIf=\"!readOnly\" class=\"flex justify-between gap-4 my-2\">\n <verbena-button\n width=\"114px\"\n height=\"39px\"\n text=\"Delete\"\n bgColor=\"var(--vbn-color-text-muted)\"\n textColor=\"var(--vbn-color-on-primary)\"\n borderRadius=\"10px\"\n [disable]=\"disableProcessing()\"\n ></verbena-button>\n <verbena-button\n [disable]=\"!taskForm || loadingTaskForm\"\n (click)=\"taskFormView = true\"\n [text]=\"loadingTaskForm ? 'Checking for form' : 'Fill task form'\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button>\n <verbena-button\n type=\"submit\"\n text=\"Save\"\n bgColor=\"var(--vbn-color-primary)\"\n textColor=\"var(--vbn-color-on-primary)\"\n borderRadius=\"10px\"\n pd=\"10px 20px\"\n width=\"114px\"\n height=\"39px\"\n [disable]=\"disableProcessing()\"\n ></verbena-button>\n </div>\n </form>\n}\n" }]
|
|
928
|
+
}], ctorParameters: () => [{ type: i1.FormBuilder }, { type: i2.TaskFacade }], propDecorators: { currentData: [{
|
|
929
|
+
type: Input
|
|
930
|
+
}], readOnly: [{
|
|
931
|
+
type: Input
|
|
932
|
+
}], onTaskFormSave: [{
|
|
933
|
+
type: Output
|
|
934
|
+
}], onSave: [{
|
|
935
|
+
type: Output
|
|
936
|
+
}] } });
|
|
715
937
|
|
|
716
938
|
class MyQueueComponent extends BaseDataViewComponent {
|
|
717
939
|
cdr;
|
|
718
940
|
facade;
|
|
941
|
+
state;
|
|
942
|
+
server;
|
|
719
943
|
isGeneral = input(false);
|
|
720
|
-
user;
|
|
944
|
+
user = null;
|
|
945
|
+
userName = null;
|
|
946
|
+
filterValue = null;
|
|
721
947
|
config = {
|
|
722
948
|
dataSource: [], // Populate from service
|
|
723
949
|
columns: columns, // Your existing column definitions
|
|
@@ -736,24 +962,49 @@ class MyQueueComponent extends BaseDataViewComponent {
|
|
|
736
962
|
},
|
|
737
963
|
};
|
|
738
964
|
popups;
|
|
739
|
-
|
|
965
|
+
showForm = false;
|
|
966
|
+
constructor(cdr, facade, state, server) {
|
|
740
967
|
super();
|
|
741
968
|
this.cdr = cdr;
|
|
742
969
|
this.facade = facade;
|
|
970
|
+
this.state = state;
|
|
971
|
+
this.server = server;
|
|
743
972
|
this.facade.getRequests$().subscribe((data) => {
|
|
744
973
|
this.data.set(data);
|
|
745
974
|
});
|
|
975
|
+
this.state.resetPage.subscribe((state) => {
|
|
976
|
+
if (state) {
|
|
977
|
+
this.cardDataView.clearData();
|
|
978
|
+
this.currentData = null;
|
|
979
|
+
}
|
|
980
|
+
this.state.resetPage.next(false);
|
|
981
|
+
});
|
|
746
982
|
}
|
|
747
983
|
loadInitialData() {
|
|
748
984
|
this.facade.resetQueryParams();
|
|
749
|
-
this.facade.updateQueryParams({ user: this.user });
|
|
985
|
+
this.facade.updateQueryParams({ user: this.user || undefined });
|
|
750
986
|
try {
|
|
751
|
-
this.
|
|
987
|
+
this.filterValue
|
|
988
|
+
? this.simulateSearch(this.filterValue)
|
|
989
|
+
: this.facade.loadRequests(this.isGeneral());
|
|
752
990
|
}
|
|
753
991
|
catch (error) {
|
|
754
992
|
// Handle error
|
|
755
993
|
}
|
|
756
994
|
}
|
|
995
|
+
ngAfterViewInit() {
|
|
996
|
+
if (this.filterValue &&
|
|
997
|
+
this.filterValue.trim().length > 0 &&
|
|
998
|
+
this.dataView.searchValue.trim().length == 0) {
|
|
999
|
+
//console.log({ SetVal: this.filterValue });
|
|
1000
|
+
this.dataView.searchValue = this.filterValue;
|
|
1001
|
+
//this.cdr.detectChanges();
|
|
1002
|
+
//console.log({ Val: this.dataView.searchValue });
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
simulateSearch(filter) {
|
|
1006
|
+
this.facade.search(filter, this.isGeneral(), this.user || undefined);
|
|
1007
|
+
}
|
|
757
1008
|
// protected getCardDataByIdentifier(mailAddress: string): CardData | undefined {
|
|
758
1009
|
// return this.cardData().find(({ data }) => data.MailAddress === mailAddress);
|
|
759
1010
|
// }
|
|
@@ -765,6 +1016,9 @@ class MyQueueComponent extends BaseDataViewComponent {
|
|
|
765
1016
|
// Handle error
|
|
766
1017
|
}
|
|
767
1018
|
}
|
|
1019
|
+
handleSearch(event) {
|
|
1020
|
+
this.facade.search(event.value, this.isGeneral(), this.user || undefined);
|
|
1021
|
+
}
|
|
768
1022
|
getActionNamesForTask(task) {
|
|
769
1023
|
if (this.isGeneral()) {
|
|
770
1024
|
return ['picktask', 'releasetask', 'followtask', 'unfollowtask'];
|
|
@@ -773,7 +1027,7 @@ class MyQueueComponent extends BaseDataViewComponent {
|
|
|
773
1027
|
const actions = ['passon', 'passback', 'skipto', 'reassign'];
|
|
774
1028
|
if (task.FullStages?.[0]?.IsEntryPoint) {
|
|
775
1029
|
// Remove passback for entry point stages
|
|
776
|
-
return actions.filter(action => action !== 'passback');
|
|
1030
|
+
return actions.filter((action) => action !== 'passback');
|
|
777
1031
|
}
|
|
778
1032
|
return actions;
|
|
779
1033
|
}
|
|
@@ -801,6 +1055,7 @@ class MyQueueComponent extends BaseDataViewComponent {
|
|
|
801
1055
|
FlowablePath: '',
|
|
802
1056
|
CurrentActors: [],
|
|
803
1057
|
DataState: ObjectState.New,
|
|
1058
|
+
Id: (this.data().length + 1).toString(),
|
|
804
1059
|
});
|
|
805
1060
|
this.facade.addNewRequest(newItem);
|
|
806
1061
|
// const cardData: CardData = {
|
|
@@ -828,150 +1083,164 @@ class MyQueueComponent extends BaseDataViewComponent {
|
|
|
828
1083
|
break;
|
|
829
1084
|
}
|
|
830
1085
|
}
|
|
831
|
-
|
|
832
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.14", type: MyQueueComponent, selector: "lib-my-queue", inputs: { isGeneral: { classPropertyName: "isGeneral", publicName: "isGeneral", isSignal: true, isRequired: false, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: false, isRequired: false, transformFunction: null } }, providers: [MyQueueService, MyQueueState, MyQueueFacade], viewQueries: [{ propertyName: "popups", predicate: ["popup"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"space-y-8\">\n <verben-data-view\n #vdv\n [viewState]=\"{\n isSearch: true,\n isColumn: true,\n isFilter: true,\n isSort: true,\n isExport: true,\n isSelect: true,\n isCreate: false,\n isToggle: true,\n }\"\n [buttonClass]=\"'my-custom-button-class'\"\n [iconClass]=\"'my-icon-class'\"\n [activeIconClass]=\"'my-active-icon-class'\"\n [selectedColumnCount]=\"0\"\n [selectedSortCount]=\"0\"\n [selectedFilterTableCount]=\"0\"\n (viewChange)=\"onViewChange($event)\"\n (stateChange)=\"onStateChange($event)\"\n >\n <div table-content>\n <lib-data-table\n [data]=\"data()\"\n [columns]=\"config.columns\"\n [styleConfig]=\"styles\"\n (selectionChange)=\"onSelectionChange($event)\"\n [groupBy]=\"groupByWorkflowCode\"\n >\n <ng-container libColumn=\"history\">\n <ng-template #cell let-value let-deleteRow>\n <a\n [routerLink]=\"['/workflow/task-history', value]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)]\"\n >view history</a\n >\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"workflow\">\n <ng-template #cell let-value>\n <a\n [routerLink]=\"['/workflow/workflows', value]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)]\"\n >view Workflow</a\n >\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"actions\">\n <ng-template #cell let-row=\"row\">\n <lib-operation-popup\n [user]=\"user\"\n [task]=\"row\"\n [allowedActions]=\"getActionNamesForTask(row)\"\n (actionComplete)=\"loadInitialData()\"\n >\n <div\n trigger\n class=\"cursor-pointer p-2 -m-2 inline-flex items-center justify-center\"\n >\n <verben-svg\n icon=\"dots\"\n [width]=\"3\"\n [height]=\"18\"\n class=\"w-auto\"\n ></verben-svg>\n </div>\n </lib-operation-popup>\n </ng-template>\n <ng-template #header>\n <strong class=\"text-center\">Actions</strong>\n </ng-template>\n </ng-container>\n </lib-data-table>\n </div>\n <div card-content>\n <verben-card-data-view\n borderRadius=\"12px\"\n (loadMoreClick)=\"loadMore()\"\n #vdcv\n dataId=\"Id\"\n border=\"5px\"\n [cardDataList]=\"cardData()\"\n rbgColor=\"var(--vbn-color-surface-alt)\"\n mg=\"20px\"\n >\n <verben-left-card-data-view class=\"space-y-7\">\n <verben-left-card-data\n #vlcd\n [parent]=\"vdcv\"\n dataId=\"Code\"\n class=\"bg-secondary-100 rounded-xl border-primary border-[1px]\"\n [cardDataList]=\"cardData()\"\n >\n <ng-template #card let-item>\n <div\n (click)=\"\n currentData = isGeneral() ? vdcv.onItemClick(item) : null\n \"\n class=\"flex\"\n >\n <div\n (click)=\"\n currentData = isGeneral() ? vdcv.onItemClick(item) : null\n \"\n class=\"flex cursor-pointer w-full bg-secondary rounded-xl\"\n >\n <div\n class=\"w-3 rounded-xl rounded-tr-none rounded-br-none\"\n [ngClass]=\"\n item.selected ? 'bg-primary' : 'bg-secondary-200'\n \"\n ></div>\n <div class=\"flex flex-col py-2 px-4 w-full\">\n <div class=\"flex items-center gap-4 justify-between\">\n <div class=\"grid gap-y-2\">\n <span\n class=\"font-semibold text-[var(--vbn-color-on-primary)]\"\n >{{ item.title }}</span\n >\n <p class=\"flex items-center\">\n <label for=\"phone\" class=\"text-[10px] font-light\"\n >Status:</label\n >\n <span id=\"phone\" class=\"text-sm\">{{\n item.data.Status\n }}</span>\n </p>\n </div>\n\n <div class=\"grid gap-y-2\">\n <span for=\"role\" class=\"font-light\">{{\n item.data.Code\n }}</span>\n\n <div\n (click)=\"$event.stopPropagation()\"\n class=\"flex items-end gap-4\"\n >\n <a\n [routerLink]=\"[\n '/workflow/task-history',\n item.data.Code,\n ]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)] text-xs relative z-10\"\n >view history</a\n >\n\n <lib-operation-popup\n [user]=\"user\"\n [task]=\"item.data\"\n [allowedActions]=\"getActionNamesForTask(item.data)\"\n (actionComplete)=\"loadInitialData()\"\n >\n <div\n trigger\n class=\"cursor-pointer p-2 -m-2 inline-flex items-center justify-center\"\n >\n <verben-svg\n icon=\"dots\"\n [width]=\"3\"\n [height]=\"18\"\n class=\"w-auto\"\n ></verben-svg>\n </div>\n </lib-operation-popup>\n </div>\n </div>\n </div>\n\n <!-- <div class=\"flex\">\n <span class=\"font-normal text-sm\">{{ item.title }}</span>\n </div>\n @for (ciItem of item.body; track ciItem.value) {\n <div class=\"\">\n <span class=\"text-muted font-light text-xs\"\n >{{ ciItem.title }}:</span\n >\n <span class=\"text-black\">{{ ciItem.value }}</span>\n </div>\n } -->\n </div>\n </div>\n </div>\n </ng-template>\n </verben-left-card-data>\n </verben-left-card-data-view>\n\n <verben-right-card-data-view>\n <ng-template #parent>\n <!-- <lib-user-request-form\n [currentData]=\"currentData\"\n (switchView)=\"vdv.toggleView()\"\n (onApproval)=\"onApprove($event)\"\n ></lib-user-request-form> -->\n </ng-template>\n </verben-right-card-data-view>\n\n <verben-card-data-view-footer class=\"w-full\">\n <div\n [ngClass]=\"{\n 'flex gap-2 items-center': true,\n 'justify-end': true,\n }\"\n >\n <!-- <verbena-button\n *ngIf=\"!vdcv.hasCurrentItem()\"\n [fontWeight]=\"'bold'\"\n [bgColor]=\"'var(--vbn-color-text-muted)'\"\n [borderRadius]=\"'4px'\"\n [textColor]=\"'var(--vbn-color-surface)'\"\n [pd]=\"'9.79px 37.28px'\"\n [text]=\"'Delete'\"\n >\n </verbena-button> -->\n <div\n class=\"flex {{\n vdcv.hasCurrentItem() ? 'flex-1' : ''\n }} justify-end items-center gap-5\"\n >\n <span class=\"paginator-text\"\n >{{ cardData().length }} records loaded</span\n >\n <button\n (click)=\"loadMore()\"\n class=\"load-more view-links text-[var(--vbn-color-border-focus)] underline\"\n >\n Load more\n </button>\n </div>\n </div>\n </verben-card-data-view-footer>\n </verben-card-data-view>\n </div>\n <div column-content>\n <lib-data-columns\n [columns]=\"config.columns\"\n (columnsUpdated)=\"onColumnsUpdated($event)\"\n ></lib-data-columns>\n </div>\n <div filter-content>\n <verben-table-filter\n [border]=\"'1px solid var(--vbn-color-primary)'\"\n borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\"\n bgColor=\"white\"\n width=\"420px\"\n textColor=\"black\"\n pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\"\n secondaryColor=\"var(--vbn-color-border-focus)\"\n tertiaryColor=\"var(--vbn-color-on-primary)\"\n [filterOptions]=\"filterArray\"\n [maxFilterLength]=\"3\"\n ></verben-table-filter>\n </div>\n <div sort-content>\n <lib-data-sort\n [columns]=\"config.columns\"\n [data]=\"data()\"\n (sortApplied)=\"onSortUpdated($event)\"\n ></lib-data-sort>\n </div>\n <div export-content>\n <lib-data-export [data]=\"data()\" (exportDataEvent)=\"handleExport($event)\">\n </lib-data-export>\n </div>\n </verben-data-view>\n\n <div *ngIf=\"vdv.isTableView\" class=\"flex gap-2 justify-end\">\n <div class=\"flex justify-end items-center gap-5\">\n <span class=\"paginator-text\">{{ cardData().length }} records loaded</span>\n <button\n (click)=\"loadMore()\"\n class=\"load-more view-links text-[var(--vbn-color-border-focus)] underline\"\n >\n Load more\n </button>\n </div>\n </div>\n</div>\n", styles: [".view-links{color:var(--vbn-color-border-focus);cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$1.DataTableComponent, selector: "lib-data-table", inputs: ["data", "columns", "dataKey", "formGroupConfig", "groupBy", "useVirtualScroll", "virtualScrollItemSize", "styleConfig"], outputs: ["rowEdit", "rowSave", "rowRevert", "rowDelete", "selectionChange"] }, { kind: "directive", type: i3$1.ColumnDirective, selector: "[libColumn]", inputs: ["libColumn"] }, { kind: "component", type: i3$1.SvgComponent, selector: "verben-svg", inputs: ["icon", "width", "height", "fill", "stroke", "type", "size"] }, { kind: "component", type: i3$1.DataViewComponent, selector: "verben-data-view", inputs: ["buttonClass", "iconClass", "activeIconClass", "columnCustomClass", "filterCustomClass", "sortCustomClass", "extendCustomClass", "exportCustomClass", "selectCustomClass", "importCustomClass", "zIndex", "createCustomClass", "tableIcon", "cardIcon", "cardClass", "tableClass", "searchKey", "searchValue", "viewState", "searchTemplate", "importTemplate", "columnTemplate", "extendTemplate", "filterTemplate", "sortTemplate", "children", "exportTemplate", "createTemplate", "selectedColumnCount", "selectedSortCount", "selectedFilterTableCount", "inputWidth", "milliseconds", "showColumnChild", "showSortChild", "showFilterChild", "showImportChild", "showExportChild", "showExtendChild", "create", "showSelected", "isTableView"], outputs: ["viewChange", "stateChange", "onSearchChange"] }, { kind: "component", type: i3$1.CardDataViewComponent, selector: "verben-card-data-view", inputs: ["pd", "mg", "lHeight", "rHeight", "rWidth", "lWidth", "textColor", "lbgColor", "rbgColor", "border", "display", "borderRadius", "activeCss", "inActiveCss", "displayAsRow", "cardDataList", "dataId", "totalRecords", "footer", "noOfVisibleChildren", "showEditIcon", "useVirtualScroll", "virtualScrollItemSize", "onItemClick", "onCardChildClick"], outputs: ["editClicked", "loadMoreClick"] }, { kind: "component", type: i3$1.LeftCardDataComponent, selector: "verben-left-card-data", inputs: ["pd", "mg", "height", "weight", "activeCss", "inActiveCss", "cardDataList", "iconCollapse", "iconExpanded", "parent", "useVirtualScroll", "virtualScrollItemSize", "dataId"] }, { kind: "component", type: i3$1.LeftCardDataViewComponent, selector: "verben-left-card-data-view", inputs: ["cardDataList"] }, { kind: "component", type: i3$1.RightCardDataViewComponent, selector: "verben-right-card-data-view", inputs: ["parentData", "chilData", "meth"] }, { kind: "component", type: i3$1.CardDataViewFooterComponent, selector: "verben-card-data-view-footer" }, { kind: "component", type: i3$1.TableFilterComponent, selector: "verben-table-filter", inputs: ["filterOptions", "pd", "mg", "height", "width", "bgColor", "boxShadow", "textColor", "primaryColor", "secondaryColor", "tertiaryColor", "border", "borderRadius", "selectWidth", "maxFilterLength", "savedFilters", "tooltip", "saveCallback"], outputs: ["filtersApplied", "resetSortData"] }, { kind: "component", type: i3$1.DataExportComponent, selector: "lib-data-export", inputs: ["columns", "data", "dataFetchUrl", "dataQueryParameters"], outputs: ["exportDataEvent"] }, { kind: "component", type: i3$1.DataColumnsComponent, selector: "lib-data-columns", inputs: ["columns", "enableDragAndDrop", "maxVisibleItems", "selectedColumns"], outputs: ["columnsUpdated"] }, { kind: "component", type: i3$1.DataSortComponent, selector: "lib-data-sort", inputs: ["columns", "data", "enableDragAndDrop"], outputs: ["sortApplied", "resetFilter"] }, { kind: "directive", type: i4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i5.OperationPopupComponent, selector: "lib-operation-popup", inputs: ["user", "task", "allowedActions"], outputs: ["actionComplete"] }] });
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
args: [{ selector: 'lib-my-queue', providers: [MyQueueService, MyQueueState, MyQueueFacade], template: "<div class=\"space-y-8\">\n <verben-data-view\n #vdv\n [viewState]=\"{\n isSearch: true,\n isColumn: true,\n isFilter: true,\n isSort: true,\n isExport: true,\n isSelect: true,\n isCreate: false,\n isToggle: true,\n }\"\n [buttonClass]=\"'my-custom-button-class'\"\n [iconClass]=\"'my-icon-class'\"\n [activeIconClass]=\"'my-active-icon-class'\"\n [selectedColumnCount]=\"0\"\n [selectedSortCount]=\"0\"\n [selectedFilterTableCount]=\"0\"\n (viewChange)=\"onViewChange($event)\"\n (stateChange)=\"onStateChange($event)\"\n >\n <div table-content>\n <lib-data-table\n [data]=\"data()\"\n [columns]=\"config.columns\"\n [styleConfig]=\"styles\"\n (selectionChange)=\"onSelectionChange($event)\"\n [groupBy]=\"groupByWorkflowCode\"\n >\n <ng-container libColumn=\"history\">\n <ng-template #cell let-value let-deleteRow>\n <a\n [routerLink]=\"['/workflow/task-history', value]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)]\"\n >view history</a\n >\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"workflow\">\n <ng-template #cell let-value>\n <a\n [routerLink]=\"['/workflow/workflows', value]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)]\"\n >view Workflow</a\n >\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"actions\">\n <ng-template #cell let-row=\"row\">\n <lib-operation-popup\n [user]=\"user\"\n [task]=\"row\"\n [allowedActions]=\"getActionNamesForTask(row)\"\n (actionComplete)=\"loadInitialData()\"\n >\n <div\n trigger\n class=\"cursor-pointer p-2 -m-2 inline-flex items-center justify-center\"\n >\n <verben-svg\n icon=\"dots\"\n [width]=\"3\"\n [height]=\"18\"\n class=\"w-auto\"\n ></verben-svg>\n </div>\n </lib-operation-popup>\n </ng-template>\n <ng-template #header>\n <strong class=\"text-center\">Actions</strong>\n </ng-template>\n </ng-container>\n </lib-data-table>\n </div>\n <div card-content>\n <verben-card-data-view\n borderRadius=\"12px\"\n (loadMoreClick)=\"loadMore()\"\n #vdcv\n dataId=\"Id\"\n border=\"5px\"\n [cardDataList]=\"cardData()\"\n rbgColor=\"var(--vbn-color-surface-alt)\"\n mg=\"20px\"\n >\n <verben-left-card-data-view class=\"space-y-7\">\n <verben-left-card-data\n #vlcd\n [parent]=\"vdcv\"\n dataId=\"Code\"\n class=\"bg-secondary-100 rounded-xl border-primary border-[1px]\"\n [cardDataList]=\"cardData()\"\n >\n <ng-template #card let-item>\n <div\n (click)=\"\n currentData = isGeneral() ? vdcv.onItemClick(item) : null\n \"\n class=\"flex\"\n >\n <div\n (click)=\"\n currentData = isGeneral() ? vdcv.onItemClick(item) : null\n \"\n class=\"flex cursor-pointer w-full bg-secondary rounded-xl\"\n >\n <div\n class=\"w-3 rounded-xl rounded-tr-none rounded-br-none\"\n [ngClass]=\"\n item.selected ? 'bg-primary' : 'bg-secondary-200'\n \"\n ></div>\n <div class=\"flex flex-col py-2 px-4 w-full\">\n <div class=\"flex items-center gap-4 justify-between\">\n <div class=\"grid gap-y-2\">\n <span\n class=\"font-semibold text-[var(--vbn-color-on-primary)]\"\n >{{ item.title }}</span\n >\n <p class=\"flex items-center\">\n <label for=\"phone\" class=\"text-[10px] font-light\"\n >Status:</label\n >\n <span id=\"phone\" class=\"text-sm\">{{\n item.data.Status\n }}</span>\n </p>\n </div>\n\n <div class=\"grid gap-y-2\">\n <span for=\"role\" class=\"font-light\">{{\n item.data.Code\n }}</span>\n\n <div\n (click)=\"$event.stopPropagation()\"\n class=\"flex items-end gap-4\"\n >\n <a\n [routerLink]=\"[\n '/workflow/task-history',\n item.data.Code,\n ]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)] text-xs relative z-10\"\n >view history</a\n >\n\n <lib-operation-popup\n [user]=\"user\"\n [task]=\"item.data\"\n [allowedActions]=\"getActionNamesForTask(item.data)\"\n (actionComplete)=\"loadInitialData()\"\n >\n <div\n trigger\n class=\"cursor-pointer p-2 -m-2 inline-flex items-center justify-center\"\n >\n <verben-svg\n icon=\"dots\"\n [width]=\"3\"\n [height]=\"18\"\n class=\"w-auto\"\n ></verben-svg>\n </div>\n </lib-operation-popup>\n </div>\n </div>\n </div>\n\n <!-- <div class=\"flex\">\n <span class=\"font-normal text-sm\">{{ item.title }}</span>\n </div>\n @for (ciItem of item.body; track ciItem.value) {\n <div class=\"\">\n <span class=\"text-muted font-light text-xs\"\n >{{ ciItem.title }}:</span\n >\n <span class=\"text-black\">{{ ciItem.value }}</span>\n </div>\n } -->\n </div>\n </div>\n </div>\n </ng-template>\n </verben-left-card-data>\n </verben-left-card-data-view>\n\n <verben-right-card-data-view>\n <ng-template #parent>\n <!-- <lib-user-request-form\n [currentData]=\"currentData\"\n (switchView)=\"vdv.toggleView()\"\n (onApproval)=\"onApprove($event)\"\n ></lib-user-request-form> -->\n </ng-template>\n </verben-right-card-data-view>\n\n <verben-card-data-view-footer class=\"w-full\">\n <div\n [ngClass]=\"{\n 'flex gap-2 items-center': true,\n 'justify-end': true,\n }\"\n >\n <!-- <verbena-button\n *ngIf=\"!vdcv.hasCurrentItem()\"\n [fontWeight]=\"'bold'\"\n [bgColor]=\"'var(--vbn-color-text-muted)'\"\n [borderRadius]=\"'4px'\"\n [textColor]=\"'var(--vbn-color-surface)'\"\n [pd]=\"'9.79px 37.28px'\"\n [text]=\"'Delete'\"\n >\n </verbena-button> -->\n <div\n class=\"flex {{\n vdcv.hasCurrentItem() ? 'flex-1' : ''\n }} justify-end items-center gap-5\"\n >\n <span class=\"paginator-text\"\n >{{ cardData().length }} records loaded</span\n >\n <button\n (click)=\"loadMore()\"\n class=\"load-more view-links text-[var(--vbn-color-border-focus)] underline\"\n >\n Load more\n </button>\n </div>\n </div>\n </verben-card-data-view-footer>\n </verben-card-data-view>\n </div>\n <div column-content>\n <lib-data-columns\n [columns]=\"config.columns\"\n (columnsUpdated)=\"onColumnsUpdated($event)\"\n ></lib-data-columns>\n </div>\n <div filter-content>\n <verben-table-filter\n [border]=\"'1px solid var(--vbn-color-primary)'\"\n borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\"\n bgColor=\"white\"\n width=\"420px\"\n textColor=\"black\"\n pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\"\n secondaryColor=\"var(--vbn-color-border-focus)\"\n tertiaryColor=\"var(--vbn-color-on-primary)\"\n [filterOptions]=\"filterArray\"\n [maxFilterLength]=\"3\"\n ></verben-table-filter>\n </div>\n <div sort-content>\n <lib-data-sort\n [columns]=\"config.columns\"\n [data]=\"data()\"\n (sortApplied)=\"onSortUpdated($event)\"\n ></lib-data-sort>\n </div>\n <div export-content>\n <lib-data-export [data]=\"data()\" (exportDataEvent)=\"handleExport($event)\">\n </lib-data-export>\n </div>\n </verben-data-view>\n\n <div *ngIf=\"vdv.isTableView\" class=\"flex gap-2 justify-end\">\n <div class=\"flex justify-end items-center gap-5\">\n <span class=\"paginator-text\">{{ cardData().length }} records loaded</span>\n <button\n (click)=\"loadMore()\"\n class=\"load-more view-links text-[var(--vbn-color-border-focus)] underline\"\n >\n Load more\n </button>\n </div>\n </div>\n</div>\n", styles: [".view-links{color:var(--vbn-color-border-focus);cursor:pointer}\n"] }]
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
type: ViewChildren,
|
|
841
|
-
args: ['popup']
|
|
842
|
-
}] } });
|
|
843
|
-
|
|
844
|
-
class TasksFormComponent {
|
|
845
|
-
fb;
|
|
846
|
-
taskFacade;
|
|
847
|
-
get currentData() {
|
|
848
|
-
return this._currentData;
|
|
849
|
-
}
|
|
850
|
-
set currentData(value) {
|
|
851
|
-
this._currentData = value;
|
|
852
|
-
if (value?.data) {
|
|
853
|
-
this.form.patchValue({
|
|
854
|
-
Name: value.data.Name || '',
|
|
855
|
-
Description: value.data.Description || '',
|
|
856
|
-
WorkflowCode: value.data.WorkflowCode || '',
|
|
857
|
-
Status: value.data.Status || '',
|
|
1086
|
+
cardClicked(item, toggleView = false) {
|
|
1087
|
+
this.currentData = this.cardDataView.onItemClick(item);
|
|
1088
|
+
if (this.currentData &&
|
|
1089
|
+
this.currentData.data.DataState != ObjectState.New &&
|
|
1090
|
+
this.currentData.data.Code.trim().length > 0) {
|
|
1091
|
+
this.getAllTask(this.currentData.data.Code).then((res) => {
|
|
1092
|
+
if (res && this.currentData) {
|
|
1093
|
+
this.currentData.data.TaskData = res;
|
|
1094
|
+
}
|
|
858
1095
|
});
|
|
859
1096
|
}
|
|
860
|
-
|
|
861
|
-
this.
|
|
1097
|
+
if (toggleView) {
|
|
1098
|
+
this.dataView.toggleView();
|
|
862
1099
|
}
|
|
863
1100
|
}
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
active = 0;
|
|
867
|
-
dataType = DataType.Text;
|
|
868
|
-
onTaskFormSave = new EventEmitter();
|
|
869
|
-
onSave = new EventEmitter();
|
|
870
|
-
form;
|
|
871
|
-
statuses = Object.values(Status);
|
|
872
|
-
workflows = [];
|
|
873
|
-
loadingTaskForm = false;
|
|
874
|
-
taskFormView = false;
|
|
875
|
-
// active: boolean = false;
|
|
876
|
-
constructor(fb, taskFacade) {
|
|
877
|
-
this.fb = fb;
|
|
878
|
-
this.taskFacade = taskFacade;
|
|
879
|
-
this.taskFacade.getWorkflow$().subscribe((workflows) => {
|
|
880
|
-
this.workflows = workflows;
|
|
881
|
-
});
|
|
882
|
-
this.form = this.fb.group({
|
|
883
|
-
Name: ['', { validators: [Validators.required] }],
|
|
884
|
-
Description: ['', { validators: [Validators.required] }],
|
|
885
|
-
WorkflowCode: ['', { validators: [Validators.required] }],
|
|
886
|
-
Status: ['', { validators: [Validators.required] }],
|
|
887
|
-
TaskForms: [],
|
|
888
|
-
});
|
|
1101
|
+
onFormClose(isShow) {
|
|
1102
|
+
this.showForm = isShow;
|
|
889
1103
|
}
|
|
890
|
-
|
|
1104
|
+
onFormOpen(isShow) {
|
|
1105
|
+
this.showForm = true;
|
|
1106
|
+
}
|
|
1107
|
+
async formFill(formValues, task) {
|
|
1108
|
+
const payload = formValues;
|
|
1109
|
+
const code = task.Code;
|
|
1110
|
+
const taskCode = task.TaskData ? task.TaskData.Code : '';
|
|
1111
|
+
if (taskCode.trim().length == 0) {
|
|
1112
|
+
return;
|
|
1113
|
+
}
|
|
1114
|
+
this.state.setUpdating(true);
|
|
891
1115
|
try {
|
|
892
|
-
this.
|
|
1116
|
+
const res = await this.server.post(`FillForm/${taskCode}`, payload);
|
|
1117
|
+
this.state.setUpdating(false);
|
|
1118
|
+
if (res instanceof ErrorResponse) {
|
|
1119
|
+
return undefined;
|
|
1120
|
+
}
|
|
1121
|
+
else {
|
|
1122
|
+
if (this.action) {
|
|
1123
|
+
await this.passOn(this.action.action?.FromStage, this.action.action?.ToStage, task, this.action.comment, this.action.recipient || '');
|
|
1124
|
+
const updatedItem = await this.getUpdatedRequest(task.Code);
|
|
1125
|
+
if (updatedItem) {
|
|
1126
|
+
task.Status = updatedItem.Status;
|
|
1127
|
+
}
|
|
1128
|
+
this.showForm = false;
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
893
1131
|
}
|
|
894
|
-
catch (
|
|
895
|
-
|
|
1132
|
+
catch (err) {
|
|
1133
|
+
this.state.setUpdating(false);
|
|
1134
|
+
console.error('PassOn Error:', err);
|
|
1135
|
+
return undefined;
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
action = null;
|
|
1139
|
+
// childAction: {
|
|
1140
|
+
// action: WorkflowAction;
|
|
1141
|
+
// comment: string;
|
|
1142
|
+
// recipient?: string;
|
|
1143
|
+
// } | null = null;
|
|
1144
|
+
async handleActionComplete(action, data) {
|
|
1145
|
+
if (data.TaskData &&
|
|
1146
|
+
data.TaskData.TaskForms &&
|
|
1147
|
+
data.TaskData.TaskForms.length > 0) {
|
|
1148
|
+
this.showForm = true;
|
|
1149
|
+
this.action = action;
|
|
1150
|
+
return;
|
|
1151
|
+
}
|
|
1152
|
+
await this.passOn(action.action.FromStage, action.action.ToStage, data, action.comment, action.recipient || '');
|
|
1153
|
+
const updatedItem = await this.getUpdatedRequest(data.Code);
|
|
1154
|
+
if (updatedItem) {
|
|
1155
|
+
data.Status = updatedItem.Status;
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
async handlePickCompleted(data) {
|
|
1159
|
+
const taskRes = await this.getAllTask(data.Code);
|
|
1160
|
+
if (taskRes) {
|
|
1161
|
+
data.TaskData = taskRes;
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
async passOn(fromStage, toStage, item, comment, recipient) {
|
|
1165
|
+
// const item: MobilizationRequest | null =
|
|
1166
|
+
// this.cardContextHistory.length > 0
|
|
1167
|
+
// ? (this.cardContextHistory[0].data as MobilizationRequest)
|
|
1168
|
+
// : this.currentData
|
|
1169
|
+
// ? (this.currentData.data as MobilizationRequest)
|
|
1170
|
+
// : null;
|
|
1171
|
+
if (!item.TaskData) {
|
|
1172
|
+
return;
|
|
1173
|
+
}
|
|
1174
|
+
const payload = {
|
|
1175
|
+
...item.TaskData,
|
|
1176
|
+
DataState: ObjectState.Changed,
|
|
1177
|
+
HistoryToDate: item.TaskData.HistoryToDate.map((it) => ({
|
|
1178
|
+
...it,
|
|
1179
|
+
Actor: {
|
|
1180
|
+
...it.Actor,
|
|
1181
|
+
ActorTags: [],
|
|
1182
|
+
},
|
|
1183
|
+
})),
|
|
1184
|
+
CurrentActors: item.TaskData.CurrentActors.map((it) => ({
|
|
1185
|
+
...it,
|
|
1186
|
+
ActorTags: [],
|
|
1187
|
+
})),
|
|
1188
|
+
FullStages: [],
|
|
1189
|
+
};
|
|
1190
|
+
this.state.setUpdating(true);
|
|
1191
|
+
const res = await this.server.post(`PassOn/${fromStage}/${toStage}/${encodeURIComponent(comment || '')}${recipient ? '/' + recipient : ''}`, payload);
|
|
1192
|
+
this.state.setUpdating(false);
|
|
1193
|
+
if (res instanceof ErrorResponse) {
|
|
1194
|
+
return;
|
|
896
1195
|
}
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
this.loadingTaskForm = true;
|
|
902
|
-
this.taskFacade
|
|
903
|
-
.loadFormsWithParam(selectedWorkflow.Form)
|
|
904
|
-
.then((form) => {
|
|
905
|
-
if (form) {
|
|
906
|
-
this.taskForm = form;
|
|
907
|
-
}
|
|
908
|
-
})
|
|
909
|
-
.finally(() => {
|
|
910
|
-
this.loadingTaskForm = false;
|
|
911
|
-
});
|
|
912
|
-
}
|
|
913
|
-
else {
|
|
914
|
-
this.taskForm = null;
|
|
1196
|
+
else {
|
|
1197
|
+
this.getAllTask(item.Code).then((taskRes) => {
|
|
1198
|
+
if (taskRes) {
|
|
1199
|
+
item.TaskData = taskRes;
|
|
915
1200
|
}
|
|
916
|
-
}
|
|
917
|
-
});
|
|
918
|
-
}
|
|
919
|
-
handleSubmit() {
|
|
920
|
-
if (this.form.valid) {
|
|
921
|
-
// Emit save event with form value
|
|
922
|
-
if (!this.taskForm ||
|
|
923
|
-
this.form.get('TaskForms')?.value?.length > 0) {
|
|
924
|
-
this.onSave.emit(this.form.value);
|
|
925
|
-
}
|
|
1201
|
+
});
|
|
926
1202
|
}
|
|
927
1203
|
}
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
if (
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
1204
|
+
async getAllTask(code) {
|
|
1205
|
+
this.state.setUpdating(true);
|
|
1206
|
+
const res = await this.server.get(`GetTaskInfo/${code}`);
|
|
1207
|
+
this.state.setUpdating(false);
|
|
1208
|
+
if (res instanceof ErrorResponse) {
|
|
1209
|
+
return undefined;
|
|
1210
|
+
}
|
|
1211
|
+
else {
|
|
1212
|
+
var result = res;
|
|
1213
|
+
return result;
|
|
938
1214
|
}
|
|
939
1215
|
}
|
|
940
|
-
|
|
941
|
-
const
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
// });
|
|
952
|
-
return true;
|
|
953
|
-
}
|
|
954
|
-
disableProcessing() {
|
|
955
|
-
const selectedWorkflow = this.workflows.find(({ Code }) => Code === this.form.get('WorkflowCode')?.value);
|
|
956
|
-
if (selectedWorkflow?.Form &&
|
|
957
|
-
this.currentData?.data?.TaskForms?.length === 0) {
|
|
958
|
-
return true;
|
|
1216
|
+
async getUpdatedRequest(code) {
|
|
1217
|
+
const res = await this.server.get(`GetTasksWithParam/${code}/0/0`);
|
|
1218
|
+
if (res instanceof ErrorResponse) {
|
|
1219
|
+
return undefined;
|
|
1220
|
+
}
|
|
1221
|
+
var result = res;
|
|
1222
|
+
if (result.Result.length > 0) {
|
|
1223
|
+
return result.Result[0];
|
|
1224
|
+
}
|
|
1225
|
+
else {
|
|
1226
|
+
return undefined;
|
|
959
1227
|
}
|
|
960
|
-
else
|
|
961
|
-
return this.form.invalid;
|
|
962
1228
|
}
|
|
963
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type:
|
|
964
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: TasksFormComponent, selector: "tasks-form", inputs: { currentData: "currentData" }, outputs: { onTaskFormSave: "onTaskFormSave", onSave: "onSave" }, ngImport: i0, template: "@if (taskFormView && taskForm) {\n<div\n *ngIf=\"taskForm.Entities[active]\"\n class=\"flex flex-wrap bg-[#9A9FBF80] rounded-xl px-3 py-2 w-full relative gap-6\"\n>\n <app-form-timer></app-form-timer>\n <div *ngFor=\"let group of taskForm.Entities; let index = index\">\n <p\n (click)=\"active = index\"\n [ngClass]=\"{\n 'bg-[var(--vbn-color-surface)] text-primary rounded-lg shadow-lg': active === index\n }\"\n class=\"px-6 py-2 cursor-pointer\"\n >\n {{ group.Name }}group\n </p>\n </div>\n</div>\n\n<div *ngIf=\"taskForm.Entities[active]; else emptyState\" class=\"mt-4\">\n <form-control\n [dataType]=\"dataType\"\n [formProperties]=\"taskForm.Entities[active].Properties\"\n ></form-control>\n\n <div class=\"flex gap-3 justify-end\">\n <verbena-button\n (click)=\"areRequiredPropertiesFilled()\"\n text=\"CHECK\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button>\n\n <verbena-button\n (click)=\"taskFormView = false\"\n text=\"Close task form\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button>\n\n <verbena-button\n class=\"verben-primary-button\"\n (click)=\"sendTaskForm()\"\n [disable]=\"!areRequiredPropertiesFilled()\"\n text=\"Save\"\n ></verbena-button>\n </div>\n</div>\n\n<!-- Empty state template -->\n<ng-template #emptyState>\n <p class=\"mt-4 p-4 text-gray-600 text-center\">\n No entries available for the selected form group.\n </p>\n</ng-template>\n\n} @else {\n<form\n [formGroup]=\"form\"\n class=\"flex flex-col px-3 pb-3 rounded-xl h-full w-full relative space-y-4\"\n (ngSubmit)=\"handleSubmit()\"\n>\n <verbena-input\n name=\"Name\"\n label=\"Name\"\n formControlName=\"Name\"\n placeHolder=\"Enter Name\"\n />\n <verbena-input\n name=\"Description\"\n label=\"Description\"\n formControlName=\"Description\"\n placeHolder=\"Enter Description\"\n />\n\n <div class=\"space-y-1\">\n <label for=\"workflow\">Workflow</label>\n\n <verben-drop-down\n label=\"Workflow\"\n styleClass=\"w-full\"\n width=\"100%\"\n [multiselect]=\"false\"\n placeholder=\"Select\"\n [options]=\"workflows\"\n optionLabel=\"Name\"\n optionValue=\"Code\"\n id=\"workflow\"\n formControlName=\"WorkflowCode\"\n class=\"form-control\"\n >\n </verben-drop-down>\n </div>\n\n <div class=\"space-y-1\">\n <label for=\"status\">Status</label>\n\n <verben-drop-down\n label=\"Status\"\n styleClass=\"w-full\"\n width=\"100%\"\n [multiselect]=\"false\"\n [showClear]=\"true\"\n placeholder=\"Null\"\n [(options)]=\"statuses\"\n id=\"status\"\n formControlName=\"Status\"\n class=\"form-control\"\n >\n </verben-drop-down>\n </div>\n\n <!-- buttons -->\n <div class=\"flex justify-between gap-4 my-2\">\n <verbena-button\n width=\"114px\"\n height=\"39px\"\n text=\"Delete\"\n bgColor=\"var(--vbn-color-text-muted)\"\n textColor=\"var(--vbn-color-on-primary)\"\n borderRadius=\"10px\"\n [disable]=\"disableProcessing()\"\n ></verbena-button>\n <verbena-button\n [disable]=\"!taskForm || loadingTaskForm\"\n (click)=\"taskFormView = true\"\n [text]=\"loadingTaskForm ? 'Checking for form' : 'Fill task form'\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button>\n <verbena-button\n type=\"submit\"\n text=\"Save\"\n bgColor=\"var(--vbn-color-primary)\"\n textColor=\"var(--vbn-color-on-primary)\"\n borderRadius=\"10px\"\n pd=\"10px 20px\"\n width=\"114px\"\n height=\"39px\"\n [disable]=\"disableProcessing()\"\n ></verbena-button>\n </div>\n</form>\n}\n", dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i3$1.VerbenaInputComponent, selector: "verbena-input", inputs: ["disabled", "label", "placeHolder", "required", "svgPosition", "minLength", "maxLength", "type", "bgColor", "border", "borderRadius", "textColor", "value", "labelPosition", "labelColor", "disable", "readOnly", "min", "max", "showBorder", "showErrorMessage", "errorMessageColor", "errorBorderColor", "errorPosition", "svg", "fontSize", "svgWidth", "svgHeight", "svgColor", "capitalization", "inputContainerClass", "inputFieldClass", "passLength", "inputWrapperClass", "passwordToggle", "customErrorMessages", "icon", "textPass"], outputs: ["valueChange"] }, { kind: "component", type: i3$1.VerbenaButtonComponent, selector: "verbena-button", inputs: ["type", "text", "icon", "useIcon", "svgPosition", "iconPosition", "bgColor", "textColor", "border", "borderRadius", "pd", "width", "height", "fontSize", "fontWeight", "disable", "svgSize", "weight", "variant", "styleType", "svg", "svgWidth", "svgHeight", "iconColor", "svgColor", "buttonClass", "buttonTextClass", "isLoading", "spinnerSize", "spinnerColor"] }, { kind: "component", type: i3$1.DropDownComponent, selector: "verben-drop-down", inputs: ["options", "width", "overlayWidth", "showHorizontalLine", "horizontalLineColor", "optionLabel", "optionSubLabel", "optionValue", "placeholder", "invalidMessage", "errorPosition", "loadMoreCaption", "display", "showClear", "lazyLoad", "selectKey", "styleClass", "group", "multiselect", "filter", "avoidDuplication", "filterBy", "debounceTime", "minChar", "refPageSize", "disabled", "required", "load", "asyncLabel", "search"], outputs: ["optionsChange", "onChange", "onClick", "onClear"] }, { kind: "component", type: i5$1.FormControlComponent, selector: "form-control", inputs: ["dataType", "value", "boolInputType", "formProperties", "disabled"] }, { kind: "component", type: i6.FormTimerComponent, selector: "app-form-timer", inputs: ["expiryDate"] }] });
|
|
1229
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: MyQueueFacade }, { token: MyQueueState }, { token: i3.HttpWebRequestService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1230
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.14", type: MyQueueComponent, selector: "lib-my-queue", inputs: { isGeneral: { classPropertyName: "isGeneral", publicName: "isGeneral", isSignal: true, isRequired: false, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: false, isRequired: false, transformFunction: null }, userName: { classPropertyName: "userName", publicName: "userName", isSignal: false, isRequired: false, transformFunction: null }, filterValue: { classPropertyName: "filterValue", publicName: "filterValue", isSignal: false, isRequired: false, transformFunction: null } }, providers: [MyQueueService, MyQueueState, MyQueueFacade], viewQueries: [{ propertyName: "popups", predicate: ["popup"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"space-y-8\">\n <verben-data-view\n #vdv\n [viewState]=\"{\n isSearch: true,\n isColumn: true,\n isFilter: false,\n isSort: false,\n isExport: false,\n isSelect: true,\n isCreate: false,\n isToggle: true,\n }\"\n [buttonClass]=\"'my-custom-button-class'\"\n [iconClass]=\"'my-icon-class'\"\n [activeIconClass]=\"'my-active-icon-class'\"\n [selectedColumnCount]=\"0\"\n [selectedSortCount]=\"0\"\n [searchValue]=\"filterValue || ''\"\n [selectedFilterTableCount]=\"0\"\n (viewChange)=\"onViewChange($event)\"\n (stateChange)=\"onStateChange($event)\"\n (onSearchChange)=\"handleSearch($event)\"\n >\n <div table-content>\n <lib-data-table\n [data]=\"data()\"\n [columns]=\"config.columns\"\n [styleConfig]=\"styles\"\n (selectionChange)=\"onSelectionChange($event)\"\n [groupBy]=\"groupByWorkflowCode\"\n >\n <ng-container libColumn=\"history\">\n <ng-template #cell let-value let-deleteRow>\n <a\n [routerLink]=\"['/workflow/task-history', value]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)]\"\n >view history</a\n >\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"workflow\">\n <ng-template #cell let-value>\n <a\n [routerLink]=\"['/workflow/workflows', value]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)]\"\n >view Workflow</a\n >\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"actions\">\n <ng-template #cell let-row=\"row\">\n <lib-operation-popup\n [user]=\"user || ''\"\n [task]=\"row\"\n [allowedActions]=\"getActionNamesForTask(row)\"\n (actionComplete)=\"loadInitialData()\"\n >\n <div\n trigger\n class=\"cursor-pointer p-2 -m-2 inline-flex items-center justify-center\"\n >\n <verben-svg\n icon=\"dots\"\n [width]=\"3\"\n [height]=\"18\"\n class=\"w-auto\"\n ></verben-svg>\n </div>\n </lib-operation-popup>\n </ng-template>\n <ng-template #header>\n <strong class=\"text-center\">Actions</strong>\n </ng-template>\n </ng-container>\n </lib-data-table>\n </div>\n <div card-content>\n <verben-card-data-view\n borderRadius=\"12px\"\n (loadMoreClick)=\"loadMore()\"\n #vdcv\n dataId=\"Id\"\n border=\"5px\"\n [cardDataList]=\"cardData()\"\n rbgColor=\"var(--vbn-color-surface-alt)\"\n mg=\"20px\"\n >\n <verben-left-card-data-view class=\"space-y-7\">\n <verben-left-card-data\n #vlcd\n [parent]=\"vdcv\"\n dataId=\"Code\"\n class=\"bg-secondary-100 rounded-xl border-primary border-[1px]\"\n [cardDataList]=\"cardData()\"\n >\n <ng-template #card let-item>\n <div (click)=\"cardClicked(item)\" class=\"flex\">\n <div\n (click)=\"cardClicked(item)\"\n class=\"flex cursor-pointer w-full bg-secondary rounded-xl\"\n >\n <div\n class=\"w-3 rounded-xl rounded-tr-none rounded-br-none\"\n [ngClass]=\"\n item.selected ? 'bg-primary' : 'bg-secondary-200'\n \"\n ></div>\n <div class=\"flex flex-col py-2 px-4 w-full\">\n <div class=\"flex items-center gap-4 justify-between\">\n <div class=\"grid gap-y-2\">\n <span\n class=\"font-semibold text-[var(--vbn-color-on-primary)]\"\n >{{ item.title }}</span\n >\n <p class=\"flex items-center\">\n <label for=\"phone\" class=\"text-[10px] font-light\"\n >Status:</label\n >\n <span id=\"phone\" class=\"text-sm\">{{\n item.data.Status\n }}</span>\n </p>\n </div>\n\n <div class=\"grid gap-y-2\">\n <span for=\"role\" class=\"font-light\">{{\n item.data.Code\n }}</span>\n\n <div\n (click)=\"$event.stopPropagation()\"\n class=\"flex items-end gap-4\"\n >\n <a\n [routerLink]=\"[\n '/workflow/task-history',\n item.data.Code,\n ]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)] text-xs relative z-10\"\n >view history</a\n >\n\n <lib-operation-popup\n [user]=\"user || ''\"\n [task]=\"item.data\"\n [allowedActions]=\"getActionNamesForTask(item.data)\"\n (actionComplete)=\"loadInitialData()\"\n >\n <div\n trigger\n class=\"cursor-pointer p-2 -m-2 inline-flex items-center justify-center\"\n >\n <verben-svg\n icon=\"dots\"\n [width]=\"3\"\n [height]=\"18\"\n class=\"w-auto\"\n ></verben-svg>\n </div>\n </lib-operation-popup>\n </div>\n </div>\n </div>\n\n <!-- <div class=\"flex\">\n <span class=\"font-normal text-sm\">{{ item.title }}</span>\n </div>\n @for (ciItem of item.body; track ciItem.value) {\n <div class=\"\">\n <span class=\"text-muted font-light text-xs\"\n >{{ ciItem.title }}:</span\n >\n <span class=\"text-black\">{{ ciItem.value }}</span>\n </div>\n } -->\n </div>\n </div>\n </div>\n </ng-template>\n </verben-left-card-data>\n </verben-left-card-data-view>\n\n <verben-right-card-data-view>\n <ng-template #parent>\n <!-- <lib-user-request-form\n [currentData]=\"currentData\"\n (switchView)=\"vdv.toggleView()\"\n (onApproval)=\"onApprove($event)\"\n ></lib-user-request-form> -->\n <div class=\"flex flex-col gap-3\">\n <app-workflow-stage\n *ngIf=\"\n currentData &&\n currentData.data.Code.trim().length > 0 &&\n currentData.data.TaskData &&\n !this.isGeneral()\n \"\n [user]=\"user\"\n [userName]=\"userName\"\n [isVisible]=\"showForm\"\n [taskCode]=\"currentData.data.TaskData.Code\"\n (onClose)=\"onFormClose($event)\"\n (onFormCompleted)=\"formFill($event, currentData.data)\"\n [forms]=\"currentData.data.TaskData.TaskForms\"\n [currentActors]=\"currentData.data.TaskData.CurrentActors\"\n [historyToDate]=\"currentData.data.TaskData.HistoryToDate\"\n [nextActions]=\"currentData.data.TaskData.NextActions\"\n [task]=\"currentData.data.TaskData\"\n (onActionCompleted)=\"\n handleActionComplete($event, currentData.data)\n \"\n (onPickCompleted)=\"handlePickCompleted(currentData.data)\"\n >\n </app-workflow-stage>\n <tasks-form\n [currentData]=\"currentData\"\n (switchView)=\"vdv.toggleView()\"\n [readOnly]=\"true\"\n ></tasks-form>\n </div>\n </ng-template>\n </verben-right-card-data-view>\n\n <verben-card-data-view-footer class=\"w-full\">\n <div\n [ngClass]=\"{\n 'flex gap-2 items-center': true,\n 'justify-end': true,\n }\"\n >\n <!-- <verbena-button\n *ngIf=\"!vdcv.hasCurrentItem()\"\n [fontWeight]=\"'bold'\"\n [bgColor]=\"'var(--vbn-color-text-muted)'\"\n [borderRadius]=\"'4px'\"\n [textColor]=\"'var(--vbn-color-surface)'\"\n [pd]=\"'9.79px 37.28px'\"\n [text]=\"'Delete'\"\n >\n </verbena-button> -->\n <div\n class=\"flex {{\n vdcv.hasCurrentItem() ? 'flex-1' : ''\n }} justify-end items-center gap-5\"\n >\n <span class=\"paginator-text\"\n >{{ cardData().length }} records loaded</span\n >\n <button\n (click)=\"loadMore()\"\n class=\"load-more view-links text-[var(--vbn-color-border-focus)] underline\"\n >\n Load more\n </button>\n </div>\n </div>\n </verben-card-data-view-footer>\n </verben-card-data-view>\n </div>\n <div column-content>\n <lib-data-columns\n [columns]=\"config.columns\"\n (columnsUpdated)=\"onColumnsUpdated($event)\"\n ></lib-data-columns>\n </div>\n <div filter-content>\n <verben-table-filter\n [border]=\"'1px solid var(--vbn-color-primary)'\"\n borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\"\n bgColor=\"white\"\n width=\"420px\"\n textColor=\"black\"\n pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\"\n secondaryColor=\"var(--vbn-color-border-focus)\"\n tertiaryColor=\"var(--vbn-color-on-primary)\"\n [filterOptions]=\"filterArray\"\n [maxFilterLength]=\"3\"\n ></verben-table-filter>\n </div>\n <div sort-content>\n <lib-data-sort\n [columns]=\"config.columns\"\n [data]=\"data()\"\n (sortApplied)=\"onSortUpdated($event)\"\n ></lib-data-sort>\n </div>\n <div export-content>\n <lib-data-export [data]=\"data()\" (exportDataEvent)=\"handleExport($event)\">\n </lib-data-export>\n </div>\n </verben-data-view>\n\n <div *ngIf=\"vdv.isTableView\" class=\"flex gap-2 justify-end\">\n <div class=\"flex justify-end items-center gap-5\">\n <span class=\"paginator-text\">{{ cardData().length }} records loaded</span>\n <button\n (click)=\"loadMore()\"\n class=\"load-more view-links text-[var(--vbn-color-border-focus)] underline\"\n >\n Load more\n </button>\n </div>\n </div>\n</div>\n", styles: [".view-links{color:var(--vbn-color-border-focus);cursor:pointer}::ng-deep .toolbar>div:nth-child(1){justify-content:start}\n"], dependencies: [{ kind: "directive", type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.DataTableComponent, selector: "lib-data-table", inputs: ["data", "columns", "dataKey", "formGroupConfig", "groupBy", "useVirtualScroll", "virtualScrollItemSize", "styleConfig"], outputs: ["rowEdit", "rowSave", "rowRevert", "rowDelete", "selectionChange"] }, { kind: "directive", type: i5.ColumnDirective, selector: "[libColumn]", inputs: ["libColumn"] }, { kind: "component", type: i5.SvgComponent, selector: "verben-svg", inputs: ["icon", "width", "height", "fill", "stroke", "type", "size"] }, { kind: "component", type: i5.DataViewComponent, selector: "verben-data-view", inputs: ["buttonClass", "iconClass", "activeIconClass", "columnCustomClass", "filterCustomClass", "sortCustomClass", "extendCustomClass", "exportCustomClass", "selectCustomClass", "importCustomClass", "zIndex", "createCustomClass", "tableIcon", "cardIcon", "cardClass", "tableClass", "searchKey", "searchValue", "viewState", "searchTemplate", "importTemplate", "columnTemplate", "extendTemplate", "filterTemplate", "sortTemplate", "children", "exportTemplate", "createTemplate", "selectedColumnCount", "selectedSortCount", "selectedFilterTableCount", "inputWidth", "milliseconds", "showColumnChild", "showSortChild", "showFilterChild", "showImportChild", "showExportChild", "showExtendChild", "create", "showSelected", "isTableView"], outputs: ["viewChange", "stateChange", "onSearchChange"] }, { kind: "component", type: i5.CardDataViewComponent, selector: "verben-card-data-view", inputs: ["pd", "mg", "lHeight", "rHeight", "rWidth", "lWidth", "textColor", "lbgColor", "rbgColor", "border", "display", "borderRadius", "activeCss", "inActiveCss", "displayAsRow", "cardDataList", "dataId", "totalRecords", "footer", "noOfVisibleChildren", "showEditIcon", "useVirtualScroll", "virtualScrollItemSize", "onItemClick", "onCardChildClick"], outputs: ["editClicked", "loadMoreClick"] }, { kind: "component", type: i5.LeftCardDataComponent, selector: "verben-left-card-data", inputs: ["pd", "mg", "height", "weight", "activeCss", "inActiveCss", "cardDataList", "iconCollapse", "iconExpanded", "parent", "useVirtualScroll", "virtualScrollItemSize", "dataId"] }, { kind: "component", type: i5.LeftCardDataViewComponent, selector: "verben-left-card-data-view", inputs: ["cardDataList"] }, { kind: "component", type: i5.RightCardDataViewComponent, selector: "verben-right-card-data-view", inputs: ["parentData", "chilData", "meth"] }, { kind: "component", type: i5.CardDataViewFooterComponent, selector: "verben-card-data-view-footer" }, { kind: "component", type: i5.TableFilterComponent, selector: "verben-table-filter", inputs: ["filterOptions", "pd", "mg", "height", "width", "bgColor", "boxShadow", "textColor", "primaryColor", "secondaryColor", "tertiaryColor", "border", "borderRadius", "selectWidth", "maxFilterLength", "savedFilters", "tooltip", "saveCallback"], outputs: ["filtersApplied", "resetSortData"] }, { kind: "component", type: i5.DataExportComponent, selector: "lib-data-export", inputs: ["columns", "data", "dataFetchUrl", "dataQueryParameters"], outputs: ["exportDataEvent"] }, { kind: "component", type: i5.DataColumnsComponent, selector: "lib-data-columns", inputs: ["columns", "enableDragAndDrop", "maxVisibleItems", "selectedColumns"], outputs: ["columnsUpdated"] }, { kind: "component", type: i5.DataSortComponent, selector: "lib-data-sort", inputs: ["columns", "data", "enableDragAndDrop"], outputs: ["sortApplied", "resetFilter"] }, { kind: "directive", type: i6$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i7.OperationPopupComponent, selector: "lib-operation-popup", inputs: ["user", "task", "allowedActions"], outputs: ["actionComplete"] }, { kind: "component", type: i8.WorkflowStageComponent, selector: "app-workflow-stage", inputs: ["historyToDate", "taskCode", "forms", "isVisible", "currentActors", "user", "userName", "nextActions", "task"], outputs: ["onActionCompleted", "onPickCompleted", "onCommentCompleted", "onFormCompleted", "onOpen", "onClose"] }, { kind: "component", type: TasksFormComponent, selector: "tasks-form", inputs: ["currentData", "readOnly"], outputs: ["onTaskFormSave", "onSave"] }] });
|
|
965
1231
|
}
|
|
966
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type:
|
|
1232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueComponent, decorators: [{
|
|
967
1233
|
type: Component,
|
|
968
|
-
args: [{ selector: 'tasks-form', template: "@if (taskFormView && taskForm) {\n<div\n *ngIf=\"taskForm.Entities[active]\"\n class=\"flex flex-wrap bg-[#9A9FBF80] rounded-xl px-3 py-2 w-full relative gap-6\"\n>\n <app-form-timer></app-form-timer>\n <div *ngFor=\"let group of taskForm.Entities; let index = index\">\n <p\n (click)=\"active = index\"\n [ngClass]=\"{\n 'bg-[var(--vbn-color-surface)] text-primary rounded-lg shadow-lg': active === index\n }\"\n class=\"px-6 py-2 cursor-pointer\"\n >\n {{ group.Name }}group\n </p>\n </div>\n</div>\n\n<div *ngIf=\"taskForm.Entities[active]; else emptyState\" class=\"mt-4\">\n <form-control\n [dataType]=\"dataType\"\n [formProperties]=\"taskForm.Entities[active].Properties\"\n ></form-control>\n\n <div class=\"flex gap-3 justify-end\">\n <verbena-button\n (click)=\"areRequiredPropertiesFilled()\"\n text=\"CHECK\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button>\n\n <verbena-button\n (click)=\"taskFormView = false\"\n text=\"Close task form\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button>\n\n <verbena-button\n class=\"verben-primary-button\"\n (click)=\"sendTaskForm()\"\n [disable]=\"!areRequiredPropertiesFilled()\"\n text=\"Save\"\n ></verbena-button>\n </div>\n</div>\n\n<!-- Empty state template -->\n<ng-template #emptyState>\n <p class=\"mt-4 p-4 text-gray-600 text-center\">\n No entries available for the selected form group.\n </p>\n</ng-template>\n\n} @else {\n<form\n [formGroup]=\"form\"\n class=\"flex flex-col px-3 pb-3 rounded-xl h-full w-full relative space-y-4\"\n (ngSubmit)=\"handleSubmit()\"\n>\n <verbena-input\n name=\"Name\"\n label=\"Name\"\n formControlName=\"Name\"\n placeHolder=\"Enter Name\"\n />\n <verbena-input\n name=\"Description\"\n label=\"Description\"\n formControlName=\"Description\"\n placeHolder=\"Enter Description\"\n />\n\n <div class=\"space-y-1\">\n <label for=\"workflow\">Workflow</label>\n\n <verben-drop-down\n label=\"Workflow\"\n styleClass=\"w-full\"\n width=\"100%\"\n [multiselect]=\"false\"\n placeholder=\"Select\"\n [options]=\"workflows\"\n optionLabel=\"Name\"\n optionValue=\"Code\"\n id=\"workflow\"\n formControlName=\"WorkflowCode\"\n class=\"form-control\"\n >\n </verben-drop-down>\n </div>\n\n <div class=\"space-y-1\">\n <label for=\"status\">Status</label>\n\n <verben-drop-down\n label=\"Status\"\n styleClass=\"w-full\"\n width=\"100%\"\n [multiselect]=\"false\"\n [showClear]=\"true\"\n placeholder=\"Null\"\n [(options)]=\"statuses\"\n id=\"status\"\n formControlName=\"Status\"\n class=\"form-control\"\n >\n </verben-drop-down>\n </div>\n\n <!-- buttons -->\n <div class=\"flex justify-between gap-4 my-2\">\n <verbena-button\n width=\"114px\"\n height=\"39px\"\n text=\"Delete\"\n bgColor=\"var(--vbn-color-text-muted)\"\n textColor=\"var(--vbn-color-on-primary)\"\n borderRadius=\"10px\"\n [disable]=\"disableProcessing()\"\n ></verbena-button>\n <verbena-button\n [disable]=\"!taskForm || loadingTaskForm\"\n (click)=\"taskFormView = true\"\n [text]=\"loadingTaskForm ? 'Checking for form' : 'Fill task form'\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button>\n <verbena-button\n type=\"submit\"\n text=\"Save\"\n bgColor=\"var(--vbn-color-primary)\"\n textColor=\"var(--vbn-color-on-primary)\"\n borderRadius=\"10px\"\n pd=\"10px 20px\"\n width=\"114px\"\n height=\"39px\"\n [disable]=\"disableProcessing()\"\n ></verbena-button>\n </div>\n</form>\n}\n" }]
|
|
969
|
-
}], ctorParameters: () => [{ type:
|
|
1234
|
+
args: [{ selector: 'lib-my-queue', providers: [MyQueueService, MyQueueState, MyQueueFacade], template: "<div class=\"space-y-8\">\n <verben-data-view\n #vdv\n [viewState]=\"{\n isSearch: true,\n isColumn: true,\n isFilter: false,\n isSort: false,\n isExport: false,\n isSelect: true,\n isCreate: false,\n isToggle: true,\n }\"\n [buttonClass]=\"'my-custom-button-class'\"\n [iconClass]=\"'my-icon-class'\"\n [activeIconClass]=\"'my-active-icon-class'\"\n [selectedColumnCount]=\"0\"\n [selectedSortCount]=\"0\"\n [searchValue]=\"filterValue || ''\"\n [selectedFilterTableCount]=\"0\"\n (viewChange)=\"onViewChange($event)\"\n (stateChange)=\"onStateChange($event)\"\n (onSearchChange)=\"handleSearch($event)\"\n >\n <div table-content>\n <lib-data-table\n [data]=\"data()\"\n [columns]=\"config.columns\"\n [styleConfig]=\"styles\"\n (selectionChange)=\"onSelectionChange($event)\"\n [groupBy]=\"groupByWorkflowCode\"\n >\n <ng-container libColumn=\"history\">\n <ng-template #cell let-value let-deleteRow>\n <a\n [routerLink]=\"['/workflow/task-history', value]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)]\"\n >view history</a\n >\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"workflow\">\n <ng-template #cell let-value>\n <a\n [routerLink]=\"['/workflow/workflows', value]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)]\"\n >view Workflow</a\n >\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"actions\">\n <ng-template #cell let-row=\"row\">\n <lib-operation-popup\n [user]=\"user || ''\"\n [task]=\"row\"\n [allowedActions]=\"getActionNamesForTask(row)\"\n (actionComplete)=\"loadInitialData()\"\n >\n <div\n trigger\n class=\"cursor-pointer p-2 -m-2 inline-flex items-center justify-center\"\n >\n <verben-svg\n icon=\"dots\"\n [width]=\"3\"\n [height]=\"18\"\n class=\"w-auto\"\n ></verben-svg>\n </div>\n </lib-operation-popup>\n </ng-template>\n <ng-template #header>\n <strong class=\"text-center\">Actions</strong>\n </ng-template>\n </ng-container>\n </lib-data-table>\n </div>\n <div card-content>\n <verben-card-data-view\n borderRadius=\"12px\"\n (loadMoreClick)=\"loadMore()\"\n #vdcv\n dataId=\"Id\"\n border=\"5px\"\n [cardDataList]=\"cardData()\"\n rbgColor=\"var(--vbn-color-surface-alt)\"\n mg=\"20px\"\n >\n <verben-left-card-data-view class=\"space-y-7\">\n <verben-left-card-data\n #vlcd\n [parent]=\"vdcv\"\n dataId=\"Code\"\n class=\"bg-secondary-100 rounded-xl border-primary border-[1px]\"\n [cardDataList]=\"cardData()\"\n >\n <ng-template #card let-item>\n <div (click)=\"cardClicked(item)\" class=\"flex\">\n <div\n (click)=\"cardClicked(item)\"\n class=\"flex cursor-pointer w-full bg-secondary rounded-xl\"\n >\n <div\n class=\"w-3 rounded-xl rounded-tr-none rounded-br-none\"\n [ngClass]=\"\n item.selected ? 'bg-primary' : 'bg-secondary-200'\n \"\n ></div>\n <div class=\"flex flex-col py-2 px-4 w-full\">\n <div class=\"flex items-center gap-4 justify-between\">\n <div class=\"grid gap-y-2\">\n <span\n class=\"font-semibold text-[var(--vbn-color-on-primary)]\"\n >{{ item.title }}</span\n >\n <p class=\"flex items-center\">\n <label for=\"phone\" class=\"text-[10px] font-light\"\n >Status:</label\n >\n <span id=\"phone\" class=\"text-sm\">{{\n item.data.Status\n }}</span>\n </p>\n </div>\n\n <div class=\"grid gap-y-2\">\n <span for=\"role\" class=\"font-light\">{{\n item.data.Code\n }}</span>\n\n <div\n (click)=\"$event.stopPropagation()\"\n class=\"flex items-end gap-4\"\n >\n <a\n [routerLink]=\"[\n '/workflow/task-history',\n item.data.Code,\n ]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)] text-xs relative z-10\"\n >view history</a\n >\n\n <lib-operation-popup\n [user]=\"user || ''\"\n [task]=\"item.data\"\n [allowedActions]=\"getActionNamesForTask(item.data)\"\n (actionComplete)=\"loadInitialData()\"\n >\n <div\n trigger\n class=\"cursor-pointer p-2 -m-2 inline-flex items-center justify-center\"\n >\n <verben-svg\n icon=\"dots\"\n [width]=\"3\"\n [height]=\"18\"\n class=\"w-auto\"\n ></verben-svg>\n </div>\n </lib-operation-popup>\n </div>\n </div>\n </div>\n\n <!-- <div class=\"flex\">\n <span class=\"font-normal text-sm\">{{ item.title }}</span>\n </div>\n @for (ciItem of item.body; track ciItem.value) {\n <div class=\"\">\n <span class=\"text-muted font-light text-xs\"\n >{{ ciItem.title }}:</span\n >\n <span class=\"text-black\">{{ ciItem.value }}</span>\n </div>\n } -->\n </div>\n </div>\n </div>\n </ng-template>\n </verben-left-card-data>\n </verben-left-card-data-view>\n\n <verben-right-card-data-view>\n <ng-template #parent>\n <!-- <lib-user-request-form\n [currentData]=\"currentData\"\n (switchView)=\"vdv.toggleView()\"\n (onApproval)=\"onApprove($event)\"\n ></lib-user-request-form> -->\n <div class=\"flex flex-col gap-3\">\n <app-workflow-stage\n *ngIf=\"\n currentData &&\n currentData.data.Code.trim().length > 0 &&\n currentData.data.TaskData &&\n !this.isGeneral()\n \"\n [user]=\"user\"\n [userName]=\"userName\"\n [isVisible]=\"showForm\"\n [taskCode]=\"currentData.data.TaskData.Code\"\n (onClose)=\"onFormClose($event)\"\n (onFormCompleted)=\"formFill($event, currentData.data)\"\n [forms]=\"currentData.data.TaskData.TaskForms\"\n [currentActors]=\"currentData.data.TaskData.CurrentActors\"\n [historyToDate]=\"currentData.data.TaskData.HistoryToDate\"\n [nextActions]=\"currentData.data.TaskData.NextActions\"\n [task]=\"currentData.data.TaskData\"\n (onActionCompleted)=\"\n handleActionComplete($event, currentData.data)\n \"\n (onPickCompleted)=\"handlePickCompleted(currentData.data)\"\n >\n </app-workflow-stage>\n <tasks-form\n [currentData]=\"currentData\"\n (switchView)=\"vdv.toggleView()\"\n [readOnly]=\"true\"\n ></tasks-form>\n </div>\n </ng-template>\n </verben-right-card-data-view>\n\n <verben-card-data-view-footer class=\"w-full\">\n <div\n [ngClass]=\"{\n 'flex gap-2 items-center': true,\n 'justify-end': true,\n }\"\n >\n <!-- <verbena-button\n *ngIf=\"!vdcv.hasCurrentItem()\"\n [fontWeight]=\"'bold'\"\n [bgColor]=\"'var(--vbn-color-text-muted)'\"\n [borderRadius]=\"'4px'\"\n [textColor]=\"'var(--vbn-color-surface)'\"\n [pd]=\"'9.79px 37.28px'\"\n [text]=\"'Delete'\"\n >\n </verbena-button> -->\n <div\n class=\"flex {{\n vdcv.hasCurrentItem() ? 'flex-1' : ''\n }} justify-end items-center gap-5\"\n >\n <span class=\"paginator-text\"\n >{{ cardData().length }} records loaded</span\n >\n <button\n (click)=\"loadMore()\"\n class=\"load-more view-links text-[var(--vbn-color-border-focus)] underline\"\n >\n Load more\n </button>\n </div>\n </div>\n </verben-card-data-view-footer>\n </verben-card-data-view>\n </div>\n <div column-content>\n <lib-data-columns\n [columns]=\"config.columns\"\n (columnsUpdated)=\"onColumnsUpdated($event)\"\n ></lib-data-columns>\n </div>\n <div filter-content>\n <verben-table-filter\n [border]=\"'1px solid var(--vbn-color-primary)'\"\n borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\"\n bgColor=\"white\"\n width=\"420px\"\n textColor=\"black\"\n pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\"\n secondaryColor=\"var(--vbn-color-border-focus)\"\n tertiaryColor=\"var(--vbn-color-on-primary)\"\n [filterOptions]=\"filterArray\"\n [maxFilterLength]=\"3\"\n ></verben-table-filter>\n </div>\n <div sort-content>\n <lib-data-sort\n [columns]=\"config.columns\"\n [data]=\"data()\"\n (sortApplied)=\"onSortUpdated($event)\"\n ></lib-data-sort>\n </div>\n <div export-content>\n <lib-data-export [data]=\"data()\" (exportDataEvent)=\"handleExport($event)\">\n </lib-data-export>\n </div>\n </verben-data-view>\n\n <div *ngIf=\"vdv.isTableView\" class=\"flex gap-2 justify-end\">\n <div class=\"flex justify-end items-center gap-5\">\n <span class=\"paginator-text\">{{ cardData().length }} records loaded</span>\n <button\n (click)=\"loadMore()\"\n class=\"load-more view-links text-[var(--vbn-color-border-focus)] underline\"\n >\n Load more\n </button>\n </div>\n </div>\n</div>\n", styles: [".view-links{color:var(--vbn-color-border-focus);cursor:pointer}::ng-deep .toolbar>div:nth-child(1){justify-content:start}\n"] }]
|
|
1235
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: MyQueueFacade }, { type: MyQueueState }, { type: i3.HttpWebRequestService }], propDecorators: { user: [{
|
|
970
1236
|
type: Input
|
|
971
|
-
}],
|
|
972
|
-
type:
|
|
973
|
-
}],
|
|
974
|
-
type:
|
|
1237
|
+
}], userName: [{
|
|
1238
|
+
type: Input
|
|
1239
|
+
}], filterValue: [{
|
|
1240
|
+
type: Input
|
|
1241
|
+
}], popups: [{
|
|
1242
|
+
type: ViewChildren,
|
|
1243
|
+
args: ['popup']
|
|
975
1244
|
}] } });
|
|
976
1245
|
|
|
977
1246
|
class MyQueueModule {
|
|
@@ -981,12 +1250,14 @@ class MyQueueModule {
|
|
|
981
1250
|
RouterLink,
|
|
982
1251
|
FormControlerModule,
|
|
983
1252
|
FormTimerModule,
|
|
984
|
-
OperationPopupComponent
|
|
985
|
-
|
|
1253
|
+
OperationPopupComponent,
|
|
1254
|
+
WorkFlowStageLibModule], exports: [MyQueueComponent] });
|
|
1255
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueModule, providers: [TaskFacade], imports: [CommonModule,
|
|
986
1256
|
SharedModule,
|
|
987
1257
|
FormControlerModule,
|
|
988
1258
|
FormTimerModule,
|
|
989
|
-
OperationPopupComponent
|
|
1259
|
+
OperationPopupComponent,
|
|
1260
|
+
WorkFlowStageLibModule] });
|
|
990
1261
|
}
|
|
991
1262
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueModule, decorators: [{
|
|
992
1263
|
type: NgModule,
|
|
@@ -999,7 +1270,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
999
1270
|
FormControlerModule,
|
|
1000
1271
|
FormTimerModule,
|
|
1001
1272
|
OperationPopupComponent,
|
|
1273
|
+
WorkFlowStageLibModule,
|
|
1002
1274
|
],
|
|
1275
|
+
providers: [TaskFacade],
|
|
1003
1276
|
exports: [MyQueueComponent],
|
|
1004
1277
|
}]
|
|
1005
1278
|
}] });
|