@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,223 @@
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
+ //#endregion
6
+ //#region ---- Entity factory ----
7
+ async function factoryLifecycleEvent() {
8
+ const entityDef = {
9
+ module: RootConfig.module.name,
10
+ name: RootConfig.entities.lifecycleEvent.name,
11
+ title: RootConfig.entities.lifecycleEvent.title,
12
+ icon: RootConfig.entities.lifecycleEvent.icon,
13
+ plugins: [
14
+ { name: 'history' },
15
+ {
16
+ name: 'attachments',
17
+ options: {
18
+ showListAction: false,
19
+ },
20
+ },
21
+ {
22
+ name: 'workflow-run',
23
+ options: {
24
+ list: {
25
+ mode: 'workflow-run',
26
+ },
27
+ },
28
+ },
29
+ {
30
+ name: 'status',
31
+ options: {
32
+ field: 'statusId',
33
+ definition: 'human-capital-management.status.lifecycle-event',
34
+ },
35
+ },
36
+ {
37
+ name: 'meta-data-form',
38
+ options: {
39
+ title: 'More Information',
40
+ path: 'eventTypeId',
41
+ display: 'section',
42
+ },
43
+ },
44
+ ],
45
+ formats: {
46
+ individual: RootConfig.entities.lifecycleEvent.title,
47
+ plural: RootConfig.entities.lifecycleEvent.titlePlural,
48
+ searchResult: {
49
+ title: '{{ context.eval("employee.person.fullName") }}',
50
+ description: '{{ context.eval("eventType.title", { pipes: ["translate"] }) }}',
51
+ },
52
+ },
53
+ groups: [
54
+ {
55
+ id: 'event-details',
56
+ title: '@human-capital-management:lifecycle-events.entities.lifecycle-event.groups.event-details',
57
+ },
58
+ ],
59
+ properties: [
60
+ {
61
+ name: 'id',
62
+ title: 'ID',
63
+ groupId: 'event-details',
64
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
65
+ },
66
+ {
67
+ name: 'employeeId',
68
+ title: '@general:terms.people.employee',
69
+ groupId: 'event-details',
70
+ options: {
71
+ sort: { enabled: true },
72
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
73
+ },
74
+ schema: {
75
+ dataType: 'string',
76
+ interface: {
77
+ type: AXPWidgetsList.Editors.LookupBox,
78
+ options: {
79
+ entity: `${RootConfig.module.name}.${RootConfig.entities.employee.name}`,
80
+ textField: 'person.fullName',
81
+ valueField: 'id',
82
+ look: 'select',
83
+ columns: ['person.fullName', 'employeeCode'],
84
+ expose: [
85
+ { source: 'id', target: 'employee.id' },
86
+ { source: 'person.fullName', target: 'employee.person.fullName' },
87
+ ],
88
+ },
89
+ },
90
+ },
91
+ validations: [{ rule: 'required' }],
92
+ },
93
+ {
94
+ name: 'eventTypeId',
95
+ title: '@human-capital-management:lifecycle-events.entities.lifecycle-event.fields.event-type-id',
96
+ groupId: 'event-details',
97
+ options: {
98
+ sort: { enabled: true },
99
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
100
+ },
101
+ schema: {
102
+ dataType: 'string',
103
+ interface: {
104
+ type: AXPWidgetsList.Editors.LookupBox,
105
+ options: {
106
+ entity: `${RootConfig.module.name}.${RootConfig.entities.lifecycleEventType.name}`,
107
+ textField: 'title',
108
+ valueField: 'id',
109
+ look: 'select',
110
+ columns: ['title'],
111
+ expose: [
112
+ { source: 'id', target: 'eventType.id' },
113
+ { source: 'title', target: 'eventType.title' },
114
+ ],
115
+ },
116
+ },
117
+ },
118
+ validations: [{ rule: 'required' }],
119
+ },
120
+ {
121
+ name: 'assignedToUserId',
122
+ title: '@human-capital-management:lifecycle-events.entities.lifecycle-event.fields.assigned-to-user-id',
123
+ groupId: 'event-details',
124
+ options: {
125
+ sort: { enabled: true },
126
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
127
+ },
128
+ schema: {
129
+ dataType: 'string',
130
+ nullable: true,
131
+ interface: {
132
+ type: AXPWidgetsList.Editors.LookupBox,
133
+ options: {
134
+ entity: 'SecurityManagement.User',
135
+ textField: 'displayName',
136
+ valueField: 'id',
137
+ look: 'select',
138
+ columns: ['displayName', 'username'],
139
+ expose: [
140
+ { source: 'id', target: 'assignedToUser.id' },
141
+ { source: 'displayName', target: 'assignedToUser.displayName' },
142
+ ],
143
+ },
144
+ },
145
+ },
146
+ },
147
+ {
148
+ name: 'effectiveDate',
149
+ title: '@human-capital-management:lifecycle-events.entities.lifecycle-event.fields.effective-date',
150
+ groupId: 'event-details',
151
+ schema: {
152
+ defaultValue: '{{ date.today() }}',
153
+ dataType: 'date',
154
+ interface: { type: AXPWidgetsList.Editors.DateTimeBox },
155
+ },
156
+ validations: [{ rule: 'required' }],
157
+ },
158
+ {
159
+ name: 'notes',
160
+ title: '@human-capital-management:lifecycle-events.entities.lifecycle-event.fields.notes',
161
+ groupId: 'event-details',
162
+ schema: {
163
+ dataType: 'string',
164
+ interface: { type: AXPWidgetsList.Editors.LargeTextBox },
165
+ },
166
+ },
167
+ ],
168
+ columns: [
169
+ { name: 'employeeId', options: { dataPath: 'employee.person.fullName' } },
170
+ { name: 'eventTypeId', options: { dataPath: 'eventType.title' } },
171
+ { name: 'effectiveDate' },
172
+ { name: 'assignedToUserId', options: { dataPath: 'assignedToUser.displayName' } },
173
+ { name: 'statusId' },
174
+ { name: 'attachments' },
175
+ ],
176
+ relatedEntities: [],
177
+ interfaces: {
178
+ master: {
179
+ create: {
180
+ sections: [{ id: 'event-details' }],
181
+ properties: [
182
+ { name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },
183
+ { name: 'eventTypeId', layout: { positions: { lg: { colSpan: 6 } } } },
184
+ { name: 'assignedToUserId', layout: { positions: { lg: { colSpan: 6 } } } },
185
+ { name: 'effectiveDate', layout: { positions: { lg: { colSpan: 6 } } } },
186
+ { name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },
187
+ ],
188
+ },
189
+ update: {
190
+ sections: [{ id: 'event-details' }],
191
+ properties: [
192
+ { name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },
193
+ { name: 'eventTypeId', layout: { positions: { lg: { colSpan: 6 } } } },
194
+ { name: 'assignedToUserId', layout: { positions: { lg: { colSpan: 6 } } } },
195
+ { name: 'effectiveDate', layout: { positions: { lg: { colSpan: 6 } } } },
196
+ { name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },
197
+ ],
198
+ },
199
+ single: {
200
+ title: '{{ context.eval("eventType.title", { pipes: ["translate"] }) + " — " + context.eval("employee.person.fullName") }}',
201
+ sections: [{ id: 'event-details', order: 1 }],
202
+ properties: [
203
+ { name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },
204
+ { name: 'eventTypeId', layout: { positions: { lg: { colSpan: 6 } } } },
205
+ { name: 'assignedToUserId', layout: { positions: { lg: { colSpan: 6 } } } },
206
+ { name: 'effectiveDate', layout: { positions: { lg: { colSpan: 6 } } } },
207
+ { name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },
208
+ ],
209
+ actions: entityMasterRecordActions(),
210
+ },
211
+ list: {
212
+ actions: [...entityMasterCrudActions({ view: false, delete: false })],
213
+ views: [createAllQueryView({ sorts: [{ name: 'effectiveDate', dir: 'desc' }] })],
214
+ },
215
+ },
216
+ },
217
+ };
218
+ return entityDef;
219
+ }
220
+ //#endregion
221
+
222
+ export { factoryLifecycleEvent };
223
+ //# sourceMappingURL=acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event.entity-Dp-_0o-1.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event.entity-Dp-_0o-1.mjs","sources":["../../../../libs/modules/human-capital-management/contracts/src/entities/lifecycle-event/lifecycle-event.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity factory ----\n\nexport async function factoryLifecycleEvent(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.lifecycleEvent.name,\n title: RootConfig.entities.lifecycleEvent.title,\n icon: RootConfig.entities.lifecycleEvent.icon,\n plugins: [\n { name: 'history' },\n {\n name: 'attachments',\n options: {\n showListAction: false,\n },\n },\n {\n name: 'workflow-run',\n options: {\n list: {\n mode: 'workflow-run',\n },\n },\n },\n {\n name: 'status',\n options: {\n field: 'statusId',\n definition: 'human-capital-management.status.lifecycle-event',\n },\n },\n {\n name: 'meta-data-form',\n options: {\n title: 'More Information',\n path: 'eventTypeId',\n display: 'section',\n },\n },\n ],\n formats: {\n individual: RootConfig.entities.lifecycleEvent.title,\n plural: RootConfig.entities.lifecycleEvent.titlePlural,\n searchResult: {\n title: '{{ context.eval(\"employee.person.fullName\") }}',\n description: '{{ context.eval(\"eventType.title\", { pipes: [\"translate\"] }) }}',\n },\n },\n groups: [\n {\n id: 'event-details',\n title: '@human-capital-management:lifecycle-events.entities.lifecycle-event.groups.event-details',\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'event-details',\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: 'event-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\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 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: 'eventTypeId',\n title: '@human-capital-management:lifecycle-events.entities.lifecycle-event.fields.event-type-id',\n groupId: 'event-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.lifecycleEventType.name}`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n columns: ['title'],\n expose: [\n { source: 'id', target: 'eventType.id' },\n { source: 'title', target: 'eventType.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'assignedToUserId',\n title: '@human-capital-management:lifecycle-events.entities.lifecycle-event.fields.assigned-to-user-id',\n groupId: 'event-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: 'SecurityManagement.User',\n textField: 'displayName',\n valueField: 'id',\n look: 'select',\n columns: ['displayName', 'username'],\n expose: [\n { source: 'id', target: 'assignedToUser.id' },\n { source: 'displayName', target: 'assignedToUser.displayName' },\n ],\n },\n },\n },\n },\n {\n name: 'effectiveDate',\n title: '@human-capital-management:lifecycle-events.entities.lifecycle-event.fields.effective-date',\n groupId: 'event-details',\n schema: {\n defaultValue: '{{ date.today() }}',\n dataType: 'date',\n interface: { type: AXPWidgetsList.Editors.DateTimeBox },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'notes',\n title: '@human-capital-management:lifecycle-events.entities.lifecycle-event.fields.notes',\n groupId: 'event-details',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.LargeTextBox },\n },\n },\n ],\n columns: [\n { name: 'employeeId', options: { dataPath: 'employee.person.fullName' } },\n { name: 'eventTypeId', options: { dataPath: 'eventType.title' } },\n { name: 'effectiveDate' },\n { name: 'assignedToUserId', options: { dataPath: 'assignedToUser.displayName' } },\n { name: 'statusId' },\n { name: 'attachments' },\n ],\n relatedEntities: [],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'event-details' }],\n properties: [\n { name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'eventTypeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'assignedToUserId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'effectiveDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n update: {\n sections: [{ id: 'event-details' }],\n properties: [\n { name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'eventTypeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'assignedToUserId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'effectiveDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n single: {\n title:\n '{{ context.eval(\"eventType.title\", { pipes: [\"translate\"] }) + \" — \" + context.eval(\"employee.person.fullName\") }}',\n sections: [{ id: 'event-details', order: 1 }],\n properties: [\n { name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'eventTypeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'assignedToUserId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'effectiveDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: entityMasterRecordActions(),\n },\n list: {\n actions: [...entityMasterCrudActions({ view: false, delete: false })],\n views: [createAllQueryView({ sorts: [{ name: 'effectiveDate', dir: 'desc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,qBAAqB,GAAA;AACzC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI;AAC7C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK;AAC/C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI;AAC7C,QAAA,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,SAAS,EAAE;AACn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E,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AACrE,wBAAA,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AACtE,wBAAA,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAC3E,wBAAA,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AACxE,wBAAA,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AAClE,qBAAA;oBACD,OAAO,EAAE,yBAAyB,EAAE;AACrC,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;oBACrE,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AACjF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
@@ -0,0 +1,277 @@
1
+ import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, AXPEntityCommandScope, entityMasterCrudActions } 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 factoryPositionAssignment() {
7
+ const entityDef = {
8
+ module: RootConfig.module.name,
9
+ name: RootConfig.entities.positionAssignment.name,
10
+ icon: 'fa-light fa-user-tie-hair',
11
+ plugins: [
12
+ { name: 'history' },
13
+ { name: 'lock' },
14
+ { name: 'compare' },
15
+ {
16
+ name: 'status',
17
+ options: {
18
+ field: 'statusId',
19
+ definition: 'human-capital-management.status.position-assignment',
20
+ },
21
+ },
22
+ ],
23
+ title: RootConfig.entities.positionAssignment.title,
24
+ formats: {
25
+ individual: RootConfig.entities.positionAssignment.title,
26
+ plural: RootConfig.entities.positionAssignment.titlePlural,
27
+ searchResult: { title: '{{ position.title }}', description: RootConfig.module.title },
28
+ },
29
+ relatedEntities: [],
30
+ groups: [
31
+ {
32
+ id: 'assignment',
33
+ title: '@human-capital-management:position-assignments.entities.position-assignment.groups.assignment',
34
+ },
35
+ { id: 'period', title: '@general:terms.datetime.period' },
36
+ { id: 'additional', title: '@general:terms.interface.additional-info' },
37
+ ],
38
+ properties: [
39
+ {
40
+ name: 'id',
41
+ title: 'ID',
42
+ groupId: 'assignment',
43
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
44
+ },
45
+ {
46
+ name: 'employeeId',
47
+ title: '@general:terms.people.employee',
48
+ groupId: 'assignment',
49
+ options: {
50
+ sort: { enabled: true },
51
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
52
+ },
53
+ schema: {
54
+ dataType: 'string',
55
+ interface: {
56
+ type: AXPWidgetsCatalog.lookup,
57
+ options: {
58
+ entity: `HumanCapitalManagement.Employee`,
59
+ textField: 'person.fullName',
60
+ valueField: 'id',
61
+ columns: ['person.fullName', 'employeeCode'],
62
+ expose: [
63
+ { source: 'id', target: 'employee.id' },
64
+ { source: 'person.fullName', target: 'employee.person.fullName' },
65
+ ],
66
+ },
67
+ },
68
+ },
69
+ validations: [{ rule: 'required' }],
70
+ },
71
+ {
72
+ name: 'businessUnitId',
73
+ title: '@organization-management:business-units.terms.individual-title',
74
+ groupId: 'assignment',
75
+ options: {
76
+ sort: { enabled: true },
77
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
78
+ },
79
+ schema: {
80
+ dataType: 'object',
81
+ interface: {
82
+ type: AXPWidgetsCatalog.lookup,
83
+ options: {
84
+ entity: `OrganizationManagement.BusinessUnit`,
85
+ textField: 'title',
86
+ valueField: 'id',
87
+ look: 'lookup',
88
+ columns: ['code', 'title', { name: 'positionIds', visible: false }],
89
+ expose: [
90
+ { source: 'id', target: 'businessUnit.id' },
91
+ { source: 'title', target: 'businessUnit.title' },
92
+ { source: 'positionIds', target: 'businessUnit.positionIds' },
93
+ ],
94
+ },
95
+ },
96
+ },
97
+ validations: [{ rule: 'required' }],
98
+ },
99
+ {
100
+ name: 'positionId',
101
+ title: '@general:terms.organizations.position',
102
+ groupId: 'assignment',
103
+ options: {
104
+ sort: { enabled: true },
105
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
106
+ },
107
+ schema: {
108
+ dataType: 'string',
109
+ interface: {
110
+ type: AXPWidgetsCatalog.lookup,
111
+ options: {
112
+ entity: `OrganizationManagement.Position`,
113
+ textField: 'title',
114
+ valueField: 'id',
115
+ look: 'select',
116
+ columns: ['title'],
117
+ disabled: '{{ !context.eval("businessUnitId") }}',
118
+ expose: [
119
+ { source: 'id', target: 'position.id' },
120
+ { source: 'title', target: 'position.title' },
121
+ ],
122
+ filter: {
123
+ logic: 'and',
124
+ filters: [
125
+ {
126
+ field: 'id',
127
+ operator: { type: 'in' },
128
+ value: '{{ context.eval("businessUnit.positionIds") || [] }}',
129
+ },
130
+ ],
131
+ },
132
+ },
133
+ triggers: [
134
+ {
135
+ event: "{{ events.context('businessUnitId') }}",
136
+ action: `{{ widget.setValue(null); context.set('position.id', null); context.set('position.title', null); widget.refresh(); }}`,
137
+ },
138
+ ],
139
+ },
140
+ },
141
+ validations: [{ rule: 'required' }],
142
+ },
143
+ {
144
+ name: 'startDate',
145
+ title: '@general:terms.datetime.start-date',
146
+ groupId: 'period',
147
+ options: {
148
+ sort: { enabled: true },
149
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
150
+ },
151
+ schema: { dataType: 'date', interface: { type: AXPWidgetsCatalog.dateTime } },
152
+ validations: [{ rule: 'required' }],
153
+ },
154
+ {
155
+ name: 'endDate',
156
+ title: '@general:terms.datetime.end-date',
157
+ groupId: 'period',
158
+ options: {
159
+ sort: { enabled: true },
160
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
161
+ },
162
+ schema: { dataType: 'date', interface: { type: AXPWidgetsCatalog.dateTime } },
163
+ },
164
+ {
165
+ name: 'isPrimary',
166
+ title: '@general:terms.status.states.is-primary',
167
+ groupId: 'additional',
168
+ options: {
169
+ sort: { enabled: true },
170
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
171
+ },
172
+ schema: { dataType: 'boolean', interface: { type: AXPWidgetsCatalog.toggle } },
173
+ },
174
+ {
175
+ name: 'notes',
176
+ title: '@general:terms.common.notes',
177
+ groupId: 'additional',
178
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.largeText } },
179
+ },
180
+ ],
181
+ columns: [
182
+ { name: 'employeeId', options: { dataPath: 'employee.person.fullName' } },
183
+ { name: 'businessUnitId', options: { dataPath: 'businessUnit.title' } },
184
+ { name: 'positionId', options: { dataPath: 'position.title' } },
185
+ { name: 'startDate' },
186
+ { name: 'endDate' },
187
+ { name: 'isPrimary' },
188
+ ],
189
+ interfaces: {
190
+ master: {
191
+ create: {
192
+ sections: [{ id: 'assignment' }, { id: 'period' }, { id: 'additional' }],
193
+ properties: [
194
+ { name: 'businessUnitId', layout: { positions: { lg: { colSpan: 6 } } } },
195
+ { name: 'positionId', layout: { positions: { lg: { colSpan: 6 } } } },
196
+ { name: 'startDate', layout: { positions: { lg: { colSpan: 6 } } } },
197
+ { name: 'endDate', layout: { positions: { lg: { colSpan: 6 } } } },
198
+ { name: 'isPrimary', layout: { positions: { lg: { colSpan: 6 } } } },
199
+ { name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },
200
+ ],
201
+ },
202
+ update: {
203
+ sections: [{ id: 'assignment' }, { id: 'period' }, { id: 'additional' }],
204
+ properties: [
205
+ { name: 'positionId', layout: { positions: { lg: { colSpan: 6 } } } },
206
+ { name: 'businessUnitId', layout: { positions: { lg: { colSpan: 6 } } } },
207
+ { name: 'startDate', layout: { positions: { lg: { colSpan: 6 } } } },
208
+ { name: 'endDate', layout: { positions: { lg: { colSpan: 6 } } } },
209
+ { name: 'isPrimary', layout: { positions: { lg: { colSpan: 6 } } } },
210
+ { name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },
211
+ ],
212
+ },
213
+ single: {
214
+ title: `{{position.title}}`,
215
+ sections: [{ id: 'assignment' }, { id: 'period' }, { id: 'additional' }],
216
+ properties: [
217
+ { name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },
218
+ { name: 'positionId', layout: { positions: { lg: { colSpan: 6 } } } },
219
+ { name: 'businessUnitId', layout: { positions: { lg: { colSpan: 6 } } } },
220
+ { name: 'startDate', layout: { positions: { lg: { colSpan: 6 } } } },
221
+ { name: 'endDate', layout: { positions: { lg: { colSpan: 6 } } } },
222
+ { name: 'isPrimary', layout: { positions: { lg: { colSpan: 6 } } } },
223
+ { name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },
224
+ ],
225
+ actions: [
226
+ {
227
+ title: '@human-capital-management:position-assignments.entities.position-assignment.actions.revoke.title',
228
+ command: {
229
+ name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Revoke,
230
+ },
231
+ priority: 'secondary',
232
+ type: 'delete',
233
+ scope: AXPEntityCommandScope.Individual,
234
+ },
235
+ ],
236
+ },
237
+ list: {
238
+ actions: [
239
+ {
240
+ title: '@human-capital-management:position-assignments.entities.position-assignment.actions.assign.title',
241
+ command: {
242
+ name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Assign,
243
+ },
244
+ priority: 'primary',
245
+ type: 'create',
246
+ scope: AXPEntityCommandScope.TypeLevel,
247
+ },
248
+ {
249
+ title: '@human-capital-management:position-assignments.entities.position-assignment.actions.revoke.title',
250
+ command: {
251
+ name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Revoke,
252
+ },
253
+ priority: 'primary',
254
+ type: 'delete',
255
+ scope: AXPEntityCommandScope.Selected,
256
+ },
257
+ {
258
+ title: '@human-capital-management:position-assignments.entities.position-assignment.actions.revoke.title',
259
+ command: {
260
+ name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Revoke,
261
+ },
262
+ priority: 'secondary',
263
+ type: 'delete',
264
+ scope: AXPEntityCommandScope.Individual,
265
+ },
266
+ ...entityMasterCrudActions({ create: false, delete: false, view: true, edit: false }),
267
+ ],
268
+ views: [createAllQueryView({ sorts: [{ name: 'startDate', dir: 'desc' }] })],
269
+ },
270
+ },
271
+ },
272
+ };
273
+ return entityDef;
274
+ }
275
+
276
+ export { factoryPositionAssignment };
277
+ //# sourceMappingURL=acorex-platform-module-human-capital-management-client-contracts-entity-catalog-position-assignment.entity-rQe7-CDe.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-human-capital-management-client-contracts-entity-catalog-position-assignment.entity-rQe7-CDe.mjs","sources":["../../../../libs/modules/human-capital-management/contracts/src/entities/position-assignment/position-assignment.entity.ts"],"sourcesContent":["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"],"names":[],"mappings":";;;;;AAKO,eAAe,yBAAyB,GAAA;AAE7C,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI;AACjD,QAAA,IAAI,EAAE,2BAA2B;AACjC,QAAA,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,SAAS,EAAE;YACnB,EAAE,IAAI,EAAE,MAAM,EAAE;YAChB,EAAE,IAAI,EAAE,SAAS,EAAE;AACnB,YAAA;AACE,gBAAA,I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AA;AACD,wBAAA,GAAG,uBAAuB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AACtF,qBAAA;oBACD,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AAC7E,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;;;"}
@@ -0,0 +1,2 @@
1
+ export { h as humanCapitalManagementLocalEntityCatalog } from './acorex-platform-module-human-capital-management-client-contracts-entity-catalog-acorex-platform-module-human-capital-management-client-contracts-entity-catalog-YSqg0InM.mjs';
2
+ //# sourceMappingURL=acorex-platform-module-human-capital-management-client-contracts-entity-catalog.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-human-capital-management-client-contracts-entity-catalog.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,35 @@
1
+ import { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';
2
+ import { RootConfig } from '@acorex-platform/module-human-capital-management-client/contracts';
3
+ export { humanCapitalManagementLocalEntityCatalog } from '@acorex-platform/module-human-capital-management-client/contracts/entity-catalog';
4
+
5
+ //#region ----- Imports -----
6
+ //#endregion
7
+ //#region ----- Provide local entities -----
8
+ /**
9
+ * Registers human-capital-management layouts on the client from packaged factories.
10
+ * Each `import()` targets a secondary entry so unused entities stay out of the
11
+ * bundle. Do not add this to the demo app; demo continues to load layouts via
12
+ * `Domain:GetEntityLayout`.
13
+ */
14
+ function provideHumanCapitalManagementLocalEntities() {
15
+ return provideLocalEntityCatalog({
16
+ moduleName: RootConfig.module.name,
17
+ loaders: {
18
+ [RootConfig.entities.employee.name]: () => import('@acorex-platform/module-human-capital-management-client/contracts/entities/employee').then((m) => m.factoryEmployee()),
19
+ [RootConfig.entities.employmentType.name]: () => import('@acorex-platform/module-human-capital-management-client/contracts/entities/employment-type').then((m) => m.factoryEmploymentType()),
20
+ [RootConfig.entities.leaveRequest.name]: () => import('@acorex-platform/module-human-capital-management-client/contracts/entities/leave-request').then((m) => m.factoryLeaveRequest()),
21
+ [RootConfig.entities.leaveType.name]: () => import('@acorex-platform/module-human-capital-management-client/contracts/entities/leave-type').then((m) => m.factoryLeaveType()),
22
+ [RootConfig.entities.lifecycleEvent.name]: () => import('@acorex-platform/module-human-capital-management-client/contracts/entities/lifecycle-event').then((m) => m.factoryLifecycleEvent()),
23
+ [RootConfig.entities.lifecycleEventType.name]: () => import('@acorex-platform/module-human-capital-management-client/contracts/entities/lifecycle-event-type').then((m) => m.factoryLifecycleEventType()),
24
+ [RootConfig.entities.positionAssignment.name]: () => import('@acorex-platform/module-human-capital-management-client/contracts/entities/position-assignment').then((m) => m.factoryPositionAssignment()),
25
+ },
26
+ });
27
+ }
28
+ //#endregion
29
+
30
+ /**
31
+ * Generated bundle index. Do not edit.
32
+ */
33
+
34
+ export { provideHumanCapitalManagementLocalEntities };
35
+ //# sourceMappingURL=acorex-platform-module-human-capital-management-client-local-entities.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-human-capital-management-client-local-entities.mjs","sources":["../../../../libs/modules/human-capital-management/client/src/lib/provide-local-entities.ts","../../../../libs/modules/human-capital-management/client/src/lib/acorex-platform-module-human-capital-management-client-local-entities.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';\nimport { RootConfig } from '@acorex-platform/module-human-capital-management-client/contracts';\n\n//#endregion\n\n//#region ----- Provide local entities -----\n\n/**\n * Registers human-capital-management layouts on the client from packaged factories.\n * Each `import()` targets a secondary entry so unused entities stay out of the\n * bundle. Do not add this to the demo app; demo continues to load layouts via\n * `Domain:GetEntityLayout`.\n */\nexport function provideHumanCapitalManagementLocalEntities() {\n return provideLocalEntityCatalog({\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.employee.name]: () =>\n import('@acorex-platform/module-human-capital-management-client/contracts/entities/employee').then((m) => m.factoryEmployee()),\n [RootConfig.entities.employmentType.name]: () =>\n import('@acorex-platform/module-human-capital-management-client/contracts/entities/employment-type').then((m) => m.factoryEmploymentType()),\n [RootConfig.entities.leaveRequest.name]: () =>\n import('@acorex-platform/module-human-capital-management-client/contracts/entities/leave-request').then((m) => m.factoryLeaveRequest()),\n [RootConfig.entities.leaveType.name]: () =>\n import('@acorex-platform/module-human-capital-management-client/contracts/entities/leave-type').then((m) => m.factoryLeaveType()),\n [RootConfig.entities.lifecycleEvent.name]: () =>\n import('@acorex-platform/module-human-capital-management-client/contracts/entities/lifecycle-event').then((m) => m.factoryLifecycleEvent()),\n [RootConfig.entities.lifecycleEventType.name]: () =>\n import('@acorex-platform/module-human-capital-management-client/contracts/entities/lifecycle-event-type').then((m) => m.factoryLifecycleEventType()),\n [RootConfig.entities.positionAssignment.name]: () =>\n import('@acorex-platform/module-human-capital-management-client/contracts/entities/position-assignment').then((m) => m.factoryPositionAssignment()),\n },\n });\n}\n\nexport { humanCapitalManagementLocalEntityCatalog } from '@acorex-platform/module-human-capital-management-client/contracts/entity-catalog';\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './provide-local-entities';\n"],"names":[],"mappings":";;;;AAAA;AAKA;AAEA;AAEA;;;;;AAKG;SACa,0CAA0C,GAAA;AACxD,IAAA,OAAO,yBAAyB,CAAC;AAC/B,QAAA,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAClC,QAAA,OAAO,EAAE;AACP,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,GAAG,MACnC,OAAO,qFAAqF,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,eAAe,EAAE,CAAC;AAChI,YAAA,C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