@acorex-platform/module-workflow-management-client 0.0.21
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-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-B_Sl7G2v.mjs +4990 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-B_Sl7G2v.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-activity-command-configurator-widget-column.component-BPa0Sh6Z.mjs +57 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-activity-command-configurator-widget-column.component-BPa0Sh6Z.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-activity-command-configurator-widget-edit.component-DuYGXzAL.mjs +482 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-activity-command-configurator-widget-edit.component-DuYGXzAL.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts.mjs +163 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-contracts.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-execute-workflow-with-input.command-BFdyJ4rC.mjs +127 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-execute-workflow-with-input.command-BFdyJ4rC.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-execute-workflow.command-Cfdm1QAy.mjs +142 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-execute-workflow.command-Cfdm1QAy.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-index-C8nsbDAw.mjs +142 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-index-C8nsbDAw.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-index-CttfExOC.mjs +417 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-index-CttfExOC.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-index-DKZTLui4.mjs +1329 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-index-DKZTLui4.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-save-workflow-definition-activities.command-spFF77AO.mjs +60 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-save-workflow-definition-activities.command-spFF77AO.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-CMVZYS4y.mjs +172 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-workflow-activity-instance-rows.utils-CMVZYS4y.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-workflow-configurator-widget-column.component-D0E2zjIA.mjs +81 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-workflow-configurator-widget-column.component-D0E2zjIA.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-workflow-configurator-widget-edit.component-CVTeOv-q.mjs +538 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-workflow-configurator-widget-edit.component-CVTeOv-q.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-workflow-live-dashboard.queries--9NtYkau.mjs +218 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-workflow-live-dashboard.queries--9NtYkau.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-BWOyivC5.mjs +588 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-BWOyivC5.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-workflow-run-history-timeline-tab.component-AnJ-Pywf.mjs +33 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-workflow-run-history-timeline-tab.component-AnJ-Pywf.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-Bw68Jwcb.mjs +227 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-workflow-run-history-visual-tab.component-Bw68Jwcb.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-workflow-task-popover.component-Cg4gODGo.mjs +300 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-workflow-task-popover.component-Cg4gODGo.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-workflow-management-client.mjs +2 -0
- package/fesm2022/acorex-platform-module-workflow-management-client.mjs.map +1 -0
- package/package.json +28 -0
- package/types/acorex-platform-module-workflow-management-client-contracts.d.ts +341 -0
- package/types/acorex-platform-module-workflow-management-client.d.ts +1026 -0
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import * as i2 from '@acorex/components/button';
|
|
3
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
4
|
+
import * as i4 from '@acorex/components/decorators';
|
|
5
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
6
|
+
import * as i4$1 from '@acorex/components/dropdown';
|
|
7
|
+
import { AXDropdownModule } from '@acorex/components/dropdown';
|
|
8
|
+
import * as i5 from '@acorex/components/skeleton';
|
|
9
|
+
import { AXSkeletonModule } from '@acorex/components/skeleton';
|
|
10
|
+
import { AXFormatService } from '@acorex/core/format';
|
|
11
|
+
import { AXLocaleService } from '@acorex/core/locale';
|
|
12
|
+
import { AXPTaskPopoverComponent, AXPTaskBoardService, getTaskTranslationKey, formatTaskI18nParamsForTranslate } from '@acorex-platform/module-task-management-client';
|
|
13
|
+
import { AXPSettingsService } from '@acorex-platform/framework-client/common';
|
|
14
|
+
import * as i1 from '@acorex-platform/framework-client/layout/widget-core';
|
|
15
|
+
import { AXPWidgetSerializationHelper, AXPWidgetCoreModule } from '@acorex-platform/framework-client/layout/widget-core';
|
|
16
|
+
import { a as AXMWorkflowManagementCommandKeys } from './acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-B_Sl7G2v.mjs';
|
|
17
|
+
import * as i7 from '@acorex/core/translation';
|
|
18
|
+
import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
|
|
19
|
+
import * as i1$1 from '@angular/common';
|
|
20
|
+
import { CommonModule } from '@angular/common';
|
|
21
|
+
import { get } from 'lodash';
|
|
22
|
+
import * as i0 from '@angular/core';
|
|
23
|
+
import { input, inject, signal, computed, effect, CUSTOM_ELEMENTS_SCHEMA, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
24
|
+
|
|
25
|
+
//#region ---- Imports ----
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region ---- Component ----
|
|
28
|
+
class AXMWorkflowTaskPopoverComponent extends AXPTaskPopoverComponent {
|
|
29
|
+
onFormContextChanged(event) {
|
|
30
|
+
const data = event?.data;
|
|
31
|
+
if (data && typeof data === 'object') {
|
|
32
|
+
const filtered = {};
|
|
33
|
+
for (const [key, value] of Object.entries(data)) {
|
|
34
|
+
if (key !== 'task' && key !== '_fields')
|
|
35
|
+
filtered[key] = value;
|
|
36
|
+
}
|
|
37
|
+
this.formValues.set(filtered);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
buildWidgetNode(f) {
|
|
41
|
+
const type = (f.type ?? 'string').toLowerCase();
|
|
42
|
+
const path = f.name;
|
|
43
|
+
const defaultValue = f.value;
|
|
44
|
+
switch (type) {
|
|
45
|
+
case 'number':
|
|
46
|
+
return {
|
|
47
|
+
type: AXPWidgetsList.Editors.NumberBox,
|
|
48
|
+
path,
|
|
49
|
+
name: path,
|
|
50
|
+
defaultValue,
|
|
51
|
+
options: {},
|
|
52
|
+
};
|
|
53
|
+
case 'date':
|
|
54
|
+
return {
|
|
55
|
+
type: AXPWidgetsList.Editors.DateTimeBox,
|
|
56
|
+
path,
|
|
57
|
+
name: path,
|
|
58
|
+
defaultValue,
|
|
59
|
+
options: { showTime: true },
|
|
60
|
+
};
|
|
61
|
+
case 'boolean':
|
|
62
|
+
return {
|
|
63
|
+
type: AXPWidgetsList.Editors.CheckBox,
|
|
64
|
+
path,
|
|
65
|
+
name: path,
|
|
66
|
+
defaultValue: Boolean(defaultValue),
|
|
67
|
+
options: {},
|
|
68
|
+
};
|
|
69
|
+
case 'text':
|
|
70
|
+
return {
|
|
71
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
72
|
+
path,
|
|
73
|
+
name: path,
|
|
74
|
+
defaultValue,
|
|
75
|
+
options: { rows: 3, placeholder: f.placeholder },
|
|
76
|
+
};
|
|
77
|
+
default:
|
|
78
|
+
return {
|
|
79
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
80
|
+
path,
|
|
81
|
+
name: path,
|
|
82
|
+
defaultValue,
|
|
83
|
+
options: { placeholder: f.placeholder },
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
constructor() {
|
|
88
|
+
super();
|
|
89
|
+
//#region ---- Inputs ----
|
|
90
|
+
this.task = input.required(/* @ts-ignore */
|
|
91
|
+
...(ngDevMode ? [{ debugName: "task" }] : /* istanbul ignore next */ []));
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region ---- Services & Dependencies ----
|
|
94
|
+
this.taskBoardService = inject(AXPTaskBoardService);
|
|
95
|
+
this.localeService = inject(AXLocaleService);
|
|
96
|
+
this.formatService = inject(AXFormatService);
|
|
97
|
+
this.settingsService = inject(AXPSettingsService);
|
|
98
|
+
this.translationService = inject(AXTranslationService);
|
|
99
|
+
this.i18nParams = signal({}, /* @ts-ignore */
|
|
100
|
+
...(ngDevMode ? [{ debugName: "i18nParams" }] : /* istanbul ignore next */ []));
|
|
101
|
+
this.descriptionKey = computed(() => getTaskTranslationKey(this.task(), 'description'), /* @ts-ignore */
|
|
102
|
+
...(ngDevMode ? [{ debugName: "descriptionKey" }] : /* istanbul ignore next */ []));
|
|
103
|
+
this.i18nParamsEffect = effect(() => {
|
|
104
|
+
const task = this.task();
|
|
105
|
+
void this.localeService.activeProfile().localeInfo?.code;
|
|
106
|
+
const raw = get(task.data, 'taskI18nParams');
|
|
107
|
+
void formatTaskI18nParamsForTranslate(raw, this.translationService, this.formatService, this.settingsService).then((params) => this.i18nParams.set(params));
|
|
108
|
+
}, /* @ts-ignore */
|
|
109
|
+
...(ngDevMode ? [{ debugName: "i18nParamsEffect" }] : /* istanbul ignore next */ []));
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region ---- Popover metadata (from provider) ----
|
|
112
|
+
this.isLoadingMetadata = signal(false, /* @ts-ignore */
|
|
113
|
+
...(ngDevMode ? [{ debugName: "isLoadingMetadata" }] : /* istanbul ignore next */ []));
|
|
114
|
+
this.popoverMetadata = signal(null, /* @ts-ignore */
|
|
115
|
+
...(ngDevMode ? [{ debugName: "popoverMetadata" }] : /* istanbul ignore next */ []));
|
|
116
|
+
/** Placeholder rows for the metadata loading skeleton. */
|
|
117
|
+
this.loadingSkeletonRows = [1, 2, 3, 4, 5, 6];
|
|
118
|
+
this.metadataFields = computed(() => this.popoverMetadata()?.fields ?? [], /* @ts-ignore */
|
|
119
|
+
...(ngDevMode ? [{ debugName: "metadataFields" }] : /* istanbul ignore next */ []));
|
|
120
|
+
this.metadataContext = computed(() => this.popoverMetadata()?.context ?? {}, /* @ts-ignore */
|
|
121
|
+
...(ngDevMode ? [{ debugName: "metadataContext" }] : /* istanbul ignore next */ []));
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region ---- Payload ----
|
|
124
|
+
this.bookmarkPayload = computed(() => {
|
|
125
|
+
const data = this.task()?.data;
|
|
126
|
+
const payload = data?.payload;
|
|
127
|
+
return payload && typeof payload === 'object' ? payload : null;
|
|
128
|
+
}, /* @ts-ignore */
|
|
129
|
+
...(ngDevMode ? [{ debugName: "bookmarkPayload" }] : /* istanbul ignore next */ []));
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region ---- Form context (for userInput on resume) ----
|
|
132
|
+
/** Current form values; passed as userInput when executing an action. */
|
|
133
|
+
this.formValues = signal({}, /* @ts-ignore */
|
|
134
|
+
...(ngDevMode ? [{ debugName: "formValues" }] : /* istanbul ignore next */ []));
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region ---- Content node from payload.layout or payload.context ----
|
|
137
|
+
this.contentNode = computed(() => {
|
|
138
|
+
const t = this.task();
|
|
139
|
+
const taskData = t?.data;
|
|
140
|
+
const payload = taskData?.payload;
|
|
141
|
+
const layoutStr = payload?.layout;
|
|
142
|
+
if (typeof layoutStr === 'string' && layoutStr.trim().length > 0) {
|
|
143
|
+
try {
|
|
144
|
+
return AXPWidgetSerializationHelper.fromJson(layoutStr);
|
|
145
|
+
}
|
|
146
|
+
catch {
|
|
147
|
+
return null;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
const context = payload?.context;
|
|
151
|
+
const fields = context && typeof context === 'object' && Array.isArray(context._fields)
|
|
152
|
+
? (context._fields)
|
|
153
|
+
: null;
|
|
154
|
+
if (!fields || fields.length === 0)
|
|
155
|
+
return null;
|
|
156
|
+
const children = fields.map((f) => ({
|
|
157
|
+
type: 'grid-item-layout',
|
|
158
|
+
name: f.name,
|
|
159
|
+
options: { colSpan: 12 },
|
|
160
|
+
children: [
|
|
161
|
+
{
|
|
162
|
+
type: 'form-field',
|
|
163
|
+
options: {
|
|
164
|
+
label: f.label ?? f.name,
|
|
165
|
+
showLabel: true,
|
|
166
|
+
},
|
|
167
|
+
children: [this.buildWidgetNode(f)],
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
}));
|
|
171
|
+
return {
|
|
172
|
+
type: 'grid-layout',
|
|
173
|
+
mode: 'edit',
|
|
174
|
+
options: {
|
|
175
|
+
grid: {
|
|
176
|
+
default: {
|
|
177
|
+
columns: 'repeat(12, 1fr)',
|
|
178
|
+
rows: 'repeat(1, 1fr)',
|
|
179
|
+
gap: '12px',
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
children,
|
|
184
|
+
};
|
|
185
|
+
}, /* @ts-ignore */
|
|
186
|
+
...(ngDevMode ? [{ debugName: "contentNode" }] : /* istanbul ignore next */ []));
|
|
187
|
+
this.popoverContext = computed(() => {
|
|
188
|
+
const t = this.task();
|
|
189
|
+
const payload = t?.data?.payload;
|
|
190
|
+
const ctx = payload?.context;
|
|
191
|
+
const base = ctx && typeof ctx === 'object' ? { ...ctx } : {};
|
|
192
|
+
base['task'] = t;
|
|
193
|
+
const fields = Array.isArray(base['_fields']) ? base['_fields'] : [];
|
|
194
|
+
for (const f of fields) {
|
|
195
|
+
if (f.name && !(f.name in base))
|
|
196
|
+
base[f.name] = f.value;
|
|
197
|
+
}
|
|
198
|
+
return base;
|
|
199
|
+
}, /* @ts-ignore */
|
|
200
|
+
...(ngDevMode ? [{ debugName: "popoverContext" }] : /* istanbul ignore next */ []));
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region ---- Actions ----
|
|
203
|
+
this.taskActions = signal([], /* @ts-ignore */
|
|
204
|
+
...(ngDevMode ? [{ debugName: "taskActions" }] : /* istanbul ignore next */ []));
|
|
205
|
+
this.primaryActions = computed(() => this.taskActions().filter((a) => (a.priority ?? 'secondary') === 'primary'), /* @ts-ignore */
|
|
206
|
+
...(ngDevMode ? [{ debugName: "primaryActions" }] : /* istanbul ignore next */ []));
|
|
207
|
+
this.secondaryActions = computed(() => this.taskActions().filter((a) => (a.priority ?? 'secondary') === 'secondary'), /* @ts-ignore */
|
|
208
|
+
...(ngDevMode ? [{ debugName: "secondaryActions" }] : /* istanbul ignore next */ []));
|
|
209
|
+
effect((onCleanup) => {
|
|
210
|
+
const t = this.task();
|
|
211
|
+
if (!t?.provider) {
|
|
212
|
+
this.popoverMetadata.set(null);
|
|
213
|
+
this.isLoadingMetadata.set(false);
|
|
214
|
+
this.taskActions.set([]);
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
const provider = this.taskBoardService.getProvider(t.provider);
|
|
218
|
+
if (!provider) {
|
|
219
|
+
this.popoverMetadata.set(null);
|
|
220
|
+
this.isLoadingMetadata.set(false);
|
|
221
|
+
this.taskActions.set([]);
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
let cancelled = false;
|
|
225
|
+
onCleanup(() => {
|
|
226
|
+
cancelled = true;
|
|
227
|
+
});
|
|
228
|
+
if (typeof provider.getPopoverMetadata === 'function') {
|
|
229
|
+
this.isLoadingMetadata.set(true);
|
|
230
|
+
this.popoverMetadata.set(null);
|
|
231
|
+
void provider.getPopoverMetadata(t).then((metadata) => {
|
|
232
|
+
if (!cancelled) {
|
|
233
|
+
this.popoverMetadata.set(metadata);
|
|
234
|
+
this.isLoadingMetadata.set(false);
|
|
235
|
+
}
|
|
236
|
+
}, () => {
|
|
237
|
+
if (!cancelled) {
|
|
238
|
+
this.popoverMetadata.set(null);
|
|
239
|
+
this.isLoadingMetadata.set(false);
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
this.popoverMetadata.set(null);
|
|
245
|
+
this.isLoadingMetadata.set(false);
|
|
246
|
+
}
|
|
247
|
+
void provider.getActions(t).then((actions) => {
|
|
248
|
+
if (!cancelled) {
|
|
249
|
+
this.taskActions.set(actions);
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
getActionColor(action) {
|
|
255
|
+
return action.color ?? null;
|
|
256
|
+
}
|
|
257
|
+
async executeAction(action) {
|
|
258
|
+
const t = this.task();
|
|
259
|
+
if (!t || !action.command || !t.provider)
|
|
260
|
+
return;
|
|
261
|
+
const userInput = this.formValues();
|
|
262
|
+
const command = {
|
|
263
|
+
...action.command,
|
|
264
|
+
options: {
|
|
265
|
+
...action.command.options,
|
|
266
|
+
userInput: userInput && Object.keys(userInput).length > 0 ? userInput : (action.command.options?.['userInput'] ?? {}),
|
|
267
|
+
},
|
|
268
|
+
};
|
|
269
|
+
const keepPopoverOpen = command.name === AXMWorkflowManagementCommandKeys.WorkflowRun.ShowHistory;
|
|
270
|
+
try {
|
|
271
|
+
await this.taskBoardService.executeCommand(command, t.provider);
|
|
272
|
+
}
|
|
273
|
+
catch (error) {
|
|
274
|
+
console.error('[WorkflowTaskPopover] executeAction failed:', error);
|
|
275
|
+
}
|
|
276
|
+
finally {
|
|
277
|
+
if (!keepPopoverOpen) {
|
|
278
|
+
this.refreshPopover();
|
|
279
|
+
this.closePopover();
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMWorkflowTaskPopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
284
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", 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: "<div class=\"workflow-task-popover\">\n @if (isLoadingMetadata()) {\n <div class=\"workflow-task-popover__metadata\">\n @for (row of loadingSkeletonRows; track row) {\n <div class=\"__row __row--loading\">\n <ax-skeleton [animated]=\"true\" class=\"__skeleton-label\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"__skeleton-value\"></ax-skeleton>\n </div>\n }\n </div>\n } @else if (metadataFields().length > 0) {\n <div class=\"workflow-task-popover__metadata\">\n <axp-widgets-container [context]=\"metadataContext()\">\n @for (item of metadataFields(); track item.name) {\n <div class=\"__row\">\n <span class=\"__label\">{{ item.title | translate | async }}:</span>\n <div class=\"__value\">\n <ng-container axp-widget-renderer [node]=\"item.node\" [mode]=\"'view'\"></ng-container>\n </div>\n </div>\n }\n </axp-widgets-container>\n </div>\n }\n\n <axp-widgets-container [context]=\"popoverContext()\" (onContextChanged)=\"onFormContextChanged($event)\"\n class=\"workflow-task-popover__content\">\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 (descriptionKey(); as key) {\n <p class=\"task-popover__description\">{{ key | translate: { params: i18nParams() } | async }}</p>\n } @else if (task().description) {\n <p class=\"task-popover__description\">{{ task().description }}</p>\n }\n </div>\n }\n </axp-widgets-container>\n\n @if (taskActions().length > 0) {\n <div class=\"workflow-task-popover__actions ax-sm\">\n @if (primaryActions().length > 0) {\n @for (action of primaryActions(); track action.name || action.title) {\n <ax-button [look]=\"'solid'\" [color]=\"getActionColor(action)\" (onClick)=\"executeAction(action)\"\n [disabled]=\"action.disabled === true\" [text]=\"(action.title | translate | async)!\">\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 class=\"workflow-task-popover__more-btn\" [look]=\"'blank'\" [color]=\"'default'\" [iconOnly]=\"true\"\n [attr.aria-label]=\"('@workflow-management:tasks.popover.more' | translate | async) ?? ''\">\n <ax-icon icon=\"fa-light fa-ellipsis-vertical\"></ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for (action of secondaryActions(); track action.name || action.title) {\n <ax-button-item [text]=\"(action.title | translate | async)!\" [disabled]=\"action.disabled === true\"\n (onClick)=\"executeAction(action)\">\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>", styles: ["@layer properties;.workflow-task-popover{display:flex;flex-direction:column}.workflow-task-popover .workflow-task-popover__metadata{padding-inline:calc(var(--spacing, .25rem) * 5);padding-top:calc(var(--spacing, .25rem) * 4);padding-bottom:calc(var(--spacing, .25rem) * 3);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}.workflow-task-popover .workflow-task-popover__metadata .__row{display:grid;align-items:center;column-gap:calc(var(--spacing, .25rem) * 5);row-gap:var(--spacing, .25rem);grid-template-columns:minmax(7rem,35%) 1fr}.workflow-task-popover .workflow-task-popover__metadata .__row--loading{align-items:flex-start;column-gap:calc(var(--spacing, .25rem) * 4)}.workflow-task-popover .workflow-task-popover__metadata .__row__label{flex-shrink:0;padding-inline-end:var(--spacing, .25rem);--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700)}.workflow-task-popover .workflow-task-popover__metadata .__row__value{display:flex;min-width:0px;align-items:center}.workflow-task-popover .workflow-task-popover__metadata .__skeleton-label{height:calc(var(--spacing, .25rem) * 4);border-radius:.25rem;width:66.666667%}.workflow-task-popover .workflow-task-popover__metadata .__skeleton-value{height:calc(var(--spacing, .25rem) * 4);width:100%;border-radius:.25rem}.workflow-task-popover .workflow-task-popover__content{min-height:0px}.workflow-task-popover .workflow-task-popover__content:not(:has(.workflow-task-popover__fallback)){padding-inline:calc(var(--spacing, .25rem) * 5);padding-block:calc(var(--spacing, .25rem) * 4)}.workflow-task-popover .workflow-task-popover__fallback{padding-inline:calc(var(--spacing, .25rem) * 5);padding-bottom:calc(var(--spacing, .25rem) * 4)}.workflow-task-popover .workflow-task-popover__fallback .task-popover__description{margin:0;padding:0;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-snug, 1.375);line-height:var(--leading-snug, 1.375)}.workflow-task-popover .workflow-task-popover__actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:calc(var(--spacing, .25rem) * 2);border-top-style:var(--tw-border-style);border-top-width:1px;padding-inline:calc(var(--spacing, .25rem) * 5);padding-block:calc(var(--spacing, .25rem) * 3)}.workflow-task-popover .workflow-task-popover__more-btn{flex-shrink:0}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight: initial;--tw-leading: initial;--tw-border-style: solid}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\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: AXDecoratorModule }, { kind: "component", type: i4.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i4.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i4$1.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "placement", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXSkeletonModule }, { kind: "component", type: i5.AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
285
|
+
}
|
|
286
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMWorkflowTaskPopoverComponent, decorators: [{
|
|
287
|
+
type: Component,
|
|
288
|
+
args: [{ selector: 'axm-workflow-task-popover', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, schemas: [CUSTOM_ELEMENTS_SCHEMA], imports: [
|
|
289
|
+
AXPWidgetCoreModule,
|
|
290
|
+
AXButtonModule,
|
|
291
|
+
AXDecoratorModule,
|
|
292
|
+
AXDropdownModule,
|
|
293
|
+
AXSkeletonModule,
|
|
294
|
+
CommonModule,
|
|
295
|
+
AXTranslationModule,
|
|
296
|
+
], template: "<div class=\"workflow-task-popover\">\n @if (isLoadingMetadata()) {\n <div class=\"workflow-task-popover__metadata\">\n @for (row of loadingSkeletonRows; track row) {\n <div class=\"__row __row--loading\">\n <ax-skeleton [animated]=\"true\" class=\"__skeleton-label\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"__skeleton-value\"></ax-skeleton>\n </div>\n }\n </div>\n } @else if (metadataFields().length > 0) {\n <div class=\"workflow-task-popover__metadata\">\n <axp-widgets-container [context]=\"metadataContext()\">\n @for (item of metadataFields(); track item.name) {\n <div class=\"__row\">\n <span class=\"__label\">{{ item.title | translate | async }}:</span>\n <div class=\"__value\">\n <ng-container axp-widget-renderer [node]=\"item.node\" [mode]=\"'view'\"></ng-container>\n </div>\n </div>\n }\n </axp-widgets-container>\n </div>\n }\n\n <axp-widgets-container [context]=\"popoverContext()\" (onContextChanged)=\"onFormContextChanged($event)\"\n class=\"workflow-task-popover__content\">\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 (descriptionKey(); as key) {\n <p class=\"task-popover__description\">{{ key | translate: { params: i18nParams() } | async }}</p>\n } @else if (task().description) {\n <p class=\"task-popover__description\">{{ task().description }}</p>\n }\n </div>\n }\n </axp-widgets-container>\n\n @if (taskActions().length > 0) {\n <div class=\"workflow-task-popover__actions ax-sm\">\n @if (primaryActions().length > 0) {\n @for (action of primaryActions(); track action.name || action.title) {\n <ax-button [look]=\"'solid'\" [color]=\"getActionColor(action)\" (onClick)=\"executeAction(action)\"\n [disabled]=\"action.disabled === true\" [text]=\"(action.title | translate | async)!\">\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 class=\"workflow-task-popover__more-btn\" [look]=\"'blank'\" [color]=\"'default'\" [iconOnly]=\"true\"\n [attr.aria-label]=\"('@workflow-management:tasks.popover.more' | translate | async) ?? ''\">\n <ax-icon icon=\"fa-light fa-ellipsis-vertical\"></ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for (action of secondaryActions(); track action.name || action.title) {\n <ax-button-item [text]=\"(action.title | translate | async)!\" [disabled]=\"action.disabled === true\"\n (onClick)=\"executeAction(action)\">\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>", styles: ["@layer properties;.workflow-task-popover{display:flex;flex-direction:column}.workflow-task-popover .workflow-task-popover__metadata{padding-inline:calc(var(--spacing, .25rem) * 5);padding-top:calc(var(--spacing, .25rem) * 4);padding-bottom:calc(var(--spacing, .25rem) * 3);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)))}.workflow-task-popover .workflow-task-popover__metadata .__row{display:grid;align-items:center;column-gap:calc(var(--spacing, .25rem) * 5);row-gap:var(--spacing, .25rem);grid-template-columns:minmax(7rem,35%) 1fr}.workflow-task-popover .workflow-task-popover__metadata .__row--loading{align-items:flex-start;column-gap:calc(var(--spacing, .25rem) * 4)}.workflow-task-popover .workflow-task-popover__metadata .__row__label{flex-shrink:0;padding-inline-end:var(--spacing, .25rem);--tw-font-weight: var(--font-weight-bold, 700);font-weight:var(--font-weight-bold, 700)}.workflow-task-popover .workflow-task-popover__metadata .__row__value{display:flex;min-width:0px;align-items:center}.workflow-task-popover .workflow-task-popover__metadata .__skeleton-label{height:calc(var(--spacing, .25rem) * 4);border-radius:.25rem;width:66.666667%}.workflow-task-popover .workflow-task-popover__metadata .__skeleton-value{height:calc(var(--spacing, .25rem) * 4);width:100%;border-radius:.25rem}.workflow-task-popover .workflow-task-popover__content{min-height:0px}.workflow-task-popover .workflow-task-popover__content:not(:has(.workflow-task-popover__fallback)){padding-inline:calc(var(--spacing, .25rem) * 5);padding-block:calc(var(--spacing, .25rem) * 4)}.workflow-task-popover .workflow-task-popover__fallback{padding-inline:calc(var(--spacing, .25rem) * 5);padding-bottom:calc(var(--spacing, .25rem) * 4)}.workflow-task-popover .workflow-task-popover__fallback .task-popover__description{margin:0;padding:0;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: var(--leading-snug, 1.375);line-height:var(--leading-snug, 1.375)}.workflow-task-popover .workflow-task-popover__actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:calc(var(--spacing, .25rem) * 2);border-top-style:var(--tw-border-style);border-top-width:1px;padding-inline:calc(var(--spacing, .25rem) * 5);padding-block:calc(var(--spacing, .25rem) * 3)}.workflow-task-popover .workflow-task-popover__more-btn{flex-shrink:0}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight: initial;--tw-leading: initial;--tw-border-style: solid}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
297
|
+
}], ctorParameters: () => [], propDecorators: { task: [{ type: i0.Input, args: [{ isSignal: true, alias: "task", required: true }] }] } });
|
|
298
|
+
|
|
299
|
+
export { AXMWorkflowTaskPopoverComponent };
|
|
300
|
+
//# sourceMappingURL=acorex-platform-module-workflow-management-client-workflow-task-popover.component-Cg4gODGo.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-workflow-management-client-workflow-task-popover.component-Cg4gODGo.mjs","sources":["../../../../libs/modules/workflow-management/client/src/lib/features/task-provider/workflow-task-popover.component.ts","../../../../libs/modules/workflow-management/client/src/lib/features/task-provider/workflow-task-popover.component.html"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPContextChangeEvent, type AXPWidgetNode, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXSkeletonModule } from '@acorex/components/skeleton';\n\nimport { AXFormatService } from '@acorex/core/format';\nimport { AXLocaleService } from '@acorex/core/locale';\nimport {\n AXPTask,\n AXPTaskActionMenuItem,\n AXPTaskBoardService,\n AXPTaskPopoverComponent,\n AXPTaskPopoverMetadata,\n formatTaskI18nParamsForTranslate,\n getTaskTranslationKey,\n} from '@acorex-platform/module-task-management-client';\nimport { AXPSettingsService } from '@acorex-platform/framework-client/common';\nimport { AXPWidgetCoreModule, AXPWidgetSerializationHelper } from '@acorex-platform/framework-client/layout/widget-core';\nimport { AXMWorkflowManagementCommandKeys } from '../workflow-run-plugin/commands.keys';\n\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\n\nimport { CommonModule } from '@angular/common';\nimport { get } from 'lodash';\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 */\ninterface HumanTaskPayload {\n activityName?: string;\n dueDate?: string | Date | null;\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 templateUrl: './workflow-task-popover.component.html',\n styleUrls: ['./workflow-task-popover.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n imports: [\n AXPWidgetCoreModule,\n AXButtonModule,\n AXDecoratorModule,\n AXDropdownModule,\n AXSkeletonModule,\n CommonModule,\n AXTranslationModule,\n ],\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 private readonly localeService = inject(AXLocaleService);\n private readonly formatService = inject(AXFormatService);\n private readonly settingsService = inject(AXPSettingsService);\n private readonly translationService = inject(AXTranslationService);\n\n protected readonly i18nParams = signal<Record<string, string>>({});\n protected readonly descriptionKey = computed(() => getTaskTranslationKey(this.task(), 'description'));\n\n private readonly i18nParamsEffect = effect(() => {\n const task = this.task();\n void this.localeService.activeProfile().localeInfo?.code;\n const raw = get(task.data, 'taskI18nParams') as Record<string, unknown> | undefined;\n void formatTaskI18nParamsForTranslate(\n raw,\n this.translationService,\n this.formatService,\n this.settingsService,\n ).then((params) => this.i18nParams.set(params));\n });\n\n //#endregion\n\n //#region ---- Popover metadata (from provider) ----\n\n protected readonly isLoadingMetadata = signal(false);\n protected readonly popoverMetadata = signal<AXPTaskPopoverMetadata | null>(null);\n\n /** Placeholder rows for the metadata loading skeleton. */\n protected readonly loadingSkeletonRows = [1, 2, 3, 4, 5, 6] as const;\n\n protected readonly metadataFields = computed(() => this.popoverMetadata()?.fields ?? []);\n protected readonly metadataContext = computed(() => this.popoverMetadata()?.context ?? {});\n\n //#endregion\n\n //#region ---- Payload ----\n\n protected readonly bookmarkPayload = computed((): HumanTaskPayload | null => {\n const data = this.task()?.data as { payload?: HumanTaskPayload } | undefined;\n const payload = data?.payload;\n return payload && typeof payload === 'object' ? payload : null;\n });\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 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 { _fields?: unknown })._fields)\n ? ((context as { _fields: WorkflowTaskFormField[] })._fields)\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 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((onCleanup) => {\n const t = this.task();\n if (!t?.provider) {\n this.popoverMetadata.set(null);\n this.isLoadingMetadata.set(false);\n this.taskActions.set([]);\n return;\n }\n\n const provider = this.taskBoardService.getProvider(t.provider);\n if (!provider) {\n this.popoverMetadata.set(null);\n this.isLoadingMetadata.set(false);\n this.taskActions.set([]);\n return;\n }\n\n let cancelled = false;\n onCleanup(() => {\n cancelled = true;\n });\n\n if (typeof provider.getPopoverMetadata === 'function') {\n this.isLoadingMetadata.set(true);\n this.popoverMetadata.set(null);\n void provider.getPopoverMetadata(t).then(\n (metadata) => {\n if (!cancelled) {\n this.popoverMetadata.set(metadata);\n this.isLoadingMetadata.set(false);\n }\n },\n () => {\n if (!cancelled) {\n this.popoverMetadata.set(null);\n this.isLoadingMetadata.set(false);\n }\n },\n );\n } else {\n this.popoverMetadata.set(null);\n this.isLoadingMetadata.set(false);\n }\n\n void provider.getActions(t).then((actions) => {\n if (!cancelled) {\n this.taskActions.set(actions);\n }\n });\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 const keepPopoverOpen = command.name === AXMWorkflowManagementCommandKeys.WorkflowRun.ShowHistory;\n try {\n await this.taskBoardService.executeCommand(command, t.provider);\n } catch (error) {\n console.error('[WorkflowTaskPopover] executeAction failed:', error);\n } finally {\n if (!keepPopoverOpen) {\n this.refreshPopover();\n this.closePopover();\n }\n }\n }\n\n //#endregion\n}\n\n//#endregion\n","<div class=\"workflow-task-popover\">\n @if (isLoadingMetadata()) {\n <div class=\"workflow-task-popover__metadata\">\n @for (row of loadingSkeletonRows; track row) {\n <div class=\"__row __row--loading\">\n <ax-skeleton [animated]=\"true\" class=\"__skeleton-label\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"__skeleton-value\"></ax-skeleton>\n </div>\n }\n </div>\n } @else if (metadataFields().length > 0) {\n <div class=\"workflow-task-popover__metadata\">\n <axp-widgets-container [context]=\"metadataContext()\">\n @for (item of metadataFields(); track item.name) {\n <div class=\"__row\">\n <span class=\"__label\">{{ item.title | translate | async }}:</span>\n <div class=\"__value\">\n <ng-container axp-widget-renderer [node]=\"item.node\" [mode]=\"'view'\"></ng-container>\n </div>\n </div>\n }\n </axp-widgets-container>\n </div>\n }\n\n <axp-widgets-container [context]=\"popoverContext()\" (onContextChanged)=\"onFormContextChanged($event)\"\n class=\"workflow-task-popover__content\">\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 (descriptionKey(); as key) {\n <p class=\"task-popover__description\">{{ key | translate: { params: i18nParams() } | async }}</p>\n } @else if (task().description) {\n <p class=\"task-popover__description\">{{ task().description }}</p>\n }\n </div>\n }\n </axp-widgets-container>\n\n @if (taskActions().length > 0) {\n <div class=\"workflow-task-popover__actions ax-sm\">\n @if (primaryActions().length > 0) {\n @for (action of primaryActions(); track action.name || action.title) {\n <ax-button [look]=\"'solid'\" [color]=\"getActionColor(action)\" (onClick)=\"executeAction(action)\"\n [disabled]=\"action.disabled === true\" [text]=\"(action.title | translate | async)!\">\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 class=\"workflow-task-popover__more-btn\" [look]=\"'blank'\" [color]=\"'default'\" [iconOnly]=\"true\"\n [attr.aria-label]=\"('@workflow-management:tasks.popover.more' | translate | async) ?? ''\">\n <ax-icon icon=\"fa-light fa-ellipsis-vertical\"></ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for (action of secondaryActions(); track action.name || action.title) {\n <ax-button-item [text]=\"(action.title | translate | async)!\" [disabled]=\"action.disabled === true\"\n (onClick)=\"executeAction(action)\">\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>"],"names":["i3","i4","i6"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAiEA;AAEA;AAmBM,MAAO,+BAAgC,SAAQ,uBAAuB,CAAA;AA4DhE,IAAA,oBAAoB,CAAC,KAA4B,EAAA;AACzD,QAAA,MAAM,IAAI,GAAG,KAAK,EAAE,IAAI;AACxB,QAAA,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YACpC,MAAM,QAAQ,GAA4B,EAAE;AAC5C,YAAA,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;AAC/C,gBAAA,IAAI,GAAG,KAAK,MAAM,IAAI,GAAG,KAAK,SAAS;AAAE,oBAAA,QAAQ,CAAC,GAAG,CAAC,GAAG,KAAK;YAChE;AACA,YAAA,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC;QAC/B;IACF;AA0DQ,IAAA,eAAe,CAAC,CAAwB,EAAA;AAC9C,QAAA,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,IAAI,QAA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,aAAA,EAAA,MAAA,EAAA,CAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAChB,YAAY,8BACZ,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAGV,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAjB3C,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,2BAA2B,EAAA,eAAA,EAGpB,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,OAAA,EAC5B,CAAC,sBAAsB,CAAC,EAAA,OAAA,EACxB;wBACP,mBAAmB;wBACnB,cAAc;wBACd,iBAAiB;wBACjB,gBAAgB;wBAChB,gBAAgB;wBAChB,YAAY;wBACZ,mBAAmB;AACpB,qBAAA,EAAA,QAAA,EAAA,moGAAA,EAAA,MAAA,EAAA,CAAA,06FAAA,CAAA,EAAA;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { e as AXCCategoryProvider, f as AXMMenuProvider, g as AXMWorkflowActivitiesDefinitionProvider, h as AXMWorkflowManagementModule, j as AXPCreateEntityActivity, k as AXPGenericWorkflowTaskProvider, A as AXPWorkflowInstanceHumanTaskService, l as AXPWorkflowTaskContinuationService, m as AXPWorkflowTaskInstanceQueryService, o as AXP_GENERIC_WORKFLOW_TASK_PROVIDER_CONFIG, C as CartableTaskActivity, p as CreateEntityFormActivity, H as HumanTaskActivity, R as RejectionReasonActivity, S as ShowConfirmPopupActivity, q as ShowLayoutPopupActivity, s as ShowToastActivity, t as SignOffActivity, c as createWorkflowInstanceBookmarkAccess, u as discoverWorkflowTaskProviders, v as findActiveHumanTaskAssigneeId, w as findHumanTaskAssigneeIdForActivity, x as getWorkflowInstanceInitiatorUserId, i as isWorkflowPooledClaimablePayload, y as isWorkflowReassignableHumanTaskPayload, z as isWorkflowTaskBoardBookmarkPayload, B as needsTakeOverForWorkflowInteractiveContinuation, D as needsTakeOverForWorkflowTaskContinuation, n as normalizeWorkflowTaskUserIds, E as parseWorkflowTaskContinuationPayload, F as resolveWorkflowHumanTaskAssigneeId, G as resolveWorkflowInitiatorUserIdFromVariables, I as resolveWorkflowTaskContinuationAssigneeId, J as shouldOfferWorkflowContinuationAfterStep, K as shouldOfferWorkflowInteractiveStepContinuation, L as shouldOfferWorkflowTaskContinuation, M as shouldSkipContinuationBeforeInteractive, N as wasWorkflowTaskBoardActivity } from './acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-B_Sl7G2v.mjs';
|
|
2
|
+
//# sourceMappingURL=acorex-platform-module-workflow-management-client.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-workflow-management-client.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@acorex-platform/module-workflow-management-client",
|
|
3
|
+
"version": "0.0.21",
|
|
4
|
+
"sideEffects": false,
|
|
5
|
+
"peerDependencies": {
|
|
6
|
+
"@angular/common": "^21.0.0",
|
|
7
|
+
"@angular/core": "^21.0.0"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"tslib": "^2.3.0"
|
|
11
|
+
},
|
|
12
|
+
"module": "fesm2022/acorex-platform-module-workflow-management-client.mjs",
|
|
13
|
+
"typings": "types/acorex-platform-module-workflow-management-client.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
"./package.json": {
|
|
16
|
+
"default": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./types/acorex-platform-module-workflow-management-client.d.ts",
|
|
20
|
+
"default": "./fesm2022/acorex-platform-module-workflow-management-client.mjs"
|
|
21
|
+
},
|
|
22
|
+
"./contracts": {
|
|
23
|
+
"types": "./types/acorex-platform-module-workflow-management-client-contracts.d.ts",
|
|
24
|
+
"default": "./fesm2022/acorex-platform-module-workflow-management-client-contracts.mjs"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"type": "module"
|
|
28
|
+
}
|