@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.
Files changed (48) hide show
  1. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-employee.mjs +559 -0
  2. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-employee.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-employment-type.mjs +182 -0
  4. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-employment-type.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-leave-request.mjs +374 -0
  6. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-leave-request.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-leave-type.mjs +182 -0
  8. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-leave-type.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-lifecycle-event-type.mjs +189 -0
  10. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-lifecycle-event-type.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-lifecycle-event.mjs +307 -0
  12. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-lifecycle-event.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-position-assignment.mjs +377 -0
  14. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-position-assignment.mjs.map +1 -0
  15. 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
  16. 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
  17. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-catalog-scope.keys-D8MsCaj5.mjs +5 -0
  18. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-catalog-scope.keys-D8MsCaj5.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-commands.keys-B5rEwAkf.mjs +19 -0
  20. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-commands.keys-B5rEwAkf.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employee.entity-DkVdcMBo.mjs +459 -0
  22. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employee.entity-DkVdcMBo.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employment-type.entity-DtYMx-Fh.mjs +98 -0
  24. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employment-type.entity-DtYMx-Fh.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-request.entity-0NDmiYk0.mjs +290 -0
  26. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-request.entity-0NDmiYk0.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-type.entity-DWkv-dnA.mjs +96 -0
  28. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-type.entity-DWkv-dnA.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event-type.entity-CDfVNrc0.mjs +103 -0
  30. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event-type.entity-CDfVNrc0.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event.entity-Dp-_0o-1.mjs +223 -0
  32. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event.entity-Dp-_0o-1.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-position-assignment.entity-rQe7-CDe.mjs +277 -0
  34. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-position-assignment.entity-rQe7-CDe.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog.mjs +2 -0
  36. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-human-capital-management-client-local-entities.mjs +35 -0
  38. package/fesm2022/acorex-platform-module-human-capital-management-client-local-entities.mjs.map +1 -0
  39. package/package.json +38 -2
  40. package/types/acorex-platform-module-human-capital-management-client-contracts-entities-employee.d.ts +5 -0
  41. package/types/acorex-platform-module-human-capital-management-client-contracts-entities-employment-type.d.ts +5 -0
  42. package/types/acorex-platform-module-human-capital-management-client-contracts-entities-leave-request.d.ts +5 -0
  43. package/types/acorex-platform-module-human-capital-management-client-contracts-entities-leave-type.d.ts +5 -0
  44. package/types/acorex-platform-module-human-capital-management-client-contracts-entities-lifecycle-event-type.d.ts +5 -0
  45. package/types/acorex-platform-module-human-capital-management-client-contracts-entities-lifecycle-event.d.ts +5 -0
  46. package/types/acorex-platform-module-human-capital-management-client-contracts-entities-position-assignment.d.ts +5 -0
  47. package/types/acorex-platform-module-human-capital-management-client-contracts-entity-catalog.d.ts +10 -0
  48. package/types/acorex-platform-module-human-capital-management-client-local-entities.d.ts +12 -0
