@acorex/modules 21.0.0-next.45 → 21.0.0-next.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{acorex-modules-ai-management-agent.entity-D6-0_Ms3.mjs → acorex-modules-ai-management-agent.entity-Bnt9zkci.mjs} +15 -1
- package/fesm2022/acorex-modules-ai-management-agent.entity-Bnt9zkci.mjs.map +1 -0
- package/fesm2022/acorex-modules-ai-management.mjs +53 -165
- package/fesm2022/acorex-modules-ai-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-common-search-popup.component-BbRyjGia.mjs → acorex-modules-common-search-popup.component-CVuE0xgM.mjs} +14 -7
- package/fesm2022/acorex-modules-common-search-popup.component-CVuE0xgM.mjs.map +1 -0
- package/fesm2022/acorex-modules-common.mjs +2 -2
- package/fesm2022/{acorex-modules-conversation-acorex-modules-conversation-BJU2_R9O.mjs → acorex-modules-conversation-acorex-modules-conversation-F7nQo1GU.mjs} +749 -335
- package/fesm2022/acorex-modules-conversation-acorex-modules-conversation-F7nQo1GU.mjs.map +1 -0
- package/fesm2022/acorex-modules-conversation-assist-delegated-agent-detail-popup.component-BB5Uyydt.mjs +287 -0
- package/fesm2022/acorex-modules-conversation-assist-delegated-agent-detail-popup.component-BB5Uyydt.mjs.map +1 -0
- package/fesm2022/{acorex-modules-conversation-comments-page.component-Bg6m7UTG.mjs → acorex-modules-conversation-comments-page.component-QnDogSDy.mjs} +2 -2
- package/fesm2022/{acorex-modules-conversation-comments-page.component-Bg6m7UTG.mjs.map → acorex-modules-conversation-comments-page.component-QnDogSDy.mjs.map} +1 -1
- package/fesm2022/acorex-modules-conversation-start-assist-chat.command-DRlWzEDp.mjs +45 -0
- package/fesm2022/acorex-modules-conversation-start-assist-chat.command-DRlWzEDp.mjs.map +1 -0
- package/fesm2022/acorex-modules-conversation.mjs +1 -1
- package/fesm2022/{acorex-modules-dashboard-management-acorex-modules-dashboard-management-D11VudG8.mjs → acorex-modules-dashboard-management-acorex-modules-dashboard-management-kk0CINL1.mjs} +5 -5
- package/fesm2022/acorex-modules-dashboard-management-acorex-modules-dashboard-management-kk0CINL1.mjs.map +1 -0
- package/fesm2022/{acorex-modules-dashboard-management-index-DB3Uh1wL.mjs → acorex-modules-dashboard-management-index-Bhm8mAON.mjs} +2 -2
- package/fesm2022/{acorex-modules-dashboard-management-index-DB3Uh1wL.mjs.map → acorex-modules-dashboard-management-index-Bhm8mAON.mjs.map} +1 -1
- package/fesm2022/acorex-modules-dashboard-management.mjs +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +8 -5
- package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-person-core.mjs +4 -0
- package/fesm2022/acorex-modules-person-core.mjs.map +1 -1
- package/fesm2022/{acorex-modules-platform-dev-tools-menu.provider-BFueKnuF.mjs → acorex-modules-platform-dev-tools-menu.provider-DDjYvQr7.mjs} +6 -2
- package/fesm2022/acorex-modules-platform-dev-tools-menu.provider-DDjYvQr7.mjs.map +1 -0
- package/fesm2022/acorex-modules-platform-dev-tools.mjs +42 -5
- package/fesm2022/acorex-modules-platform-dev-tools.mjs.map +1 -1
- package/fesm2022/acorex-modules-project-management.mjs +33 -3
- package/fesm2022/acorex-modules-project-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-report-management.mjs +12 -8
- package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-task-management-acorex-modules-task-management-DDUq9FpA.mjs → acorex-modules-task-management-acorex-modules-task-management-BL2IOcx3.mjs} +63 -6
- package/fesm2022/acorex-modules-task-management-acorex-modules-task-management-BL2IOcx3.mjs.map +1 -0
- package/fesm2022/{acorex-modules-task-management-task-board.page-C6j-_aSD.mjs → acorex-modules-task-management-task-board.page-DUIHtqnr.mjs} +138 -68
- package/fesm2022/acorex-modules-task-management-task-board.page-DUIHtqnr.mjs.map +1 -0
- package/fesm2022/acorex-modules-task-management.mjs +1 -1
- package/fesm2022/{acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-Dj6LkQeZ.mjs → acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-CYyr1kQk.mjs} +3 -3
- package/fesm2022/{acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-Dj6LkQeZ.mjs.map → acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-CYyr1kQk.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-workflow-management-index-Eh5DDK-V.mjs → acorex-modules-workflow-management-index-DC_9M9dk.mjs} +3 -3
- package/fesm2022/{acorex-modules-workflow-management-index-Eh5DDK-V.mjs.map → acorex-modules-workflow-management-index-DC_9M9dk.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-workflow-management-index-V4OesZTq.mjs → acorex-modules-workflow-management-index-jin24dmb.mjs} +3 -3
- package/fesm2022/{acorex-modules-workflow-management-index-V4OesZTq.mjs.map → acorex-modules-workflow-management-index-jin24dmb.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-workflow-management-workflow-instance.entity-B_V3uMSI.mjs → acorex-modules-workflow-management-workflow-instance.entity-BnKT3Wgh.mjs} +2 -2
- package/fesm2022/{acorex-modules-workflow-management-workflow-instance.entity-B_V3uMSI.mjs.map → acorex-modules-workflow-management-workflow-instance.entity-BnKT3Wgh.mjs.map} +1 -1
- package/fesm2022/acorex-modules-workflow-management.mjs +11 -20
- package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
- package/package.json +2 -2
- package/types/acorex-modules-ai-management.d.ts +19 -22
- package/types/acorex-modules-conversation.d.ts +31 -39
- package/types/acorex-modules-dashboard-management.d.ts +2 -2
- package/types/acorex-modules-platform-dev-tools.d.ts +16 -2
- package/types/acorex-modules-report-management.d.ts +8 -1
- package/types/acorex-modules-task-management.d.ts +26 -1
- package/types/acorex-modules-workflow-management.d.ts +2 -3
- package/fesm2022/acorex-modules-ai-management-agent.entity-D6-0_Ms3.mjs.map +0 -1
- package/fesm2022/acorex-modules-common-search-popup.component-BbRyjGia.mjs.map +0 -1
- package/fesm2022/acorex-modules-conversation-acorex-modules-conversation-BJU2_R9O.mjs.map +0 -1
- package/fesm2022/acorex-modules-conversation-assist-delegated-agent-detail-popup.component-DX2JPckF.mjs +0 -324
- package/fesm2022/acorex-modules-conversation-assist-delegated-agent-detail-popup.component-DX2JPckF.mjs.map +0 -1
- package/fesm2022/acorex-modules-dashboard-management-acorex-modules-dashboard-management-D11VudG8.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-dev-tools-menu.provider-BFueKnuF.mjs.map +0 -1
- package/fesm2022/acorex-modules-task-management-acorex-modules-task-management-DDUq9FpA.mjs.map +0 -1
- package/fesm2022/acorex-modules-task-management-task-board.page-C6j-_aSD.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-task-popover.component-l37iXJIY.mjs +0 -362
- package/fesm2022/acorex-modules-workflow-management-workflow-task-popover.component-l37iXJIY.mjs.map +0 -1
package/fesm2022/acorex-modules-workflow-management-workflow-task-popover.component-l37iXJIY.mjs
DELETED
|
@@ -1,362 +0,0 @@
|
|
|
1
|
-
import * as i2 from '@acorex/components/button';
|
|
2
|
-
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
-
import * as i3 from '@acorex/components/dropdown';
|
|
4
|
-
import { AXDropdownModule } from '@acorex/components/dropdown';
|
|
5
|
-
import { AXPWidgetsList } from '@acorex/modules/common';
|
|
6
|
-
import { AXPTaskPopoverComponent, AXPTaskBoardService } from '@acorex/modules/task-management';
|
|
7
|
-
import * as i1 from '@acorex/platform/layout/widget-core';
|
|
8
|
-
import { AXPWidgetSerializationHelper, AXPWidgetCoreModule } from '@acorex/platform/layout/widget-core';
|
|
9
|
-
import * as i5 from '@acorex/core/translation';
|
|
10
|
-
import { AXTranslationModule } from '@acorex/core/translation';
|
|
11
|
-
import * as i1$1 from '@angular/common';
|
|
12
|
-
import { CommonModule } from '@angular/common';
|
|
13
|
-
import * as i0 from '@angular/core';
|
|
14
|
-
import { input, inject, signal, computed, effect, CUSTOM_ELEMENTS_SCHEMA, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
15
|
-
|
|
16
|
-
//#region ---- Imports ----
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region ---- Component ----
|
|
19
|
-
class AXMWorkflowTaskPopoverComponent extends AXPTaskPopoverComponent {
|
|
20
|
-
onFormContextChanged(event) {
|
|
21
|
-
const data = event?.data;
|
|
22
|
-
if (data && typeof data === 'object') {
|
|
23
|
-
const filtered = {};
|
|
24
|
-
for (const [key, value] of Object.entries(data)) {
|
|
25
|
-
if (key !== 'task' && key !== '_fields')
|
|
26
|
-
filtered[key] = value;
|
|
27
|
-
}
|
|
28
|
-
this.formValues.set(filtered);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
buildWidgetNode(f) {
|
|
32
|
-
const type = (f.type ?? 'string').toLowerCase();
|
|
33
|
-
const path = f.name;
|
|
34
|
-
const defaultValue = f.value;
|
|
35
|
-
switch (type) {
|
|
36
|
-
case 'number':
|
|
37
|
-
return {
|
|
38
|
-
type: AXPWidgetsList.Editors.NumberBox,
|
|
39
|
-
path,
|
|
40
|
-
name: path,
|
|
41
|
-
defaultValue,
|
|
42
|
-
options: {},
|
|
43
|
-
};
|
|
44
|
-
case 'date':
|
|
45
|
-
return {
|
|
46
|
-
type: AXPWidgetsList.Editors.DateTimeBox,
|
|
47
|
-
path,
|
|
48
|
-
name: path,
|
|
49
|
-
defaultValue,
|
|
50
|
-
options: { showTime: true },
|
|
51
|
-
};
|
|
52
|
-
case 'boolean':
|
|
53
|
-
return {
|
|
54
|
-
type: AXPWidgetsList.Editors.CheckBox,
|
|
55
|
-
path,
|
|
56
|
-
name: path,
|
|
57
|
-
defaultValue: Boolean(defaultValue),
|
|
58
|
-
options: {},
|
|
59
|
-
};
|
|
60
|
-
case 'text':
|
|
61
|
-
return {
|
|
62
|
-
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
63
|
-
path,
|
|
64
|
-
name: path,
|
|
65
|
-
defaultValue,
|
|
66
|
-
options: { rows: 3, placeholder: f.placeholder },
|
|
67
|
-
};
|
|
68
|
-
default:
|
|
69
|
-
return {
|
|
70
|
-
type: AXPWidgetsList.Editors.TextBox,
|
|
71
|
-
path,
|
|
72
|
-
name: path,
|
|
73
|
-
defaultValue,
|
|
74
|
-
options: { placeholder: f.placeholder },
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
constructor() {
|
|
79
|
-
super();
|
|
80
|
-
//#region ---- Inputs ----
|
|
81
|
-
this.task = input.required(...(ngDevMode ? [{ debugName: "task" }] : /* istanbul ignore next */ []));
|
|
82
|
-
//#endregion
|
|
83
|
-
//#region ---- Services & Dependencies ----
|
|
84
|
-
this.taskBoardService = inject(AXPTaskBoardService);
|
|
85
|
-
//#endregion
|
|
86
|
-
//#region ---- Form context (for userInput on resume) ----
|
|
87
|
-
/** Current form values; passed as userInput when executing an action. */
|
|
88
|
-
this.formValues = signal({}, ...(ngDevMode ? [{ debugName: "formValues" }] : /* istanbul ignore next */ []));
|
|
89
|
-
//#endregion
|
|
90
|
-
//#region ---- Content node from payload.layout or payload.context ----
|
|
91
|
-
/**
|
|
92
|
-
* Builds content node from payload.layout (layout-based task, e.g. show-layout-popup as human-task)
|
|
93
|
-
* or from payload.context._fields (legacy form fields). When layout is present, parses JSON and
|
|
94
|
-
* returns the root node; otherwise builds grid from _fields.
|
|
95
|
-
*/
|
|
96
|
-
this.contentNode = computed(() => {
|
|
97
|
-
const t = this.task();
|
|
98
|
-
const taskData = t?.data;
|
|
99
|
-
const payload = taskData?.payload;
|
|
100
|
-
const layoutStr = payload?.layout;
|
|
101
|
-
if (typeof layoutStr === 'string' && layoutStr.trim().length > 0) {
|
|
102
|
-
try {
|
|
103
|
-
return AXPWidgetSerializationHelper.fromJson(layoutStr);
|
|
104
|
-
}
|
|
105
|
-
catch {
|
|
106
|
-
return null;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
const context = payload?.context;
|
|
110
|
-
const fields = context && typeof context === 'object' && Array.isArray(context._fields)
|
|
111
|
-
? context._fields
|
|
112
|
-
: null;
|
|
113
|
-
if (!fields || fields.length === 0)
|
|
114
|
-
return null;
|
|
115
|
-
const children = fields.map((f) => ({
|
|
116
|
-
type: 'grid-item-layout',
|
|
117
|
-
name: f.name,
|
|
118
|
-
options: { colSpan: 12 },
|
|
119
|
-
children: [
|
|
120
|
-
{
|
|
121
|
-
type: 'form-field',
|
|
122
|
-
options: {
|
|
123
|
-
label: f.label ?? f.name,
|
|
124
|
-
showLabel: true,
|
|
125
|
-
},
|
|
126
|
-
children: [this.buildWidgetNode(f)],
|
|
127
|
-
},
|
|
128
|
-
],
|
|
129
|
-
}));
|
|
130
|
-
return {
|
|
131
|
-
type: 'grid-layout',
|
|
132
|
-
mode: 'edit',
|
|
133
|
-
options: {
|
|
134
|
-
grid: {
|
|
135
|
-
default: {
|
|
136
|
-
columns: 'repeat(12, 1fr)',
|
|
137
|
-
rows: 'repeat(1, 1fr)',
|
|
138
|
-
gap: '12px',
|
|
139
|
-
},
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
children,
|
|
143
|
-
};
|
|
144
|
-
}, ...(ngDevMode ? [{ debugName: "contentNode" }] : /* istanbul ignore next */ []));
|
|
145
|
-
/** Context for axp-widgets-container (initial values from payload.context). */
|
|
146
|
-
this.popoverContext = computed(() => {
|
|
147
|
-
const t = this.task();
|
|
148
|
-
const payload = t?.data?.payload;
|
|
149
|
-
const ctx = payload?.context;
|
|
150
|
-
const base = ctx && typeof ctx === 'object' ? { ...ctx } : {};
|
|
151
|
-
base['task'] = t;
|
|
152
|
-
const fields = Array.isArray(base['_fields']) ? base['_fields'] : [];
|
|
153
|
-
for (const f of fields) {
|
|
154
|
-
if (f.name && !(f.name in base))
|
|
155
|
-
base[f.name] = f.value;
|
|
156
|
-
}
|
|
157
|
-
return base;
|
|
158
|
-
}, ...(ngDevMode ? [{ debugName: "popoverContext" }] : /* istanbul ignore next */ []));
|
|
159
|
-
//#endregion
|
|
160
|
-
//#region ---- Actions ----
|
|
161
|
-
this.taskActions = signal([], ...(ngDevMode ? [{ debugName: "taskActions" }] : /* istanbul ignore next */ []));
|
|
162
|
-
this.primaryActions = computed(() => this.taskActions().filter((a) => (a.priority ?? 'secondary') === 'primary'), ...(ngDevMode ? [{ debugName: "primaryActions" }] : /* istanbul ignore next */ []));
|
|
163
|
-
this.secondaryActions = computed(() => this.taskActions().filter((a) => (a.priority ?? 'secondary') === 'secondary'), ...(ngDevMode ? [{ debugName: "secondaryActions" }] : /* istanbul ignore next */ []));
|
|
164
|
-
effect(() => {
|
|
165
|
-
const t = this.task();
|
|
166
|
-
if (!t?.provider) {
|
|
167
|
-
this.taskActions.set([]);
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
const provider = this.taskBoardService.getProvider(t.provider);
|
|
171
|
-
if (!provider) {
|
|
172
|
-
this.taskActions.set([]);
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
provider.getActions(t).then((actions) => this.taskActions.set(actions));
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
getActionColor(action) {
|
|
179
|
-
return action.color ?? null;
|
|
180
|
-
}
|
|
181
|
-
async executeAction(action) {
|
|
182
|
-
const t = this.task();
|
|
183
|
-
if (!t || !action.command || !t.provider)
|
|
184
|
-
return;
|
|
185
|
-
const userInput = this.formValues();
|
|
186
|
-
const command = {
|
|
187
|
-
...action.command,
|
|
188
|
-
options: {
|
|
189
|
-
...action.command.options,
|
|
190
|
-
userInput: userInput && Object.keys(userInput).length > 0 ? userInput : (action.command.options?.['userInput'] ?? {}),
|
|
191
|
-
},
|
|
192
|
-
};
|
|
193
|
-
try {
|
|
194
|
-
await this.taskBoardService.executeCommand(command, t.provider);
|
|
195
|
-
}
|
|
196
|
-
catch (error) {
|
|
197
|
-
console.error('[WorkflowTaskPopover] executeAction failed:', error);
|
|
198
|
-
}
|
|
199
|
-
finally {
|
|
200
|
-
// Always refresh and close popover after any action click.
|
|
201
|
-
this.refreshPopover();
|
|
202
|
-
this.closePopover();
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMWorkflowTaskPopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
206
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXMWorkflowTaskPopoverComponent, isStandalone: true, selector: "axm-workflow-task-popover", inputs: { task: { classPropertyName: "task", publicName: "task", isSignal: true, isRequired: true, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
207
|
-
<div class="workflow-task-popover">
|
|
208
|
-
<axp-widgets-container
|
|
209
|
-
[context]="popoverContext()"
|
|
210
|
-
(onContextChanged)="onFormContextChanged($event)"
|
|
211
|
-
class="workflow-task-popover__content"
|
|
212
|
-
>
|
|
213
|
-
@if (contentNode(); as node) {
|
|
214
|
-
<ng-container axp-widget-renderer [node]="node" [mode]="'edit'"></ng-container>
|
|
215
|
-
} @else {
|
|
216
|
-
<div class="workflow-task-popover__fallback">
|
|
217
|
-
@if (task().title) {
|
|
218
|
-
<div class="workflow-task-popover__fallback-title">{{ task().title }}</div>
|
|
219
|
-
}
|
|
220
|
-
@if (task().description) {
|
|
221
|
-
<p class="workflow-task-popover__fallback-description">{{ task().description }}</p>
|
|
222
|
-
}
|
|
223
|
-
</div>
|
|
224
|
-
}
|
|
225
|
-
</axp-widgets-container>
|
|
226
|
-
|
|
227
|
-
<div class="workflow-task-popover__actions">
|
|
228
|
-
@if (taskActions().length > 0) {
|
|
229
|
-
<div class="workflow-task-popover__actions-group">
|
|
230
|
-
@if (primaryActions().length > 0) {
|
|
231
|
-
@for (action of primaryActions(); track action.name || action.title) {
|
|
232
|
-
<ax-button
|
|
233
|
-
[look]="'solid'"
|
|
234
|
-
[color]="getActionColor(action)"
|
|
235
|
-
(onClick)="executeAction(action)"
|
|
236
|
-
[disabled]="action.disabled === true"
|
|
237
|
-
[text]="(action.title | translate | async)!"
|
|
238
|
-
>
|
|
239
|
-
@if (action.icon) {
|
|
240
|
-
<ax-prefix>
|
|
241
|
-
<ax-icon>
|
|
242
|
-
<i [class]="action.icon"></i>
|
|
243
|
-
</ax-icon>
|
|
244
|
-
</ax-prefix>
|
|
245
|
-
}
|
|
246
|
-
</ax-button>
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
@if (secondaryActions().length > 0) {
|
|
251
|
-
<ax-button [look]="'blank'">
|
|
252
|
-
<ax-prefix>
|
|
253
|
-
<ax-icon icon="fa-light fa-ellipsis-vertical"></ax-icon>
|
|
254
|
-
</ax-prefix>
|
|
255
|
-
<ax-dropdown-panel>
|
|
256
|
-
<ax-button-item-list>
|
|
257
|
-
@for (action of secondaryActions(); track action.name || action.title) {
|
|
258
|
-
<ax-button-item
|
|
259
|
-
[text]="(action.title | translate | async)!"
|
|
260
|
-
[disabled]="action.disabled === true"
|
|
261
|
-
(onClick)="executeAction(action)"
|
|
262
|
-
>
|
|
263
|
-
@if (action.icon) {
|
|
264
|
-
<ax-prefix>
|
|
265
|
-
<ax-icon>
|
|
266
|
-
<i [class]="action.icon"></i>
|
|
267
|
-
</ax-icon>
|
|
268
|
-
</ax-prefix>
|
|
269
|
-
}
|
|
270
|
-
</ax-button-item>
|
|
271
|
-
}
|
|
272
|
-
</ax-button-item-list>
|
|
273
|
-
</ax-dropdown-panel>
|
|
274
|
-
</ax-button>
|
|
275
|
-
}
|
|
276
|
-
</div>
|
|
277
|
-
}
|
|
278
|
-
</div>
|
|
279
|
-
</div>
|
|
280
|
-
`, isInline: true, styles: [".workflow-task-popover{padding:12px;display:flex;flex-direction:column;gap:12px;min-width:280px;max-width:420px}.workflow-task-popover__content{min-height:0}.workflow-task-popover__fallback{display:flex;flex-direction:column;gap:8px}.workflow-task-popover__fallback-title{font-weight:600;font-size:14px;color:var(--ax-sys-color-text-primary)}.workflow-task-popover__fallback-description{margin:0;font-size:13px;line-height:1.4;color:var(--ax-sys-color-text-neutral-600)}.workflow-task-popover__actions{padding-top:8px;border-top:1px solid var(--ax-sys-color-border)}.workflow-task-popover__actions-group{display:flex;flex-wrap:wrap;gap:6px;align-items:center}\n"], dependencies: [{ kind: "ngmodule", type: AXPWidgetCoreModule }, { kind: "component", type: i1.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i1.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged", "onLoad"], exportAs: ["widgetRenderer"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: i2.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i2.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items", "closeParentOnClick", "lockOnLoading"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i3.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "placement", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
281
|
-
}
|
|
282
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMWorkflowTaskPopoverComponent, decorators: [{
|
|
283
|
-
type: Component,
|
|
284
|
-
args: [{ selector: 'axm-workflow-task-popover', template: `
|
|
285
|
-
<div class="workflow-task-popover">
|
|
286
|
-
<axp-widgets-container
|
|
287
|
-
[context]="popoverContext()"
|
|
288
|
-
(onContextChanged)="onFormContextChanged($event)"
|
|
289
|
-
class="workflow-task-popover__content"
|
|
290
|
-
>
|
|
291
|
-
@if (contentNode(); as node) {
|
|
292
|
-
<ng-container axp-widget-renderer [node]="node" [mode]="'edit'"></ng-container>
|
|
293
|
-
} @else {
|
|
294
|
-
<div class="workflow-task-popover__fallback">
|
|
295
|
-
@if (task().title) {
|
|
296
|
-
<div class="workflow-task-popover__fallback-title">{{ task().title }}</div>
|
|
297
|
-
}
|
|
298
|
-
@if (task().description) {
|
|
299
|
-
<p class="workflow-task-popover__fallback-description">{{ task().description }}</p>
|
|
300
|
-
}
|
|
301
|
-
</div>
|
|
302
|
-
}
|
|
303
|
-
</axp-widgets-container>
|
|
304
|
-
|
|
305
|
-
<div class="workflow-task-popover__actions">
|
|
306
|
-
@if (taskActions().length > 0) {
|
|
307
|
-
<div class="workflow-task-popover__actions-group">
|
|
308
|
-
@if (primaryActions().length > 0) {
|
|
309
|
-
@for (action of primaryActions(); track action.name || action.title) {
|
|
310
|
-
<ax-button
|
|
311
|
-
[look]="'solid'"
|
|
312
|
-
[color]="getActionColor(action)"
|
|
313
|
-
(onClick)="executeAction(action)"
|
|
314
|
-
[disabled]="action.disabled === true"
|
|
315
|
-
[text]="(action.title | translate | async)!"
|
|
316
|
-
>
|
|
317
|
-
@if (action.icon) {
|
|
318
|
-
<ax-prefix>
|
|
319
|
-
<ax-icon>
|
|
320
|
-
<i [class]="action.icon"></i>
|
|
321
|
-
</ax-icon>
|
|
322
|
-
</ax-prefix>
|
|
323
|
-
}
|
|
324
|
-
</ax-button>
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
@if (secondaryActions().length > 0) {
|
|
329
|
-
<ax-button [look]="'blank'">
|
|
330
|
-
<ax-prefix>
|
|
331
|
-
<ax-icon icon="fa-light fa-ellipsis-vertical"></ax-icon>
|
|
332
|
-
</ax-prefix>
|
|
333
|
-
<ax-dropdown-panel>
|
|
334
|
-
<ax-button-item-list>
|
|
335
|
-
@for (action of secondaryActions(); track action.name || action.title) {
|
|
336
|
-
<ax-button-item
|
|
337
|
-
[text]="(action.title | translate | async)!"
|
|
338
|
-
[disabled]="action.disabled === true"
|
|
339
|
-
(onClick)="executeAction(action)"
|
|
340
|
-
>
|
|
341
|
-
@if (action.icon) {
|
|
342
|
-
<ax-prefix>
|
|
343
|
-
<ax-icon>
|
|
344
|
-
<i [class]="action.icon"></i>
|
|
345
|
-
</ax-icon>
|
|
346
|
-
</ax-prefix>
|
|
347
|
-
}
|
|
348
|
-
</ax-button-item>
|
|
349
|
-
}
|
|
350
|
-
</ax-button-item-list>
|
|
351
|
-
</ax-dropdown-panel>
|
|
352
|
-
</ax-button>
|
|
353
|
-
}
|
|
354
|
-
</div>
|
|
355
|
-
}
|
|
356
|
-
</div>
|
|
357
|
-
</div>
|
|
358
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, schemas: [CUSTOM_ELEMENTS_SCHEMA], imports: [AXPWidgetCoreModule, AXButtonModule, AXDropdownModule, CommonModule, AXTranslationModule], styles: [".workflow-task-popover{padding:12px;display:flex;flex-direction:column;gap:12px;min-width:280px;max-width:420px}.workflow-task-popover__content{min-height:0}.workflow-task-popover__fallback{display:flex;flex-direction:column;gap:8px}.workflow-task-popover__fallback-title{font-weight:600;font-size:14px;color:var(--ax-sys-color-text-primary)}.workflow-task-popover__fallback-description{margin:0;font-size:13px;line-height:1.4;color:var(--ax-sys-color-text-neutral-600)}.workflow-task-popover__actions{padding-top:8px;border-top:1px solid var(--ax-sys-color-border)}.workflow-task-popover__actions-group{display:flex;flex-wrap:wrap;gap:6px;align-items:center}\n"] }]
|
|
359
|
-
}], ctorParameters: () => [], propDecorators: { task: [{ type: i0.Input, args: [{ isSignal: true, alias: "task", required: true }] }] } });
|
|
360
|
-
|
|
361
|
-
export { AXMWorkflowTaskPopoverComponent };
|
|
362
|
-
//# sourceMappingURL=acorex-modules-workflow-management-workflow-task-popover.component-l37iXJIY.mjs.map
|
package/fesm2022/acorex-modules-workflow-management-workflow-task-popover.component-l37iXJIY.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-modules-workflow-management-workflow-task-popover.component-l37iXJIY.mjs","sources":["../../../../libs/modules/workflow-management/src/lib/features/task-provider/workflow-task-popover.component.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXPWidgetsList } from '@acorex/modules/common';\nimport {\n AXPTask,\n AXPTaskActionMenuItem,\n AXPTaskBoardService,\n AXPTaskPopoverComponent,\n} from '@acorex/modules/task-management';\nimport { AXPWidgetCoreModule, AXPWidgetNode, AXPWidgetSerializationHelper } from '@acorex/platform/layout/widget-core';\n\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPContextChangeEvent } from '@acorex/platform/core';\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n inject,\n input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\n\n//#endregion\n\n//#region ---- Types ----\n\n/**\n * Field definition for workflow task form (from payload.context._fields).\n */\ninterface WorkflowTaskFormField {\n name: string;\n label?: string;\n type?: 'string' | 'number' | 'date' | 'boolean' | 'text';\n value?: unknown;\n placeholder?: string;\n}\n\n/**\n * Payload shape for human-task bookmark (context, actions, optional layout).\n * When layout is set, contentNode is built from parsed layout; otherwise from context._fields.\n */\ninterface HumanTaskPayload {\n activityName?: string;\n context?: Record<string, unknown> & { _fields?: WorkflowTaskFormField[] };\n actions?: { prefix?: unknown[]; suffix?: unknown[] };\n layout?: string;\n}\n\n//#endregion\n\n//#region ---- Component ----\n\n@Component({\n selector: 'axm-workflow-task-popover',\n template: `\n <div class=\"workflow-task-popover\">\n <axp-widgets-container\n [context]=\"popoverContext()\"\n (onContextChanged)=\"onFormContextChanged($event)\"\n class=\"workflow-task-popover__content\"\n >\n @if (contentNode(); as node) {\n <ng-container axp-widget-renderer [node]=\"node\" [mode]=\"'edit'\"></ng-container>\n } @else {\n <div class=\"workflow-task-popover__fallback\">\n @if (task().title) {\n <div class=\"workflow-task-popover__fallback-title\">{{ task().title }}</div>\n }\n @if (task().description) {\n <p class=\"workflow-task-popover__fallback-description\">{{ task().description }}</p>\n }\n </div>\n }\n </axp-widgets-container>\n\n <div class=\"workflow-task-popover__actions\">\n @if (taskActions().length > 0) {\n <div class=\"workflow-task-popover__actions-group\">\n @if (primaryActions().length > 0) {\n @for (action of primaryActions(); track action.name || action.title) {\n <ax-button\n [look]=\"'solid'\"\n [color]=\"getActionColor(action)\"\n (onClick)=\"executeAction(action)\"\n [disabled]=\"action.disabled === true\"\n [text]=\"(action.title | translate | async)!\"\n >\n @if (action.icon) {\n <ax-prefix>\n <ax-icon>\n <i [class]=\"action.icon\"></i>\n </ax-icon>\n </ax-prefix>\n }\n </ax-button>\n }\n }\n\n @if (secondaryActions().length > 0) {\n <ax-button [look]=\"'blank'\">\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-ellipsis-vertical\"></ax-icon>\n </ax-prefix>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for (action of secondaryActions(); track action.name || action.title) {\n <ax-button-item\n [text]=\"(action.title | translate | async)!\"\n [disabled]=\"action.disabled === true\"\n (onClick)=\"executeAction(action)\"\n >\n @if (action.icon) {\n <ax-prefix>\n <ax-icon>\n <i [class]=\"action.icon\"></i>\n </ax-icon>\n </ax-prefix>\n }\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n </div>\n }\n </div>\n </div>\n `,\n styles: `\n .workflow-task-popover {\n padding: 12px;\n display: flex;\n flex-direction: column;\n gap: 12px;\n min-width: 280px;\n max-width: 420px;\n }\n\n .workflow-task-popover__content {\n min-height: 0;\n }\n\n .workflow-task-popover__fallback {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .workflow-task-popover__fallback-title {\n font-weight: 600;\n font-size: 14px;\n color: var(--ax-sys-color-text-primary);\n }\n\n .workflow-task-popover__fallback-description {\n margin: 0;\n font-size: 13px;\n line-height: 1.4;\n color: var(--ax-sys-color-text-neutral-600);\n }\n\n .workflow-task-popover__actions {\n padding-top: 8px;\n border-top: 1px solid var(--ax-sys-color-border);\n }\n\n .workflow-task-popover__actions-group {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n align-items: center;\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n imports: [AXPWidgetCoreModule, AXButtonModule, AXDropdownModule, CommonModule, AXTranslationModule],\n})\nexport class AXMWorkflowTaskPopoverComponent extends AXPTaskPopoverComponent {\n //#region ---- Inputs ----\n\n task = input.required<AXPTask>();\n\n //#endregion\n\n //#region ---- Services & Dependencies ----\n\n private readonly taskBoardService = inject(AXPTaskBoardService);\n\n //#endregion\n\n //#region ---- Form context (for userInput on resume) ----\n\n /** Current form values; passed as userInput when executing an action. */\n protected readonly formValues = signal<Record<string, unknown>>({});\n\n protected onFormContextChanged(event: AXPContextChangeEvent): void {\n const data = event?.data;\n if (data && typeof data === 'object') {\n const filtered: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(data)) {\n if (key !== 'task' && key !== '_fields') filtered[key] = value;\n }\n this.formValues.set(filtered);\n }\n }\n\n //#endregion\n\n //#region ---- Content node from payload.layout or payload.context ----\n\n /**\n * Builds content node from payload.layout (layout-based task, e.g. show-layout-popup as human-task)\n * or from payload.context._fields (legacy form fields). When layout is present, parses JSON and\n * returns the root node; otherwise builds grid from _fields.\n */\n protected readonly contentNode = computed<AXPWidgetNode | null>(() => {\n const t = this.task();\n const taskData = t?.data as { payload?: HumanTaskPayload } | undefined;\n const payload = taskData?.payload;\n const layoutStr = payload?.layout;\n if (typeof layoutStr === 'string' && layoutStr.trim().length > 0) {\n try {\n return AXPWidgetSerializationHelper.fromJson(layoutStr);\n } catch {\n return null;\n }\n }\n const context = payload?.context;\n const fields =\n context && typeof context === 'object' && Array.isArray((context as any)._fields)\n ? ((context as any)._fields as WorkflowTaskFormField[])\n : null;\n\n if (!fields || fields.length === 0) return null;\n\n const children: AXPWidgetNode[] = fields.map((f) => ({\n type: 'grid-item-layout',\n name: f.name,\n options: { colSpan: 12 },\n children: [\n {\n type: 'form-field',\n options: {\n label: f.label ?? f.name,\n showLabel: true,\n },\n children: [this.buildWidgetNode(f)],\n },\n ],\n }));\n\n return {\n type: 'grid-layout',\n mode: 'edit',\n options: {\n grid: {\n default: {\n columns: 'repeat(12, 1fr)',\n rows: 'repeat(1, 1fr)',\n gap: '12px',\n },\n },\n },\n children,\n };\n });\n\n private buildWidgetNode(f: WorkflowTaskFormField): AXPWidgetNode {\n const type = (f.type ?? 'string').toLowerCase();\n const path = f.name;\n const defaultValue = f.value;\n\n switch (type) {\n case 'number':\n return {\n type: AXPWidgetsList.Editors.NumberBox,\n path,\n name: path,\n defaultValue,\n options: {},\n };\n case 'date':\n return {\n type: AXPWidgetsList.Editors.DateTimeBox,\n path,\n name: path,\n defaultValue,\n options: { showTime: true },\n };\n case 'boolean':\n return {\n type: AXPWidgetsList.Editors.CheckBox,\n path,\n name: path,\n defaultValue: Boolean(defaultValue),\n options: {},\n };\n case 'text':\n return {\n type: AXPWidgetsList.Editors.LargeTextBox,\n path,\n name: path,\n defaultValue,\n options: { rows: 3, placeholder: f.placeholder },\n };\n default:\n return {\n type: AXPWidgetsList.Editors.TextBox,\n path,\n name: path,\n defaultValue,\n options: { placeholder: f.placeholder },\n };\n }\n }\n\n /** Context for axp-widgets-container (initial values from payload.context). */\n protected readonly popoverContext = computed<Record<string, unknown>>(() => {\n const t = this.task();\n const payload = (t?.data as { payload?: HumanTaskPayload })?.payload;\n const ctx = payload?.context;\n const base: Record<string, unknown> = ctx && typeof ctx === 'object' ? { ...ctx } : {};\n base['task'] = t;\n const fields = Array.isArray(base['_fields']) ? (base['_fields'] as WorkflowTaskFormField[]) : [];\n for (const f of fields) {\n if (f.name && !(f.name in base)) base[f.name] = f.value;\n }\n return base;\n });\n\n //#endregion\n\n //#region ---- Actions ----\n\n protected readonly taskActions = signal<AXPTaskActionMenuItem[]>([]);\n\n protected readonly primaryActions = computed(() =>\n this.taskActions().filter((a) => (a.priority ?? 'secondary') === 'primary'),\n );\n\n protected readonly secondaryActions = computed(() =>\n this.taskActions().filter((a) => (a.priority ?? 'secondary') === 'secondary'),\n );\n\n constructor() {\n super();\n effect(() => {\n const t = this.task();\n if (!t?.provider) {\n this.taskActions.set([]);\n return;\n }\n const provider = this.taskBoardService.getProvider(t.provider);\n if (!provider) {\n this.taskActions.set([]);\n return;\n }\n provider.getActions(t).then((actions) => this.taskActions.set(actions));\n });\n }\n\n protected getActionColor(action: AXPTaskActionMenuItem): string | null {\n return (action.color as string) ?? null;\n }\n\n protected async executeAction(action: AXPTaskActionMenuItem): Promise<void> {\n const t = this.task();\n if (!t || !action.command || !t.provider) return;\n const userInput = this.formValues();\n const command = {\n ...action.command,\n options: {\n ...action.command.options,\n userInput:\n userInput && Object.keys(userInput).length > 0 ? userInput : (action.command.options?.['userInput'] ?? {}),\n },\n };\n try {\n await this.taskBoardService.executeCommand(command, t.provider);\n } catch (error) {\n console.error('[WorkflowTaskPopover] executeAction failed:', error);\n } finally {\n // Always refresh and close popover after any action click.\n this.refreshPopover();\n this.closePopover();\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":["i4"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