verben-workflow-ui 0.5.86 → 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.component.mjs +197 -14
- package/esm2022/src/lib/components/my-queue/my-queue.facade.mjs +59 -16
- 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.component.mjs +21 -11
- package/esm2022/src/lib/components/tasks/tasks.facade.mjs +7 -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 +431 -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 +35 -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 +80 -68
- 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,24 +1,26 @@
|
|
|
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 = [
|
|
24
26
|
{
|
|
@@ -112,12 +114,17 @@ class MyQueueService {
|
|
|
112
114
|
const url = `DeleteTasks`;
|
|
113
115
|
return this.httpService.delete(`${url}?data=${requestIds.join(',')}`);
|
|
114
116
|
}
|
|
115
|
-
getTasksForUser(user, skip, limit, sortParam, sortOrder) {
|
|
116
|
-
|
|
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}`;
|
|
117
122
|
return this.httpService.get(url);
|
|
118
123
|
}
|
|
119
|
-
getQueueTasksForUser(user, skip, limit, sortParam, sortOrder) {
|
|
120
|
-
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}`;
|
|
121
128
|
return this.httpService.get(url);
|
|
122
129
|
}
|
|
123
130
|
getPossibleTasksForUser(user, skip, limit, sortParam, sortOrder) {
|
|
@@ -160,9 +167,7 @@ class MyQueueService {
|
|
|
160
167
|
const url = `FollowTask/${actorId}`;
|
|
161
168
|
return this.httpService.post(url, task);
|
|
162
169
|
}
|
|
163
|
-
unFollowTask(taskId, actorId
|
|
164
|
-
// task: Task,
|
|
165
|
-
) {
|
|
170
|
+
unFollowTask(taskId, actorId) {
|
|
166
171
|
const url = `UnFollowTask/${taskId}/${actorId}`;
|
|
167
172
|
return this.httpService.post(url, {});
|
|
168
173
|
}
|
|
@@ -182,16 +187,21 @@ class MyQueueService {
|
|
|
182
187
|
const url = `FillForm/${taskCode}`;
|
|
183
188
|
return this.httpService.post(url, form);
|
|
184
189
|
}
|
|
185
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueService, deps: [{ token:
|
|
186
|
-
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' });
|
|
187
192
|
}
|
|
188
193
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueService, decorators: [{
|
|
189
|
-
type: Injectable
|
|
190
|
-
|
|
194
|
+
type: Injectable,
|
|
195
|
+
args: [{
|
|
196
|
+
providedIn: 'root', // 👈 Add this line
|
|
197
|
+
}]
|
|
198
|
+
}], ctorParameters: () => [{ type: i3.HttpWebRequestService }] });
|
|
191
199
|
|
|
192
200
|
class MyQueueState {
|
|
193
201
|
updating$ = new BehaviorSubject(false);
|
|
202
|
+
resetPage = new BehaviorSubject(false);
|
|
194
203
|
tasks$ = new BehaviorSubject([]);
|
|
204
|
+
searchTerm$ = new BehaviorSubject('');
|
|
195
205
|
queryParams$ = new BehaviorSubject({
|
|
196
206
|
skip: 0,
|
|
197
207
|
limit: 50,
|
|
@@ -231,6 +241,15 @@ class MyQueueState {
|
|
|
231
241
|
setTaskForms(taskForms) {
|
|
232
242
|
this.taskForms$.next(taskForms);
|
|
233
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
|
+
}
|
|
234
253
|
getQueryParams$() {
|
|
235
254
|
return this.queryParams$.asObservable();
|
|
236
255
|
}
|
|
@@ -252,6 +271,10 @@ class MyQueueState {
|
|
|
252
271
|
const currentValue = this.tasks$.getValue();
|
|
253
272
|
this.tasks$.next([task, ...currentValue]);
|
|
254
273
|
}
|
|
274
|
+
resetPagination() {
|
|
275
|
+
const currentParams = this.queryParams$.getValue();
|
|
276
|
+
this.queryParams$.next({ ...currentParams, skip: 0 });
|
|
277
|
+
}
|
|
255
278
|
updateRequest(updatedRequest) {
|
|
256
279
|
const tasks = this.tasks$.getValue();
|
|
257
280
|
const index = tasks.findIndex((r) => r.Code === updatedRequest.Code);
|
|
@@ -269,24 +292,61 @@ class MyQueueState {
|
|
|
269
292
|
this.tasks$.next([...currentRequests, ...newRequests]);
|
|
270
293
|
}
|
|
271
294
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
272
|
-
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' });
|
|
273
296
|
}
|
|
274
297
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueState, decorators: [{
|
|
275
|
-
type: Injectable
|
|
298
|
+
type: Injectable,
|
|
299
|
+
args: [{
|
|
300
|
+
providedIn: 'root', // 👈 Add this line
|
|
301
|
+
}]
|
|
276
302
|
}] });
|
|
277
303
|
|
|
278
304
|
class MyQueueFacade {
|
|
279
305
|
service;
|
|
280
306
|
state;
|
|
281
307
|
utilService;
|
|
308
|
+
searchSubject = new Subject();
|
|
309
|
+
destroy$ = new Subject();
|
|
282
310
|
constructor(service, state, utilService) {
|
|
283
311
|
this.service = service;
|
|
284
312
|
this.state = state;
|
|
285
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
|
+
});
|
|
286
319
|
this.isUpdating$().subscribe((loading) => {
|
|
287
320
|
this.utilService.sendBI(loading);
|
|
288
321
|
});
|
|
289
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
|
+
}
|
|
290
350
|
isUpdating$() {
|
|
291
351
|
return this.state.isUpdating$();
|
|
292
352
|
}
|
|
@@ -335,20 +395,22 @@ class MyQueueFacade {
|
|
|
335
395
|
this.state.setUpdating(false);
|
|
336
396
|
}
|
|
337
397
|
}
|
|
338
|
-
async loadRequestsWithParam(param) {
|
|
398
|
+
async loadRequestsWithParam(param, queue = false) {
|
|
339
399
|
try {
|
|
340
400
|
this.state.setUpdating(true);
|
|
341
401
|
const params = this.state.getQueryParamsValue();
|
|
342
|
-
const
|
|
343
|
-
|
|
344
|
-
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);
|
|
345
407
|
return;
|
|
346
408
|
}
|
|
347
|
-
|
|
409
|
+
response.Result.forEach((x) => {
|
|
348
410
|
x.Id = x.Code;
|
|
349
411
|
});
|
|
350
|
-
this.state.setRequests(
|
|
351
|
-
this.state.updateQueryParams({ skip:
|
|
412
|
+
this.state.setRequests(response.Result);
|
|
413
|
+
this.state.updateQueryParams({ skip: response.Skip });
|
|
352
414
|
}
|
|
353
415
|
catch (error) {
|
|
354
416
|
throw error;
|
|
@@ -693,12 +755,16 @@ class MyQueueFacade {
|
|
|
693
755
|
this.state.setUpdating(true);
|
|
694
756
|
const currentParams = this.state.getQueryParamsValue();
|
|
695
757
|
// const searchTerm = this.state.getSearchTermValue();
|
|
696
|
-
const searchTerm =
|
|
758
|
+
const searchTerm = this.state.getSearchTermValue();
|
|
697
759
|
// Update skip value
|
|
698
760
|
// Load and append data
|
|
699
|
-
const response =
|
|
700
|
-
?
|
|
701
|
-
|
|
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);
|
|
702
768
|
if (response instanceof ErrorResponse) {
|
|
703
769
|
this.utilService.showError(response.ErrorMsg);
|
|
704
770
|
return;
|
|
@@ -709,7 +775,7 @@ class MyQueueFacade {
|
|
|
709
775
|
});
|
|
710
776
|
this.state.appendRequests(response.Result);
|
|
711
777
|
this.state.updateQueryParams({
|
|
712
|
-
skip: Skip,
|
|
778
|
+
skip: Skip > 0 ? Skip : Result.length,
|
|
713
779
|
limit: currentParams.limit,
|
|
714
780
|
});
|
|
715
781
|
}
|
|
@@ -720,18 +786,164 @@ class MyQueueFacade {
|
|
|
720
786
|
this.state.setUpdating(false);
|
|
721
787
|
}
|
|
722
788
|
}
|
|
723
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueFacade, deps: [{ token: MyQueueService }, { token: MyQueueState }, { token:
|
|
724
|
-
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' });
|
|
725
791
|
}
|
|
726
792
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueFacade, decorators: [{
|
|
727
|
-
type: Injectable
|
|
728
|
-
|
|
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
|
+
}] } });
|
|
729
937
|
|
|
730
938
|
class MyQueueComponent extends BaseDataViewComponent {
|
|
731
939
|
cdr;
|
|
732
940
|
facade;
|
|
941
|
+
state;
|
|
942
|
+
server;
|
|
733
943
|
isGeneral = input(false);
|
|
734
|
-
user;
|
|
944
|
+
user = null;
|
|
945
|
+
userName = null;
|
|
946
|
+
filterValue = null;
|
|
735
947
|
config = {
|
|
736
948
|
dataSource: [], // Populate from service
|
|
737
949
|
columns: columns, // Your existing column definitions
|
|
@@ -750,24 +962,49 @@ class MyQueueComponent extends BaseDataViewComponent {
|
|
|
750
962
|
},
|
|
751
963
|
};
|
|
752
964
|
popups;
|
|
753
|
-
|
|
965
|
+
showForm = false;
|
|
966
|
+
constructor(cdr, facade, state, server) {
|
|
754
967
|
super();
|
|
755
968
|
this.cdr = cdr;
|
|
756
969
|
this.facade = facade;
|
|
970
|
+
this.state = state;
|
|
971
|
+
this.server = server;
|
|
757
972
|
this.facade.getRequests$().subscribe((data) => {
|
|
758
973
|
this.data.set(data);
|
|
759
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
|
+
});
|
|
760
982
|
}
|
|
761
983
|
loadInitialData() {
|
|
762
984
|
this.facade.resetQueryParams();
|
|
763
|
-
this.facade.updateQueryParams({ user: this.user });
|
|
985
|
+
this.facade.updateQueryParams({ user: this.user || undefined });
|
|
764
986
|
try {
|
|
765
|
-
this.
|
|
987
|
+
this.filterValue
|
|
988
|
+
? this.simulateSearch(this.filterValue)
|
|
989
|
+
: this.facade.loadRequests(this.isGeneral());
|
|
766
990
|
}
|
|
767
991
|
catch (error) {
|
|
768
992
|
// Handle error
|
|
769
993
|
}
|
|
770
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
|
+
}
|
|
771
1008
|
// protected getCardDataByIdentifier(mailAddress: string): CardData | undefined {
|
|
772
1009
|
// return this.cardData().find(({ data }) => data.MailAddress === mailAddress);
|
|
773
1010
|
// }
|
|
@@ -779,6 +1016,9 @@ class MyQueueComponent extends BaseDataViewComponent {
|
|
|
779
1016
|
// Handle error
|
|
780
1017
|
}
|
|
781
1018
|
}
|
|
1019
|
+
handleSearch(event) {
|
|
1020
|
+
this.facade.search(event.value, this.isGeneral(), this.user || undefined);
|
|
1021
|
+
}
|
|
782
1022
|
getActionNamesForTask(task) {
|
|
783
1023
|
if (this.isGeneral()) {
|
|
784
1024
|
return ['picktask', 'releasetask', 'followtask', 'unfollowtask'];
|
|
@@ -843,150 +1083,164 @@ class MyQueueComponent extends BaseDataViewComponent {
|
|
|
843
1083
|
break;
|
|
844
1084
|
}
|
|
845
1085
|
}
|
|
846
|
-
|
|
847
|
-
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: false,\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 [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}::ng-deep .toolbar>div:nth-child(1){justify-content:start}\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"] }] });
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
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: false,\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 [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}::ng-deep .toolbar>div:nth-child(1){justify-content:start}\n"] }]
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
type: ViewChildren,
|
|
856
|
-
args: ['popup']
|
|
857
|
-
}] } });
|
|
858
|
-
|
|
859
|
-
class TasksFormComponent {
|
|
860
|
-
fb;
|
|
861
|
-
taskFacade;
|
|
862
|
-
get currentData() {
|
|
863
|
-
return this._currentData;
|
|
864
|
-
}
|
|
865
|
-
set currentData(value) {
|
|
866
|
-
this._currentData = value;
|
|
867
|
-
if (value?.data) {
|
|
868
|
-
this.form.patchValue({
|
|
869
|
-
Name: value.data.Name || '',
|
|
870
|
-
Description: value.data.Description || '',
|
|
871
|
-
WorkflowCode: value.data.WorkflowCode || '',
|
|
872
|
-
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
|
+
}
|
|
873
1095
|
});
|
|
874
1096
|
}
|
|
875
|
-
|
|
876
|
-
this.
|
|
1097
|
+
if (toggleView) {
|
|
1098
|
+
this.dataView.toggleView();
|
|
877
1099
|
}
|
|
878
1100
|
}
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
active = 0;
|
|
882
|
-
dataType = DataType.Text;
|
|
883
|
-
onTaskFormSave = new EventEmitter();
|
|
884
|
-
onSave = new EventEmitter();
|
|
885
|
-
form;
|
|
886
|
-
statuses = Object.values(Status);
|
|
887
|
-
workflows = [];
|
|
888
|
-
loadingTaskForm = false;
|
|
889
|
-
taskFormView = false;
|
|
890
|
-
// active: boolean = false;
|
|
891
|
-
constructor(fb, taskFacade) {
|
|
892
|
-
this.fb = fb;
|
|
893
|
-
this.taskFacade = taskFacade;
|
|
894
|
-
this.taskFacade.getWorkflow$().subscribe((workflows) => {
|
|
895
|
-
this.workflows = workflows;
|
|
896
|
-
});
|
|
897
|
-
this.form = this.fb.group({
|
|
898
|
-
Name: ['', { validators: [Validators.required] }],
|
|
899
|
-
Description: ['', { validators: [Validators.required] }],
|
|
900
|
-
WorkflowCode: ['', { validators: [Validators.required] }],
|
|
901
|
-
Status: ['', { validators: [Validators.required] }],
|
|
902
|
-
TaskForms: [],
|
|
903
|
-
});
|
|
1101
|
+
onFormClose(isShow) {
|
|
1102
|
+
this.showForm = isShow;
|
|
904
1103
|
}
|
|
905
|
-
|
|
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);
|
|
906
1115
|
try {
|
|
907
|
-
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
|
+
}
|
|
908
1131
|
}
|
|
909
|
-
catch (
|
|
910
|
-
|
|
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;
|
|
911
1195
|
}
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
this.loadingTaskForm = true;
|
|
917
|
-
this.taskFacade
|
|
918
|
-
.loadFormsWithParam(selectedWorkflow.Form)
|
|
919
|
-
.then((form) => {
|
|
920
|
-
if (form) {
|
|
921
|
-
this.taskForm = form;
|
|
922
|
-
}
|
|
923
|
-
})
|
|
924
|
-
.finally(() => {
|
|
925
|
-
this.loadingTaskForm = false;
|
|
926
|
-
});
|
|
927
|
-
}
|
|
928
|
-
else {
|
|
929
|
-
this.taskForm = null;
|
|
1196
|
+
else {
|
|
1197
|
+
this.getAllTask(item.Code).then((taskRes) => {
|
|
1198
|
+
if (taskRes) {
|
|
1199
|
+
item.TaskData = taskRes;
|
|
930
1200
|
}
|
|
931
|
-
}
|
|
932
|
-
});
|
|
933
|
-
}
|
|
934
|
-
handleSubmit() {
|
|
935
|
-
if (this.form.valid) {
|
|
936
|
-
// Emit save event with form value
|
|
937
|
-
if (!this.taskForm ||
|
|
938
|
-
this.form.get('TaskForms')?.value?.length > 0) {
|
|
939
|
-
this.onSave.emit(this.form.value);
|
|
940
|
-
}
|
|
1201
|
+
});
|
|
941
1202
|
}
|
|
942
1203
|
}
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
if (
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
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;
|
|
953
1214
|
}
|
|
954
1215
|
}
|
|
955
|
-
|
|
956
|
-
const
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
// });
|
|
967
|
-
return true;
|
|
968
|
-
}
|
|
969
|
-
disableProcessing() {
|
|
970
|
-
const selectedWorkflow = this.workflows.find(({ Code }) => Code === this.form.get('WorkflowCode')?.value);
|
|
971
|
-
if (selectedWorkflow?.Form &&
|
|
972
|
-
this.currentData?.data?.TaskForms?.length === 0) {
|
|
973
|
-
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;
|
|
974
1227
|
}
|
|
975
|
-
else
|
|
976
|
-
return this.form.invalid;
|
|
977
1228
|
}
|
|
978
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type:
|
|
979
|
-
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"] }] });
|
|
980
1231
|
}
|
|
981
|
-
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: [{
|
|
982
1233
|
type: Component,
|
|
983
|
-
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" }]
|
|
984
|
-
}], 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: [{
|
|
985
1236
|
type: Input
|
|
986
|
-
}],
|
|
987
|
-
type:
|
|
988
|
-
}],
|
|
989
|
-
type:
|
|
1237
|
+
}], userName: [{
|
|
1238
|
+
type: Input
|
|
1239
|
+
}], filterValue: [{
|
|
1240
|
+
type: Input
|
|
1241
|
+
}], popups: [{
|
|
1242
|
+
type: ViewChildren,
|
|
1243
|
+
args: ['popup']
|
|
990
1244
|
}] } });
|
|
991
1245
|
|
|
992
1246
|
class MyQueueModule {
|
|
@@ -996,12 +1250,14 @@ class MyQueueModule {
|
|
|
996
1250
|
RouterLink,
|
|
997
1251
|
FormControlerModule,
|
|
998
1252
|
FormTimerModule,
|
|
999
|
-
OperationPopupComponent
|
|
1000
|
-
|
|
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,
|
|
1001
1256
|
SharedModule,
|
|
1002
1257
|
FormControlerModule,
|
|
1003
1258
|
FormTimerModule,
|
|
1004
|
-
OperationPopupComponent
|
|
1259
|
+
OperationPopupComponent,
|
|
1260
|
+
WorkFlowStageLibModule] });
|
|
1005
1261
|
}
|
|
1006
1262
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueModule, decorators: [{
|
|
1007
1263
|
type: NgModule,
|
|
@@ -1014,7 +1270,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1014
1270
|
FormControlerModule,
|
|
1015
1271
|
FormTimerModule,
|
|
1016
1272
|
OperationPopupComponent,
|
|
1273
|
+
WorkFlowStageLibModule,
|
|
1017
1274
|
],
|
|
1275
|
+
providers: [TaskFacade],
|
|
1018
1276
|
exports: [MyQueueComponent],
|
|
1019
1277
|
}]
|
|
1020
1278
|
}] });
|