@acorex-platform/module-workflow-management-client 0.0.46 → 0.0.48
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-TTHRxuyL.mjs → acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-mxu-pura.mjs} +41 -14
- package/fesm2022/acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-mxu-pura.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-workflow-management-client-index-BtRQ0iDG.mjs → acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-workflow-management-client-index-BtRQ0iDG.mjs.map → acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-DsRb14pz.mjs → acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-DBswxGAs.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-DsRb14pz.mjs.map → acorex-platform-module-workflow-management-client-workflow-run-history-popup.component-DBswxGAs.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-task-popover.component-C74XVWMw.mjs → acorex-platform-module-workflow-management-client-workflow-task-popover.component-BDhOlDkg.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-workflow-management-client-workflow-task-popover.component-C74XVWMw.mjs.map → acorex-platform-module-workflow-management-client-workflow-task-popover.component-BDhOlDkg.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-workflow-management-client.mjs +1 -1
- package/package.json +2 -2
- package/types/acorex-platform-module-workflow-management-client.d.ts +10 -0
- package/fesm2022/acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-TTHRxuyL.mjs.map +0 -1
|
@@ -544,6 +544,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
544
544
|
type: Injectable
|
|
545
545
|
}] });
|
|
546
546
|
|
|
547
|
+
/** Keep aligned with AXM_HCM_EMPLOYEE_SIGNATURE_PROVIDER_NAME. */
|
|
548
|
+
const DEFAULT_SIGN_OFF_SIGNATURE_PROVIDER = 'hcm-employee';
|
|
547
549
|
//#endregion
|
|
548
550
|
//#region ---- Sign-Off Activity ----
|
|
549
551
|
/**
|
|
@@ -568,7 +570,10 @@ class SignOffActivity {
|
|
|
568
570
|
const message = input.message
|
|
569
571
|
? await this.translationService.translateAsync(input.message)
|
|
570
572
|
: await this.translationService.translateAsync('@workflow-management:sign-off.activities.sign-off.default-message');
|
|
571
|
-
const dialogResult = await this.showSignOffDialog(message
|
|
573
|
+
const dialogResult = await this.showSignOffDialog(message, {
|
|
574
|
+
captureMode: this.resolveCaptureMode(input.captureMode),
|
|
575
|
+
signatureProvider: this.resolveSignatureProvider(input.signatureProvider),
|
|
576
|
+
});
|
|
572
577
|
if (dialogResult.cancelled) {
|
|
573
578
|
return { success: true, kind: 'object',
|
|
574
579
|
data: {
|
|
@@ -610,7 +615,25 @@ class SignOffActivity {
|
|
|
610
615
|
}
|
|
611
616
|
//#endregion
|
|
612
617
|
//#region ---- Dialog ----
|
|
613
|
-
|
|
618
|
+
resolveCaptureMode(value) {
|
|
619
|
+
if (value === 'popup') {
|
|
620
|
+
return 'popup';
|
|
621
|
+
}
|
|
622
|
+
if (value && typeof value === 'object' && 'id' in value) {
|
|
623
|
+
const id = value.id;
|
|
624
|
+
if (id === 'popup') {
|
|
625
|
+
return 'popup';
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
return 'inline';
|
|
629
|
+
}
|
|
630
|
+
resolveSignatureProvider(value) {
|
|
631
|
+
if (value === undefined || value === null) {
|
|
632
|
+
return DEFAULT_SIGN_OFF_SIGNATURE_PROVIDER;
|
|
633
|
+
}
|
|
634
|
+
return isString(value) ? trim(value) : DEFAULT_SIGN_OFF_SIGNATURE_PROVIDER;
|
|
635
|
+
}
|
|
636
|
+
async showSignOffDialog(message, signatureOptions) {
|
|
614
637
|
const rawResult = await this.layoutBuilder
|
|
615
638
|
.create()
|
|
616
639
|
.dialog((dialog) => {
|
|
@@ -631,6 +654,10 @@ class SignOffActivity {
|
|
|
631
654
|
.formField('@workflow-management:sign-off.activities.sign-off.signature-label', (field) => {
|
|
632
655
|
field.path('signature');
|
|
633
656
|
field.customWidget(AXPWidgetsList.Editors.SignatureBox, {
|
|
657
|
+
captureMode: signatureOptions.captureMode,
|
|
658
|
+
...(signatureOptions.signatureProvider
|
|
659
|
+
? { signatureProvider: signatureOptions.signatureProvider }
|
|
660
|
+
: {}),
|
|
634
661
|
validations: [
|
|
635
662
|
{
|
|
636
663
|
rule: 'required',
|
|
@@ -3079,23 +3106,23 @@ class AXMWorkflowManagementModule {
|
|
|
3079
3106
|
},
|
|
3080
3107
|
{
|
|
3081
3108
|
key: 'WorkflowManagement.WorkflowRun:Continue',
|
|
3082
|
-
command: () => import('./acorex-platform-module-workflow-management-client-index-
|
|
3109
|
+
command: () => import('./acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs').then((c) => c.ContinueWorkflowRunCommand),
|
|
3083
3110
|
},
|
|
3084
3111
|
{
|
|
3085
3112
|
key: 'WorkflowManagement.WorkflowRun:CancelRun',
|
|
3086
|
-
command: () => import('./acorex-platform-module-workflow-management-client-index-
|
|
3113
|
+
command: () => import('./acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs').then((c) => c.CancelWorkflowRunCommand),
|
|
3087
3114
|
},
|
|
3088
3115
|
{
|
|
3089
3116
|
key: 'WorkflowManagement.WorkflowRun:TakeOver',
|
|
3090
|
-
command: () => import('./acorex-platform-module-workflow-management-client-index-
|
|
3117
|
+
command: () => import('./acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs').then((c) => c.TakeOverWorkflowRunCommand),
|
|
3091
3118
|
},
|
|
3092
3119
|
{
|
|
3093
3120
|
key: 'WorkflowManagement.WorkflowRun:ShowHistory',
|
|
3094
|
-
command: () => import('./acorex-platform-module-workflow-management-client-index-
|
|
3121
|
+
command: () => import('./acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs').then((c) => c.ShowWorkflowRunHistoryCommand),
|
|
3095
3122
|
},
|
|
3096
3123
|
{
|
|
3097
3124
|
key: 'WorkflowManagement.WorkflowRun:ShowHistory',
|
|
3098
|
-
command: () => import('./acorex-platform-module-workflow-management-client-index-
|
|
3125
|
+
command: () => import('./acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs').then((c) => c.ShowWorkflowRunHistoryCommand),
|
|
3099
3126
|
},
|
|
3100
3127
|
]),
|
|
3101
3128
|
// provideEntity([RootConfig.entities.activityDefinition.fullName]),
|
|
@@ -3253,23 +3280,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3253
3280
|
},
|
|
3254
3281
|
{
|
|
3255
3282
|
key: 'WorkflowManagement.WorkflowRun:Continue',
|
|
3256
|
-
command: () => import('./acorex-platform-module-workflow-management-client-index-
|
|
3283
|
+
command: () => import('./acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs').then((c) => c.ContinueWorkflowRunCommand),
|
|
3257
3284
|
},
|
|
3258
3285
|
{
|
|
3259
3286
|
key: 'WorkflowManagement.WorkflowRun:CancelRun',
|
|
3260
|
-
command: () => import('./acorex-platform-module-workflow-management-client-index-
|
|
3287
|
+
command: () => import('./acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs').then((c) => c.CancelWorkflowRunCommand),
|
|
3261
3288
|
},
|
|
3262
3289
|
{
|
|
3263
3290
|
key: 'WorkflowManagement.WorkflowRun:TakeOver',
|
|
3264
|
-
command: () => import('./acorex-platform-module-workflow-management-client-index-
|
|
3291
|
+
command: () => import('./acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs').then((c) => c.TakeOverWorkflowRunCommand),
|
|
3265
3292
|
},
|
|
3266
3293
|
{
|
|
3267
3294
|
key: 'WorkflowManagement.WorkflowRun:ShowHistory',
|
|
3268
|
-
command: () => import('./acorex-platform-module-workflow-management-client-index-
|
|
3295
|
+
command: () => import('./acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs').then((c) => c.ShowWorkflowRunHistoryCommand),
|
|
3269
3296
|
},
|
|
3270
3297
|
{
|
|
3271
3298
|
key: 'WorkflowManagement.WorkflowRun:ShowHistory',
|
|
3272
|
-
command: () => import('./acorex-platform-module-workflow-management-client-index-
|
|
3299
|
+
command: () => import('./acorex-platform-module-workflow-management-client-index-BhzGxdyE.mjs').then((c) => c.ShowWorkflowRunHistoryCommand),
|
|
3273
3300
|
},
|
|
3274
3301
|
]),
|
|
3275
3302
|
// provideEntity([RootConfig.entities.activityDefinition.fullName]),
|
|
@@ -4988,7 +5015,7 @@ class AXPGenericWorkflowTaskProvider extends AXPWorkflowTaskProvider {
|
|
|
4988
5015
|
//#endregion
|
|
4989
5016
|
//#region ---- Component ----
|
|
4990
5017
|
getComponent() {
|
|
4991
|
-
return () => import('./acorex-platform-module-workflow-management-client-workflow-task-popover.component-
|
|
5018
|
+
return () => import('./acorex-platform-module-workflow-management-client-workflow-task-popover.component-BDhOlDkg.mjs').then((m) => m.AXMWorkflowTaskPopoverComponent);
|
|
4992
5019
|
}
|
|
4993
5020
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPGenericWorkflowTaskProvider, deps: [{ token: AXP_GENERIC_WORKFLOW_TASK_PROVIDER_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4994
5021
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPGenericWorkflowTaskProvider }); }
|
|
@@ -5011,4 +5038,4 @@ var genericWorkflowTask_provider = /*#__PURE__*/Object.freeze({
|
|
|
5011
5038
|
*/
|
|
5012
5039
|
|
|
5013
5040
|
export { AXPWorkflowInstanceHumanTaskService as A, needsTakeOverForWorkflowInteractiveContinuation as B, CartableTaskActivity as C, needsTakeOverForWorkflowTaskContinuation as D, parseWorkflowTaskContinuationPayload as E, resolveWorkflowHumanTaskAssigneeId as F, resolveWorkflowInitiatorUserIdFromVariables as G, HumanTaskActivity as H, resolveWorkflowTaskContinuationAssigneeId as I, shouldOfferWorkflowContinuationAfterStep as J, shouldOfferWorkflowInteractiveStepContinuation as K, shouldOfferWorkflowTaskContinuation as L, shouldSkipContinuationBeforeInteractive as M, wasWorkflowTaskBoardActivity as N, RejectionReasonActivity as R, ShowConfirmPopupActivity as S, AXMWorkflowManagementCommandKeys as a, buildWorkflowTaskDisplayParamsFromWorkflowState as b, createWorkflowInstanceBookmarkAccess as c, buildWorkflowTaskDisplayParams as d, AXCCategoryProvider as e, AXMMenuProvider as f, AXMWorkflowActivitiesDefinitionProvider as g, AXMWorkflowManagementModule as h, isWorkflowPooledClaimablePayload as i, AXPCreateEntityActivity as j, AXPGenericWorkflowTaskProvider as k, AXPWorkflowTaskContinuationService as l, AXPWorkflowTaskInstanceQueryService as m, normalizeWorkflowTaskUserIds as n, AXP_GENERIC_WORKFLOW_TASK_PROVIDER_CONFIG as o, CreateEntityFormActivity as p, ShowLayoutPopupActivity as q, rehydrateWorkflowStateInputTitles as r, ShowToastActivity as s, SignOffActivity as t, discoverWorkflowTaskProviders as u, findActiveHumanTaskAssigneeId as v, findHumanTaskAssigneeIdForActivity as w, getWorkflowInstanceInitiatorUserId as x, isWorkflowReassignableHumanTaskPayload as y, isWorkflowTaskBoardBookmarkPayload as z };
|
|
5014
|
-
//# sourceMappingURL=acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-
|
|
5041
|
+
//# sourceMappingURL=acorex-platform-module-workflow-management-client-acorex-platform-module-workflow-management-client-mxu-pura.mjs.map
|