@acorex-platform/module-human-capital-management-client 0.0.32 → 0.0.33
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-human-capital-management-client-contracts-entities-employee.mjs +559 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-employee.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-employment-type.mjs +182 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-employment-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-leave-request.mjs +374 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-leave-request.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-leave-type.mjs +182 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-leave-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-lifecycle-event-type.mjs +189 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-lifecycle-event-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-lifecycle-event.mjs +307 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-lifecycle-event.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-position-assignment.mjs +377 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-position-assignment.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-acorex-platform-module-human-capital-management-client-contracts-entity-catalog-YSqg0InM.mjs +109 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-acorex-platform-module-human-capital-management-client-contracts-entity-catalog-YSqg0InM.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-catalog-scope.keys-D8MsCaj5.mjs +5 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-catalog-scope.keys-D8MsCaj5.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-commands.keys-B5rEwAkf.mjs +19 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-commands.keys-B5rEwAkf.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employee.entity-DkVdcMBo.mjs +459 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employee.entity-DkVdcMBo.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employment-type.entity-DtYMx-Fh.mjs +98 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employment-type.entity-DtYMx-Fh.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-request.entity-0NDmiYk0.mjs +290 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-request.entity-0NDmiYk0.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-type.entity-DWkv-dnA.mjs +96 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-type.entity-DWkv-dnA.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event-type.entity-CDfVNrc0.mjs +103 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event-type.entity-CDfVNrc0.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event.entity-Dp-_0o-1.mjs +223 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event.entity-Dp-_0o-1.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-position-assignment.entity-rQe7-CDe.mjs +277 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-position-assignment.entity-rQe7-CDe.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-local-entities.mjs +35 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-local-entities.mjs.map +1 -0
- package/package.json +38 -2
- package/types/acorex-platform-module-human-capital-management-client-contracts-entities-employee.d.ts +5 -0
- package/types/acorex-platform-module-human-capital-management-client-contracts-entities-employment-type.d.ts +5 -0
- package/types/acorex-platform-module-human-capital-management-client-contracts-entities-leave-request.d.ts +5 -0
- package/types/acorex-platform-module-human-capital-management-client-contracts-entities-leave-type.d.ts +5 -0
- package/types/acorex-platform-module-human-capital-management-client-contracts-entities-lifecycle-event-type.d.ts +5 -0
- package/types/acorex-platform-module-human-capital-management-client-contracts-entities-lifecycle-event.d.ts +5 -0
- package/types/acorex-platform-module-human-capital-management-client-contracts-entities-position-assignment.d.ts +5 -0
- package/types/acorex-platform-module-human-capital-management-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-human-capital-management-client-local-entities.d.ts +12 -0
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, AXPEntityCommandScope, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
|
|
4
|
+
const AXPHumanCapitalManagementCommandKeys = {
|
|
5
|
+
PositionAssignment: {
|
|
6
|
+
Assign: 'HumanCapitalManagement.PositionAssignment:Assign',
|
|
7
|
+
Revoke: 'HumanCapitalManagement.PositionAssignment:Revoke',
|
|
8
|
+
},
|
|
9
|
+
LifecycleEvent: {
|
|
10
|
+
StartFlow: 'HumanCapitalManagement.LifecycleEvent:StartFlow',
|
|
11
|
+
},
|
|
12
|
+
LeaveRequest: {
|
|
13
|
+
StartFlow: 'HumanCapitalManagement.LeaveRequest:StartFlow',
|
|
14
|
+
},
|
|
15
|
+
Profile: {
|
|
16
|
+
EditPersonalInfo: 'HumanCapitalManagement.Profile:EditPersonalInfo',
|
|
17
|
+
EditSignature: 'HumanCapitalManagement.Profile:EditSignature',
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const config = {
|
|
22
|
+
i18n: 'human-capital-management',
|
|
23
|
+
module: 'HumanCapitalManagement',
|
|
24
|
+
};
|
|
25
|
+
const RootConfig = {
|
|
26
|
+
config,
|
|
27
|
+
module: {
|
|
28
|
+
route: 'human-capital-management',
|
|
29
|
+
name: config.module,
|
|
30
|
+
title: '@human-capital-management:module.title',
|
|
31
|
+
icon: 'fa-light fa-users',
|
|
32
|
+
},
|
|
33
|
+
entities: {
|
|
34
|
+
employee: {
|
|
35
|
+
name: 'Employee',
|
|
36
|
+
source: `${config.module}.Employee`,
|
|
37
|
+
title: '@human-capital-management:employees.entities.employee.title',
|
|
38
|
+
titlePlural: '@human-capital-management:employees.entities.employee.plural',
|
|
39
|
+
icon: 'fa-light fa-address-card',
|
|
40
|
+
},
|
|
41
|
+
employmentType: {
|
|
42
|
+
name: 'EmploymentType',
|
|
43
|
+
source: `${config.module}.EmploymentType`,
|
|
44
|
+
title: '@human-capital-management:employment-types.entities.employment-type.title',
|
|
45
|
+
titlePlural: '@human-capital-management:employment-types.entities.employment-type.plural',
|
|
46
|
+
icon: 'fa-light fa-file-signature',
|
|
47
|
+
},
|
|
48
|
+
positionAssignment: {
|
|
49
|
+
name: 'PositionAssignment',
|
|
50
|
+
source: `${config.module}.PositionAssignment`,
|
|
51
|
+
title: '@human-capital-management:position-assignments.entities.position-assignment.title',
|
|
52
|
+
titlePlural: '@human-capital-management:position-assignments.entities.position-assignment.plural',
|
|
53
|
+
icon: 'fa-light fa-user-tie-hair',
|
|
54
|
+
},
|
|
55
|
+
leaveType: {
|
|
56
|
+
name: 'LeaveType',
|
|
57
|
+
source: `${config.module}.LeaveType`,
|
|
58
|
+
title: '@human-capital-management:leave-types.entities.leave-type.title',
|
|
59
|
+
titlePlural: '@human-capital-management:leave-types.entities.leave-type.plural',
|
|
60
|
+
icon: 'fa-light fa-calendar-days',
|
|
61
|
+
},
|
|
62
|
+
leaveRequest: {
|
|
63
|
+
name: 'LeaveRequest',
|
|
64
|
+
source: `${config.module}.LeaveRequest`,
|
|
65
|
+
title: '@human-capital-management:leave-requests.entities.leave-request.title',
|
|
66
|
+
titlePlural: '@human-capital-management:leave-requests.entities.leave-request.plural',
|
|
67
|
+
icon: 'fa-light fa-plane-departure',
|
|
68
|
+
},
|
|
69
|
+
lifecycleEventType: {
|
|
70
|
+
name: 'LifecycleEventType',
|
|
71
|
+
source: `${config.module}.LifecycleEventType`,
|
|
72
|
+
title: '@human-capital-management:lifecycle-event-types.entities.lifecycle-event-type.title',
|
|
73
|
+
titlePlural: '@human-capital-management:lifecycle-event-types.entities.lifecycle-event-type.plural',
|
|
74
|
+
icon: 'fa-light fa-diagram-next',
|
|
75
|
+
},
|
|
76
|
+
lifecycleEvent: {
|
|
77
|
+
name: 'LifecycleEvent',
|
|
78
|
+
source: `${config.module}.LifecycleEvent`,
|
|
79
|
+
title: '@human-capital-management:lifecycle-events.entities.lifecycle-event.title',
|
|
80
|
+
titlePlural: '@human-capital-management:lifecycle-events.entities.lifecycle-event.plural',
|
|
81
|
+
icon: 'fa-light fa-clipboard-list-check',
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
pages: {
|
|
85
|
+
appointmentBoard: {
|
|
86
|
+
path: 'Boards/ResourceAppointment',
|
|
87
|
+
title: '@human-capital-management:leave-requests.menus.appointment-board.title',
|
|
88
|
+
icon: 'fa-light fa-calendar-lines',
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
queries: {
|
|
92
|
+
dashboard: {
|
|
93
|
+
employeesKpi: `${config.module}:Dashboard:EmployeesKpi`,
|
|
94
|
+
},
|
|
95
|
+
reports: {
|
|
96
|
+
getHeadcountByDepartment: `${config.module}:Reports:GetHeadcountByDepartment`,
|
|
97
|
+
getLeaveUsageByType: `${config.module}:Reports:GetLeaveUsageByType`,
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
async function factoryPositionAssignment() {
|
|
103
|
+
const entityDef = {
|
|
104
|
+
module: RootConfig.module.name,
|
|
105
|
+
name: RootConfig.entities.positionAssignment.name,
|
|
106
|
+
icon: 'fa-light fa-user-tie-hair',
|
|
107
|
+
plugins: [
|
|
108
|
+
{ name: 'history' },
|
|
109
|
+
{ name: 'lock' },
|
|
110
|
+
{ name: 'compare' },
|
|
111
|
+
{
|
|
112
|
+
name: 'status',
|
|
113
|
+
options: {
|
|
114
|
+
field: 'statusId',
|
|
115
|
+
definition: 'human-capital-management.status.position-assignment',
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
title: RootConfig.entities.positionAssignment.title,
|
|
120
|
+
formats: {
|
|
121
|
+
individual: RootConfig.entities.positionAssignment.title,
|
|
122
|
+
plural: RootConfig.entities.positionAssignment.titlePlural,
|
|
123
|
+
searchResult: { title: '{{ position.title }}', description: RootConfig.module.title },
|
|
124
|
+
},
|
|
125
|
+
relatedEntities: [],
|
|
126
|
+
groups: [
|
|
127
|
+
{
|
|
128
|
+
id: 'assignment',
|
|
129
|
+
title: '@human-capital-management:position-assignments.entities.position-assignment.groups.assignment',
|
|
130
|
+
},
|
|
131
|
+
{ id: 'period', title: '@general:terms.datetime.period' },
|
|
132
|
+
{ id: 'additional', title: '@general:terms.interface.additional-info' },
|
|
133
|
+
],
|
|
134
|
+
properties: [
|
|
135
|
+
{
|
|
136
|
+
name: 'id',
|
|
137
|
+
title: 'ID',
|
|
138
|
+
groupId: 'assignment',
|
|
139
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: 'employeeId',
|
|
143
|
+
title: '@general:terms.people.employee',
|
|
144
|
+
groupId: 'assignment',
|
|
145
|
+
options: {
|
|
146
|
+
sort: { enabled: true },
|
|
147
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
148
|
+
},
|
|
149
|
+
schema: {
|
|
150
|
+
dataType: 'string',
|
|
151
|
+
interface: {
|
|
152
|
+
type: AXPWidgetsCatalog.lookup,
|
|
153
|
+
options: {
|
|
154
|
+
entity: `HumanCapitalManagement.Employee`,
|
|
155
|
+
textField: 'person.fullName',
|
|
156
|
+
valueField: 'id',
|
|
157
|
+
columns: ['person.fullName', 'employeeCode'],
|
|
158
|
+
expose: [
|
|
159
|
+
{ source: 'id', target: 'employee.id' },
|
|
160
|
+
{ source: 'person.fullName', target: 'employee.person.fullName' },
|
|
161
|
+
],
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
validations: [{ rule: 'required' }],
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: 'businessUnitId',
|
|
169
|
+
title: '@organization-management:business-units.terms.individual-title',
|
|
170
|
+
groupId: 'assignment',
|
|
171
|
+
options: {
|
|
172
|
+
sort: { enabled: true },
|
|
173
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
174
|
+
},
|
|
175
|
+
schema: {
|
|
176
|
+
dataType: 'object',
|
|
177
|
+
interface: {
|
|
178
|
+
type: AXPWidgetsCatalog.lookup,
|
|
179
|
+
options: {
|
|
180
|
+
entity: `OrganizationManagement.BusinessUnit`,
|
|
181
|
+
textField: 'title',
|
|
182
|
+
valueField: 'id',
|
|
183
|
+
look: 'lookup',
|
|
184
|
+
columns: ['code', 'title', { name: 'positionIds', visible: false }],
|
|
185
|
+
expose: [
|
|
186
|
+
{ source: 'id', target: 'businessUnit.id' },
|
|
187
|
+
{ source: 'title', target: 'businessUnit.title' },
|
|
188
|
+
{ source: 'positionIds', target: 'businessUnit.positionIds' },
|
|
189
|
+
],
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
validations: [{ rule: 'required' }],
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
name: 'positionId',
|
|
197
|
+
title: '@general:terms.organizations.position',
|
|
198
|
+
groupId: 'assignment',
|
|
199
|
+
options: {
|
|
200
|
+
sort: { enabled: true },
|
|
201
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
202
|
+
},
|
|
203
|
+
schema: {
|
|
204
|
+
dataType: 'string',
|
|
205
|
+
interface: {
|
|
206
|
+
type: AXPWidgetsCatalog.lookup,
|
|
207
|
+
options: {
|
|
208
|
+
entity: `OrganizationManagement.Position`,
|
|
209
|
+
textField: 'title',
|
|
210
|
+
valueField: 'id',
|
|
211
|
+
look: 'select',
|
|
212
|
+
columns: ['title'],
|
|
213
|
+
disabled: '{{ !context.eval("businessUnitId") }}',
|
|
214
|
+
expose: [
|
|
215
|
+
{ source: 'id', target: 'position.id' },
|
|
216
|
+
{ source: 'title', target: 'position.title' },
|
|
217
|
+
],
|
|
218
|
+
filter: {
|
|
219
|
+
logic: 'and',
|
|
220
|
+
filters: [
|
|
221
|
+
{
|
|
222
|
+
field: 'id',
|
|
223
|
+
operator: { type: 'in' },
|
|
224
|
+
value: '{{ context.eval("businessUnit.positionIds") || [] }}',
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
triggers: [
|
|
230
|
+
{
|
|
231
|
+
event: "{{ events.context('businessUnitId') }}",
|
|
232
|
+
action: `{{ widget.setValue(null); context.set('position.id', null); context.set('position.title', null); widget.refresh(); }}`,
|
|
233
|
+
},
|
|
234
|
+
],
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
validations: [{ rule: 'required' }],
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
name: 'startDate',
|
|
241
|
+
title: '@general:terms.datetime.start-date',
|
|
242
|
+
groupId: 'period',
|
|
243
|
+
options: {
|
|
244
|
+
sort: { enabled: true },
|
|
245
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
246
|
+
},
|
|
247
|
+
schema: { dataType: 'date', interface: { type: AXPWidgetsCatalog.dateTime } },
|
|
248
|
+
validations: [{ rule: 'required' }],
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
name: 'endDate',
|
|
252
|
+
title: '@general:terms.datetime.end-date',
|
|
253
|
+
groupId: 'period',
|
|
254
|
+
options: {
|
|
255
|
+
sort: { enabled: true },
|
|
256
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
257
|
+
},
|
|
258
|
+
schema: { dataType: 'date', interface: { type: AXPWidgetsCatalog.dateTime } },
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
name: 'isPrimary',
|
|
262
|
+
title: '@general:terms.status.states.is-primary',
|
|
263
|
+
groupId: 'additional',
|
|
264
|
+
options: {
|
|
265
|
+
sort: { enabled: true },
|
|
266
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
267
|
+
},
|
|
268
|
+
schema: { dataType: 'boolean', interface: { type: AXPWidgetsCatalog.toggle } },
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
name: 'notes',
|
|
272
|
+
title: '@general:terms.common.notes',
|
|
273
|
+
groupId: 'additional',
|
|
274
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.largeText } },
|
|
275
|
+
},
|
|
276
|
+
],
|
|
277
|
+
columns: [
|
|
278
|
+
{ name: 'employeeId', options: { dataPath: 'employee.person.fullName' } },
|
|
279
|
+
{ name: 'businessUnitId', options: { dataPath: 'businessUnit.title' } },
|
|
280
|
+
{ name: 'positionId', options: { dataPath: 'position.title' } },
|
|
281
|
+
{ name: 'startDate' },
|
|
282
|
+
{ name: 'endDate' },
|
|
283
|
+
{ name: 'isPrimary' },
|
|
284
|
+
],
|
|
285
|
+
interfaces: {
|
|
286
|
+
master: {
|
|
287
|
+
create: {
|
|
288
|
+
sections: [{ id: 'assignment' }, { id: 'period' }, { id: 'additional' }],
|
|
289
|
+
properties: [
|
|
290
|
+
{ name: 'businessUnitId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
291
|
+
{ name: 'positionId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
292
|
+
{ name: 'startDate', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
293
|
+
{ name: 'endDate', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
294
|
+
{ name: 'isPrimary', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
295
|
+
{ name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
296
|
+
],
|
|
297
|
+
},
|
|
298
|
+
update: {
|
|
299
|
+
sections: [{ id: 'assignment' }, { id: 'period' }, { id: 'additional' }],
|
|
300
|
+
properties: [
|
|
301
|
+
{ name: 'positionId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
302
|
+
{ name: 'businessUnitId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
303
|
+
{ name: 'startDate', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
304
|
+
{ name: 'endDate', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
305
|
+
{ name: 'isPrimary', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
306
|
+
{ name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
307
|
+
],
|
|
308
|
+
},
|
|
309
|
+
single: {
|
|
310
|
+
title: `{{position.title}}`,
|
|
311
|
+
sections: [{ id: 'assignment' }, { id: 'period' }, { id: 'additional' }],
|
|
312
|
+
properties: [
|
|
313
|
+
{ name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
314
|
+
{ name: 'positionId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
315
|
+
{ name: 'businessUnitId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
316
|
+
{ name: 'startDate', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
317
|
+
{ name: 'endDate', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
318
|
+
{ name: 'isPrimary', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
319
|
+
{ name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
320
|
+
],
|
|
321
|
+
actions: [
|
|
322
|
+
{
|
|
323
|
+
title: '@human-capital-management:position-assignments.entities.position-assignment.actions.revoke.title',
|
|
324
|
+
command: {
|
|
325
|
+
name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Revoke,
|
|
326
|
+
},
|
|
327
|
+
priority: 'secondary',
|
|
328
|
+
type: 'delete',
|
|
329
|
+
scope: AXPEntityCommandScope.Individual,
|
|
330
|
+
},
|
|
331
|
+
],
|
|
332
|
+
},
|
|
333
|
+
list: {
|
|
334
|
+
actions: [
|
|
335
|
+
{
|
|
336
|
+
title: '@human-capital-management:position-assignments.entities.position-assignment.actions.assign.title',
|
|
337
|
+
command: {
|
|
338
|
+
name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Assign,
|
|
339
|
+
},
|
|
340
|
+
priority: 'primary',
|
|
341
|
+
type: 'create',
|
|
342
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
title: '@human-capital-management:position-assignments.entities.position-assignment.actions.revoke.title',
|
|
346
|
+
command: {
|
|
347
|
+
name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Revoke,
|
|
348
|
+
},
|
|
349
|
+
priority: 'primary',
|
|
350
|
+
type: 'delete',
|
|
351
|
+
scope: AXPEntityCommandScope.Selected,
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
title: '@human-capital-management:position-assignments.entities.position-assignment.actions.revoke.title',
|
|
355
|
+
command: {
|
|
356
|
+
name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Revoke,
|
|
357
|
+
},
|
|
358
|
+
priority: 'secondary',
|
|
359
|
+
type: 'delete',
|
|
360
|
+
scope: AXPEntityCommandScope.Individual,
|
|
361
|
+
},
|
|
362
|
+
...entityMasterCrudActions({ create: false, delete: false, view: true, edit: false }),
|
|
363
|
+
],
|
|
364
|
+
views: [createAllQueryView({ sorts: [{ name: 'startDate', dir: 'desc' }] })],
|
|
365
|
+
},
|
|
366
|
+
},
|
|
367
|
+
},
|
|
368
|
+
};
|
|
369
|
+
return entityDef;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Generated bundle index. Do not edit.
|
|
374
|
+
*/
|
|
375
|
+
|
|
376
|
+
export { factoryPositionAssignment };
|
|
377
|
+
//# sourceMappingURL=acorex-platform-module-human-capital-management-client-contracts-entities-position-assignment.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-human-capital-management-client-contracts-entities-position-assignment.mjs","sources":["../../../../libs/modules/human-capital-management/contracts/src/commands.keys.ts","../../../../libs/modules/human-capital-management/contracts/src/root-config.ts","../../../../libs/modules/human-capital-management/contracts/src/entities/position-assignment/position-assignment.entity.ts","../../../../libs/modules/human-capital-management/contracts/src/acorex-platform-module-human-capital-management-client-contracts-entities-position-assignment.ts"],"sourcesContent":["export const AXPHumanCapitalManagementCommandKeys = {\n PositionAssignment: {\n Assign: 'HumanCapitalManagement.PositionAssignment:Assign',\n Revoke: 'HumanCapitalManagement.PositionAssignment:Revoke',\n },\n LifecycleEvent: {\n StartFlow: 'HumanCapitalManagement.LifecycleEvent:StartFlow',\n },\n LeaveRequest: {\n StartFlow: 'HumanCapitalManagement.LeaveRequest:StartFlow',\n },\n Profile: {\n EditPersonalInfo: 'HumanCapitalManagement.Profile:EditPersonalInfo',\n EditSignature: 'HumanCapitalManagement.Profile:EditSignature',\n },\n} as const;\n","const config = {\n i18n: 'human-capital-management',\n module: 'HumanCapitalManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'human-capital-management',\n name: config.module,\n title: '@human-capital-management:module.title',\n icon: 'fa-light fa-users',\n },\n entities: {\n employee: {\n name: 'Employee',\n source: `${config.module}.Employee`,\n title: '@human-capital-management:employees.entities.employee.title',\n titlePlural: '@human-capital-management:employees.entities.employee.plural',\n icon: 'fa-light fa-address-card',\n },\n employmentType: {\n name: 'EmploymentType',\n source: `${config.module}.EmploymentType`,\n title: '@human-capital-management:employment-types.entities.employment-type.title',\n titlePlural: '@human-capital-management:employment-types.entities.employment-type.plural',\n icon: 'fa-light fa-file-signature',\n },\n positionAssignment: {\n name: 'PositionAssignment',\n source: `${config.module}.PositionAssignment`,\n title: '@human-capital-management:position-assignments.entities.position-assignment.title',\n titlePlural: '@human-capital-management:position-assignments.entities.position-assignment.plural',\n icon: 'fa-light fa-user-tie-hair',\n },\n leaveType: {\n name: 'LeaveType',\n source: `${config.module}.LeaveType`,\n title: '@human-capital-management:leave-types.entities.leave-type.title',\n titlePlural: '@human-capital-management:leave-types.entities.leave-type.plural',\n icon: 'fa-light fa-calendar-days',\n },\n leaveRequest: {\n name: 'LeaveRequest',\n source: `${config.module}.LeaveRequest`,\n title: '@human-capital-management:leave-requests.entities.leave-request.title',\n titlePlural: '@human-capital-management:leave-requests.entities.leave-request.plural',\n icon: 'fa-light fa-plane-departure',\n },\n lifecycleEventType: {\n name: 'LifecycleEventType',\n source: `${config.module}.LifecycleEventType`,\n title: '@human-capital-management:lifecycle-event-types.entities.lifecycle-event-type.title',\n titlePlural: '@human-capital-management:lifecycle-event-types.entities.lifecycle-event-type.plural',\n icon: 'fa-light fa-diagram-next',\n },\n lifecycleEvent: {\n name: 'LifecycleEvent',\n source: `${config.module}.LifecycleEvent`,\n title: '@human-capital-management:lifecycle-events.entities.lifecycle-event.title',\n titlePlural: '@human-capital-management:lifecycle-events.entities.lifecycle-event.plural',\n icon: 'fa-light fa-clipboard-list-check',\n },\n },\n pages: {\n appointmentBoard: {\n path: 'Boards/ResourceAppointment',\n title: '@human-capital-management:leave-requests.menus.appointment-board.title',\n icon: 'fa-light fa-calendar-lines',\n },\n },\n queries: {\n dashboard: {\n employeesKpi: `${config.module}:Dashboard:EmployeesKpi`,\n },\n reports: {\n getHeadcountByDepartment: `${config.module}:Reports:GetHeadcountByDepartment`,\n getLeaveUsageByType: `${config.module}:Reports:GetLeaveUsageByType`,\n },\n },\n} as const;\n","import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityCommandScope, createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';\nimport { AXPHumanCapitalManagementCommandKeys } from '../../commands.keys';\nimport { RootConfig } from '../../root-config';\n\nexport async function factoryPositionAssignment(): Promise<AXPEntity | null> {\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.positionAssignment.name,\n icon: 'fa-light fa-user-tie-hair',\n plugins: [\n { name: 'history' },\n { name: 'lock' },\n { name: 'compare' },\n {\n name: 'status',\n options: {\n field: 'statusId',\n definition: 'human-capital-management.status.position-assignment',\n },\n },\n ],\n title: RootConfig.entities.positionAssignment.title,\n formats: {\n individual: RootConfig.entities.positionAssignment.title,\n plural: RootConfig.entities.positionAssignment.titlePlural,\n searchResult: { title: '{{ position.title }}', description: RootConfig.module.title },\n },\n relatedEntities: [],\n groups: [\n {\n id: 'assignment',\n title: '@human-capital-management:position-assignments.entities.position-assignment.groups.assignment',\n },\n { id: 'period', title: '@general:terms.datetime.period' },\n { id: 'additional', title: '@general:terms.interface.additional-info' },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'assignment',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'employeeId',\n title: '@general:terms.people.employee',\n groupId: 'assignment',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `HumanCapitalManagement.Employee`,\n textField: 'person.fullName',\n valueField: 'id',\n columns: ['person.fullName', 'employeeCode'],\n expose: [\n { source: 'id', target: 'employee.id' },\n { source: 'person.fullName', target: 'employee.person.fullName' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'businessUnitId',\n title: '@organization-management:business-units.terms.individual-title',\n groupId: 'assignment',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'object',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `OrganizationManagement.BusinessUnit`,\n textField: 'title',\n valueField: 'id',\n look: 'lookup',\n columns: ['code', 'title', { name: 'positionIds', visible: false }],\n expose: [\n { source: 'id', target: 'businessUnit.id' },\n { source: 'title', target: 'businessUnit.title' },\n { source: 'positionIds', target: 'businessUnit.positionIds' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'positionId',\n title: '@general:terms.organizations.position',\n groupId: 'assignment',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `OrganizationManagement.Position`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n columns: ['title'],\n disabled: '{{ !context.eval(\"businessUnitId\") }}',\n expose: [\n { source: 'id', target: 'position.id' },\n { source: 'title', target: 'position.title' },\n ],\n filter: {\n logic: 'and',\n filters: [\n {\n field: 'id',\n operator: { type: 'in' },\n value: '{{ context.eval(\"businessUnit.positionIds\") || [] }}',\n },\n ],\n },\n },\n triggers: [\n {\n event: \"{{ events.context('businessUnitId') }}\",\n action: `{{ widget.setValue(null); context.set('position.id', null); context.set('position.title', null); widget.refresh(); }}`,\n },\n ],\n },\n },\n validations: [{ rule: 'required' }],\n },\n\n {\n name: 'startDate',\n title: '@general:terms.datetime.start-date',\n groupId: 'period',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: { dataType: 'date', interface: { type: AXPWidgetsCatalog.dateTime } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'endDate',\n title: '@general:terms.datetime.end-date',\n groupId: 'period',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: { dataType: 'date', interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'isPrimary',\n title: '@general:terms.status.states.is-primary',\n groupId: 'additional',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: { dataType: 'boolean', interface: { type: AXPWidgetsCatalog.toggle } },\n },\n {\n name: 'notes',\n title: '@general:terms.common.notes',\n groupId: 'additional',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.largeText } },\n },\n ],\n columns: [\n { name: 'employeeId', options: { dataPath: 'employee.person.fullName' } },\n { name: 'businessUnitId', options: { dataPath: 'businessUnit.title' } },\n { name: 'positionId', options: { dataPath: 'position.title' } },\n { name: 'startDate' },\n { name: 'endDate' },\n { name: 'isPrimary' },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'assignment' }, { id: 'period' }, { id: 'additional' }],\n properties: [\n { name: 'businessUnitId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'positionId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'startDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'endDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'isPrimary', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n update: {\n sections: [{ id: 'assignment' }, { id: 'period' }, { id: 'additional' }],\n properties: [\n { name: 'positionId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'businessUnitId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'startDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'endDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'isPrimary', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n single: {\n title: `{{position.title}}`,\n sections: [{ id: 'assignment' }, { id: 'period' }, { id: 'additional' }],\n properties: [\n { name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'positionId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'businessUnitId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'startDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'endDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'isPrimary', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: [\n {\n title: '@human-capital-management:position-assignments.entities.position-assignment.actions.revoke.title',\n command: {\n name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Revoke,\n },\n priority: 'secondary',\n type: 'delete',\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n },\n list: {\n actions: [\n {\n title: '@human-capital-management:position-assignments.entities.position-assignment.actions.assign.title',\n command: {\n name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Assign,\n },\n priority: 'primary',\n type: 'create',\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n title: '@human-capital-management:position-assignments.entities.position-assignment.actions.revoke.title',\n command: {\n name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Revoke,\n },\n priority: 'primary',\n type: 'delete',\n scope: AXPEntityCommandScope.Selected,\n },\n {\n title: '@human-capital-management:position-assignments.entities.position-assignment.actions.revoke.title',\n command: {\n name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Revoke,\n },\n priority: 'secondary',\n type: 'delete',\n scope: AXPEntityCommandScope.Individual,\n },\n ...entityMasterCrudActions({ create: false, delete: false, view: true, edit: false }),\n ],\n views: [createAllQueryView({ sorts: [{ name: 'startDate', dir: 'desc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.position-assignment';\n"],"names":[],"mappings":";;;AAAO,MAAM,oCAAoC,GAAG;AAClD,IAAA,kBAAkB,EAAE;AAClB,QAAA,MAAM,EAAE,kDAAkD;AAC1D,QAAA,MAAM,EAAE,kDAAkD;AAC3D,KAAA;AACD,IAAA,cAAc,EAAE;AACd,QAAA,SAAS,EAAE,iDAAiD;AAC7D,KAAA;AACD,IAAA,YAAY,EAAE;AACZ,QAAA,SAAS,EAAE,+CAA+C;AAC3D,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,gBAAgB,EAAE,iDAAiD;AACnE,QAAA,aAAa,EAAE,8CAA8C;AAC9D,KAAA;CACO;;ACfV,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,0BAA0B;AAChC,IAAA,MAAM,EAAE,wBAAwB;CACjC;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,0BAA0B;QACjC,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,wCAAwC;AAC/C,QAAA,IAAI,EAAE,mBAAmB;AAC1B,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,MAAM,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,SAAA,CAAW;AACnC,YAAA,KAAK,EAAE,6DAA6D;AACpE,YAAA,WAAW,EAAE,8DAA8D;AAC3E,YAAA,IAAI,EAAE,0BAA0B;AACjC,SAAA;AACD,QAAA,cAAc,EAAE;AACd,YAAA,IAAI,EAAE,gBAAgB;AACtB,YAAA,MAAM,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,eAAA,CAAiB;AACzC,YAAA,KAAK,EAAE,2EAA2E;AAClF,YAAA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AAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;ACpRA;;AAEG;;;;"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
const config = {
|
|
2
|
+
i18n: 'human-capital-management',
|
|
3
|
+
module: 'HumanCapitalManagement',
|
|
4
|
+
};
|
|
5
|
+
const RootConfig = {
|
|
6
|
+
config,
|
|
7
|
+
module: {
|
|
8
|
+
route: 'human-capital-management',
|
|
9
|
+
name: config.module,
|
|
10
|
+
title: '@human-capital-management:module.title',
|
|
11
|
+
icon: 'fa-light fa-users',
|
|
12
|
+
},
|
|
13
|
+
entities: {
|
|
14
|
+
employee: {
|
|
15
|
+
name: 'Employee',
|
|
16
|
+
source: `${config.module}.Employee`,
|
|
17
|
+
title: '@human-capital-management:employees.entities.employee.title',
|
|
18
|
+
titlePlural: '@human-capital-management:employees.entities.employee.plural',
|
|
19
|
+
icon: 'fa-light fa-address-card',
|
|
20
|
+
},
|
|
21
|
+
employmentType: {
|
|
22
|
+
name: 'EmploymentType',
|
|
23
|
+
source: `${config.module}.EmploymentType`,
|
|
24
|
+
title: '@human-capital-management:employment-types.entities.employment-type.title',
|
|
25
|
+
titlePlural: '@human-capital-management:employment-types.entities.employment-type.plural',
|
|
26
|
+
icon: 'fa-light fa-file-signature',
|
|
27
|
+
},
|
|
28
|
+
positionAssignment: {
|
|
29
|
+
name: 'PositionAssignment',
|
|
30
|
+
source: `${config.module}.PositionAssignment`,
|
|
31
|
+
title: '@human-capital-management:position-assignments.entities.position-assignment.title',
|
|
32
|
+
titlePlural: '@human-capital-management:position-assignments.entities.position-assignment.plural',
|
|
33
|
+
icon: 'fa-light fa-user-tie-hair',
|
|
34
|
+
},
|
|
35
|
+
leaveType: {
|
|
36
|
+
name: 'LeaveType',
|
|
37
|
+
source: `${config.module}.LeaveType`,
|
|
38
|
+
title: '@human-capital-management:leave-types.entities.leave-type.title',
|
|
39
|
+
titlePlural: '@human-capital-management:leave-types.entities.leave-type.plural',
|
|
40
|
+
icon: 'fa-light fa-calendar-days',
|
|
41
|
+
},
|
|
42
|
+
leaveRequest: {
|
|
43
|
+
name: 'LeaveRequest',
|
|
44
|
+
source: `${config.module}.LeaveRequest`,
|
|
45
|
+
title: '@human-capital-management:leave-requests.entities.leave-request.title',
|
|
46
|
+
titlePlural: '@human-capital-management:leave-requests.entities.leave-request.plural',
|
|
47
|
+
icon: 'fa-light fa-plane-departure',
|
|
48
|
+
},
|
|
49
|
+
lifecycleEventType: {
|
|
50
|
+
name: 'LifecycleEventType',
|
|
51
|
+
source: `${config.module}.LifecycleEventType`,
|
|
52
|
+
title: '@human-capital-management:lifecycle-event-types.entities.lifecycle-event-type.title',
|
|
53
|
+
titlePlural: '@human-capital-management:lifecycle-event-types.entities.lifecycle-event-type.plural',
|
|
54
|
+
icon: 'fa-light fa-diagram-next',
|
|
55
|
+
},
|
|
56
|
+
lifecycleEvent: {
|
|
57
|
+
name: 'LifecycleEvent',
|
|
58
|
+
source: `${config.module}.LifecycleEvent`,
|
|
59
|
+
title: '@human-capital-management:lifecycle-events.entities.lifecycle-event.title',
|
|
60
|
+
titlePlural: '@human-capital-management:lifecycle-events.entities.lifecycle-event.plural',
|
|
61
|
+
icon: 'fa-light fa-clipboard-list-check',
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
pages: {
|
|
65
|
+
appointmentBoard: {
|
|
66
|
+
path: 'Boards/ResourceAppointment',
|
|
67
|
+
title: '@human-capital-management:leave-requests.menus.appointment-board.title',
|
|
68
|
+
icon: 'fa-light fa-calendar-lines',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
queries: {
|
|
72
|
+
dashboard: {
|
|
73
|
+
employeesKpi: `${config.module}:Dashboard:EmployeesKpi`,
|
|
74
|
+
},
|
|
75
|
+
reports: {
|
|
76
|
+
getHeadcountByDepartment: `${config.module}:Reports:GetHeadcountByDepartment`,
|
|
77
|
+
getLeaveUsageByType: `${config.module}:Reports:GetLeaveUsageByType`,
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
//#region ----- Imports -----
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region ----- Local entity catalog -----
|
|
85
|
+
/**
|
|
86
|
+
* Lazy per-entity layout factories. Do not re-export from the contracts barrel
|
|
87
|
+
* so RootConfig imports stay light. Server seed and client `local-entities`
|
|
88
|
+
* consume this catalog explicitly.
|
|
89
|
+
*/
|
|
90
|
+
const humanCapitalManagementLocalEntityCatalog = {
|
|
91
|
+
moduleName: RootConfig.module.name,
|
|
92
|
+
loaders: {
|
|
93
|
+
[RootConfig.entities.employee.name]: () => import('./acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employee.entity-DkVdcMBo.mjs').then((m) => m.factoryEmployee()),
|
|
94
|
+
[RootConfig.entities.employmentType.name]: () => import('./acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employment-type.entity-DtYMx-Fh.mjs').then((m) => m.factoryEmploymentType()),
|
|
95
|
+
[RootConfig.entities.leaveRequest.name]: () => import('./acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-request.entity-0NDmiYk0.mjs').then((m) => m.factoryLeaveRequest()),
|
|
96
|
+
[RootConfig.entities.leaveType.name]: () => import('./acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-type.entity-DWkv-dnA.mjs').then((m) => m.factoryLeaveType()),
|
|
97
|
+
[RootConfig.entities.lifecycleEvent.name]: () => import('./acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event.entity-Dp-_0o-1.mjs').then((m) => m.factoryLifecycleEvent()),
|
|
98
|
+
[RootConfig.entities.lifecycleEventType.name]: () => import('./acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event-type.entity-CDfVNrc0.mjs').then((m) => m.factoryLifecycleEventType()),
|
|
99
|
+
[RootConfig.entities.positionAssignment.name]: () => import('./acorex-platform-module-human-capital-management-client-contracts-entity-catalog-position-assignment.entity-rQe7-CDe.mjs').then((m) => m.factoryPositionAssignment()),
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
//#endregion
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Generated bundle index. Do not edit.
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
export { RootConfig as R, humanCapitalManagementLocalEntityCatalog as h };
|
|
109
|
+
//# sourceMappingURL=acorex-platform-module-human-capital-management-client-contracts-entity-catalog-acorex-platform-module-human-capital-management-client-contracts-entity-catalog-YSqg0InM.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-human-capital-management-client-contracts-entity-catalog-acorex-platform-module-human-capital-management-client-contracts-entity-catalog-YSqg0InM.mjs","sources":["../../../../libs/modules/human-capital-management/contracts/src/root-config.ts","../../../../libs/modules/human-capital-management/contracts/src/entity-catalog.ts","../../../../libs/modules/human-capital-management/contracts/src/acorex-platform-module-human-capital-management-client-contracts-entity-catalog.ts"],"sourcesContent":["const config = {\n i18n: 'human-capital-management',\n module: 'HumanCapitalManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'human-capital-management',\n name: config.module,\n title: '@human-capital-management:module.title',\n icon: 'fa-light fa-users',\n },\n entities: {\n employee: {\n name: 'Employee',\n source: `${config.module}.Employee`,\n title: '@human-capital-management:employees.entities.employee.title',\n titlePlural: '@human-capital-management:employees.entities.employee.plural',\n icon: 'fa-light fa-address-card',\n },\n employmentType: {\n name: 'EmploymentType',\n source: `${config.module}.EmploymentType`,\n title: '@human-capital-management:employment-types.entities.employment-type.title',\n titlePlural: '@human-capital-management:employment-types.entities.employment-type.plural',\n icon: 'fa-light fa-file-signature',\n },\n positionAssignment: {\n name: 'PositionAssignment',\n source: `${config.module}.PositionAssignment`,\n title: '@human-capital-management:position-assignments.entities.position-assignment.title',\n titlePlural: '@human-capital-management:position-assignments.entities.position-assignment.plural',\n icon: 'fa-light fa-user-tie-hair',\n },\n leaveType: {\n name: 'LeaveType',\n source: `${config.module}.LeaveType`,\n title: '@human-capital-management:leave-types.entities.leave-type.title',\n titlePlural: '@human-capital-management:leave-types.entities.leave-type.plural',\n icon: 'fa-light fa-calendar-days',\n },\n leaveRequest: {\n name: 'LeaveRequest',\n source: `${config.module}.LeaveRequest`,\n title: '@human-capital-management:leave-requests.entities.leave-request.title',\n titlePlural: '@human-capital-management:leave-requests.entities.leave-request.plural',\n icon: 'fa-light fa-plane-departure',\n },\n lifecycleEventType: {\n name: 'LifecycleEventType',\n source: `${config.module}.LifecycleEventType`,\n title: '@human-capital-management:lifecycle-event-types.entities.lifecycle-event-type.title',\n titlePlural: '@human-capital-management:lifecycle-event-types.entities.lifecycle-event-type.plural',\n icon: 'fa-light fa-diagram-next',\n },\n lifecycleEvent: {\n name: 'LifecycleEvent',\n source: `${config.module}.LifecycleEvent`,\n title: '@human-capital-management:lifecycle-events.entities.lifecycle-event.title',\n titlePlural: '@human-capital-management:lifecycle-events.entities.lifecycle-event.plural',\n icon: 'fa-light fa-clipboard-list-check',\n },\n },\n pages: {\n appointmentBoard: {\n path: 'Boards/ResourceAppointment',\n title: '@human-capital-management:leave-requests.menus.appointment-board.title',\n icon: 'fa-light fa-calendar-lines',\n },\n },\n queries: {\n dashboard: {\n employeesKpi: `${config.module}:Dashboard:EmployeesKpi`,\n },\n reports: {\n getHeadcountByDepartment: `${config.module}:Reports:GetHeadcountByDepartment`,\n getLeaveUsageByType: `${config.module}:Reports:GetLeaveUsageByType`,\n },\n },\n} as const;\n","//#region ----- Imports -----\n\nimport type { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ----- Local entity catalog -----\n\n/**\n * Lazy per-entity layout factories. Do not re-export from the contracts barrel\n * so RootConfig imports stay light. Server seed and client `local-entities`\n * consume this catalog explicitly.\n */\nexport const humanCapitalManagementLocalEntityCatalog: AXPLocalEntityCatalog = {\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.employee.name]: () =>\n import('./entities/employee/employee.entity.js').then((m) => m.factoryEmployee()),\n [RootConfig.entities.employmentType.name]: () =>\n import('./entities/employment-type/employment-type.entity.js').then((m) => m.factoryEmploymentType()),\n [RootConfig.entities.leaveRequest.name]: () =>\n import('./entities/leave-request/leave-request.entity.js').then((m) => m.factoryLeaveRequest()),\n [RootConfig.entities.leaveType.name]: () =>\n import('./entities/leave-type/leave-type.entity.js').then((m) => m.factoryLeaveType()),\n [RootConfig.entities.lifecycleEvent.name]: () =>\n import('./entities/lifecycle-event/lifecycle-event.entity.js').then((m) => m.factoryLifecycleEvent()),\n [RootConfig.entities.lifecycleEventType.name]: () =>\n import('./entities/lifecycle-event-type/lifecycle-event-type.entity.js').then((m) => m.factoryLifecycleEventType()),\n [RootConfig.entities.positionAssignment.name]: () =>\n import('./entities/position-assignment/position-assignment.entity.js').then((m) => m.factoryPositionAssignment()),\n },\n};\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-catalog';\n"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,0BAA0B;AAChC,IAAA,MAAM,EAAE,wBAAwB;CACjC;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,0BAA0B;QACjC,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,wCAAwC;AAC/C,QAAA,IAAI,EAAE,mBAAmB;AAC1B,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,MAAM,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,SAAA,CAAW;AACnC,YAAA,KAAK,EAAE,6DAA6D;AACpE,YAAA,WAAW,EAAE,8DAA8D;AAC3E,YAAA,IAAI,EAAE,0BAA0B;AACjC,SAAA;AACD,QAAA,cAAc,EAAE;AACd,YAA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AkD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,mBAAmB,EAAE,CAAC;AACjG,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,GAAG,MACpC,OAAO,kHAA4C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,gBAAgB,EAAE,CAAC;AACxF,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,GAAG,MACzC,OAAO,uHAAsD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,qBAAqB,EAAE,CAAC;AACvG,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI,GAAG,MAC7C,OAAO,4HAAgE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAyB,EAAE,CAAC;AACrH,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI,GAAG,MAC7C,OAAO,2HAA8D,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAyB,EAAE,CAAC;AACpH,KAAA;;AAGH;;ACnCA;;AAEG;;;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** HR catalog scope for questionnaires, question bank items, and workflow definitions. */
|
|
2
|
+
const HCM_CATALOG_SCOPE_HR = 'human-capital-management.hr';
|
|
3
|
+
|
|
4
|
+
export { HCM_CATALOG_SCOPE_HR as H };
|
|
5
|
+
//# sourceMappingURL=acorex-platform-module-human-capital-management-client-contracts-entity-catalog-catalog-scope.keys-D8MsCaj5.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-human-capital-management-client-contracts-entity-catalog-catalog-scope.keys-D8MsCaj5.mjs","sources":["../../../../libs/modules/human-capital-management/contracts/src/catalog-scope.keys.ts"],"sourcesContent":["/** HR catalog scope for questionnaires, question bank items, and workflow definitions. */\nexport const HCM_CATALOG_SCOPE_HR = 'human-capital-management.hr';\n"],"names":[],"mappings":"AAAA;AACO,MAAM,oBAAoB,GAAG;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const AXPHumanCapitalManagementCommandKeys = {
|
|
2
|
+
PositionAssignment: {
|
|
3
|
+
Assign: 'HumanCapitalManagement.PositionAssignment:Assign',
|
|
4
|
+
Revoke: 'HumanCapitalManagement.PositionAssignment:Revoke',
|
|
5
|
+
},
|
|
6
|
+
LifecycleEvent: {
|
|
7
|
+
StartFlow: 'HumanCapitalManagement.LifecycleEvent:StartFlow',
|
|
8
|
+
},
|
|
9
|
+
LeaveRequest: {
|
|
10
|
+
StartFlow: 'HumanCapitalManagement.LeaveRequest:StartFlow',
|
|
11
|
+
},
|
|
12
|
+
Profile: {
|
|
13
|
+
EditPersonalInfo: 'HumanCapitalManagement.Profile:EditPersonalInfo',
|
|
14
|
+
EditSignature: 'HumanCapitalManagement.Profile:EditSignature',
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { AXPHumanCapitalManagementCommandKeys as A };
|
|
19
|
+
//# sourceMappingURL=acorex-platform-module-human-capital-management-client-contracts-entity-catalog-commands.keys-B5rEwAkf.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-human-capital-management-client-contracts-entity-catalog-commands.keys-B5rEwAkf.mjs","sources":["../../../../libs/modules/human-capital-management/contracts/src/commands.keys.ts"],"sourcesContent":["export const AXPHumanCapitalManagementCommandKeys = {\n PositionAssignment: {\n Assign: 'HumanCapitalManagement.PositionAssignment:Assign',\n Revoke: 'HumanCapitalManagement.PositionAssignment:Revoke',\n },\n LifecycleEvent: {\n StartFlow: 'HumanCapitalManagement.LifecycleEvent:StartFlow',\n },\n LeaveRequest: {\n StartFlow: 'HumanCapitalManagement.LeaveRequest:StartFlow',\n },\n Profile: {\n EditPersonalInfo: 'HumanCapitalManagement.Profile:EditPersonalInfo',\n EditSignature: 'HumanCapitalManagement.Profile:EditSignature',\n },\n} as const;\n"],"names":[],"mappings":"AAAO,MAAM,oCAAoC,GAAG;AAClD,IAAA,kBAAkB,EAAE;AAClB,QAAA,MAAM,EAAE,kDAAkD;AAC1D,QAAA,MAAM,EAAE,kDAAkD;AAC3D,KAAA;AACD,IAAA,cAAc,EAAE;AACd,QAAA,SAAS,EAAE,iDAAiD;AAC7D,KAAA;AACD,IAAA,YAAY,EAAE;AACZ,QAAA,SAAS,EAAE,+CAA+C;AAC3D,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,gBAAgB,EAAE,iDAAiD;AACnE,QAAA,aAAa,EAAE,8CAA8C;AAC9D,KAAA;;;;;"}
|