@@ -0,0 +1,459 @@
1
+ import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions, AXPEntityCommandScope, entityDetailsCrudActions, entityDetailsSimpleCondition } from '@acorex-platform/framework-shared/entity';
3
+ import { A as AXPHumanCapitalManagementCommandKeys } from './acorex-platform-module-human-capital-management-client-contracts-entity-catalog-commands.keys-B5rEwAkf.mjs';
4
+ import { R as RootConfig } from './acorex-platform-module-human-capital-management-client-contracts-entity-catalog-acorex-platform-module-human-capital-management-client-contracts-entity-catalog-YSqg0InM.mjs';
5
+
6
+ async function factoryEmployee() {
7
+ const entityDef = {
8
+ module: RootConfig.module.name,
9
+ name: RootConfig.entities.employee.name,
10
+ title: RootConfig.entities.employee.title,
11
+ icon: 'fa-light fa-building',
12
+ formats: {
13
+ individual: RootConfig.entities.employee.title,
14
+ plural: RootConfig.entities.employee.titlePlural,
15
+ displayName: '@general:terms.common.profile',
16
+ searchResult: {
17
+ title: '{{ context.eval("person.fullName") || (context.eval("person.firstName") + " " + context.eval("person.lastName")) }}',
18
+ description: RootConfig.module.title,
19
+ },
20
+ },
21
+ plugins: [
22
+ { name: 'identifier', options: { field: 'employeeCode', rule: 'employee-code' } },
23
+ {
24
+ name: 'status',
25
+ options: {
26
+ definition: 'human-capital-management.status.employee',
27
+ field: 'statusId',
28
+ generate: { views: { enabled: true } },
29
+ },
30
+ },
31
+ { name: 'history' },
32
+ { name: 'lock' },
33
+ { name: 'compare' },
34
+ {
35
+ name: 'documents',
36
+ options: {
37
+ documentTypeNames: ['certificate', 'licence', 'form'],
38
+ },
39
+ },
40
+ { name: 'reports' },
41
+ ],
42
+ relatedEntities: [
43
+ {
44
+ entity: `PersonCore.Person`,
45
+ title: 'Personal Information',
46
+ conditions: [{ name: 'id', operator: { type: 'equal' }, value: '{{ context.eval("personId") }}' }],
47
+ layout: { type: 'merge-detail' },
48
+ persistence: {
49
+ dataPath: 'person',
50
+ strategy: 'referenced',
51
+ idField: 'personId',
52
+ },
53
+ },
54
+ {
55
+ entity: `${RootConfig.module.name}.${RootConfig.entities.leaveRequest.name}`,
56
+ title: RootConfig.entities.leaveRequest.titlePlural,
57
+ columns: ['leaveTypeId', 'startDate', 'endDate', 'durationDays', 'statusId', 'reason'],
58
+ conditions: [entityDetailsSimpleCondition('employeeId')],
59
+ persistence: { foreignKeyField: 'employeeId' },
60
+ excludeProperties: ['employeeId'],
61
+ actions: [
62
+ {
63
+ title: '@human-capital-management:employees.entities.employee.related-entities.leave-request-start.title',
64
+ icon: 'fa-light fa-play',
65
+ command: {
66
+ name: 'Entity:Create',
67
+ options: {
68
+ process: {
69
+ redirect: false,
70
+ canCreateNewOne: true,
71
+ data: {},
72
+ },
73
+ },
74
+ },
75
+ priority: 'primary',
76
+ type: 'create',
77
+ scope: AXPEntityCommandScope.TypeLevel,
78
+ items: `{{ await ${RootConfig.module.name}.LeaveRequests() }}`,
79
+ },
80
+ {
81
+ title: '@general:actions.detail.title',
82
+ icon: 'fa-light fa-eye',
83
+ command: 'Entity:View',
84
+ priority: 'secondary',
85
+ type: 'view',
86
+ scope: AXPEntityCommandScope.Individual,
87
+ default: true,
88
+ },
89
+ ...entityDetailsCrudActions('employeeId', { create: false, edit: false, delete: false, view: false }),
90
+ ],
91
+ layout: { type: 'page-list', position: 'after', order: 4 },
92
+ },
93
+ {
94
+ entity: `${RootConfig.module.name}.${RootConfig.entities.lifecycleEvent.name}`,
95
+ title: '@human-capital-management:employees.entities.employee.related-entities.lifecycle-events',
96
+ columns: ['eventTypeId', 'effectiveDate', 'assignedToUserId', 'statusId', 'attachments'],
97
+ conditions: [entityDetailsSimpleCondition('employeeId')],
98
+ persistence: { foreignKeyField: 'employeeId' },
99
+ excludeProperties: ['employeeId'],
100
+ actions: [
101
+ {
102
+ title: '@human-capital-management:employees.entities.employee.related-entities.lifecycle-event-start.title',
103
+ icon: 'fa-light fa-play',
104
+ command: {
105
+ name: 'Entity:Create',
106
+ options: {
107
+ process: {
108
+ redirect: false,
109
+ canCreateNewOne: true,
110
+ data: {},
111
+ },
112
+ },
113
+ },
114
+ priority: 'primary',
115
+ type: 'create',
116
+ scope: AXPEntityCommandScope.TypeLevel,
117
+ items: `{{ await ${RootConfig.module.name}.LifecycleEvents() }}`,
118
+ },
119
+ ...entityDetailsCrudActions('employeeId', { create: false, edit: false, delete: false, view: false }),
120
+ ],
121
+ layout: { type: 'page-list', position: 'after', order: 5 },
122
+ },
123
+ {
124
+ entity: `${RootConfig.module.name}.${RootConfig.entities.positionAssignment.name}`,
125
+ title: '@human-capital-management:employees.entities.employee.related-entities.positions',
126
+ columns: ['positionId', 'businessUnitId', 'startDate', 'endDate', 'statusId', 'isPrimary'],
127
+ conditions: [entityDetailsSimpleCondition('employeeId')],
128
+ persistence: { foreignKeyField: 'employeeId' },
129
+ excludeProperties: ['employeeId'],
130
+ appearOn: {
131
+ create: true,
132
+ },
133
+ actions: [
134
+ {
135
+ title: '@human-capital-management:position-assignments.entities.position-assignment.actions.assign.title',
136
+ command: {
137
+ name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Assign,
138
+ options: {
139
+ process: {
140
+ data: {
141
+ employeeId: '{{ context.eval("id") }}',
142
+ },
143
+ },
144
+ },
145
+ },
146
+ priority: 'primary',
147
+ type: 'create',
148
+ scope: AXPEntityCommandScope.TypeLevel,
149
+ },
150
+ ...entityDetailsCrudActions('employeeId', { create: false, delete: false, view: true, edit: false }),
151
+ ],
152
+ layout: { type: 'page-list', position: 'after', order: 3 },
153
+ },
154
+ ],
155
+ groups: [
156
+ {
157
+ id: 'organizationalStructure',
158
+ title: '@human-capital-management:employees.entities.employee.groups.organizational-structure',
159
+ },
160
+ {
161
+ id: 'employmentProfile',
162
+ title: '@human-capital-management:employees.entities.employee.groups.employment-profile',
163
+ },
164
+ {
165
+ id: 'signature',
166
+ title: '@human-capital-management:employees.entities.employee.groups.signature',
167
+ icon: 'fa-light fa-signature',
168
+ },
169
+ ],
170
+ properties: [
171
+ {
172
+ name: 'id',
173
+ title: 'ID',
174
+ groupId: 'personalInformation',
175
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
176
+ },
177
+ {
178
+ name: 'employeeCode',
179
+ title: '@human-capital-management:employees.entities.employee.fields.employee-code',
180
+ groupId: 'employmentProfile',
181
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },
182
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
183
+ validations: [{ rule: 'required' }],
184
+ },
185
+ {
186
+ name: 'employmentTypeId',
187
+ title: '@human-capital-management:employees.entities.employee.fields.employment-type-id',
188
+ groupId: 'employmentProfile',
189
+ schema: {
190
+ dataType: 'string',
191
+ interface: {
192
+ type: AXPWidgetsList.Editors.LookupBox,
193
+ options: {
194
+ entity: `${RootConfig.module.name}.${RootConfig.entities.employmentType.name}`,
195
+ textField: 'title',
196
+ valueField: 'id',
197
+ look: 'select',
198
+ create: {
199
+ enable: true,
200
+ },
201
+ expose: [
202
+ { source: 'id', target: 'employmentType.id' },
203
+ { source: 'title', target: 'employmentType.title' },
204
+ ],
205
+ },
206
+ },
207
+ },
208
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
209
+ validations: [{ rule: 'required' }],
210
+ },
211
+ {
212
+ name: 'jobDefinitionId',
213
+ title: '@human-capital-management:employees.entities.employee.fields.job-definition',
214
+ groupId: 'employmentProfile',
215
+ schema: {
216
+ dataType: 'string',
217
+ interface: {
218
+ type: AXPWidgetsList.Editors.LookupBox,
219
+ options: {
220
+ entity: 'OrganizationManagement.JobDefinition',
221
+ textField: 'title',
222
+ valueField: 'id',
223
+ look: 'select',
224
+ expose: [
225
+ { source: 'id', target: 'jobDefinition.id' },
226
+ { source: 'title', target: 'jobDefinition.title' },
227
+ ],
228
+ },
229
+ },
230
+ },
231
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
232
+ },
233
+ {
234
+ name: 'hireDate',
235
+ title: '@human-capital-management:employees.entities.employee.fields.hire-date',
236
+ groupId: 'employmentProfile',
237
+ schema: {
238
+ dataType: 'date',
239
+ interface: {
240
+ type: AXPWidgetsCatalog.dateTime,
241
+ options: {
242
+ filterUi: 'simple',
243
+ },
244
+ },
245
+ },
246
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
247
+ },
248
+ {
249
+ name: 'signature',
250
+ title: '@human-capital-management:employees.entities.employee.fields.signature',
251
+ groupId: 'signature',
252
+ schema: {
253
+ dataType: 'string',
254
+ interface: {
255
+ type: AXPWidgetsList.Editors.SignatureBox,
256
+ },
257
+ },
258
+ },
259
+ {
260
+ name: 'activePrimaryBusinessUnitId',
261
+ title: '@human-capital-management:employees.entities.employee.fields.primary-business-unit',
262
+ description: '@human-capital-management:employees.entities.employee.fields.primary-business-unit-description',
263
+ groupId: 'organizationalStructure',
264
+ schema: {
265
+ dataType: 'string',
266
+ nullable: true,
267
+ readonly: true,
268
+ interface: {
269
+ type: AXPWidgetsList.Editors.LookupBox,
270
+ options: {
271
+ entity: `OrganizationManagement.BusinessUnit`,
272
+ textField: 'title',
273
+ valueField: 'id',
274
+ look: 'select',
275
+ placeholder: '@human-capital-management:employees.entities.employee.fields.primary-business-unit-placeholder',
276
+ disabled: true,
277
+ readonly: true,
278
+ expose: [
279
+ { source: 'id', target: 'activePrimaryBusinessUnit.id' },
280
+ { source: 'title', target: 'activePrimaryBusinessUnit.title' },
281
+ ],
282
+ },
283
+ },
284
+ },
285
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
286
+ },
287
+ {
288
+ name: 'activePrimaryPositionId',
289
+ title: '@human-capital-management:employees.entities.employee.fields.primary-position',
290
+ description: '@human-capital-management:employees.entities.employee.fields.primary-position-description',
291
+ groupId: 'organizationalStructure',
292
+ schema: {
293
+ dataType: 'string',
294
+ nullable: true,
295
+ readonly: true,
296
+ interface: {
297
+ type: AXPWidgetsList.Editors.LookupBox,
298
+ options: {
299
+ entity: `OrganizationManagement.Position`,
300
+ textField: 'title',
301
+ valueField: 'id',
302
+ look: 'select',
303
+ placeholder: '@human-capital-management:employees.entities.employee.fields.primary-position-placeholder',
304
+ disabled: true,
305
+ readonly: true,
306
+ expose: [
307
+ { source: 'id', target: 'activePrimaryPosition.id' },
308
+ { source: 'title', target: 'activePrimaryPosition.title' },
309
+ ],
310
+ },
311
+ },
312
+ },
313
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
314
+ },
315
+ {
316
+ name: 'managerId',
317
+ title: '@human-capital-management:employees.entities.employee.fields.manager-id',
318
+ description: '@human-capital-management:employees.entities.employee.fields.manager-id-description',
319
+ groupId: 'organizationalStructure',
320
+ schema: {
321
+ dataType: 'string',
322
+ nullable: true,
323
+ readonly: true,
324
+ interface: {
325
+ type: AXPWidgetsList.Editors.LookupBox,
326
+ options: {
327
+ entity: `${RootConfig.module.name}.${RootConfig.entities.employee.name}`,
328
+ textField: 'person.fullName',
329
+ valueField: 'id',
330
+ look: 'select',
331
+ placeholder: '@human-capital-management:employees.entities.employee.fields.manager-id-placeholder',
332
+ disabled: true,
333
+ readonly: true,
334
+ expose: [
335
+ { source: 'id', target: 'manager.id' },
336
+ { source: 'person.fullName', target: 'manager.person.fullName' },
337
+ ],
338
+ },
339
+ },
340
+ },
341
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
342
+ },
343
+ {
344
+ name: 'integrationRef',
345
+ title: '@human-capital-management:employees.entities.employee.fields.integration-ref',
346
+ groupId: 'employmentProfile',
347
+ schema: {
348
+ dataType: 'object',
349
+ visible: false,
350
+ nullable: true,
351
+ readonly: true,
352
+ },
353
+ },
354
+ ],
355
+ columns: [
356
+ { name: 'employeeCode' },
357
+ {
358
+ name: 'person.fullName',
359
+ title: '@general:terms.common.full-name',
360
+ showAs: { type: AXPWidgetsCatalog.text },
361
+ options: { visible: false },
362
+ },
363
+ { name: 'person.firstName' },
364
+ { name: 'person.lastName' },
365
+ { name: 'person.phones', options: { width: '250px' } },
366
+ { name: 'person.emails', options: { width: '250px' } },
367
+ { name: 'jobDefinitionId', options: { dataPath: 'jobDefinition.title' } },
368
+ { name: 'employmentTypeId', options: { dataPath: 'employmentType.title' } },
369
+ {
370
+ name: 'activePrimaryBusinessUnitId',
371
+ options: { dataPath: 'activePrimaryBusinessUnit.title' },
372
+ },
373
+ {
374
+ name: 'activePrimaryPositionId',
375
+ options: { dataPath: 'activePrimaryPosition.title' },
376
+ },
377
+ {
378
+ name: 'managerId',
379
+ options: { dataPath: 'manager.person.fullName' },
380
+ },
381
+ { name: 'hireDate', options: { visible: false } },
382
+ ],
383
+ interfaces: {
384
+ master: {
385
+ create: {
386
+ sections: [
387
+ { id: 'personalInformation', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },
388
+ { id: 'employmentProfile', order: 3, layout: { positions: { lg: { colSpan: 8, colStart: 1 } } } },
389
+ { id: 'signature', order: 4, layout: { positions: { lg: { colSpan: 4, colStart: 9 } } } },
390
+ { id: 'organizationalStructure', order: 8, layout: { positions: { lg: { colSpan: 12 } } } },
391
+ ],
392
+ properties: [
393
+ { name: 'employeeCode', layout: { positions: { lg: { colSpan: 6 } } } },
394
+ { name: 'employmentTypeId', layout: { positions: { lg: { colSpan: 6 } } } },
395
+ { name: 'hireDate', layout: { positions: { lg: { colSpan: 6 } } } },
396
+ { name: 'signature', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 0 } } } },
397
+ ],
398
+ },
399
+ update: {
400
+ sections: [{ id: 'personalInformation' }, { id: 'organizationalStructure' }, { id: 'employmentProfile' }, { id: 'signature' }],
401
+ properties: [
402
+ { name: 'employeeCode', layout: { positions: { lg: { colSpan: 6 } } } },
403
+ { name: 'employmentTypeId', layout: { positions: { lg: { colSpan: 6 } } } },
404
+ { name: 'hireDate', layout: { positions: { lg: { colSpan: 6 } } } },
405
+ { name: 'signature', layout: { label: { visible: false } } },
406
+ {
407
+ name: 'activePrimaryBusinessUnitId',
408
+ layout: { positions: { lg: { colSpan: 4, colStart: 1, order: 10 } } },
409
+ },
410
+ {
411
+ name: 'activePrimaryPositionId',
412
+ layout: { positions: { lg: { colSpan: 4, colStart: 5, order: 11 } } },
413
+ },
414
+ {
415
+ name: 'managerId',
416
+ layout: { positions: { lg: { colSpan: 4, colStart: 9, order: 12 } } },
417
+ },
418
+ ],
419
+ },
420
+ single: {
421
+ title: '{{ context.eval("person.firstName") + " " + context.eval("person.lastName") }}',
422
+ sections: [
423
+ { id: 'personalInformation', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },
424
+ { id: 'employmentProfile', order: 3, layout: { positions: { lg: { colSpan: 8, colStart: 1 } } } },
425
+ { id: 'signature', order: 4, layout: { positions: { lg: { colSpan: 4, colStart: 9 } } } },
426
+ { id: 'organizationalStructure', order: 8, layout: { positions: { lg: { colSpan: 12 } } } },
427
+ ],
428
+ properties: [
429
+ { name: 'employeeCode', layout: { positions: { lg: { colSpan: 6 } } } },
430
+ { name: 'employmentTypeId', layout: { positions: { lg: { colSpan: 6 } } } },
431
+ { name: 'hireDate', layout: { positions: { lg: { colSpan: 6 } } } },
432
+ { name: 'signature', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 0 } } } },
433
+ {
434
+ name: 'activePrimaryBusinessUnitId',
435
+ layout: { positions: { lg: { colSpan: 4, colStart: 1, order: 10 } } },
436
+ },
437
+ {
438
+ name: 'activePrimaryPositionId',
439
+ layout: { positions: { lg: { colSpan: 4, colStart: 5, order: 11 } } },
440
+ },
441
+ {
442
+ name: 'managerId',
443
+ layout: { positions: { lg: { colSpan: 4, colStart: 9, order: 12 } } },
444
+ },
445
+ ],
446
+ actions: [...entityMasterRecordActions()],
447
+ },
448
+ list: {
449
+ actions: [...entityMasterCrudActions()],
450
+ views: [createAllQueryView({ sorts: [{ name: 'person.fullName', dir: 'asc' }] })],
451
+ },
452
+ },
453
+ },
454
+ };
455
+ return entityDef;
456
+ }
457
+
458
+ export { factoryEmployee };
459
+ //# sourceMappingURL=acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employee.entity-DkVdcMBo.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employee.entity-DkVdcMBo.mjs","sources":["../../../../libs/modules/human-capital-management/contracts/src/entities/employee/employee.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityAction, AXPEntityCommandScope, createAllQueryView, entityDetailsCrudActions, entityDetailsSimpleCondition, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { AXPHumanCapitalManagementCommandKeys } from '../../commands.keys';\nimport { RootConfig } from '../../root-config';\n\nexport async function factoryEmployee(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.employee.name,\n title: RootConfig.entities.employee.title,\n icon: 'fa-light fa-building',\n formats: {\n individual: RootConfig.entities.employee.title,\n plural: RootConfig.entities.employee.titlePlural,\n displayName: '@general:terms.common.profile',\n searchResult: {\n title: '{{ context.eval(\"person.fullName\") || (context.eval(\"person.firstName\") + \" \" + context.eval(\"person.lastName\")) }}',\n description: RootConfig.module.title,\n },\n },\n plugins: [\n { name: 'identifier', options: { field: 'employeeCode', rule: 'employee-code' } },\n {\n name: 'status',\n options: {\n definition: 'human-capital-management.status.employee',\n field: 'statusId',\n generate: { views: { enabled: true } },\n },\n },\n { name: 'history' },\n { name: 'lock' },\n { name: 'compare' },\n {\n name: 'documents',\n options: {\n documentTypeNames: ['certificate', 'licence', 'form'],\n },\n },\n { name: 'reports' },\n ],\n relatedEntities: [\n {\n entity: `PersonCore.Person`,\n title: 'Personal Information',\n conditions: [{ name: 'id', operator: { type: 'equal' }, value: '{{ context.eval(\"personId\") }}' }],\n layout: { type: 'merge-detail' },\n persistence: {\n dataPath: 'person',\n strategy: 'referenced',\n idField: 'personId',\n },\n },\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.leaveRequest.name}`,\n title: RootConfig.entities.leaveRequest.titlePlural,\n columns: ['leaveTypeId', 'startDate', 'endDate', 'durationDays', 'statusId', 'reason'],\n conditions: [entityDetailsSimpleCondition('employeeId')],\n persistence: { foreignKeyField: 'employeeId' },\n excludeProperties: ['employeeId'],\n actions: [\n {\n title: '@human-capital-management:employees.entities.employee.related-entities.leave-request-start.title',\n icon: 'fa-light fa-play',\n command: {\n name: 'Entity:Create',\n options: {\n process: {\n redirect: false,\n canCreateNewOne: true,\n data: {},\n },\n },\n },\n priority: 'primary',\n type: 'create',\n scope: AXPEntityCommandScope.TypeLevel,\n items: `{{ await ${RootConfig.module.name}.LeaveRequests() }}` as unknown as AXPEntityAction[],\n },\n {\n title: '@general:actions.detail.title',\n icon: 'fa-light fa-eye',\n command: 'Entity:View',\n priority: 'secondary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n default: true,\n },\n ...entityDetailsCrudActions('employeeId', { create: false, edit: false, delete: false, view: false }),\n ],\n layout: { type: 'page-list', position: 'after', order: 4 },\n },\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.lifecycleEvent.name}`,\n title: '@human-capital-management:employees.entities.employee.related-entities.lifecycle-events',\n columns: ['eventTypeId', 'effectiveDate', 'assignedToUserId', 'statusId', 'attachments'],\n conditions: [entityDetailsSimpleCondition('employeeId')],\n persistence: { foreignKeyField: 'employeeId' },\n excludeProperties: ['employeeId'],\n actions: [\n {\n title: '@human-capital-management:employees.entities.employee.related-entities.lifecycle-event-start.title',\n icon: 'fa-light fa-play',\n command: {\n name: 'Entity:Create',\n options: {\n process: {\n redirect: false,\n canCreateNewOne: true,\n data: {},\n },\n },\n },\n priority: 'primary',\n type: 'create',\n scope: AXPEntityCommandScope.TypeLevel,\n items: `{{ await ${RootConfig.module.name}.LifecycleEvents() }}` as unknown as AXPEntityAction[],\n },\n ...entityDetailsCrudActions('employeeId', { create: false, edit: false, delete: false, view: false }),\n ],\n layout: { type: 'page-list', position: 'after', order: 5 },\n },\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.positionAssignment.name}`,\n title: '@human-capital-management:employees.entities.employee.related-entities.positions',\n columns: ['positionId', 'businessUnitId', 'startDate', 'endDate', 'statusId', 'isPrimary'],\n conditions: [entityDetailsSimpleCondition('employeeId')],\n persistence: { foreignKeyField: 'employeeId' },\n excludeProperties: ['employeeId'],\n appearOn: {\n create: true,\n },\n actions: [\n {\n title: '@human-capital-management:position-assignments.entities.position-assignment.actions.assign.title',\n command: {\n name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Assign,\n options: {\n process: {\n data: {\n employeeId: '{{ context.eval(\"id\") }}',\n },\n },\n },\n },\n priority: 'primary',\n type: 'create',\n scope: AXPEntityCommandScope.TypeLevel,\n },\n ...entityDetailsCrudActions('employeeId', { create: false, delete: false, view: true, edit: false }),\n ],\n layout: { type: 'page-list', position: 'after', order: 3 },\n },\n ],\n groups: [\n {\n id: 'organizationalStructure',\n title: '@human-capital-management:employees.entities.employee.groups.organizational-structure',\n },\n {\n id: 'employmentProfile',\n title: '@human-capital-management:employees.entities.employee.groups.employment-profile',\n },\n {\n id: 'signature',\n title: '@human-capital-management:employees.entities.employee.groups.signature',\n icon: 'fa-light fa-signature',\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'personalInformation',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'employeeCode',\n title: '@human-capital-management:employees.entities.employee.fields.employee-code',\n groupId: 'employmentProfile',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'employmentTypeId',\n title: '@human-capital-management:employees.entities.employee.fields.employment-type-id',\n groupId: 'employmentProfile',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.employmentType.name}`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n create: {\n enable: true,\n },\n expose: [\n { source: 'id', target: 'employmentType.id' },\n { source: 'title', target: 'employmentType.title' },\n ],\n },\n },\n },\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'jobDefinitionId',\n title: '@human-capital-management:employees.entities.employee.fields.job-definition',\n groupId: 'employmentProfile',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: 'OrganizationManagement.JobDefinition',\n textField: 'title',\n valueField: 'id',\n look: 'select',\n expose: [\n { source: 'id', target: 'jobDefinition.id' },\n { source: 'title', target: 'jobDefinition.title' },\n ],\n },\n },\n },\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n },\n {\n name: 'hireDate',\n title: '@human-capital-management:employees.entities.employee.fields.hire-date',\n groupId: 'employmentProfile',\n schema: {\n dataType: 'date',\n interface: {\n type: AXPWidgetsCatalog.dateTime,\n options: {\n filterUi: 'simple',\n },\n },\n },\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n },\n {\n name: 'signature',\n title: '@human-capital-management:employees.entities.employee.fields.signature',\n groupId: 'signature',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.SignatureBox,\n },\n },\n },\n {\n name: 'activePrimaryBusinessUnitId',\n title: '@human-capital-management:employees.entities.employee.fields.primary-business-unit',\n description: '@human-capital-management:employees.entities.employee.fields.primary-business-unit-description',\n groupId: 'organizationalStructure',\n schema: {\n dataType: 'string',\n nullable: true,\n readonly: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `OrganizationManagement.BusinessUnit`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n placeholder: '@human-capital-management:employees.entities.employee.fields.primary-business-unit-placeholder',\n disabled: true,\n readonly: true,\n expose: [\n { source: 'id', target: 'activePrimaryBusinessUnit.id' },\n { source: 'title', target: 'activePrimaryBusinessUnit.title' },\n ],\n },\n },\n },\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n },\n {\n name: 'activePrimaryPositionId',\n title: '@human-capital-management:employees.entities.employee.fields.primary-position',\n description: '@human-capital-management:employees.entities.employee.fields.primary-position-description',\n groupId: 'organizationalStructure',\n schema: {\n dataType: 'string',\n nullable: true,\n readonly: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `OrganizationManagement.Position`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n placeholder: '@human-capital-management:employees.entities.employee.fields.primary-position-placeholder',\n disabled: true,\n readonly: true,\n expose: [\n { source: 'id', target: 'activePrimaryPosition.id' },\n { source: 'title', target: 'activePrimaryPosition.title' },\n ],\n },\n },\n },\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n },\n {\n name: 'managerId',\n title: '@human-capital-management:employees.entities.employee.fields.manager-id',\n description: '@human-capital-management:employees.entities.employee.fields.manager-id-description',\n groupId: 'organizationalStructure',\n schema: {\n dataType: 'string',\n nullable: true,\n readonly: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.employee.name}`,\n textField: 'person.fullName',\n valueField: 'id',\n look: 'select',\n placeholder: '@human-capital-management:employees.entities.employee.fields.manager-id-placeholder',\n disabled: true,\n readonly: true,\n expose: [\n { source: 'id', target: 'manager.id' },\n { source: 'person.fullName', target: 'manager.person.fullName' },\n ],\n },\n },\n },\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n },\n {\n name: 'integrationRef',\n title: '@human-capital-management:employees.entities.employee.fields.integration-ref',\n groupId: 'employmentProfile',\n schema: {\n dataType: 'object',\n visible: false,\n nullable: true,\n readonly: true,\n },\n },\n ],\n columns: [\n { name: 'employeeCode' },\n {\n name: 'person.fullName',\n title: '@general:terms.common.full-name',\n showAs: { type: AXPWidgetsCatalog.text },\n options: { visible: false },\n },\n { name: 'person.firstName' },\n { name: 'person.lastName' },\n { name: 'person.phones', options: { width: '250px' } },\n { name: 'person.emails', options: { width: '250px' } },\n { name: 'jobDefinitionId', options: { dataPath: 'jobDefinition.title' } },\n { name: 'employmentTypeId', options: { dataPath: 'employmentType.title' } },\n {\n name: 'activePrimaryBusinessUnitId',\n options: { dataPath: 'activePrimaryBusinessUnit.title' },\n },\n {\n name: 'activePrimaryPositionId',\n options: { dataPath: 'activePrimaryPosition.title' },\n },\n {\n name: 'managerId',\n options: { dataPath: 'manager.person.fullName' },\n },\n { name: 'hireDate', options: { visible: false } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [\n { id: 'personalInformation', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'employmentProfile', order: 3, layout: { positions: { lg: { colSpan: 8, colStart: 1 } } } },\n { id: 'signature', order: 4, layout: { positions: { lg: { colSpan: 4, colStart: 9 } } } },\n { id: 'organizationalStructure', order: 8, layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'employeeCode', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'employmentTypeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'hireDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'signature', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 0 } } } },\n ],\n },\n update: {\n sections: [{ id: 'personalInformation' }, { id: 'organizationalStructure' }, { id: 'employmentProfile' }, { id: 'signature' }],\n properties: [\n { name: 'employeeCode', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'employmentTypeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'hireDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'signature', layout: { label: { visible: false } } },\n {\n name: 'activePrimaryBusinessUnitId',\n layout: { positions: { lg: { colSpan: 4, colStart: 1, order: 10 } } },\n },\n {\n name: 'activePrimaryPositionId',\n layout: { positions: { lg: { colSpan: 4, colStart: 5, order: 11 } } },\n },\n {\n name: 'managerId',\n layout: { positions: { lg: { colSpan: 4, colStart: 9, order: 12 } } },\n },\n ],\n },\n single: {\n title: '{{ context.eval(\"person.firstName\") + \" \" + context.eval(\"person.lastName\") }}',\n sections: [\n { id: 'personalInformation', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'employmentProfile', order: 3, layout: { positions: { lg: { colSpan: 8, colStart: 1 } } } },\n { id: 'signature', order: 4, layout: { positions: { lg: { colSpan: 4, colStart: 9 } } } },\n { id: 'organizationalStructure', order: 8, layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'employeeCode', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'employmentTypeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'hireDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'signature', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 0 } } } },\n {\n name: 'activePrimaryBusinessUnitId',\n layout: { positions: { lg: { colSpan: 4, colStart: 1, order: 10 } } },\n },\n {\n name: 'activePrimaryPositionId',\n layout: { positions: { lg: { colSpan: 4, colStart: 5, order: 11 } } },\n },\n {\n name: 'managerId',\n layout: { positions: { lg: { colSpan: 4, colStart: 9, order: 12 } } },\n },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'person.fullName', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;;AAKO,eAAe,eAAe,GAAA;AACnC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI;AACvC,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK;AACzC,QAAA,IAAI,EAAE,sBAAsB;AAC5B,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK;AAC9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AA,IAAI,EAAE,yBAAyB;4BAC/B,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE;AACtE,yBAAA;AACD,wBAAA;AACE,4BAAA,IAAI,EAAE,WAAW;4BACjB,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE;AACtE,yBAAA;AACF,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AAClF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;;;"}
@@ -0,0 +1,98 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-human-capital-management-client-contracts-entity-catalog-acorex-platform-module-human-capital-management-client-contracts-entity-catalog-YSqg0InM.mjs';
4
+
5
+ async function factoryEmploymentType() {
6
+ const entityDef = {
7
+ module: RootConfig.module.name,
8
+ name: RootConfig.entities.employmentType.name,
9
+ plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }],
10
+ title: RootConfig.entities.employmentType.title,
11
+ icon: RootConfig.entities.employmentType.icon,
12
+ formats: {
13
+ individual: RootConfig.entities.employmentType.title,
14
+ plural: RootConfig.entities.employmentType.titlePlural,
15
+ searchResult: { title: '{{ title }}', description: RootConfig.module.title },
16
+ },
17
+ relatedEntities: [],
18
+ groups: [
19
+ {
20
+ id: 'basic-info',
21
+ title: '@human-capital-management:employment-types.entities.employment-type.groups.basic-info',
22
+ },
23
+ ],
24
+ properties: [
25
+ {
26
+ name: 'id',
27
+ title: 'ID',
28
+ groupId: 'basic-info',
29
+ schema: {
30
+ dataType: 'uuid',
31
+ visible: false,
32
+ nullable: false,
33
+ readonly: true,
34
+ unique: { enabled: true },
35
+ },
36
+ },
37
+ {
38
+ name: 'title',
39
+ title: '@human-capital-management:employment-types.entities.employment-type.fields.title',
40
+ groupId: 'basic-info',
41
+ schema: {
42
+ dataType: 'string',
43
+ interface: { type: AXPWidgetsList.Editors.TextBox },
44
+ },
45
+ options: {
46
+ sort: { enabled: true },
47
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
48
+ },
49
+ validations: [{ rule: 'required' }],
50
+ },
51
+ {
52
+ name: 'description',
53
+ title: '@human-capital-management:employment-types.entities.employment-type.fields.description',
54
+ groupId: 'basic-info',
55
+ schema: {
56
+ dataType: 'string',
57
+ interface: { type: AXPWidgetsList.Editors.LargeTextBox },
58
+ },
59
+ },
60
+ ],
61
+ columns: [{ name: 'title' }, { name: 'description' }],
62
+ interfaces: {
63
+ master: {
64
+ create: {
65
+ sections: [{ id: 'basic-info' }],
66
+ properties: [
67
+ { name: 'title', layout: { positions: { lg: { colSpan: 12 } } } },
68
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
69
+ ],
70
+ },
71
+ update: {
72
+ sections: [{ id: 'basic-info' }],
73
+ properties: [
74
+ { name: 'title', layout: { positions: { lg: { colSpan: 12 } } } },
75
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
76
+ ],
77
+ },
78
+ single: {
79
+ title: '{{title}}',
80
+ sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],
81
+ properties: [
82
+ { name: 'title', layout: { positions: { lg: { colSpan: 12 } } } },
83
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
84
+ ],
85
+ actions: [...entityMasterRecordActions()],
86
+ },
87
+ list: {
88
+ actions: [...entityMasterCrudActions()],
89
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
90
+ },
91
+ },
92
+ },
93
+ };
94
+ return entityDef;
95
+ }
96
+
97
+ export { factoryEmploymentType };
98
+ //# sourceMappingURL=acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employment-type.entity-DtYMx-Fh.mjs.map