@acorex/modules 21.0.0-next.12 → 21.0.0-next.13
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/data-management/index.d.ts +35 -2
- package/document-management/index.d.ts +76 -261
- package/fesm2022/acorex-modules-data-management.mjs +231 -2
- package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +529 -2717
- package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-BDSyXKSF.mjs → acorex-modules-human-capital-management-leave-request.entity-CviI9xJC.mjs} +2 -2
- package/fesm2022/acorex-modules-human-capital-management-leave-request.entity-CviI9xJC.mjs.map +1 -0
- package/fesm2022/acorex-modules-human-capital-management.mjs +350 -695
- package/fesm2022/acorex-modules-human-capital-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-task-management-task-board.page-Cgxdk78j.mjs → acorex-modules-task-management-task-board.page-B_S373L-.mjs} +47 -54
- package/fesm2022/acorex-modules-task-management-task-board.page-B_S373L-.mjs.map +1 -0
- package/fesm2022/acorex-modules-task-management.mjs +39 -11
- package/fesm2022/acorex-modules-task-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-workflow-management-activity-definition.entity-BbBEPTBa.mjs +258 -0
- package/fesm2022/acorex-modules-workflow-management-activity-definition.entity-BbBEPTBa.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management-workflow-definition.entity-nJMBL0qt.mjs +371 -0
- package/fesm2022/acorex-modules-workflow-management-workflow-definition.entity-nJMBL0qt.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management-workflow-instance.entity-Pso0oRN5.mjs +313 -0
- package/fesm2022/acorex-modules-workflow-management-workflow-instance.entity-Pso0oRN5.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management.mjs +710 -2536
- package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
- package/human-capital-management/index.d.ts +19 -79
- package/package.json +14 -14
- package/task-management/index.d.ts +12 -1
- package/workflow-management/index.d.ts +220 -265
- package/fesm2022/acorex-modules-human-capital-management-leave-request-task-popover.component-yGvT9kSL.mjs +0 -381
- package/fesm2022/acorex-modules-human-capital-management-leave-request-task-popover.component-yGvT9kSL.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-leave-request.entity-BDSyXKSF.mjs.map +0 -1
- package/fesm2022/acorex-modules-task-management-task-board.page-Cgxdk78j.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-cartable-page.component-Bso0XRkJ.mjs +0 -296
- package/fesm2022/acorex-modules-workflow-management-cartable-page.component-Bso0XRkJ.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-index-xB36g4F1.mjs +0 -469
- package/fesm2022/acorex-modules-workflow-management-index-xB36g4F1.mjs.map +0 -1
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { AXPEntityModel } from '@acorex/platform/layout/entity';
|
|
2
2
|
import { AXPSystemStatuses } from '@acorex/platform/common';
|
|
3
|
-
import { AXPWorkflowTaskProvider, AXPTaskFilter, AXPTask, AXPExtraField, AXPTaskStatus, AXPTaskPopoverComponent } from '@acorex/modules/task-management';
|
|
4
|
-
import { AXPExecuteCommand, AXPExecuteCommandResult, AXPActionMenuItem, AXPFeatureDefinitionProvider, AXPFeatureDefinitionProviderContext, AXPModuleManifest } from '@acorex/platform/core';
|
|
5
3
|
import * as i0 from '@angular/core';
|
|
6
|
-
import {
|
|
4
|
+
import { AXPTaskPopoverComponent, AXPTask } from '@acorex/modules/task-management';
|
|
7
5
|
import { AXPTaskBadgeProvider } from '@acorex/platform/layout/components';
|
|
6
|
+
import { AXPFeatureDefinitionProvider, AXPFeatureDefinitionProviderContext, AXPModuleManifest } from '@acorex/platform/core';
|
|
8
7
|
import * as i1 from '@angular/common';
|
|
9
8
|
import * as i2 from '@acorex/platform/runtime';
|
|
10
9
|
|
|
@@ -118,83 +117,24 @@ interface AXMHumanCapitalManagementPositionAssignmentEntityModel extends AXPEnti
|
|
|
118
117
|
notes?: string;
|
|
119
118
|
}
|
|
120
119
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
*
|
|
124
|
-
* Integrates with workflow engine to show leave request tasks from work items.
|
|
125
|
-
* Uses work items created by workflow engine for human-task activities.
|
|
126
|
-
*
|
|
127
|
-
* Architecture:
|
|
128
|
-
* - Queries work items filtered by entityRefType = 'HumanCapitalManagement.LeaveRequest'
|
|
129
|
-
* - Loads related entity data from entityRefId
|
|
130
|
-
* - Maps work item status to task board status
|
|
131
|
-
* - Provides actions based on workflow activity definitions
|
|
132
|
-
*/
|
|
133
|
-
declare class AXMLeaveRequestTaskProvider extends AXPWorkflowTaskProvider<AXMHumanCapitalManagementLeaveRequestEntityModel> {
|
|
134
|
-
private readonly entityService;
|
|
135
|
-
private readonly entityRegistry;
|
|
136
|
-
private readonly workItemData;
|
|
137
|
-
private readonly leaveRequestData;
|
|
120
|
+
declare class AXMLeaveRequestTaskPopoverComponent implements AXPTaskPopoverComponent {
|
|
121
|
+
task: i0.InputSignal<AXPTask<Record<string, any>>>;
|
|
138
122
|
private readonly commandExecutor;
|
|
139
|
-
private readonly translationService;
|
|
140
123
|
private readonly dialogService;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
getTasks(options: AXPTaskFilter): Promise<{
|
|
156
|
-
items: AXPTask<AXMHumanCapitalManagementLeaveRequestEntityModel>[];
|
|
157
|
-
total: number;
|
|
158
|
-
}>;
|
|
159
|
-
/**
|
|
160
|
-
* Map work item to task board task format.
|
|
161
|
-
*/
|
|
162
|
-
private mapWorkItemToTask;
|
|
163
|
-
/**
|
|
164
|
-
* Map work item status to task board status.
|
|
165
|
-
*/
|
|
166
|
-
private mapWorkItemStatusToTaskStatus;
|
|
167
|
-
/**
|
|
168
|
-
* Map work item priority to task board priority.
|
|
169
|
-
*/
|
|
170
|
-
private mapWorkItemPriorityToTaskPriority;
|
|
171
|
-
/**
|
|
172
|
-
* Update tasks (work items and/or entity data).
|
|
173
|
-
*
|
|
174
|
-
* Updates both work item (if task ID is work item ID) and entity data (if entityRefId is available).
|
|
175
|
-
*/
|
|
176
|
-
updateTasks(tasksToUpdate: AXPTask<AXMHumanCapitalManagementLeaveRequestEntityModel>[]): Promise<AXPTask<AXMHumanCapitalManagementLeaveRequestEntityModel>[]>;
|
|
177
|
-
/**
|
|
178
|
-
* Map task status to work item status.
|
|
179
|
-
*/
|
|
180
|
-
private mapTaskStatusToWorkItemStatus;
|
|
181
|
-
/**
|
|
182
|
-
* Execute commands on tasks.
|
|
183
|
-
*
|
|
184
|
-
* Supports:
|
|
185
|
-
* - Workflow work item commands (Claim, Complete, Cancel)
|
|
186
|
-
* - Leave request business commands (Approve, Reject, Cancel)
|
|
187
|
-
*/
|
|
188
|
-
executeCommand(command: AXPExecuteCommand): Promise<AXPExecuteCommandResult>;
|
|
189
|
-
/**
|
|
190
|
-
* Get available actions for a task.
|
|
191
|
-
*
|
|
192
|
-
* Provides actions based on work item status and workflow activity.
|
|
193
|
-
*/
|
|
194
|
-
getActions(task?: AXPTask<AXMHumanCapitalManagementLeaveRequestEntityModel>): Promise<AXPActionMenuItem[]>;
|
|
195
|
-
getExtraFields(): Promise<AXPExtraField[]>;
|
|
196
|
-
getStatuses(): Promise<AXPTaskStatus[]>;
|
|
197
|
-
getComponent(): (() => Promise<Type<AXPTaskPopoverComponent>>) | Type<AXPTaskPopoverComponent>;
|
|
124
|
+
protected taskData: i0.Signal<AXMHumanCapitalManagementLeaveRequestEntityModel>;
|
|
125
|
+
protected employeeName: i0.Signal<string>;
|
|
126
|
+
protected managerName: i0.Signal<string>;
|
|
127
|
+
protected leaveType: i0.Signal<string>;
|
|
128
|
+
protected canApprove: i0.Signal<boolean>;
|
|
129
|
+
protected canReject: i0.Signal<boolean>;
|
|
130
|
+
protected canCancel: i0.Signal<boolean>;
|
|
131
|
+
protected formatDate(date: Date): string;
|
|
132
|
+
protected calculateDuration(): number;
|
|
133
|
+
protected handleApprove(): Promise<void>;
|
|
134
|
+
protected handleReject(): Promise<void>;
|
|
135
|
+
protected handleCancel(): Promise<void>;
|
|
136
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMLeaveRequestTaskPopoverComponent, never>;
|
|
137
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXMLeaveRequestTaskPopoverComponent, "axm-leave-request-task-popover", never, { "task": { "alias": "task"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
198
138
|
}
|
|
199
139
|
|
|
200
140
|
interface LeaveRequestActionDialogResult {
|
|
@@ -314,5 +254,5 @@ declare const AXMPermissionsKeys: {
|
|
|
314
254
|
};
|
|
315
255
|
};
|
|
316
256
|
|
|
317
|
-
export { AXMHumanCapitalManagementModule, AXMLeaveRequestBadgeProvider,
|
|
257
|
+
export { AXMHumanCapitalManagementModule, AXMLeaveRequestBadgeProvider, AXMLeaveRequestTaskPopoverComponent, AXMPermissionsKeys, AXPHumanCapitalManagementFeatureDefinitionProvider, AXPHumanCapitalManagementFeatureKeys, AXPHumanCapitalManagementMenuKeys, AXPLeaveRequestDialogService, HumanCapitalManagementManifest, RootConfig };
|
|
318
258
|
export type { AXMHumanCapitalManagementEmployeeEntityModel, AXMHumanCapitalManagementEmploymentTypeEntityModel, AXMHumanCapitalManagementLeaveRequestEntityModel, AXMHumanCapitalManagementLeaveRequestStatus, AXMHumanCapitalManagementLeaveTypeEntityModel, AXMHumanCapitalManagementPositionAssignmentEntityModel, LeaveRequestActionDialogResult };
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex/modules",
|
|
3
|
-
"version": "21.0.0-next.
|
|
3
|
+
"version": "21.0.0-next.13",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@acorex/platform": "21.0.0-next.
|
|
5
|
+
"@acorex/platform": "21.0.0-next.13",
|
|
6
6
|
"@angular/service-worker": "^20.0.0",
|
|
7
7
|
"angular-oauth2-oidc": "^15.0.0",
|
|
8
8
|
"d3": "^7.0.0",
|
|
@@ -24,26 +24,26 @@
|
|
|
24
24
|
"types": "./application-management/index.d.ts",
|
|
25
25
|
"default": "./fesm2022/acorex-modules-application-management.mjs"
|
|
26
26
|
},
|
|
27
|
-
"./asset-management": {
|
|
28
|
-
"types": "./asset-management/index.d.ts",
|
|
29
|
-
"default": "./fesm2022/acorex-modules-asset-management.mjs"
|
|
30
|
-
},
|
|
31
27
|
"./assessment-management": {
|
|
32
28
|
"types": "./assessment-management/index.d.ts",
|
|
33
29
|
"default": "./fesm2022/acorex-modules-assessment-management.mjs"
|
|
34
30
|
},
|
|
31
|
+
"./asset-management": {
|
|
32
|
+
"types": "./asset-management/index.d.ts",
|
|
33
|
+
"default": "./fesm2022/acorex-modules-asset-management.mjs"
|
|
34
|
+
},
|
|
35
35
|
"./auth": {
|
|
36
36
|
"types": "./auth/index.d.ts",
|
|
37
37
|
"default": "./fesm2022/acorex-modules-auth.mjs"
|
|
38
38
|
},
|
|
39
|
-
"./calendar-management": {
|
|
40
|
-
"types": "./calendar-management/index.d.ts",
|
|
41
|
-
"default": "./fesm2022/acorex-modules-calendar-management.mjs"
|
|
42
|
-
},
|
|
43
39
|
"./business-core": {
|
|
44
40
|
"types": "./business-core/index.d.ts",
|
|
45
41
|
"default": "./fesm2022/acorex-modules-business-core.mjs"
|
|
46
42
|
},
|
|
43
|
+
"./calendar-management": {
|
|
44
|
+
"types": "./calendar-management/index.d.ts",
|
|
45
|
+
"default": "./fesm2022/acorex-modules-calendar-management.mjs"
|
|
46
|
+
},
|
|
47
47
|
"./common": {
|
|
48
48
|
"types": "./common/index.d.ts",
|
|
49
49
|
"default": "./fesm2022/acorex-modules-common.mjs"
|
|
@@ -184,13 +184,13 @@
|
|
|
184
184
|
"types": "./task-management/index.d.ts",
|
|
185
185
|
"default": "./fesm2022/acorex-modules-task-management.mjs"
|
|
186
186
|
},
|
|
187
|
-
"./workflow-management": {
|
|
188
|
-
"types": "./workflow-management/index.d.ts",
|
|
189
|
-
"default": "./fesm2022/acorex-modules-workflow-management.mjs"
|
|
190
|
-
},
|
|
191
187
|
"./tenant-management": {
|
|
192
188
|
"types": "./tenant-management/index.d.ts",
|
|
193
189
|
"default": "./fesm2022/acorex-modules-tenant-management.mjs"
|
|
190
|
+
},
|
|
191
|
+
"./workflow-management": {
|
|
192
|
+
"types": "./workflow-management/index.d.ts",
|
|
193
|
+
"default": "./fesm2022/acorex-modules-workflow-management.mjs"
|
|
194
194
|
}
|
|
195
195
|
},
|
|
196
196
|
"dependencies": {
|
|
@@ -462,13 +462,20 @@ interface AXPTaskPopoverComponent {
|
|
|
462
462
|
/**
|
|
463
463
|
* Injection token for registering multiple workflow task providers.
|
|
464
464
|
*/
|
|
465
|
-
declare const AXP_WORKFLOW_TASK_PROVIDER: InjectionToken<AXPWorkflowTaskProvider<Record<string, any>>[]>;
|
|
465
|
+
declare const AXP_WORKFLOW_TASK_PROVIDER: InjectionToken<AXPWorkflowTaskProvider<Record<string, any>>[] | Promise<AXPWorkflowTaskProvider<Record<string, any>>>[]>;
|
|
466
466
|
|
|
467
467
|
declare class AXPTaskBoardService {
|
|
468
468
|
private calendarService;
|
|
469
469
|
private calendarManagementService;
|
|
470
470
|
private providers;
|
|
471
|
+
/** Cached resolved providers; set after first call to resolveProviders(). */
|
|
472
|
+
private resolvedProviders;
|
|
471
473
|
refresh$: Subject<void>;
|
|
474
|
+
/**
|
|
475
|
+
* Resolves the providers array: if elements are Promises, awaits them and returns the resolved list.
|
|
476
|
+
* Result is cached for subsequent sync access (e.g. getProvider).
|
|
477
|
+
*/
|
|
478
|
+
resolveProviders(): Promise<AXPWorkflowTaskProvider[]>;
|
|
472
479
|
getTaskTypes(): Promise<AXPWorkflowTaskProvider[]>;
|
|
473
480
|
getTasks(options?: AXPTaskFilter): Promise<{
|
|
474
481
|
items: AXPTask[];
|
|
@@ -483,6 +490,10 @@ declare class AXPTaskBoardService {
|
|
|
483
490
|
id: string;
|
|
484
491
|
title: string;
|
|
485
492
|
}[]>;
|
|
493
|
+
/**
|
|
494
|
+
* Returns the provider by name. Uses cached resolved providers; returns null if not resolved yet.
|
|
495
|
+
* Ensure resolveProviders() has been called (e.g. via getTaskTypes() or getTasks()) before using this.
|
|
496
|
+
*/
|
|
486
497
|
getProvider(name: string | undefined): AXPWorkflowTaskProvider | null;
|
|
487
498
|
rangeCalculator(type: string): AXRange<Date> | undefined;
|
|
488
499
|
getResources(providerName: string): Promise<AXPResource[]>;
|