verben-workflow-ui 0.6.8 → 0.6.9
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/src/lib/components/designer/models/types.mjs +1 -1
- package/esm2022/src/lib/components/designer/services/connection.service.mjs +2 -1
- package/esm2022/src/lib/components/designer/services/wf-mapper.service.mjs +4 -1
- package/esm2022/src/lib/components/my-queue/my-queue.component.mjs +8 -3
- package/esm2022/src/lib/components/my-queue/my-queue.facade.mjs +17 -1
- package/esm2022/src/lib/components/my-queue/tasks.form.component.mjs +5 -1
- package/esm2022/src/lib/components/operation-popup/operation-popup.component.mjs +3 -3
- package/esm2022/src/lib/components/operation-popup/operation-popup.facade.mjs +33 -1
- package/esm2022/src/lib/components/task-history/task-history.component.mjs +161 -11
- package/esm2022/src/lib/components/tasks/tasks.component.mjs +9 -6
- package/esm2022/src/lib/components/tasks/tasks.facade.mjs +9 -1
- package/esm2022/src/lib/components/tasks/tasks.form.component.mjs +54 -7
- package/esm2022/src/lib/components/workflow-designer/action-dialog/action-dialog.component.mjs +6 -3
- package/esm2022/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.mjs +5 -1
- package/esm2022/src/lib/components/workflow-designer/services/connection.service.mjs +2 -1
- package/esm2022/src/lib/components/workflow-designer/services/transformer.service.mjs +3 -1
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.component.mjs +2 -1
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.state.mjs +4 -1
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.types.mjs +1 -1
- package/esm2022/src/lib/components/workflow-stage/workflow-stage.component.mjs +368 -33
- package/esm2022/src/lib/components/workflow-stage/workflow-stage.module.mjs +9 -2
- package/esm2022/src/lib/models/Task.mjs +1 -1
- package/esm2022/src/lib/models/WorkflowAction.mjs +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs +4 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs +27 -2
- package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-operation-popup.mjs +34 -2
- package/fesm2022/verben-workflow-ui-src-lib-components-operation-popup.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs +160 -10
- package/fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs +68 -11
- package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs +16 -2
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-stage.mjs +373 -32
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-stage.mjs.map +1 -1
- package/package.json +61 -61
- package/src/lib/components/designer/models/types.d.ts +1 -0
- package/src/lib/components/task-history/task-history.component.d.ts +21 -1
- package/src/lib/components/tasks/tasks.component.d.ts +3 -2
- package/src/lib/components/tasks/tasks.form.component.d.ts +12 -4
- package/src/lib/components/workflow-designer/workflow-designer.types.d.ts +1 -0
- package/src/lib/components/workflow-stage/workflow-stage.component.d.ts +37 -6
- package/src/lib/components/workflow-stage/workflow-stage.module.d.ts +4 -3
- package/src/lib/models/Task.d.ts +1 -0
- package/src/lib/models/WorkflowAction.d.ts +1 -0
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, Component, Input, Output, ViewChildren, NgModule } from '@angular/core';
|
|
3
3
|
import * as i4 from 'verben-ng-ui';
|
|
4
|
-
import { DataType, DataTableModule, SvgModule, VerbenPopUpModule, DataViewModule, VerbenaButtonModule, CardDataViewModule, DropDownModule, VerbenaSwitchModule, TableFilterModule, VisibleColumnModule, SortTableModule, DataExportModule, TooltipModule, VerbenDialogueModule, VerbenaInputModule } from 'verben-ng-ui';
|
|
5
|
-
import
|
|
4
|
+
import { DataType, DataTableModule, SvgModule, VerbenPopUpModule, DataViewModule, VerbenaButtonModule, CardDataViewModule, DropDownModule, VerbenaSwitchModule, TableFilterModule, VisibleColumnModule, SortTableModule, DataExportModule, TooltipModule, VerbenDialogueModule, VerbenaInputModule, VerbenaTextareaModule } from 'verben-ng-ui';
|
|
5
|
+
import * as i5 from 'verben-reporting-ui';
|
|
6
|
+
import { EditorMode, EditorModule } from 'verben-reporting-ui';
|
|
7
|
+
import { ObjectState, ErrorResponse, SortDirection } from 'verben-workflow-ui/src/lib/models';
|
|
6
8
|
import * as i1 from 'verben-workflow-ui/src/lib/services';
|
|
7
9
|
import * as i2 from '@angular/common';
|
|
8
10
|
import { CommonModule } from '@angular/common';
|
|
9
11
|
import * as i3 from '@angular/forms';
|
|
10
12
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
11
|
-
import * as
|
|
13
|
+
import * as i6 from 'verben-workflow-ui/src/lib/components/form-control';
|
|
12
14
|
import { FormControlerModule } from 'verben-workflow-ui/src/lib/components/form-control';
|
|
13
|
-
import * as
|
|
15
|
+
import * as i7 from 'verben-workflow-ui/src/lib/components/form-viewer';
|
|
14
16
|
import { FormViewerLibModule } from 'verben-workflow-ui/src/lib/components/form-viewer';
|
|
15
17
|
|
|
16
|
-
class WorkflowStageComponent {
|
|
18
|
+
class WorkflowStageComponent /* implements DoCheck */ {
|
|
17
19
|
utilService;
|
|
18
20
|
server;
|
|
21
|
+
cdr;
|
|
22
|
+
differs;
|
|
23
|
+
pageSize = 50;
|
|
19
24
|
historyToDate = [];
|
|
20
25
|
taskCode = null;
|
|
21
26
|
forms = [];
|
|
@@ -24,6 +29,15 @@ class WorkflowStageComponent {
|
|
|
24
29
|
active = 0;
|
|
25
30
|
dataType = DataType.Text;
|
|
26
31
|
commentText = '';
|
|
32
|
+
isRichEditor = false;
|
|
33
|
+
editorMode = EditorMode.Designer;
|
|
34
|
+
editorConfig = {
|
|
35
|
+
editable: true,
|
|
36
|
+
height: '240px',
|
|
37
|
+
width: '100%',
|
|
38
|
+
showToolbar: true,
|
|
39
|
+
menuItems: [],
|
|
40
|
+
};
|
|
27
41
|
isFormViewerVisible = false;
|
|
28
42
|
activeForm = null;
|
|
29
43
|
currentActors = [];
|
|
@@ -46,35 +60,248 @@ class WorkflowStageComponent {
|
|
|
46
60
|
taskForms = [];
|
|
47
61
|
selectedAction = null;
|
|
48
62
|
nextActors = [];
|
|
63
|
+
actors = [];
|
|
49
64
|
selectedRecipient = null;
|
|
65
|
+
copy = [];
|
|
50
66
|
// Pick / re-assign popup state — kept separate from the pass-on flow above
|
|
51
67
|
// so opening it never clobbers `commentText` / `selectedRecipient`.
|
|
52
68
|
selectedStageCode = null;
|
|
53
69
|
pickComment = '';
|
|
70
|
+
isPickRichEditor = false;
|
|
54
71
|
pickRecipient = null;
|
|
55
72
|
pickActors = [];
|
|
56
|
-
|
|
73
|
+
popupPositions = [
|
|
74
|
+
{
|
|
75
|
+
originX: 'start',
|
|
76
|
+
originY: 'bottom',
|
|
77
|
+
overlayX: 'start',
|
|
78
|
+
overlayY: 'top',
|
|
79
|
+
offsetY: 6,
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
originX: 'end',
|
|
83
|
+
originY: 'bottom',
|
|
84
|
+
overlayX: 'end',
|
|
85
|
+
overlayY: 'top',
|
|
86
|
+
offsetY: 6,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
originX: 'start',
|
|
90
|
+
originY: 'top',
|
|
91
|
+
overlayX: 'start',
|
|
92
|
+
overlayY: 'bottom',
|
|
93
|
+
offsetY: -6,
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
originX: 'end',
|
|
97
|
+
originY: 'top',
|
|
98
|
+
overlayX: 'end',
|
|
99
|
+
overlayY: 'bottom',
|
|
100
|
+
offsetY: -6,
|
|
101
|
+
},
|
|
102
|
+
];
|
|
103
|
+
passOnPositions = [
|
|
104
|
+
{
|
|
105
|
+
originX: 'start',
|
|
106
|
+
originY: 'bottom',
|
|
107
|
+
overlayX: 'start',
|
|
108
|
+
overlayY: 'top',
|
|
109
|
+
offsetY: 10,
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
originX: 'end',
|
|
113
|
+
originY: 'bottom',
|
|
114
|
+
overlayX: 'end',
|
|
115
|
+
overlayY: 'top',
|
|
116
|
+
offsetY: 10,
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
originX: 'start',
|
|
120
|
+
originY: 'top',
|
|
121
|
+
overlayX: 'start',
|
|
122
|
+
overlayY: 'bottom',
|
|
123
|
+
offsetY: -10,
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
originX: 'end',
|
|
127
|
+
originY: 'top',
|
|
128
|
+
overlayX: 'end',
|
|
129
|
+
overlayY: 'bottom',
|
|
130
|
+
offsetY: -10,
|
|
131
|
+
},
|
|
132
|
+
];
|
|
133
|
+
reassignPositions = [
|
|
134
|
+
{
|
|
135
|
+
originX: 'start',
|
|
136
|
+
originY: 'bottom',
|
|
137
|
+
overlayX: 'start',
|
|
138
|
+
overlayY: 'top',
|
|
139
|
+
offsetY: 30,
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
originX: 'end',
|
|
143
|
+
originY: 'bottom',
|
|
144
|
+
overlayX: 'end',
|
|
145
|
+
overlayY: 'top',
|
|
146
|
+
offsetY: 30,
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
originX: 'start',
|
|
150
|
+
originY: 'top',
|
|
151
|
+
overlayX: 'start',
|
|
152
|
+
overlayY: 'bottom',
|
|
153
|
+
offsetY: -10,
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
originX: 'end',
|
|
157
|
+
originY: 'top',
|
|
158
|
+
overlayX: 'end',
|
|
159
|
+
overlayY: 'bottom',
|
|
160
|
+
offsetY: -10,
|
|
161
|
+
},
|
|
162
|
+
];
|
|
163
|
+
historyDiffer;
|
|
164
|
+
actionsDiffer;
|
|
165
|
+
lastTaskCode = null;
|
|
166
|
+
constructor(utilService, server, cdr, differs) {
|
|
57
167
|
this.utilService = utilService;
|
|
58
168
|
this.server = server;
|
|
169
|
+
this.cdr = cdr;
|
|
170
|
+
this.differs = differs;
|
|
171
|
+
this.historyDiffer = this.differs.find([]).create(this.trackByStage);
|
|
172
|
+
this.actionsDiffer = this.differs.find([]).create(this.trackByAction);
|
|
173
|
+
this.getActors().then((res) => {
|
|
174
|
+
if (res) {
|
|
175
|
+
this.actors = res;
|
|
176
|
+
this.cdr.markForCheck();
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
ngOnInit() {
|
|
181
|
+
this.lastTaskCode = this.taskCode || this.task?.Code || null;
|
|
182
|
+
this.syncStagesAndActions();
|
|
183
|
+
}
|
|
184
|
+
/*
|
|
185
|
+
ngDoCheck(): void {
|
|
186
|
+
const currentCode = this.taskCode || this.task?.Code || null;
|
|
187
|
+
if (currentCode !== this.lastTaskCode) {
|
|
188
|
+
this.lastTaskCode = currentCode;
|
|
189
|
+
this.resetTransientState();
|
|
190
|
+
this.syncStagesAndActions();
|
|
191
|
+
this.cdr.markForCheck();
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
const currentHistory =
|
|
196
|
+
this.historyToDate && this.historyToDate.length > 0
|
|
197
|
+
? this.historyToDate
|
|
198
|
+
: this.task?.HistoryToDate || [];
|
|
199
|
+
const historyChanges = this.historyDiffer.diff(currentHistory);
|
|
200
|
+
if (historyChanges) {
|
|
201
|
+
this.localHistoryToDate = currentHistory.filter(
|
|
202
|
+
(item: any) => item.ActionType !== 'TaskReAssignment',
|
|
203
|
+
);
|
|
204
|
+
this.cdr.markForCheck();
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
const currentActions =
|
|
208
|
+
this.nextActions && this.nextActions.length > 0
|
|
209
|
+
? this.nextActions
|
|
210
|
+
: this.task?.NextActions || [];
|
|
211
|
+
const actionsChanges = this.actionsDiffer.diff(currentActions);
|
|
212
|
+
if (actionsChanges) {
|
|
213
|
+
this.localNextActions = [...currentActions].sort(
|
|
214
|
+
(a: any, b: any) => (a.Position ?? 0) - (b.Position ?? 0),
|
|
215
|
+
);
|
|
216
|
+
this.selectedAction = null;
|
|
217
|
+
this.cdr.markForCheck();
|
|
218
|
+
}
|
|
59
219
|
}
|
|
60
|
-
|
|
220
|
+
*/
|
|
61
221
|
ngOnChanges(changes) {
|
|
62
|
-
if (changes['
|
|
63
|
-
|
|
222
|
+
if (changes['taskCode'] || changes['task']) {
|
|
223
|
+
this.lastTaskCode = this.taskCode || this.task?.Code || null;
|
|
224
|
+
this.resetTransientState();
|
|
225
|
+
this.syncStagesAndActions();
|
|
226
|
+
}
|
|
227
|
+
if (changes['historyToDate'] || changes['task']) {
|
|
228
|
+
const incoming = this.historyToDate && this.historyToDate.length > 0
|
|
229
|
+
? this.historyToDate
|
|
230
|
+
: this.task?.HistoryToDate;
|
|
64
231
|
const allHistory = Array.isArray(incoming) ? incoming : [];
|
|
65
232
|
this.localHistoryToDate = allHistory.filter((item) => item.ActionType !== 'TaskReAssignment');
|
|
66
|
-
// console.log({ historyToDate: this.localHistoryToDate });
|
|
67
233
|
}
|
|
68
|
-
if (changes['nextActions']) {
|
|
69
|
-
const incoming =
|
|
234
|
+
if (changes['nextActions'] || changes['task']) {
|
|
235
|
+
const incoming = this.nextActions && this.nextActions.length > 0
|
|
236
|
+
? this.nextActions
|
|
237
|
+
: this.task?.NextActions;
|
|
70
238
|
const actions = Array.isArray(incoming)
|
|
71
|
-
? [...incoming].sort((a, b) => a.Position - b.Position)
|
|
239
|
+
? [...incoming].sort((a, b) => (a.Position ?? 0) - (b.Position ?? 0))
|
|
72
240
|
: [];
|
|
73
241
|
this.localNextActions = actions;
|
|
74
242
|
this.selectedAction = null;
|
|
75
|
-
// console.log({ nextActions: this.localNextActions });
|
|
76
243
|
}
|
|
77
244
|
this.handleDataChanges();
|
|
245
|
+
this.cdr.markForCheck();
|
|
246
|
+
}
|
|
247
|
+
resetTransientState() {
|
|
248
|
+
this.selectedAction = null;
|
|
249
|
+
this.commentText = '';
|
|
250
|
+
this.pickComment = '';
|
|
251
|
+
this.selectedRecipient = null;
|
|
252
|
+
this.pickRecipient = null;
|
|
253
|
+
this.nextActors = [];
|
|
254
|
+
this.pickActors = [];
|
|
255
|
+
this.isRichEditor = false;
|
|
256
|
+
this.isPickRichEditor = false;
|
|
257
|
+
this.closePopUp();
|
|
258
|
+
this.closePopUp2();
|
|
259
|
+
this.closePopUp3();
|
|
260
|
+
this.closePopUp4();
|
|
261
|
+
}
|
|
262
|
+
syncStagesAndActions() {
|
|
263
|
+
const incomingHistory = this.historyToDate && this.historyToDate.length > 0
|
|
264
|
+
? this.historyToDate
|
|
265
|
+
: this.task?.HistoryToDate;
|
|
266
|
+
const allHistory = Array.isArray(incomingHistory) ? incomingHistory : [];
|
|
267
|
+
this.localHistoryToDate = allHistory.filter((item) => item.ActionType !== 'TaskReAssignment');
|
|
268
|
+
const incomingActions = this.nextActions && this.nextActions.length > 0
|
|
269
|
+
? this.nextActions
|
|
270
|
+
: this.task?.NextActions;
|
|
271
|
+
const actions = Array.isArray(incomingActions)
|
|
272
|
+
? [...incomingActions].sort((a, b) => (a.Position ?? 0) - (b.Position ?? 0))
|
|
273
|
+
: [];
|
|
274
|
+
this.localNextActions = actions;
|
|
275
|
+
}
|
|
276
|
+
getActionCaption(action) {
|
|
277
|
+
if (!action)
|
|
278
|
+
return '';
|
|
279
|
+
return (action.Caption ||
|
|
280
|
+
action.caption ||
|
|
281
|
+
action.Name ||
|
|
282
|
+
action.name ||
|
|
283
|
+
action.ToStageName ||
|
|
284
|
+
action.toStageName ||
|
|
285
|
+
'');
|
|
286
|
+
}
|
|
287
|
+
getStageName(stage) {
|
|
288
|
+
if (!stage)
|
|
289
|
+
return '';
|
|
290
|
+
return (stage.ToStageName ||
|
|
291
|
+
stage.toStageName ||
|
|
292
|
+
stage.StageName ||
|
|
293
|
+
stage.stageName ||
|
|
294
|
+
stage.Caption ||
|
|
295
|
+
stage.caption ||
|
|
296
|
+
stage.Name ||
|
|
297
|
+
stage.name ||
|
|
298
|
+
'');
|
|
299
|
+
}
|
|
300
|
+
trackByStage(index, stage) {
|
|
301
|
+
return stage?.Id || stage?.ToStage || stage?.CreatedAt || index;
|
|
302
|
+
}
|
|
303
|
+
trackByAction(index, action) {
|
|
304
|
+
return (action?.Id || action?.ToStage || action?.Name || action?.Caption || index);
|
|
78
305
|
}
|
|
79
306
|
submitForm(groupIndex) {
|
|
80
307
|
const formEntity = {
|
|
@@ -93,19 +320,45 @@ class WorkflowStageComponent {
|
|
|
93
320
|
return prop.Value && prop.Value.trim().length > 0;
|
|
94
321
|
});
|
|
95
322
|
}
|
|
96
|
-
openCommentFor(action) {
|
|
323
|
+
openCommentFor(action, event) {
|
|
324
|
+
if (event) {
|
|
325
|
+
event.stopPropagation();
|
|
326
|
+
}
|
|
327
|
+
this.closePopUp();
|
|
328
|
+
this.closePopUp4();
|
|
97
329
|
this.selectedAction = action;
|
|
98
330
|
// console.log(this.selectedAction, 'kk');
|
|
99
331
|
this.commentText = '';
|
|
332
|
+
this.isRichEditor = false;
|
|
100
333
|
this.selectedRecipient = null;
|
|
101
334
|
this.nextActors = [];
|
|
335
|
+
this.copy = [];
|
|
102
336
|
this.loadNextActors(action?.ToStage);
|
|
103
|
-
this.popUp2s
|
|
337
|
+
this.popUp2s?.forEach((popUp) => {
|
|
104
338
|
if (!popUp.dropdownOpen) {
|
|
105
339
|
popUp.toggleDropdown();
|
|
106
340
|
}
|
|
107
341
|
});
|
|
108
342
|
}
|
|
343
|
+
setEditorMode(rich) {
|
|
344
|
+
if (this.isRichEditor === rich)
|
|
345
|
+
return;
|
|
346
|
+
this.isRichEditor = rich;
|
|
347
|
+
this.commentText = '';
|
|
348
|
+
}
|
|
349
|
+
isCommentValid() {
|
|
350
|
+
if (!this.commentText)
|
|
351
|
+
return false;
|
|
352
|
+
const stripped = this.commentText
|
|
353
|
+
.replace(/<[^>]*>/g, '')
|
|
354
|
+
.replace(/ /g, ' ')
|
|
355
|
+
.trim();
|
|
356
|
+
if (this.commentText.includes('<table') ||
|
|
357
|
+
this.commentText.includes('<img')) {
|
|
358
|
+
return true;
|
|
359
|
+
}
|
|
360
|
+
return stripped.length > 0;
|
|
361
|
+
}
|
|
109
362
|
async loadNextActors(stageCode) {
|
|
110
363
|
if (!this.taskCode || !stageCode) {
|
|
111
364
|
this.nextActors = [];
|
|
@@ -133,14 +386,14 @@ class WorkflowStageComponent {
|
|
|
133
386
|
// });
|
|
134
387
|
}
|
|
135
388
|
closePopUp() {
|
|
136
|
-
this.popUps
|
|
389
|
+
this.popUps?.forEach((popUp) => {
|
|
137
390
|
if (popUp.dropdownOpen) {
|
|
138
391
|
popUp.toggleDropdown();
|
|
139
392
|
}
|
|
140
393
|
});
|
|
141
394
|
}
|
|
142
395
|
closePopUp2() {
|
|
143
|
-
this.popUp2s
|
|
396
|
+
this.popUp2s?.forEach((popUp) => {
|
|
144
397
|
if (popUp.dropdownOpen) {
|
|
145
398
|
popUp.toggleDropdown();
|
|
146
399
|
}
|
|
@@ -162,7 +415,12 @@ class WorkflowStageComponent {
|
|
|
162
415
|
}
|
|
163
416
|
disableNotActor() {
|
|
164
417
|
const userEmail = this.user;
|
|
165
|
-
|
|
418
|
+
if (!userEmail)
|
|
419
|
+
return true;
|
|
420
|
+
const actors = this.currentActors && this.currentActors.length > 0
|
|
421
|
+
? this.currentActors
|
|
422
|
+
: this.task?.CurrentActors || [];
|
|
423
|
+
return !actors.some((actor) => actor.Identifier === userEmail);
|
|
166
424
|
}
|
|
167
425
|
canPick() {
|
|
168
426
|
return !!this.task?.CanPickTask;
|
|
@@ -172,10 +430,19 @@ class WorkflowStageComponent {
|
|
|
172
430
|
* one with no current actors is unclaimed and gets picked.
|
|
173
431
|
*/
|
|
174
432
|
isReassign() {
|
|
175
|
-
|
|
433
|
+
const actors = this.currentActors && this.currentActors.length > 0
|
|
434
|
+
? this.currentActors
|
|
435
|
+
: this.task?.CurrentActors || [];
|
|
436
|
+
return actors.length > 0;
|
|
176
437
|
}
|
|
177
|
-
openPickPopup() {
|
|
438
|
+
openPickPopup(event) {
|
|
439
|
+
if (event) {
|
|
440
|
+
event.stopPropagation();
|
|
441
|
+
}
|
|
442
|
+
this.closePopUp();
|
|
443
|
+
this.closePopUp2();
|
|
178
444
|
this.pickComment = '';
|
|
445
|
+
this.isPickRichEditor = false;
|
|
179
446
|
this.selectedStageCode =
|
|
180
447
|
this.task?.CurrentStages?.[0] ??
|
|
181
448
|
this.localHistoryToDate[this.localHistoryToDate.length - 1]?.ToStage ??
|
|
@@ -185,14 +452,33 @@ class WorkflowStageComponent {
|
|
|
185
452
|
? [{ Identifier: email, Name: this.userName || email }]
|
|
186
453
|
: [];
|
|
187
454
|
this.pickRecipient = email ?? null;
|
|
188
|
-
this.popUp4s
|
|
455
|
+
this.popUp4s?.forEach((popUp) => {
|
|
189
456
|
if (!popUp.dropdownOpen) {
|
|
190
457
|
popUp.toggleDropdown();
|
|
191
458
|
}
|
|
192
459
|
});
|
|
193
460
|
}
|
|
461
|
+
setPickEditorMode(rich) {
|
|
462
|
+
if (this.isPickRichEditor === rich)
|
|
463
|
+
return;
|
|
464
|
+
this.isPickRichEditor = rich;
|
|
465
|
+
this.pickComment = '';
|
|
466
|
+
}
|
|
467
|
+
isPickCommentValid() {
|
|
468
|
+
if (!this.pickComment)
|
|
469
|
+
return false;
|
|
470
|
+
const stripped = this.pickComment
|
|
471
|
+
.replace(/<[^>]*>/g, '')
|
|
472
|
+
.replace(/ /g, ' ')
|
|
473
|
+
.trim();
|
|
474
|
+
if (this.pickComment.includes('<table') ||
|
|
475
|
+
this.pickComment.includes('<img')) {
|
|
476
|
+
return true;
|
|
477
|
+
}
|
|
478
|
+
return stripped.length > 0;
|
|
479
|
+
}
|
|
194
480
|
async submitPick() {
|
|
195
|
-
if (!this.task || !this.
|
|
481
|
+
if (!this.task || !this.isPickCommentValid() || !this.pickRecipient) {
|
|
196
482
|
return;
|
|
197
483
|
}
|
|
198
484
|
const res = this.isReassign()
|
|
@@ -212,7 +498,7 @@ class WorkflowStageComponent {
|
|
|
212
498
|
return null;
|
|
213
499
|
}
|
|
214
500
|
this.utilService.sendBI(true);
|
|
215
|
-
const res = await this.server.post(`PickTaskWithCode/${this.task.Code}/${this.pickComment}/${this.selectedStageCode}/${this.pickRecipient}`, {});
|
|
501
|
+
const res = await this.server.post(`PickTaskWithCode/${this.task.Code}/${encodeURIComponent(this.pickComment)}/${this.selectedStageCode}/${this.pickRecipient}`, {});
|
|
216
502
|
this.utilService.sendBI(false);
|
|
217
503
|
if (res instanceof ErrorResponse) {
|
|
218
504
|
this.utilService.showError(res.ErrorMsg);
|
|
@@ -233,10 +519,14 @@ class WorkflowStageComponent {
|
|
|
233
519
|
...it,
|
|
234
520
|
ActorTags: [],
|
|
235
521
|
})),
|
|
522
|
+
Copy: (task.Copy || []).map((it) => ({
|
|
523
|
+
...it,
|
|
524
|
+
ActorTags: [],
|
|
525
|
+
})),
|
|
236
526
|
FullStages: [],
|
|
237
527
|
};
|
|
238
528
|
this.utilService.sendBI(true);
|
|
239
|
-
const res = await this.server.post(`Reassign/${this.pickComment}/${this.pickRecipient}/${fromUser}`, payload);
|
|
529
|
+
const res = await this.server.post(`Reassign/${encodeURIComponent(this.pickComment)}/${this.pickRecipient}/${fromUser}`, payload);
|
|
240
530
|
this.utilService.sendBI(false);
|
|
241
531
|
if (res instanceof ErrorResponse) {
|
|
242
532
|
this.utilService.showError(res.ErrorMsg);
|
|
@@ -244,7 +534,7 @@ class WorkflowStageComponent {
|
|
|
244
534
|
return res;
|
|
245
535
|
}
|
|
246
536
|
closePopUp4() {
|
|
247
|
-
this.popUp4s
|
|
537
|
+
this.popUp4s?.forEach((popUp) => {
|
|
248
538
|
if (popUp.dropdownOpen) {
|
|
249
539
|
popUp.toggleDropdown();
|
|
250
540
|
}
|
|
@@ -276,19 +566,64 @@ class WorkflowStageComponent {
|
|
|
276
566
|
this.activeForm = null;
|
|
277
567
|
}
|
|
278
568
|
closePopUp3() {
|
|
279
|
-
this.popUp3s
|
|
569
|
+
this.popUp3s?.forEach((popUp) => {
|
|
280
570
|
if (popUp.dropdownOpen) {
|
|
281
571
|
popUp.toggleDropdown();
|
|
282
572
|
}
|
|
283
573
|
});
|
|
284
574
|
}
|
|
285
|
-
|
|
286
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: WorkflowStageComponent, selector: "app-workflow-stage", inputs: { historyToDate: "historyToDate", taskCode: "taskCode", forms: "forms", isVisible: "isVisible", readOnly: "readOnly", currentActors: "currentActors", user: "user", userName: "userName", nextActions: "nextActions", task: "task" }, outputs: { onActionCompleted: "onActionCompleted", onPickCompleted: "onPickCompleted", onCommentCompleted: "onCommentCompleted", onFormCompleted: "onFormCompleted", onOpen: "onOpen", onClose: "onClose" }, viewQueries: [{ propertyName: "popUps", predicate: ["popup"], descendants: true }, { propertyName: "popUp2s", predicate: ["popup2"], descendants: true }, { propertyName: "popUp3s", predicate: ["popup3"], descendants: true }, { propertyName: "popUp4s", predicate: ["popup4"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"flex overflow-x-auto items-start min-h-max overflow-y-clip pt-3 pb-3\"\n>\n <div *ngFor=\"let stage of localHistoryToDate; let i = index\">\n <div class=\"flex items-center\">\n <verben-tooltip\n [top]=\"'0px'\"\n [textColor]=\"'#000'\"\n [backgroundColor]=\"'#D3D3D3'\"\n [left]=\"'0'\"\n [tooltipContent]=\"taskCode ? nullTemplate : tooltipTemplate\"\n #tooltip\n >\n <div\n class=\"w-[30px] h-[30px] flex cursor-pointer justify-center items-center rounded-full bg-primary\"\n >\n <ng-container *ngIf=\"taskCode\">\n <verben-pop-Up\n #popup3\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n >\n <verben-svg\n stroke=\"#fff\"\n icon=\"check\"\n dropdown-trigger\n ></verben-svg>\n\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <!-- <div (click)=\"viewVendors(value.Code)\" class=\"pop-up-value cursor-pointer\">View vendors</div> -->\n <div\n (click)=\"loadFormIfExists(stage.ToStage)\"\n class=\"pop-up-value cursor-pointer\"\n >\n Load Stage Form\n </div>\n <!-- <div class=\"pop-up-value cursor-pointer\">Delete</div> -->\n </div>\n </verben-pop-Up>\n </ng-container>\n <ng-container *ngIf=\"!taskCode\">\n <verben-svg stroke=\"#fff\" icon=\"check\"></verben-svg>\n </ng-container>\n </div>\n </verben-tooltip>\n\n <ng-template #nullTemplate></ng-template>\n\n <ng-template #tooltipTemplate>\n <div>\n <p class=\"text-xs\">{{ stage.Actor.Identifier }}</p>\n </div>\n </ng-template>\n\n <ng-container\n *ngIf=\"\n localHistoryToDate[i + 1] ||\n (i === localHistoryToDate.length - 1 &&\n localNextActions.length > 0 &&\n !readOnly)\n \"\n >\n <div\n class=\"border-primary border-b-2 w-[50px] relative px-2 text-xs text-primary font-medium\"\n ></div>\n </ng-container>\n <div\n *ngIf=\"\n i === localHistoryToDate.length - 1 &&\n localNextActions.length > 0 &&\n !readOnly\n \"\n class=\"relative inline-flex\"\n >\n <p\n (click)=\"openCommentFor(selectedAction || localNextActions[0])\"\n [ngClass]=\"{\n 'cursor-not-allowed opacity-50 pointer-events-none':\n disableNotActor(),\n 'cursor-pointer': !disableNotActor(),\n }\"\n class=\"text-center min-w-max rounded-md h-[30px] text-[white] text-sm flex justify-center items-center py-1 max-w-fit px-2 bg-primary\"\n >\n {{\n selectedAction?.Name ||\n selectedAction?.ToStageName ||\n localNextActions[0]?.Name ||\n localNextActions[0]?.ToStageName\n }}\n </p>\n <div\n *ngIf=\"canPick()\"\n (click)=\"openPickPopup()\"\n [title]=\"\n isReassign()\n ? 'Reassign task to yourself to act on this stage'\n : 'Pick task to act on this stage'\n \"\n class=\"absolute -top-2 -right-2 w-[18px] h-[18px] rounded-full bg-[#FFE681] ring-2 ring-white shadow flex items-center justify-center cursor-pointer z-10\"\n >\n <verben-svg\n icon=\"user\"\n fill=\"#404040\"\n [width]=\"12\"\n [height]=\"12\"\n ></verben-svg>\n </div>\n </div>\n\n <ng-container>\n <div\n *ngIf=\"localHistoryToDate[i + 1]?.ActionName\"\n class=\"border-primary border-b-2 w-[50px] relative px-2 text-xs text-primary font-medium\"\n ></div>\n </ng-container>\n\n <ng-container\n *ngIf=\"\n i === localHistoryToDate.length - 1 &&\n localNextActions.length > 0 &&\n localNextActions.length !== 1 &&\n !readOnly\n \"\n >\n <div>\n <verben-pop-Up\n #popup\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n >\n <div dropdown-trigger class=\"flex items-center\">\n <div class=\"w-[20px] h-[2px] bg-[#D4A007]\"></div>\n <div class=\"mt-2\">\n <verben-svg\n class=\"cursor-pointer actions-icon\"\n stroke=\"#D4A007\"\n icon=\"chevron\"\n ></verben-svg>\n </div>\n </div>\n\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <ul>\n <li\n *ngFor=\"let action of localNextActions\"\n class=\"pop-up-value\"\n >\n <button\n [disabled]=\"disableNotActor()\"\n class=\"disabled:cursor-not-allowed cursor-pointer\"\n (click)=\"openCommentFor(action); closePopUp()\"\n >\n {{ action.Name || action.ToStageName || \"Unnamed\" }}\n </button>\n </li>\n </ul>\n </div>\n </verben-pop-Up>\n </div>\n </ng-container>\n </div>\n <verben-tooltip\n [top]=\"'0px'\"\n [textColor]=\"'#000'\"\n [backgroundColor]=\"'#D3D3D3'\"\n [left]=\"'0'\"\n [tooltipContent]=\"tooltipTemplate2\"\n #tooltip\n >\n <p\n class=\"text-xs min-w-max left-0 text-primary mt-1 font-semibold capitalize\"\n >\n {{ stage.ToStageName | slice: 0 : 20\n }}{{ stage.ToStageName && stage.ToStageName.length > 20 ? \"...\" : \"\" }}\n </p>\n </verben-tooltip>\n <ng-template #tooltipTemplate2>\n <div>\n <p class=\"text-xs\">{{ stage.ToStageName }}</p>\n </div>\n </ng-template>\n </div>\n</div>\n<verben-pop-Up\n #popup2\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n>\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <div class=\"p-4 w-[350px]\">\n <h3 class=\"font-semibold mb-2\">Add Comment</h3>\n\n <verben-drop-down\n *ngIf=\"taskCode && nextActors.length > 0\"\n width=\"100%\"\n class=\"mb-3 block\"\n label=\"Assign to (optional)\"\n [options]=\"nextActors\"\n optionLabel=\"Name\"\n optionValue=\"Identifier\"\n [(ngModel)]=\"selectedRecipient\"\n [showClear]=\"true\"\n ></verben-drop-down>\n\n <textarea\n class=\"w-full border p-2 rounded-md outline-none\"\n rows=\"4\"\n [(ngModel)]=\"commentText\"\n placeholder=\"Enter your comment...\"\n ></textarea>\n\n <div class=\"flex justify-end gap-3 mt-4\">\n <verbena-button (click)=\"closePopUp2()\" text=\"Cancel\"></verbena-button>\n <verbena-button\n class=\"verben-primary-button\"\n text=\"OK\"\n (click)=\"completeAction(selectedAction)\"\n [disable]=\"!commentText\"\n ></verbena-button>\n </div>\n </div>\n </div>\n</verben-pop-Up>\n<verben-pop-Up\n #popup4\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n>\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <div class=\"p-4 w-[350px]\">\n <h3 class=\"font-semibold mb-2\">\n {{ isReassign() ? \"Reassign Task\" : \"Pick Task\" }}\n </h3>\n\n <verben-drop-down\n *ngIf=\"!isReassign()\"\n width=\"100%\"\n class=\"mb-3 block\"\n label=\"Stage\"\n [options]=\"task?.FullStages || []\"\n optionLabel=\"Name\"\n optionValue=\"Code\"\n [(ngModel)]=\"selectedStageCode\"\n [showClear]=\"true\"\n ></verben-drop-down>\n\n <verben-drop-down\n width=\"100%\"\n class=\"mb-3 block\"\n label=\"Assign to\"\n [options]=\"pickActors\"\n optionLabel=\"Name\"\n optionValue=\"Identifier\"\n [(ngModel)]=\"pickRecipient\"\n [disabled]=\"true\"\n ></verben-drop-down>\n\n <textarea\n class=\"w-full border p-2 rounded-md outline-none\"\n rows=\"4\"\n [(ngModel)]=\"pickComment\"\n placeholder=\"Enter your comment...\"\n ></textarea>\n\n <div class=\"flex justify-end gap-3 mt-4\">\n <verbena-button (click)=\"closePopUp4()\" text=\"Cancel\"></verbena-button>\n <verbena-button\n class=\"verben-primary-button\"\n text=\"OK\"\n (click)=\"submitPick()\"\n [disable]=\"\n !pickComment ||\n !pickRecipient ||\n (!isReassign() && !selectedStageCode)\n \"\n ></verbena-button>\n </div>\n </div>\n </div>\n</verben-pop-Up>\n<verben-dialogue\n [dismissOutsideClick]=\"true\"\n [closeOnEscape]=\"true\"\n [mode]=\"'drawer'\"\n [padding]=\"'0px'\"\n [drawerWidth]=\"'500px'\"\n position=\"right\"\n [disableFooter]=\"false\"\n [isVisible]=\"isVisible\"\n [modalData]=\"taskForms\"\n (openModal)=\"onModalOpen($event)\"\n (closeModal)=\"onModalClose($event)\"\n [headerTemplate]=\"headerTemplate\"\n [bodyTemplate]=\"bodyTemplate\"\n [showCloseIcon]=\"true\"\n>\n</verben-dialogue>\n\n<ng-template #headerTemplate>\n <div class=\"bg-[#FFE681] px-6 py-4 flex justify-between items-center\">\n <h1>{{ forms[0]?.Name }}</h1>\n </div>\n</ng-template>\n\n<ng-template #bodyTemplate>\n <div class=\"p-3\">\n <div *ngIf=\"forms?.[active]?.Entities?.length; else emptyState\">\n <div\n *ngFor=\"let entity of forms[active]?.Entities; let j = index\"\n class=\"mb-6 pb-4\"\n >\n <form-control\n [formProperties]=\"entity?.Properties || []\"\n ></form-control>\n <div class=\"flex gap-3 justify-end mt-4\">\n <verbena-button\n class=\"verben-primary-button\"\n (click)=\"submitForm(active)\"\n [disable]=\"!areRequiredPropertiesFilled(entity?.Properties)\"\n text=\"Proceed\"\n ></verbena-button>\n </div>\n </div>\n </div>\n\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 </div>\n</ng-template>\n\n<app-form-viewer\n [form]=\"activeForm\"\n [isVisible]=\"isFormViewerVisible\"\n (onOpen)=\"onFormViewerOpen()\"\n (onClose)=\"onFormViewerClose()\"\n></app-form-viewer>\n", styles: [".workflow-container{position:relative}.dialog{position:absolute;top:100%;left:0;background:var(--vbn-color-surface);border:1px solid var(--vbn-color-border);padding:1rem}.completed{text-decoration:line-through;color:var(--vbn-color-text-muted)}.pop-up-content{border-radius:4px;background-color:var(--vbn-color-surface);border:1px solid #9c56ba}.pop-up-value{padding:10px 20px}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4.SvgComponent, selector: "verben-svg", inputs: ["icon", "width", "height", "fill", "stroke", "type", "size"] }, { kind: "component", type: i4.VerbenPopUpComponent, selector: "verben-pop-Up", inputs: ["dropdownOpen", "dropdownWidth", "color", "customStyles", "popUpClass", "border", "borderRadius", "enableMouseLeave", "cdkPosition"], outputs: ["dropdownOpenChange", "close"] }, { kind: "component", type: i4.VerbenaButtonComponent, selector: "verbena-button", inputs: ["type", "text", "styleType", "size", "block", "disable", "disabled", "isLoading", "spinnerSize", "spinnerColor", "svg", "svgPosition", "svgWidth", "svgHeight", "svgSize", "svgColor", "icon", "useIcon", "iconPosition", "iconColor", "variant", "weight", "bgColor", "textColor", "border", "borderRadius", "pd", "width", "height", "fontSize", "fontWeight", "buttonClass", "buttonTextClass"] }, { kind: "component", type: i4.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", "autoScrollToCurrentItem", "load", "asyncLabel", "search"], outputs: ["optionsChange", "onChange", "onClick", "onClear"] }, { kind: "component", type: i4.TooltipComponent, selector: "verben-tooltip", inputs: ["tooltipContent", "customClass", "backgroundColor", "textColor", "padding", "borderRadius", "zIndex", "border", "width", "top", "bottom", "left", "right"] }, { kind: "component", type: i4.VerbenDialogueComponent, selector: "verben-dialogue", inputs: ["dialogueWidth", "headerTemplate", "bodyTemplate", "footerTemplate", "showCloseIcon", "dismissOutsideClick", "closeOnEscape", "isVisible", "size", "backdropColor", "customClass", "disableFooter", "margin", "padding", "borderRadius", "dialogueBgColor", "width", "closeIconClass", "boxShadow", "enableTransition", "modalData", "mode", "position", "drawerWidth"], outputs: ["openModal", "closeModal"] }, { kind: "component", type: i5.FormControlComponent, selector: "form-control", inputs: ["dataType", "value", "boolInputType", "formProperties", "disabled"] }, { kind: "component", type: i6.FormViewerComponent, selector: "app-form-viewer", inputs: ["form", "isVisible"], outputs: ["onOpen", "onClose"] }, { kind: "pipe", type: i2.SlicePipe, name: "slice" }] });
|
|
575
|
+
async getActors() {
|
|
576
|
+
this.utilService.sendBI(true);
|
|
577
|
+
const res = await this.server.get(`GetActors/0/${this.pageSize}/CreatedAt/${SortDirection.Desc}`);
|
|
578
|
+
this.utilService.sendBI(false);
|
|
579
|
+
if (res instanceof ErrorResponse) {
|
|
580
|
+
return undefined;
|
|
581
|
+
}
|
|
582
|
+
else {
|
|
583
|
+
var result = res.Result;
|
|
584
|
+
return result;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
async loadMoreActors(event) {
|
|
588
|
+
const res = await this.server.get(`GetActors/${event.loadTimes * this.pageSize}/${this.pageSize}/CreatedAt/${SortDirection.Desc}`);
|
|
589
|
+
if (res instanceof ErrorResponse) {
|
|
590
|
+
return [];
|
|
591
|
+
}
|
|
592
|
+
else {
|
|
593
|
+
var result = res.Result;
|
|
594
|
+
return result;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
async searchActors(data, event) {
|
|
598
|
+
const res = await this.server.get(`GetActorsWithParam/${data}/${event.loadTimes * this.pageSize}/${this.pageSize}`);
|
|
599
|
+
if (res instanceof ErrorResponse) {
|
|
600
|
+
return [];
|
|
601
|
+
}
|
|
602
|
+
else {
|
|
603
|
+
var result = res.Result;
|
|
604
|
+
return result;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
async getAsyncLabel(value) {
|
|
608
|
+
return value ? value.Name : '';
|
|
609
|
+
}
|
|
610
|
+
onCopyChanged(event) {
|
|
611
|
+
if (!this.task) {
|
|
612
|
+
return;
|
|
613
|
+
}
|
|
614
|
+
const actors = event.value;
|
|
615
|
+
console.log({ CopyActors: actors });
|
|
616
|
+
this.task.Copy = actors;
|
|
617
|
+
}
|
|
618
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WorkflowStageComponent /* implements DoCheck */, deps: [{ token: i1.UtilService }, { token: i1.HttpWebRequestService }, { token: i0.ChangeDetectorRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Component });
|
|
619
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: WorkflowStageComponent /* implements DoCheck */, selector: "app-workflow-stage", inputs: { pageSize: "pageSize", historyToDate: "historyToDate", taskCode: "taskCode", forms: "forms", isVisible: "isVisible", readOnly: "readOnly", currentActors: "currentActors", user: "user", userName: "userName", nextActions: "nextActions", task: "task" }, outputs: { onActionCompleted: "onActionCompleted", onPickCompleted: "onPickCompleted", onCommentCompleted: "onCommentCompleted", onFormCompleted: "onFormCompleted", onOpen: "onOpen", onClose: "onClose" }, viewQueries: [{ propertyName: "popUps", predicate: ["popup"], descendants: true }, { propertyName: "popUp2s", predicate: ["popup2"], descendants: true }, { propertyName: "popUp3s", predicate: ["popup3"], descendants: true }, { propertyName: "popUp4s", predicate: ["popup4"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"flex overflow-x-auto items-start min-h-max overflow-y-clip pt-3 pb-3 px-1\"\n>\n <div\n *ngFor=\"\n let stage of localHistoryToDate;\n trackBy: trackByStage;\n let i = index\n \"\n >\n <div class=\"flex items-center\">\n <!-- In task mode: Stage Form popup, NO tooltip -->\n <div\n *ngIf=\"taskCode\"\n class=\"w-[30px] h-[30px] flex cursor-pointer justify-center items-center rounded-full bg-primary text-white shadow-xs hover:ring-2 hover:ring-primary/30 transition-all duration-150\"\n >\n <verben-pop-Up\n #popup3\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n [cdkPosition]=\"popupPositions\"\n >\n <div\n dropdown-trigger\n class=\"flex items-center justify-center w-full h-full\"\n >\n <!-- Clean modern checkmark -->\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"3\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <polyline points=\"20 6 9 17 4 12\"></polyline>\n </svg>\n </div>\n\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <div\n (click)=\"loadFormIfExists(stage.ToStage)\"\n class=\"pop-up-value cursor-pointer\"\n >\n Load Stage Form\n </div>\n </div>\n </verben-pop-Up>\n </div>\n\n <!-- Not in task mode: show tooltip ONLY if actor identifier exists -->\n <ng-container *ngIf=\"!taskCode\">\n <verben-tooltip\n *ngIf=\"stage.Actor?.Identifier; else plainStageCircle\"\n [top]=\"'0px'\"\n [textColor]=\"'#000'\"\n [backgroundColor]=\"'#D3D3D3'\"\n [left]=\"'0'\"\n [tooltipContent]=\"tooltipTemplate\"\n #tooltip\n >\n <div\n class=\"w-[30px] h-[30px] flex cursor-pointer justify-center items-center rounded-full bg-primary text-white shadow-xs hover:ring-2 hover:ring-primary/30 transition-all duration-150\"\n >\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"3\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <polyline points=\"20 6 9 17 4 12\"></polyline>\n </svg>\n </div>\n </verben-tooltip>\n\n <ng-template #plainStageCircle>\n <div\n class=\"w-[30px] h-[30px] flex cursor-pointer justify-center items-center rounded-full bg-primary text-white shadow-xs hover:ring-2 hover:ring-primary/30 transition-all duration-150\"\n >\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"3\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <polyline points=\"20 6 9 17 4 12\"></polyline>\n </svg>\n </div>\n </ng-template>\n </ng-container>\n\n <ng-template #tooltipTemplate>\n <div class=\"px-1 py-0.5\" *ngIf=\"stage.Actor?.Identifier\">\n <p class=\"text-xs font-semibold\" *ngIf=\"stage.ToStageName\">\n {{ stage.ToStageName }}\n </p>\n <p class=\"text-[11px] opacity-80\">\n {{ stage.Actor.Identifier }}\n </p>\n </div>\n </ng-template>\n\n <ng-container\n *ngIf=\"\n localHistoryToDate[i + 1] ||\n (i === localHistoryToDate.length - 1 &&\n localNextActions.length > 0 &&\n !readOnly)\n \"\n >\n <div\n class=\"border-primary border-b-2 w-[50px] relative px-2 text-xs text-primary font-medium\"\n ></div>\n </ng-container>\n <div\n *ngIf=\"\n i === localHistoryToDate.length - 1 &&\n localNextActions.length > 0 &&\n !readOnly\n \"\n class=\"relative inline-flex\"\n >\n <verben-pop-Up\n #popup2\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n [cdkPosition]=\"passOnPositions\"\n >\n <div dropdown-trigger class=\"inline-flex\">\n <p\n (click)=\"\n openCommentFor(selectedAction || localNextActions[0], $event)\n \"\n [ngClass]=\"{\n 'cursor-not-allowed opacity-50 pointer-events-none':\n disableNotActor(),\n 'cursor-pointer': !disableNotActor(),\n }\"\n class=\"text-center min-w-max rounded-md h-[30px] text-[white] text-sm flex justify-center items-center py-1 max-w-fit px-2 bg-primary\"\n >\n {{\n selectedAction?.Name ||\n selectedAction?.ToStageName ||\n localNextActions[0]?.Name ||\n localNextActions[0]?.ToStageName\n }}\n </p>\n </div>\n\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <div\n class=\"p-4 transition-all duration-200\"\n [style.width]=\"isRichEditor ? '580px' : '420px'\"\n >\n <!-- Coherent Header -->\n <div\n class=\"flex items-center justify-between pb-3 mb-3 border-b border-gray-200\"\n >\n <div class=\"flex items-center gap-2\">\n <span class=\"w-2 h-2 rounded-full bg-primary inline-block\"></span>\n <h3 class=\"text-sm font-semibold text-gray-800 tracking-tight\">\n {{ getActionCaption(selectedAction) || \"Add Comment\" }}\n </h3>\n </div>\n <button\n type=\"button\"\n (click)=\"closePopUp2()\"\n class=\"text-gray-400 hover:text-gray-600 transition-colors p-1 rounded-md hover:bg-gray-100 cursor-pointer\"\n title=\"Close\"\n >\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line>\n <line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line>\n </svg>\n </button>\n </div>\n\n <div class=\"flex flex-col gap-3\">\n <!-- Send To -->\n <div\n class=\"flex flex-col gap-1.5\"\n *ngIf=\"taskCode && nextActors.length > 0\"\n >\n <div class=\"flex items-center justify-between\">\n <label\n class=\"text-xs font-semibold text-gray-700 tracking-wide uppercase\"\n >\n Send To\n </label>\n <span class=\"text-[11px] text-gray-400\">Optional</span>\n </div>\n <verben-drop-down\n width=\"100%\"\n label=\"Send to (optional)\"\n [options]=\"nextActors\"\n optionLabel=\"Name\"\n optionValue=\"Identifier\"\n [(ngModel)]=\"selectedRecipient\"\n [showClear]=\"true\"\n ></verben-drop-down>\n </div>\n\n <!-- Copy -->\n <div class=\"flex flex-col gap-1.5\">\n <div class=\"flex items-center justify-between\">\n <label\n class=\"text-xs font-semibold text-gray-700 tracking-wide uppercase\"\n >\n Copy\n </label>\n <span class=\"text-[11px] text-gray-400\">Notify actors</span>\n </div>\n <verben-drop-down\n selectKey=\"Code\"\n display=\"chip\"\n width=\"100%\"\n placeholder=\"Select Actors\"\n [showClear]=\"true\"\n [filter]=\"true\"\n (onChange)=\"onCopyChanged($event)\"\n [load]=\"this.loadMoreActors.bind(this)\"\n [search]=\"this.searchActors.bind(this)\"\n [(options)]=\"actors\"\n optionLabel=\"Name\"\n [multiselect]=\"true\"\n [(ngModel)]=\"copy\"\n [lazyLoad]=\"true\"\n [asyncLabel]=\"this.getAsyncLabel.bind(this)\"\n >\n </verben-drop-down>\n </div>\n\n <!-- Comment with Mode Switcher -->\n <div class=\"flex flex-col gap-1.5\">\n <div class=\"flex items-center justify-between mb-0.5\">\n <label\n class=\"text-xs font-semibold text-gray-700 tracking-wide uppercase flex items-center gap-1\"\n >\n <span>Comment</span>\n <span class=\"text-red-500\">*</span>\n </label>\n\n <!-- Mode Switch Pill -->\n <div\n class=\"inline-flex items-center bg-gray-100 p-0.5 rounded-md border border-gray-200\"\n >\n <button\n type=\"button\"\n (click)=\"setEditorMode(false)\"\n [ngClass]=\"\n !isRichEditor\n ? 'bg-white text-gray-800 shadow-xs font-medium'\n : 'text-gray-500 hover:text-gray-700'\n \"\n class=\"px-2 py-0.5 text-xs rounded transition-all cursor-pointer flex items-center gap-1\"\n title=\"Simple textarea\"\n >\n <span>Simple</span>\n </button>\n <button\n type=\"button\"\n (click)=\"setEditorMode(true)\"\n [ngClass]=\"\n isRichEditor\n ? 'bg-white text-gray-800 shadow-xs font-medium'\n : 'text-gray-500 hover:text-gray-700'\n \"\n class=\"px-2 py-0.5 text-xs rounded transition-all cursor-pointer flex items-center gap-1\"\n title=\"Rich text editor with formatting & tables\"\n >\n <svg\n width=\"11\"\n height=\"11\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M4 7V4h16v3M9 20h6M12 4v16\" />\n </svg>\n <span>Rich / Tables</span>\n </button>\n </div>\n </div>\n\n <!-- Simple Textarea Mode -->\n <div *ngIf=\"!isRichEditor\" class=\"w-full\">\n <verbena-textarea\n [(ngModel)]=\"commentText\"\n [rows]=\"4\"\n width=\"100%\"\n border=\"1px solid #cbd5e1\"\n borderRadius=\"6px\"\n ></verbena-textarea>\n </div>\n\n <!-- Rich Reporting Editor Mode -->\n <div *ngIf=\"isRichEditor\" class=\"workflow-comment-editor w-full\">\n <lib-editor\n [editorConfig]=\"editorConfig\"\n [editorMode]=\"editorMode\"\n [(ngModel)]=\"commentText\"\n ></lib-editor>\n </div>\n </div>\n </div>\n\n <!-- Action Buttons -->\n <div class=\"flex justify-end gap-3 mt-4 pt-2\">\n <verbena-button (click)=\"closePopUp2()\" text=\"Cancel\"></verbena-button>\n <verbena-button\n class=\"verben-primary-button\"\n text=\"OK\"\n (click)=\"completeAction(selectedAction)\"\n [disable]=\"!isCommentValid()\"\n ></verbena-button>\n </div>\n </div>\n </div>\n </verben-pop-Up>\n\n <div\n *ngIf=\"canPick()\"\n class=\"absolute -top-2 -right-2 z-10\"\n >\n <verben-pop-Up\n #popup4\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n [cdkPosition]=\"reassignPositions\"\n >\n <div\n dropdown-trigger\n (click)=\"openPickPopup($event)\"\n [title]=\"\n isReassign()\n ? 'Reassign task to yourself to act on this stage'\n : 'Pick task to act on this stage'\n \"\n class=\"w-[18px] h-[18px] rounded-full bg-[#FFE681] ring-2 ring-white shadow flex items-center justify-center cursor-pointer\"\n >\n <verben-svg\n icon=\"user\"\n fill=\"#404040\"\n [width]=\"12\"\n [height]=\"12\"\n ></verben-svg>\n </div>\n\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <div\n class=\"p-4 transition-all duration-200\"\n [style.width]=\"isPickRichEditor ? '580px' : '420px'\"\n >\n <!-- Coherent Header -->\n <div\n class=\"flex items-center justify-between pb-3 mb-3 border-b border-gray-200\"\n >\n <div class=\"flex items-center gap-2\">\n <span class=\"w-2 h-2 rounded-full bg-primary inline-block\"></span>\n <h3 class=\"text-sm font-semibold text-gray-800 tracking-tight\">\n {{ isReassign() ? \"Reassign Task\" : \"Pick Task\" }}\n </h3>\n </div>\n <button\n type=\"button\"\n (click)=\"closePopUp4()\"\n class=\"text-gray-400 hover:text-gray-600 transition-colors p-1 rounded-md hover:bg-gray-100 cursor-pointer\"\n title=\"Close\"\n >\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line>\n <line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line>\n </svg>\n </button>\n </div>\n\n <div class=\"flex flex-col gap-3\">\n <!-- Stage (if not reassign) -->\n <div class=\"flex flex-col gap-1.5\" *ngIf=\"!isReassign()\">\n <label\n class=\"text-xs font-semibold text-gray-700 tracking-wide uppercase flex items-center gap-1\"\n >\n <span>Stage</span>\n <span class=\"text-red-500\">*</span>\n </label>\n <verben-drop-down\n width=\"100%\"\n label=\"Stage\"\n [options]=\"task?.FullStages || []\"\n optionLabel=\"Name\"\n optionValue=\"Code\"\n [(ngModel)]=\"selectedStageCode\"\n [showClear]=\"true\"\n ></verben-drop-down>\n </div>\n\n <!-- Assign To -->\n <div class=\"flex flex-col gap-1.5\">\n <div class=\"flex items-center justify-between\">\n <label\n class=\"text-xs font-semibold text-gray-700 tracking-wide uppercase\"\n >\n Assign to\n </label>\n <span class=\"text-[11px] text-gray-400\">Current Actor</span>\n </div>\n <verben-drop-down\n width=\"100%\"\n label=\"Assign to\"\n [options]=\"pickActors\"\n optionLabel=\"Name\"\n optionValue=\"Identifier\"\n [(ngModel)]=\"pickRecipient\"\n [disabled]=\"true\"\n ></verben-drop-down>\n </div>\n\n <!-- Comment with Mode Switcher -->\n <div class=\"flex flex-col gap-1.5\">\n <div class=\"flex items-center justify-between mb-0.5\">\n <label\n class=\"text-xs font-semibold text-gray-700 tracking-wide uppercase flex items-center gap-1\"\n >\n <span>Comment</span>\n <span class=\"text-red-500\">*</span>\n </label>\n\n <!-- Mode Switch Pill -->\n <div\n class=\"inline-flex items-center bg-gray-100 p-0.5 rounded-md border border-gray-200\"\n >\n <button\n type=\"button\"\n (click)=\"setPickEditorMode(false)\"\n [ngClass]=\"\n !isPickRichEditor\n ? 'bg-white text-gray-800 shadow-xs font-medium'\n : 'text-gray-500 hover:text-gray-700'\n \"\n class=\"px-2 py-0.5 text-xs rounded transition-all cursor-pointer flex items-center gap-1\"\n title=\"Simple textarea\"\n >\n <span>Simple</span>\n </button>\n <button\n type=\"button\"\n (click)=\"setPickEditorMode(true)\"\n [ngClass]=\"\n isPickRichEditor\n ? 'bg-white text-gray-800 shadow-xs font-medium'\n : 'text-gray-500 hover:text-gray-700'\n \"\n class=\"px-2 py-0.5 text-xs rounded transition-all cursor-pointer flex items-center gap-1\"\n title=\"Rich text editor with formatting & tables\"\n >\n <svg\n width=\"11\"\n height=\"11\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M4 7V4h16v3M9 20h6M12 4v16\" />\n </svg>\n <span>Rich / Tables</span>\n </button>\n </div>\n </div>\n\n <!-- Simple Textarea Mode -->\n <div *ngIf=\"!isPickRichEditor\" class=\"w-full\">\n <verbena-textarea\n [(ngModel)]=\"pickComment\"\n [rows]=\"4\"\n width=\"100%\"\n border=\"1px solid #cbd5e1\"\n borderRadius=\"6px\"\n ></verbena-textarea>\n </div>\n\n <!-- Rich Reporting Editor Mode -->\n <div *ngIf=\"isPickRichEditor\" class=\"workflow-comment-editor w-full\">\n <lib-editor\n [editorConfig]=\"editorConfig\"\n [editorMode]=\"editorMode\"\n [(ngModel)]=\"pickComment\"\n ></lib-editor>\n </div>\n </div>\n </div>\n\n <!-- Action Buttons -->\n <div class=\"flex justify-end gap-3 mt-4 pt-2\">\n <verbena-button (click)=\"closePopUp4()\" text=\"Cancel\"></verbena-button>\n <verbena-button\n class=\"verben-primary-button\"\n text=\"OK\"\n (click)=\"submitPick()\"\n [disable]=\"\n !isPickCommentValid() ||\n !pickRecipient ||\n (!isReassign() && !selectedStageCode)\n \"\n ></verbena-button>\n </div>\n </div>\n </div>\n </verben-pop-Up>\n </div>\n </div>\n\n <ng-container>\n <div\n *ngIf=\"localHistoryToDate[i + 1]?.ActionName\"\n class=\"border-primary border-b-2 w-[50px] relative px-2 text-xs text-primary font-medium\"\n ></div>\n </ng-container>\n\n <ng-container\n *ngIf=\"\n i === localHistoryToDate.length - 1 &&\n localNextActions.length > 0 &&\n localNextActions.length !== 1 &&\n !readOnly\n \"\n >\n <div>\n <verben-pop-Up\n #popup\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n [cdkPosition]=\"popupPositions\"\n >\n <div dropdown-trigger class=\"flex items-center\">\n <div class=\"w-[20px] h-[2px] bg-[#D4A007]\"></div>\n <div class=\"mt-2\">\n <verben-svg\n class=\"cursor-pointer actions-icon\"\n stroke=\"#D4A007\"\n icon=\"chevron\"\n ></verben-svg>\n </div>\n </div>\n\n <div\n class=\"pop-up-content flex flex-col py-1.5 min-w-[170px]\"\n dropdown-content\n >\n <div\n class=\"px-3 py-1.5 border-b border-gray-100 flex items-center gap-1.5\"\n >\n <span\n class=\"w-1.5 h-1.5 rounded-full bg-primary inline-block\"\n ></span>\n <span\n class=\"text-[11px] font-semibold text-gray-500 uppercase tracking-wider\"\n >Actions</span\n >\n </div>\n <ul class=\"flex flex-col py-1\">\n <li\n *ngFor=\"\n let action of localNextActions;\n trackBy: trackByAction\n \"\n >\n <button\n [disabled]=\"disableNotActor()\"\n class=\"w-full text-left px-3 py-2 text-xs font-medium text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors disabled:cursor-not-allowed disabled:opacity-40 cursor-pointer flex items-center justify-between\"\n (click)=\"openCommentFor(action, $event); closePopUp()\"\n >\n <span>{{\n action.Name || action.ToStageName || \"Unnamed\"\n }}</span>\n </button>\n </li>\n </ul>\n </div>\n </verben-pop-Up>\n </div>\n </ng-container>\n </div>\n <ng-container\n *ngIf=\"\n stage.ToStageName && stage.ToStageName.length > 20;\n else plainStageName\n \"\n >\n <verben-tooltip\n [top]=\"'0px'\"\n [textColor]=\"'#000'\"\n [backgroundColor]=\"'#D3D3D3'\"\n [left]=\"'0'\"\n [tooltipContent]=\"tooltipTemplate2\"\n #tooltip\n >\n <p\n class=\"text-xs min-w-max left-0 text-primary mt-1 font-semibold capitalize\"\n >\n {{ stage.ToStageName | slice: 0 : 20 }}...\n </p>\n </verben-tooltip>\n <ng-template #tooltipTemplate2>\n <div>\n <p class=\"text-xs\">{{ stage.ToStageName }}</p>\n </div>\n </ng-template>\n </ng-container>\n <ng-template #plainStageName>\n <p\n class=\"text-xs min-w-max left-0 text-primary mt-1 font-semibold capitalize\"\n >\n {{ stage.ToStageName || \"\" }}\n </p>\n </ng-template>\n </div>\n</div>\n<verben-dialogue\n [dismissOutsideClick]=\"true\"\n [closeOnEscape]=\"true\"\n [mode]=\"'drawer'\"\n [padding]=\"'0px'\"\n [drawerWidth]=\"'500px'\"\n position=\"right\"\n [disableFooter]=\"false\"\n [isVisible]=\"isVisible\"\n [modalData]=\"taskForms\"\n (openModal)=\"onModalOpen($event)\"\n (closeModal)=\"onModalClose($event)\"\n [headerTemplate]=\"headerTemplate\"\n [bodyTemplate]=\"bodyTemplate\"\n [showCloseIcon]=\"true\"\n>\n</verben-dialogue>\n\n<ng-template #headerTemplate>\n <div class=\"bg-[#FFE681] px-6 py-4 flex justify-between items-center\">\n <h1>{{ forms[0]?.Name }}</h1>\n </div>\n</ng-template>\n\n<ng-template #bodyTemplate>\n <div class=\"p-3\">\n <div *ngIf=\"forms?.[active]?.Entities?.length; else emptyState\">\n <div\n *ngFor=\"let entity of forms[active]?.Entities; let j = index\"\n class=\"mb-6 pb-4\"\n >\n <form-control\n [formProperties]=\"entity?.Properties || []\"\n ></form-control>\n <div class=\"flex gap-3 justify-end mt-4\">\n <verbena-button\n class=\"verben-primary-button\"\n (click)=\"submitForm(active)\"\n [disable]=\"!areRequiredPropertiesFilled(entity?.Properties)\"\n text=\"Proceed\"\n ></verbena-button>\n </div>\n </div>\n </div>\n\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 </div>\n</ng-template>\n\n<app-form-viewer\n [form]=\"activeForm\"\n [isVisible]=\"isFormViewerVisible\"\n (onOpen)=\"onFormViewerOpen()\"\n (onClose)=\"onFormViewerClose()\"\n></app-form-viewer>\n", styles: [".workflow-container{position:relative}.dialog{position:absolute;top:100%;left:0;background:var(--vbn-color-surface);border:1px solid var(--vbn-color-border);padding:1rem}.completed{text-decoration:line-through;color:var(--vbn-color-text-muted)}.pop-up-content{border-radius:8px;background-color:var(--vbn-color-surface, #ffffff);border:1px solid #e2e8f0;box-shadow:0 10px 25px -5px #0000001a,0 8px 10px -6px #0000000d}.pop-up-value{padding:10px 20px}.workflow-comment-editor{border:1px solid #cbd5e1;border-radius:6px;background-color:#fff;display:flex;flex-direction:column;height:250px;max-height:300px;overflow:visible!important;position:relative}::ng-deep .workflow-comment-editor lib-editor{display:flex!important;flex-direction:column!important;height:100%!important;width:100%!important;overflow:visible!important}::ng-deep .workflow-comment-editor lib-editor>div{gap:0!important;height:100%!important;display:flex!important;flex-direction:column!important;overflow:visible!important}::ng-deep .workflow-comment-editor .editor-menu{flex-shrink:0!important;padding:4px 6px;background-color:#f8fafc;border-bottom:1px solid #e2e8f0;gap:4px;overflow:visible!important;border-top-left-radius:5px;border-top-right-radius:5px;position:relative;z-index:50}::ng-deep .workflow-comment-editor .editor-menu-group{overflow:visible!important}::ng-deep .workflow-comment-editor .color-picker-popover{max-height:240px!important;overflow-y:auto!important;overflow-x:hidden!important;z-index:1050!important;box-shadow:0 10px 25px -5px #00000040,0 8px 10px -6px #00000026!important;border:1px solid #cbd5e1!important}::ng-deep .workflow-comment-editor .color-picker-popover::-webkit-scrollbar{width:5px!important}::ng-deep .workflow-comment-editor .color-picker-popover::-webkit-scrollbar-track{background:transparent!important}::ng-deep .workflow-comment-editor .color-picker-popover::-webkit-scrollbar-thumb{background:#cbd5e1!important;border-radius:3px!important}::ng-deep .workflow-comment-editor .color-picker-popover::-webkit-scrollbar-thumb:hover{background:#94a3b8!important}::ng-deep .workflow-comment-editor .color-picker-backdrop{z-index:1040!important}::ng-deep .workflow-comment-editor .font-family-popover,::ng-deep .workflow-comment-editor .font-size-popover{z-index:1050!important}::ng-deep .workflow-comment-editor .font-picker-backdrop{z-index:1040!important}::ng-deep .workflow-comment-editor .editor-menu-item{width:26px;height:26px;border-radius:4px;background:transparent;transition:background-color .15s ease}::ng-deep .workflow-comment-editor .editor-menu-item:hover{background-color:#e2e8f0}::ng-deep .workflow-comment-editor .font-family-trigger{height:26px;width:110px;font-size:11px}::ng-deep .workflow-comment-editor .font-size-group{height:26px}::ng-deep .workflow-comment-editor .font-size-step-btn{height:24px;width:18px}::ng-deep .workflow-comment-editor .font-size-combobox{height:24px}::ng-deep .workflow-comment-editor .font-size-input{font-size:11px}::ng-deep .workflow-comment-editor .editor-container{flex:1 1 0!important;min-height:0!important;height:100%!important;gap:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}::ng-deep .workflow-comment-editor lib-editor-designer{display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-height:0!important;height:100%!important;overflow:hidden!important}::ng-deep .workflow-comment-editor .editable-div-wrapper{flex:1 1 0!important;min-height:0!important;height:100%!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:0!important;background-color:#fff}::ng-deep .workflow-comment-editor .editable{flex:1 1 0!important;min-height:0!important;height:100%!important;overflow-y:auto!important;overflow-x:auto!important;padding:10px 12px 40px!important;outline:none;font-size:13px;line-height:1.5;box-sizing:border-box!important}::ng-deep .workflow-comment-editor [title=\"Code View\"]{display:none!important}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4.SvgComponent, selector: "verben-svg", inputs: ["icon", "width", "height", "fill", "stroke", "type", "size"] }, { kind: "component", type: i4.VerbenPopUpComponent, selector: "verben-pop-Up", inputs: ["dropdownOpen", "dropdownWidth", "color", "customStyles", "popUpClass", "border", "borderRadius", "enableMouseLeave", "cdkPosition"], outputs: ["dropdownOpenChange", "close"] }, { kind: "component", type: i4.VerbenaButtonComponent, selector: "verbena-button", inputs: ["type", "text", "styleType", "size", "block", "disable", "disabled", "isLoading", "spinnerSize", "spinnerColor", "svg", "svgPosition", "svgWidth", "svgHeight", "svgSize", "svgColor", "icon", "useIcon", "iconPosition", "iconColor", "variant", "weight", "bgColor", "textColor", "border", "borderRadius", "pd", "width", "height", "fontSize", "fontWeight", "buttonClass", "buttonTextClass"] }, { kind: "component", type: i4.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", "autoScrollToCurrentItem", "load", "asyncLabel", "search"], outputs: ["optionsChange", "onChange", "onClick", "onClear"] }, { kind: "component", type: i4.TooltipComponent, selector: "verben-tooltip", inputs: ["tooltipContent", "customClass", "backgroundColor", "textColor", "padding", "borderRadius", "zIndex", "border", "width", "top", "bottom", "left", "right"] }, { kind: "component", type: i4.VerbenDialogueComponent, selector: "verben-dialogue", inputs: ["dialogueWidth", "headerTemplate", "bodyTemplate", "footerTemplate", "showCloseIcon", "dismissOutsideClick", "closeOnEscape", "isVisible", "size", "backdropColor", "customClass", "disableFooter", "margin", "padding", "borderRadius", "dialogueBgColor", "width", "closeIconClass", "boxShadow", "enableTransition", "modalData", "mode", "position", "drawerWidth"], outputs: ["openModal", "closeModal"] }, { kind: "component", type: i4.VerbenaTextareaComponent, selector: "verbena-textarea", inputs: ["disabled", "label", "required", "rows", "cols", "bgColor", "textColor", "border", "borderRadius", "pd", "width", "height", "value", "errorMessageColor"], outputs: ["valueChange"] }, { kind: "component", type: i5.EditorComponent, selector: "lib-editor", inputs: ["themeColor", "disabled", "editorMode", "editorConfig", "content"], outputs: ["editorModeChange", "onImageEdit", "onSortEdit"] }, { kind: "component", type: i6.FormControlComponent, selector: "form-control", inputs: ["dataType", "value", "boolInputType", "formProperties", "disabled"] }, { kind: "component", type: i7.FormViewerComponent, selector: "app-form-viewer", inputs: ["form", "isVisible"], outputs: ["onOpen", "onClose"] }, { kind: "pipe", type: i2.SlicePipe, name: "slice" }] });
|
|
287
620
|
}
|
|
288
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WorkflowStageComponent
|
|
621
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WorkflowStageComponent /* implements DoCheck */, decorators: [{
|
|
289
622
|
type: Component,
|
|
290
|
-
args: [{ selector: 'app-workflow-stage', template: "<div\n class=\"flex overflow-x-auto items-start min-h-max overflow-y-clip pt-3 pb-3\"\n>\n <div *ngFor=\"let stage of localHistoryToDate; let i = index\">\n <div class=\"flex items-center\">\n <verben-tooltip\n [top]=\"'0px'\"\n [textColor]=\"'#000'\"\n [backgroundColor]=\"'#D3D3D3'\"\n [left]=\"'0'\"\n [tooltipContent]=\"taskCode ? nullTemplate : tooltipTemplate\"\n #tooltip\n >\n <div\n class=\"w-[30px] h-[30px] flex cursor-pointer justify-center items-center rounded-full bg-primary\"\n >\n <ng-container *ngIf=\"taskCode\">\n <verben-pop-Up\n #popup3\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n >\n <verben-svg\n stroke=\"#fff\"\n icon=\"check\"\n dropdown-trigger\n ></verben-svg>\n\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <!-- <div (click)=\"viewVendors(value.Code)\" class=\"pop-up-value cursor-pointer\">View vendors</div> -->\n <div\n (click)=\"loadFormIfExists(stage.ToStage)\"\n class=\"pop-up-value cursor-pointer\"\n >\n Load Stage Form\n </div>\n <!-- <div class=\"pop-up-value cursor-pointer\">Delete</div> -->\n </div>\n </verben-pop-Up>\n </ng-container>\n <ng-container *ngIf=\"!taskCode\">\n <verben-svg stroke=\"#fff\" icon=\"check\"></verben-svg>\n </ng-container>\n </div>\n </verben-tooltip>\n\n <ng-template #nullTemplate></ng-template>\n\n <ng-template #tooltipTemplate>\n <div>\n <p class=\"text-xs\">{{ stage.Actor.Identifier }}</p>\n </div>\n </ng-template>\n\n <ng-container\n *ngIf=\"\n localHistoryToDate[i + 1] ||\n (i === localHistoryToDate.length - 1 &&\n localNextActions.length > 0 &&\n !readOnly)\n \"\n >\n <div\n class=\"border-primary border-b-2 w-[50px] relative px-2 text-xs text-primary font-medium\"\n ></div>\n </ng-container>\n <div\n *ngIf=\"\n i === localHistoryToDate.length - 1 &&\n localNextActions.length > 0 &&\n !readOnly\n \"\n class=\"relative inline-flex\"\n >\n <p\n (click)=\"openCommentFor(selectedAction || localNextActions[0])\"\n [ngClass]=\"{\n 'cursor-not-allowed opacity-50 pointer-events-none':\n disableNotActor(),\n 'cursor-pointer': !disableNotActor(),\n }\"\n class=\"text-center min-w-max rounded-md h-[30px] text-[white] text-sm flex justify-center items-center py-1 max-w-fit px-2 bg-primary\"\n >\n {{\n selectedAction?.Name ||\n selectedAction?.ToStageName ||\n localNextActions[0]?.Name ||\n localNextActions[0]?.ToStageName\n }}\n </p>\n <div\n *ngIf=\"canPick()\"\n (click)=\"openPickPopup()\"\n [title]=\"\n isReassign()\n ? 'Reassign task to yourself to act on this stage'\n : 'Pick task to act on this stage'\n \"\n class=\"absolute -top-2 -right-2 w-[18px] h-[18px] rounded-full bg-[#FFE681] ring-2 ring-white shadow flex items-center justify-center cursor-pointer z-10\"\n >\n <verben-svg\n icon=\"user\"\n fill=\"#404040\"\n [width]=\"12\"\n [height]=\"12\"\n ></verben-svg>\n </div>\n </div>\n\n <ng-container>\n <div\n *ngIf=\"localHistoryToDate[i + 1]?.ActionName\"\n class=\"border-primary border-b-2 w-[50px] relative px-2 text-xs text-primary font-medium\"\n ></div>\n </ng-container>\n\n <ng-container\n *ngIf=\"\n i === localHistoryToDate.length - 1 &&\n localNextActions.length > 0 &&\n localNextActions.length !== 1 &&\n !readOnly\n \"\n >\n <div>\n <verben-pop-Up\n #popup\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n >\n <div dropdown-trigger class=\"flex items-center\">\n <div class=\"w-[20px] h-[2px] bg-[#D4A007]\"></div>\n <div class=\"mt-2\">\n <verben-svg\n class=\"cursor-pointer actions-icon\"\n stroke=\"#D4A007\"\n icon=\"chevron\"\n ></verben-svg>\n </div>\n </div>\n\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <ul>\n <li\n *ngFor=\"let action of localNextActions\"\n class=\"pop-up-value\"\n >\n <button\n [disabled]=\"disableNotActor()\"\n class=\"disabled:cursor-not-allowed cursor-pointer\"\n (click)=\"openCommentFor(action); closePopUp()\"\n >\n {{ action.Name || action.ToStageName || \"Unnamed\" }}\n </button>\n </li>\n </ul>\n </div>\n </verben-pop-Up>\n </div>\n </ng-container>\n </div>\n <verben-tooltip\n [top]=\"'0px'\"\n [textColor]=\"'#000'\"\n [backgroundColor]=\"'#D3D3D3'\"\n [left]=\"'0'\"\n [tooltipContent]=\"tooltipTemplate2\"\n #tooltip\n >\n <p\n class=\"text-xs min-w-max left-0 text-primary mt-1 font-semibold capitalize\"\n >\n {{ stage.ToStageName | slice: 0 : 20\n }}{{ stage.ToStageName && stage.ToStageName.length > 20 ? \"...\" : \"\" }}\n </p>\n </verben-tooltip>\n <ng-template #tooltipTemplate2>\n <div>\n <p class=\"text-xs\">{{ stage.ToStageName }}</p>\n </div>\n </ng-template>\n </div>\n</div>\n<verben-pop-Up\n #popup2\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n>\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <div class=\"p-4 w-[350px]\">\n <h3 class=\"font-semibold mb-2\">Add Comment</h3>\n\n <verben-drop-down\n *ngIf=\"taskCode && nextActors.length > 0\"\n width=\"100%\"\n class=\"mb-3 block\"\n label=\"Assign to (optional)\"\n [options]=\"nextActors\"\n optionLabel=\"Name\"\n optionValue=\"Identifier\"\n [(ngModel)]=\"selectedRecipient\"\n [showClear]=\"true\"\n ></verben-drop-down>\n\n <textarea\n class=\"w-full border p-2 rounded-md outline-none\"\n rows=\"4\"\n [(ngModel)]=\"commentText\"\n placeholder=\"Enter your comment...\"\n ></textarea>\n\n <div class=\"flex justify-end gap-3 mt-4\">\n <verbena-button (click)=\"closePopUp2()\" text=\"Cancel\"></verbena-button>\n <verbena-button\n class=\"verben-primary-button\"\n text=\"OK\"\n (click)=\"completeAction(selectedAction)\"\n [disable]=\"!commentText\"\n ></verbena-button>\n </div>\n </div>\n </div>\n</verben-pop-Up>\n<verben-pop-Up\n #popup4\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n>\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <div class=\"p-4 w-[350px]\">\n <h3 class=\"font-semibold mb-2\">\n {{ isReassign() ? \"Reassign Task\" : \"Pick Task\" }}\n </h3>\n\n <verben-drop-down\n *ngIf=\"!isReassign()\"\n width=\"100%\"\n class=\"mb-3 block\"\n label=\"Stage\"\n [options]=\"task?.FullStages || []\"\n optionLabel=\"Name\"\n optionValue=\"Code\"\n [(ngModel)]=\"selectedStageCode\"\n [showClear]=\"true\"\n ></verben-drop-down>\n\n <verben-drop-down\n width=\"100%\"\n class=\"mb-3 block\"\n label=\"Assign to\"\n [options]=\"pickActors\"\n optionLabel=\"Name\"\n optionValue=\"Identifier\"\n [(ngModel)]=\"pickRecipient\"\n [disabled]=\"true\"\n ></verben-drop-down>\n\n <textarea\n class=\"w-full border p-2 rounded-md outline-none\"\n rows=\"4\"\n [(ngModel)]=\"pickComment\"\n placeholder=\"Enter your comment...\"\n ></textarea>\n\n <div class=\"flex justify-end gap-3 mt-4\">\n <verbena-button (click)=\"closePopUp4()\" text=\"Cancel\"></verbena-button>\n <verbena-button\n class=\"verben-primary-button\"\n text=\"OK\"\n (click)=\"submitPick()\"\n [disable]=\"\n !pickComment ||\n !pickRecipient ||\n (!isReassign() && !selectedStageCode)\n \"\n ></verbena-button>\n </div>\n </div>\n </div>\n</verben-pop-Up>\n<verben-dialogue\n [dismissOutsideClick]=\"true\"\n [closeOnEscape]=\"true\"\n [mode]=\"'drawer'\"\n [padding]=\"'0px'\"\n [drawerWidth]=\"'500px'\"\n position=\"right\"\n [disableFooter]=\"false\"\n [isVisible]=\"isVisible\"\n [modalData]=\"taskForms\"\n (openModal)=\"onModalOpen($event)\"\n (closeModal)=\"onModalClose($event)\"\n [headerTemplate]=\"headerTemplate\"\n [bodyTemplate]=\"bodyTemplate\"\n [showCloseIcon]=\"true\"\n>\n</verben-dialogue>\n\n<ng-template #headerTemplate>\n <div class=\"bg-[#FFE681] px-6 py-4 flex justify-between items-center\">\n <h1>{{ forms[0]?.Name }}</h1>\n </div>\n</ng-template>\n\n<ng-template #bodyTemplate>\n <div class=\"p-3\">\n <div *ngIf=\"forms?.[active]?.Entities?.length; else emptyState\">\n <div\n *ngFor=\"let entity of forms[active]?.Entities; let j = index\"\n class=\"mb-6 pb-4\"\n >\n <form-control\n [formProperties]=\"entity?.Properties || []\"\n ></form-control>\n <div class=\"flex gap-3 justify-end mt-4\">\n <verbena-button\n class=\"verben-primary-button\"\n (click)=\"submitForm(active)\"\n [disable]=\"!areRequiredPropertiesFilled(entity?.Properties)\"\n text=\"Proceed\"\n ></verbena-button>\n </div>\n </div>\n </div>\n\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 </div>\n</ng-template>\n\n<app-form-viewer\n [form]=\"activeForm\"\n [isVisible]=\"isFormViewerVisible\"\n (onOpen)=\"onFormViewerOpen()\"\n (onClose)=\"onFormViewerClose()\"\n></app-form-viewer>\n", styles: [".workflow-container{position:relative}.dialog{position:absolute;top:100%;left:0;background:var(--vbn-color-surface);border:1px solid var(--vbn-color-border);padding:1rem}.completed{text-decoration:line-through;color:var(--vbn-color-text-muted)}.pop-up-content{border-radius:4px;background-color:var(--vbn-color-surface);border:1px solid #9c56ba}.pop-up-value{padding:10px 20px}\n"] }]
|
|
291
|
-
}], ctorParameters: () => [{ type: i1.UtilService }, { type: i1.HttpWebRequestService }], propDecorators: {
|
|
623
|
+
args: [{ selector: 'app-workflow-stage', template: "<div\n class=\"flex overflow-x-auto items-start min-h-max overflow-y-clip pt-3 pb-3 px-1\"\n>\n <div\n *ngFor=\"\n let stage of localHistoryToDate;\n trackBy: trackByStage;\n let i = index\n \"\n >\n <div class=\"flex items-center\">\n <!-- In task mode: Stage Form popup, NO tooltip -->\n <div\n *ngIf=\"taskCode\"\n class=\"w-[30px] h-[30px] flex cursor-pointer justify-center items-center rounded-full bg-primary text-white shadow-xs hover:ring-2 hover:ring-primary/30 transition-all duration-150\"\n >\n <verben-pop-Up\n #popup3\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n [cdkPosition]=\"popupPositions\"\n >\n <div\n dropdown-trigger\n class=\"flex items-center justify-center w-full h-full\"\n >\n <!-- Clean modern checkmark -->\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"3\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <polyline points=\"20 6 9 17 4 12\"></polyline>\n </svg>\n </div>\n\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <div\n (click)=\"loadFormIfExists(stage.ToStage)\"\n class=\"pop-up-value cursor-pointer\"\n >\n Load Stage Form\n </div>\n </div>\n </verben-pop-Up>\n </div>\n\n <!-- Not in task mode: show tooltip ONLY if actor identifier exists -->\n <ng-container *ngIf=\"!taskCode\">\n <verben-tooltip\n *ngIf=\"stage.Actor?.Identifier; else plainStageCircle\"\n [top]=\"'0px'\"\n [textColor]=\"'#000'\"\n [backgroundColor]=\"'#D3D3D3'\"\n [left]=\"'0'\"\n [tooltipContent]=\"tooltipTemplate\"\n #tooltip\n >\n <div\n class=\"w-[30px] h-[30px] flex cursor-pointer justify-center items-center rounded-full bg-primary text-white shadow-xs hover:ring-2 hover:ring-primary/30 transition-all duration-150\"\n >\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"3\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <polyline points=\"20 6 9 17 4 12\"></polyline>\n </svg>\n </div>\n </verben-tooltip>\n\n <ng-template #plainStageCircle>\n <div\n class=\"w-[30px] h-[30px] flex cursor-pointer justify-center items-center rounded-full bg-primary text-white shadow-xs hover:ring-2 hover:ring-primary/30 transition-all duration-150\"\n >\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"3\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <polyline points=\"20 6 9 17 4 12\"></polyline>\n </svg>\n </div>\n </ng-template>\n </ng-container>\n\n <ng-template #tooltipTemplate>\n <div class=\"px-1 py-0.5\" *ngIf=\"stage.Actor?.Identifier\">\n <p class=\"text-xs font-semibold\" *ngIf=\"stage.ToStageName\">\n {{ stage.ToStageName }}\n </p>\n <p class=\"text-[11px] opacity-80\">\n {{ stage.Actor.Identifier }}\n </p>\n </div>\n </ng-template>\n\n <ng-container\n *ngIf=\"\n localHistoryToDate[i + 1] ||\n (i === localHistoryToDate.length - 1 &&\n localNextActions.length > 0 &&\n !readOnly)\n \"\n >\n <div\n class=\"border-primary border-b-2 w-[50px] relative px-2 text-xs text-primary font-medium\"\n ></div>\n </ng-container>\n <div\n *ngIf=\"\n i === localHistoryToDate.length - 1 &&\n localNextActions.length > 0 &&\n !readOnly\n \"\n class=\"relative inline-flex\"\n >\n <verben-pop-Up\n #popup2\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n [cdkPosition]=\"passOnPositions\"\n >\n <div dropdown-trigger class=\"inline-flex\">\n <p\n (click)=\"\n openCommentFor(selectedAction || localNextActions[0], $event)\n \"\n [ngClass]=\"{\n 'cursor-not-allowed opacity-50 pointer-events-none':\n disableNotActor(),\n 'cursor-pointer': !disableNotActor(),\n }\"\n class=\"text-center min-w-max rounded-md h-[30px] text-[white] text-sm flex justify-center items-center py-1 max-w-fit px-2 bg-primary\"\n >\n {{\n selectedAction?.Name ||\n selectedAction?.ToStageName ||\n localNextActions[0]?.Name ||\n localNextActions[0]?.ToStageName\n }}\n </p>\n </div>\n\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <div\n class=\"p-4 transition-all duration-200\"\n [style.width]=\"isRichEditor ? '580px' : '420px'\"\n >\n <!-- Coherent Header -->\n <div\n class=\"flex items-center justify-between pb-3 mb-3 border-b border-gray-200\"\n >\n <div class=\"flex items-center gap-2\">\n <span class=\"w-2 h-2 rounded-full bg-primary inline-block\"></span>\n <h3 class=\"text-sm font-semibold text-gray-800 tracking-tight\">\n {{ getActionCaption(selectedAction) || \"Add Comment\" }}\n </h3>\n </div>\n <button\n type=\"button\"\n (click)=\"closePopUp2()\"\n class=\"text-gray-400 hover:text-gray-600 transition-colors p-1 rounded-md hover:bg-gray-100 cursor-pointer\"\n title=\"Close\"\n >\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line>\n <line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line>\n </svg>\n </button>\n </div>\n\n <div class=\"flex flex-col gap-3\">\n <!-- Send To -->\n <div\n class=\"flex flex-col gap-1.5\"\n *ngIf=\"taskCode && nextActors.length > 0\"\n >\n <div class=\"flex items-center justify-between\">\n <label\n class=\"text-xs font-semibold text-gray-700 tracking-wide uppercase\"\n >\n Send To\n </label>\n <span class=\"text-[11px] text-gray-400\">Optional</span>\n </div>\n <verben-drop-down\n width=\"100%\"\n label=\"Send to (optional)\"\n [options]=\"nextActors\"\n optionLabel=\"Name\"\n optionValue=\"Identifier\"\n [(ngModel)]=\"selectedRecipient\"\n [showClear]=\"true\"\n ></verben-drop-down>\n </div>\n\n <!-- Copy -->\n <div class=\"flex flex-col gap-1.5\">\n <div class=\"flex items-center justify-between\">\n <label\n class=\"text-xs font-semibold text-gray-700 tracking-wide uppercase\"\n >\n Copy\n </label>\n <span class=\"text-[11px] text-gray-400\">Notify actors</span>\n </div>\n <verben-drop-down\n selectKey=\"Code\"\n display=\"chip\"\n width=\"100%\"\n placeholder=\"Select Actors\"\n [showClear]=\"true\"\n [filter]=\"true\"\n (onChange)=\"onCopyChanged($event)\"\n [load]=\"this.loadMoreActors.bind(this)\"\n [search]=\"this.searchActors.bind(this)\"\n [(options)]=\"actors\"\n optionLabel=\"Name\"\n [multiselect]=\"true\"\n [(ngModel)]=\"copy\"\n [lazyLoad]=\"true\"\n [asyncLabel]=\"this.getAsyncLabel.bind(this)\"\n >\n </verben-drop-down>\n </div>\n\n <!-- Comment with Mode Switcher -->\n <div class=\"flex flex-col gap-1.5\">\n <div class=\"flex items-center justify-between mb-0.5\">\n <label\n class=\"text-xs font-semibold text-gray-700 tracking-wide uppercase flex items-center gap-1\"\n >\n <span>Comment</span>\n <span class=\"text-red-500\">*</span>\n </label>\n\n <!-- Mode Switch Pill -->\n <div\n class=\"inline-flex items-center bg-gray-100 p-0.5 rounded-md border border-gray-200\"\n >\n <button\n type=\"button\"\n (click)=\"setEditorMode(false)\"\n [ngClass]=\"\n !isRichEditor\n ? 'bg-white text-gray-800 shadow-xs font-medium'\n : 'text-gray-500 hover:text-gray-700'\n \"\n class=\"px-2 py-0.5 text-xs rounded transition-all cursor-pointer flex items-center gap-1\"\n title=\"Simple textarea\"\n >\n <span>Simple</span>\n </button>\n <button\n type=\"button\"\n (click)=\"setEditorMode(true)\"\n [ngClass]=\"\n isRichEditor\n ? 'bg-white text-gray-800 shadow-xs font-medium'\n : 'text-gray-500 hover:text-gray-700'\n \"\n class=\"px-2 py-0.5 text-xs rounded transition-all cursor-pointer flex items-center gap-1\"\n title=\"Rich text editor with formatting & tables\"\n >\n <svg\n width=\"11\"\n height=\"11\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M4 7V4h16v3M9 20h6M12 4v16\" />\n </svg>\n <span>Rich / Tables</span>\n </button>\n </div>\n </div>\n\n <!-- Simple Textarea Mode -->\n <div *ngIf=\"!isRichEditor\" class=\"w-full\">\n <verbena-textarea\n [(ngModel)]=\"commentText\"\n [rows]=\"4\"\n width=\"100%\"\n border=\"1px solid #cbd5e1\"\n borderRadius=\"6px\"\n ></verbena-textarea>\n </div>\n\n <!-- Rich Reporting Editor Mode -->\n <div *ngIf=\"isRichEditor\" class=\"workflow-comment-editor w-full\">\n <lib-editor\n [editorConfig]=\"editorConfig\"\n [editorMode]=\"editorMode\"\n [(ngModel)]=\"commentText\"\n ></lib-editor>\n </div>\n </div>\n </div>\n\n <!-- Action Buttons -->\n <div class=\"flex justify-end gap-3 mt-4 pt-2\">\n <verbena-button (click)=\"closePopUp2()\" text=\"Cancel\"></verbena-button>\n <verbena-button\n class=\"verben-primary-button\"\n text=\"OK\"\n (click)=\"completeAction(selectedAction)\"\n [disable]=\"!isCommentValid()\"\n ></verbena-button>\n </div>\n </div>\n </div>\n </verben-pop-Up>\n\n <div\n *ngIf=\"canPick()\"\n class=\"absolute -top-2 -right-2 z-10\"\n >\n <verben-pop-Up\n #popup4\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n [cdkPosition]=\"reassignPositions\"\n >\n <div\n dropdown-trigger\n (click)=\"openPickPopup($event)\"\n [title]=\"\n isReassign()\n ? 'Reassign task to yourself to act on this stage'\n : 'Pick task to act on this stage'\n \"\n class=\"w-[18px] h-[18px] rounded-full bg-[#FFE681] ring-2 ring-white shadow flex items-center justify-center cursor-pointer\"\n >\n <verben-svg\n icon=\"user\"\n fill=\"#404040\"\n [width]=\"12\"\n [height]=\"12\"\n ></verben-svg>\n </div>\n\n <div class=\"pop-up-content flex flex-col\" dropdown-content>\n <div\n class=\"p-4 transition-all duration-200\"\n [style.width]=\"isPickRichEditor ? '580px' : '420px'\"\n >\n <!-- Coherent Header -->\n <div\n class=\"flex items-center justify-between pb-3 mb-3 border-b border-gray-200\"\n >\n <div class=\"flex items-center gap-2\">\n <span class=\"w-2 h-2 rounded-full bg-primary inline-block\"></span>\n <h3 class=\"text-sm font-semibold text-gray-800 tracking-tight\">\n {{ isReassign() ? \"Reassign Task\" : \"Pick Task\" }}\n </h3>\n </div>\n <button\n type=\"button\"\n (click)=\"closePopUp4()\"\n class=\"text-gray-400 hover:text-gray-600 transition-colors p-1 rounded-md hover:bg-gray-100 cursor-pointer\"\n title=\"Close\"\n >\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line>\n <line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line>\n </svg>\n </button>\n </div>\n\n <div class=\"flex flex-col gap-3\">\n <!-- Stage (if not reassign) -->\n <div class=\"flex flex-col gap-1.5\" *ngIf=\"!isReassign()\">\n <label\n class=\"text-xs font-semibold text-gray-700 tracking-wide uppercase flex items-center gap-1\"\n >\n <span>Stage</span>\n <span class=\"text-red-500\">*</span>\n </label>\n <verben-drop-down\n width=\"100%\"\n label=\"Stage\"\n [options]=\"task?.FullStages || []\"\n optionLabel=\"Name\"\n optionValue=\"Code\"\n [(ngModel)]=\"selectedStageCode\"\n [showClear]=\"true\"\n ></verben-drop-down>\n </div>\n\n <!-- Assign To -->\n <div class=\"flex flex-col gap-1.5\">\n <div class=\"flex items-center justify-between\">\n <label\n class=\"text-xs font-semibold text-gray-700 tracking-wide uppercase\"\n >\n Assign to\n </label>\n <span class=\"text-[11px] text-gray-400\">Current Actor</span>\n </div>\n <verben-drop-down\n width=\"100%\"\n label=\"Assign to\"\n [options]=\"pickActors\"\n optionLabel=\"Name\"\n optionValue=\"Identifier\"\n [(ngModel)]=\"pickRecipient\"\n [disabled]=\"true\"\n ></verben-drop-down>\n </div>\n\n <!-- Comment with Mode Switcher -->\n <div class=\"flex flex-col gap-1.5\">\n <div class=\"flex items-center justify-between mb-0.5\">\n <label\n class=\"text-xs font-semibold text-gray-700 tracking-wide uppercase flex items-center gap-1\"\n >\n <span>Comment</span>\n <span class=\"text-red-500\">*</span>\n </label>\n\n <!-- Mode Switch Pill -->\n <div\n class=\"inline-flex items-center bg-gray-100 p-0.5 rounded-md border border-gray-200\"\n >\n <button\n type=\"button\"\n (click)=\"setPickEditorMode(false)\"\n [ngClass]=\"\n !isPickRichEditor\n ? 'bg-white text-gray-800 shadow-xs font-medium'\n : 'text-gray-500 hover:text-gray-700'\n \"\n class=\"px-2 py-0.5 text-xs rounded transition-all cursor-pointer flex items-center gap-1\"\n title=\"Simple textarea\"\n >\n <span>Simple</span>\n </button>\n <button\n type=\"button\"\n (click)=\"setPickEditorMode(true)\"\n [ngClass]=\"\n isPickRichEditor\n ? 'bg-white text-gray-800 shadow-xs font-medium'\n : 'text-gray-500 hover:text-gray-700'\n \"\n class=\"px-2 py-0.5 text-xs rounded transition-all cursor-pointer flex items-center gap-1\"\n title=\"Rich text editor with formatting & tables\"\n >\n <svg\n width=\"11\"\n height=\"11\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M4 7V4h16v3M9 20h6M12 4v16\" />\n </svg>\n <span>Rich / Tables</span>\n </button>\n </div>\n </div>\n\n <!-- Simple Textarea Mode -->\n <div *ngIf=\"!isPickRichEditor\" class=\"w-full\">\n <verbena-textarea\n [(ngModel)]=\"pickComment\"\n [rows]=\"4\"\n width=\"100%\"\n border=\"1px solid #cbd5e1\"\n borderRadius=\"6px\"\n ></verbena-textarea>\n </div>\n\n <!-- Rich Reporting Editor Mode -->\n <div *ngIf=\"isPickRichEditor\" class=\"workflow-comment-editor w-full\">\n <lib-editor\n [editorConfig]=\"editorConfig\"\n [editorMode]=\"editorMode\"\n [(ngModel)]=\"pickComment\"\n ></lib-editor>\n </div>\n </div>\n </div>\n\n <!-- Action Buttons -->\n <div class=\"flex justify-end gap-3 mt-4 pt-2\">\n <verbena-button (click)=\"closePopUp4()\" text=\"Cancel\"></verbena-button>\n <verbena-button\n class=\"verben-primary-button\"\n text=\"OK\"\n (click)=\"submitPick()\"\n [disable]=\"\n !isPickCommentValid() ||\n !pickRecipient ||\n (!isReassign() && !selectedStageCode)\n \"\n ></verbena-button>\n </div>\n </div>\n </div>\n </verben-pop-Up>\n </div>\n </div>\n\n <ng-container>\n <div\n *ngIf=\"localHistoryToDate[i + 1]?.ActionName\"\n class=\"border-primary border-b-2 w-[50px] relative px-2 text-xs text-primary font-medium\"\n ></div>\n </ng-container>\n\n <ng-container\n *ngIf=\"\n i === localHistoryToDate.length - 1 &&\n localNextActions.length > 0 &&\n localNextActions.length !== 1 &&\n !readOnly\n \"\n >\n <div>\n <verben-pop-Up\n #popup\n [customStyles]=\"{ 'z-index': '99' }\"\n [enableMouseLeave]=\"false\"\n [cdkPosition]=\"popupPositions\"\n >\n <div dropdown-trigger class=\"flex items-center\">\n <div class=\"w-[20px] h-[2px] bg-[#D4A007]\"></div>\n <div class=\"mt-2\">\n <verben-svg\n class=\"cursor-pointer actions-icon\"\n stroke=\"#D4A007\"\n icon=\"chevron\"\n ></verben-svg>\n </div>\n </div>\n\n <div\n class=\"pop-up-content flex flex-col py-1.5 min-w-[170px]\"\n dropdown-content\n >\n <div\n class=\"px-3 py-1.5 border-b border-gray-100 flex items-center gap-1.5\"\n >\n <span\n class=\"w-1.5 h-1.5 rounded-full bg-primary inline-block\"\n ></span>\n <span\n class=\"text-[11px] font-semibold text-gray-500 uppercase tracking-wider\"\n >Actions</span\n >\n </div>\n <ul class=\"flex flex-col py-1\">\n <li\n *ngFor=\"\n let action of localNextActions;\n trackBy: trackByAction\n \"\n >\n <button\n [disabled]=\"disableNotActor()\"\n class=\"w-full text-left px-3 py-2 text-xs font-medium text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors disabled:cursor-not-allowed disabled:opacity-40 cursor-pointer flex items-center justify-between\"\n (click)=\"openCommentFor(action, $event); closePopUp()\"\n >\n <span>{{\n action.Name || action.ToStageName || \"Unnamed\"\n }}</span>\n </button>\n </li>\n </ul>\n </div>\n </verben-pop-Up>\n </div>\n </ng-container>\n </div>\n <ng-container\n *ngIf=\"\n stage.ToStageName && stage.ToStageName.length > 20;\n else plainStageName\n \"\n >\n <verben-tooltip\n [top]=\"'0px'\"\n [textColor]=\"'#000'\"\n [backgroundColor]=\"'#D3D3D3'\"\n [left]=\"'0'\"\n [tooltipContent]=\"tooltipTemplate2\"\n #tooltip\n >\n <p\n class=\"text-xs min-w-max left-0 text-primary mt-1 font-semibold capitalize\"\n >\n {{ stage.ToStageName | slice: 0 : 20 }}...\n </p>\n </verben-tooltip>\n <ng-template #tooltipTemplate2>\n <div>\n <p class=\"text-xs\">{{ stage.ToStageName }}</p>\n </div>\n </ng-template>\n </ng-container>\n <ng-template #plainStageName>\n <p\n class=\"text-xs min-w-max left-0 text-primary mt-1 font-semibold capitalize\"\n >\n {{ stage.ToStageName || \"\" }}\n </p>\n </ng-template>\n </div>\n</div>\n<verben-dialogue\n [dismissOutsideClick]=\"true\"\n [closeOnEscape]=\"true\"\n [mode]=\"'drawer'\"\n [padding]=\"'0px'\"\n [drawerWidth]=\"'500px'\"\n position=\"right\"\n [disableFooter]=\"false\"\n [isVisible]=\"isVisible\"\n [modalData]=\"taskForms\"\n (openModal)=\"onModalOpen($event)\"\n (closeModal)=\"onModalClose($event)\"\n [headerTemplate]=\"headerTemplate\"\n [bodyTemplate]=\"bodyTemplate\"\n [showCloseIcon]=\"true\"\n>\n</verben-dialogue>\n\n<ng-template #headerTemplate>\n <div class=\"bg-[#FFE681] px-6 py-4 flex justify-between items-center\">\n <h1>{{ forms[0]?.Name }}</h1>\n </div>\n</ng-template>\n\n<ng-template #bodyTemplate>\n <div class=\"p-3\">\n <div *ngIf=\"forms?.[active]?.Entities?.length; else emptyState\">\n <div\n *ngFor=\"let entity of forms[active]?.Entities; let j = index\"\n class=\"mb-6 pb-4\"\n >\n <form-control\n [formProperties]=\"entity?.Properties || []\"\n ></form-control>\n <div class=\"flex gap-3 justify-end mt-4\">\n <verbena-button\n class=\"verben-primary-button\"\n (click)=\"submitForm(active)\"\n [disable]=\"!areRequiredPropertiesFilled(entity?.Properties)\"\n text=\"Proceed\"\n ></verbena-button>\n </div>\n </div>\n </div>\n\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 </div>\n</ng-template>\n\n<app-form-viewer\n [form]=\"activeForm\"\n [isVisible]=\"isFormViewerVisible\"\n (onOpen)=\"onFormViewerOpen()\"\n (onClose)=\"onFormViewerClose()\"\n></app-form-viewer>\n", styles: [".workflow-container{position:relative}.dialog{position:absolute;top:100%;left:0;background:var(--vbn-color-surface);border:1px solid var(--vbn-color-border);padding:1rem}.completed{text-decoration:line-through;color:var(--vbn-color-text-muted)}.pop-up-content{border-radius:8px;background-color:var(--vbn-color-surface, #ffffff);border:1px solid #e2e8f0;box-shadow:0 10px 25px -5px #0000001a,0 8px 10px -6px #0000000d}.pop-up-value{padding:10px 20px}.workflow-comment-editor{border:1px solid #cbd5e1;border-radius:6px;background-color:#fff;display:flex;flex-direction:column;height:250px;max-height:300px;overflow:visible!important;position:relative}::ng-deep .workflow-comment-editor lib-editor{display:flex!important;flex-direction:column!important;height:100%!important;width:100%!important;overflow:visible!important}::ng-deep .workflow-comment-editor lib-editor>div{gap:0!important;height:100%!important;display:flex!important;flex-direction:column!important;overflow:visible!important}::ng-deep .workflow-comment-editor .editor-menu{flex-shrink:0!important;padding:4px 6px;background-color:#f8fafc;border-bottom:1px solid #e2e8f0;gap:4px;overflow:visible!important;border-top-left-radius:5px;border-top-right-radius:5px;position:relative;z-index:50}::ng-deep .workflow-comment-editor .editor-menu-group{overflow:visible!important}::ng-deep .workflow-comment-editor .color-picker-popover{max-height:240px!important;overflow-y:auto!important;overflow-x:hidden!important;z-index:1050!important;box-shadow:0 10px 25px -5px #00000040,0 8px 10px -6px #00000026!important;border:1px solid #cbd5e1!important}::ng-deep .workflow-comment-editor .color-picker-popover::-webkit-scrollbar{width:5px!important}::ng-deep .workflow-comment-editor .color-picker-popover::-webkit-scrollbar-track{background:transparent!important}::ng-deep .workflow-comment-editor .color-picker-popover::-webkit-scrollbar-thumb{background:#cbd5e1!important;border-radius:3px!important}::ng-deep .workflow-comment-editor .color-picker-popover::-webkit-scrollbar-thumb:hover{background:#94a3b8!important}::ng-deep .workflow-comment-editor .color-picker-backdrop{z-index:1040!important}::ng-deep .workflow-comment-editor .font-family-popover,::ng-deep .workflow-comment-editor .font-size-popover{z-index:1050!important}::ng-deep .workflow-comment-editor .font-picker-backdrop{z-index:1040!important}::ng-deep .workflow-comment-editor .editor-menu-item{width:26px;height:26px;border-radius:4px;background:transparent;transition:background-color .15s ease}::ng-deep .workflow-comment-editor .editor-menu-item:hover{background-color:#e2e8f0}::ng-deep .workflow-comment-editor .font-family-trigger{height:26px;width:110px;font-size:11px}::ng-deep .workflow-comment-editor .font-size-group{height:26px}::ng-deep .workflow-comment-editor .font-size-step-btn{height:24px;width:18px}::ng-deep .workflow-comment-editor .font-size-combobox{height:24px}::ng-deep .workflow-comment-editor .font-size-input{font-size:11px}::ng-deep .workflow-comment-editor .editor-container{flex:1 1 0!important;min-height:0!important;height:100%!important;gap:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}::ng-deep .workflow-comment-editor lib-editor-designer{display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-height:0!important;height:100%!important;overflow:hidden!important}::ng-deep .workflow-comment-editor .editable-div-wrapper{flex:1 1 0!important;min-height:0!important;height:100%!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:0!important;background-color:#fff}::ng-deep .workflow-comment-editor .editable{flex:1 1 0!important;min-height:0!important;height:100%!important;overflow-y:auto!important;overflow-x:auto!important;padding:10px 12px 40px!important;outline:none;font-size:13px;line-height:1.5;box-sizing:border-box!important}::ng-deep .workflow-comment-editor [title=\"Code View\"]{display:none!important}\n"] }]
|
|
624
|
+
}], ctorParameters: () => [{ type: i1.UtilService }, { type: i1.HttpWebRequestService }, { type: i0.ChangeDetectorRef }, { type: i0.IterableDiffers }], propDecorators: { pageSize: [{
|
|
625
|
+
type: Input
|
|
626
|
+
}], historyToDate: [{
|
|
292
627
|
type: Input
|
|
293
628
|
}], taskCode: [{
|
|
294
629
|
type: Input
|
|
@@ -354,6 +689,8 @@ class WorkFlowStageLibModule {
|
|
|
354
689
|
TooltipModule,
|
|
355
690
|
VerbenDialogueModule,
|
|
356
691
|
VerbenaInputModule,
|
|
692
|
+
VerbenaTextareaModule,
|
|
693
|
+
EditorModule,
|
|
357
694
|
FormControlerModule,
|
|
358
695
|
FormViewerLibModule], exports: [WorkflowStageComponent] });
|
|
359
696
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WorkFlowStageLibModule, imports: [CommonModule,
|
|
@@ -374,6 +711,8 @@ class WorkFlowStageLibModule {
|
|
|
374
711
|
TooltipModule,
|
|
375
712
|
VerbenDialogueModule,
|
|
376
713
|
VerbenaInputModule,
|
|
714
|
+
VerbenaTextareaModule,
|
|
715
|
+
EditorModule,
|
|
377
716
|
FormControlerModule,
|
|
378
717
|
FormViewerLibModule] });
|
|
379
718
|
}
|
|
@@ -400,6 +739,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
400
739
|
TooltipModule,
|
|
401
740
|
VerbenDialogueModule,
|
|
402
741
|
VerbenaInputModule,
|
|
742
|
+
VerbenaTextareaModule,
|
|
743
|
+
EditorModule,
|
|
403
744
|
FormControlerModule,
|
|
404
745
|
FormViewerLibModule,
|
|
405
746
|
],
|