@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,182 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'human-capital-management',
6
+ module: 'HumanCapitalManagement',
7
+ };
8
+ const RootConfig = {
9
+ config,
10
+ module: {
11
+ route: 'human-capital-management',
12
+ name: config.module,
13
+ title: '@human-capital-management:module.title',
14
+ icon: 'fa-light fa-users',
15
+ },
16
+ entities: {
17
+ employee: {
18
+ name: 'Employee',
19
+ source: `${config.module}.Employee`,
20
+ title: '@human-capital-management:employees.entities.employee.title',
21
+ titlePlural: '@human-capital-management:employees.entities.employee.plural',
22
+ icon: 'fa-light fa-address-card',
23
+ },
24
+ employmentType: {
25
+ name: 'EmploymentType',
26
+ source: `${config.module}.EmploymentType`,
27
+ title: '@human-capital-management:employment-types.entities.employment-type.title',
28
+ titlePlural: '@human-capital-management:employment-types.entities.employment-type.plural',
29
+ icon: 'fa-light fa-file-signature',
30
+ },
31
+ positionAssignment: {
32
+ name: 'PositionAssignment',
33
+ source: `${config.module}.PositionAssignment`,
34
+ title: '@human-capital-management:position-assignments.entities.position-assignment.title',
35
+ titlePlural: '@human-capital-management:position-assignments.entities.position-assignment.plural',
36
+ icon: 'fa-light fa-user-tie-hair',
37
+ },
38
+ leaveType: {
39
+ name: 'LeaveType',
40
+ source: `${config.module}.LeaveType`,
41
+ title: '@human-capital-management:leave-types.entities.leave-type.title',
42
+ titlePlural: '@human-capital-management:leave-types.entities.leave-type.plural',
43
+ icon: 'fa-light fa-calendar-days',
44
+ },
45
+ leaveRequest: {
46
+ name: 'LeaveRequest',
47
+ source: `${config.module}.LeaveRequest`,
48
+ title: '@human-capital-management:leave-requests.entities.leave-request.title',
49
+ titlePlural: '@human-capital-management:leave-requests.entities.leave-request.plural',
50
+ icon: 'fa-light fa-plane-departure',
51
+ },
52
+ lifecycleEventType: {
53
+ name: 'LifecycleEventType',
54
+ source: `${config.module}.LifecycleEventType`,
55
+ title: '@human-capital-management:lifecycle-event-types.entities.lifecycle-event-type.title',
56
+ titlePlural: '@human-capital-management:lifecycle-event-types.entities.lifecycle-event-type.plural',
57
+ icon: 'fa-light fa-diagram-next',
58
+ },
59
+ lifecycleEvent: {
60
+ name: 'LifecycleEvent',
61
+ source: `${config.module}.LifecycleEvent`,
62
+ title: '@human-capital-management:lifecycle-events.entities.lifecycle-event.title',
63
+ titlePlural: '@human-capital-management:lifecycle-events.entities.lifecycle-event.plural',
64
+ icon: 'fa-light fa-clipboard-list-check',
65
+ },
66
+ },
67
+ pages: {
68
+ appointmentBoard: {
69
+ path: 'Boards/ResourceAppointment',
70
+ title: '@human-capital-management:leave-requests.menus.appointment-board.title',
71
+ icon: 'fa-light fa-calendar-lines',
72
+ },
73
+ },
74
+ queries: {
75
+ dashboard: {
76
+ employeesKpi: `${config.module}:Dashboard:EmployeesKpi`,
77
+ },
78
+ reports: {
79
+ getHeadcountByDepartment: `${config.module}:Reports:GetHeadcountByDepartment`,
80
+ getLeaveUsageByType: `${config.module}:Reports:GetLeaveUsageByType`,
81
+ },
82
+ },
83
+ };
84
+
85
+ async function factoryEmploymentType() {
86
+ const entityDef = {
87
+ module: RootConfig.module.name,
88
+ name: RootConfig.entities.employmentType.name,
89
+ plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }],
90
+ title: RootConfig.entities.employmentType.title,
91
+ icon: RootConfig.entities.employmentType.icon,
92
+ formats: {
93
+ individual: RootConfig.entities.employmentType.title,
94
+ plural: RootConfig.entities.employmentType.titlePlural,
95
+ searchResult: { title: '{{ title }}', description: RootConfig.module.title },
96
+ },
97
+ relatedEntities: [],
98
+ groups: [
99
+ {
100
+ id: 'basic-info',
101
+ title: '@human-capital-management:employment-types.entities.employment-type.groups.basic-info',
102
+ },
103
+ ],
104
+ properties: [
105
+ {
106
+ name: 'id',
107
+ title: 'ID',
108
+ groupId: 'basic-info',
109
+ schema: {
110
+ dataType: 'uuid',
111
+ visible: false,
112
+ nullable: false,
113
+ readonly: true,
114
+ unique: { enabled: true },
115
+ },
116
+ },
117
+ {
118
+ name: 'title',
119
+ title: '@human-capital-management:employment-types.entities.employment-type.fields.title',
120
+ groupId: 'basic-info',
121
+ schema: {
122
+ dataType: 'string',
123
+ interface: { type: AXPWidgetsList.Editors.TextBox },
124
+ },
125
+ options: {
126
+ sort: { enabled: true },
127
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
128
+ },
129
+ validations: [{ rule: 'required' }],
130
+ },
131
+ {
132
+ name: 'description',
133
+ title: '@human-capital-management:employment-types.entities.employment-type.fields.description',
134
+ groupId: 'basic-info',
135
+ schema: {
136
+ dataType: 'string',
137
+ interface: { type: AXPWidgetsList.Editors.LargeTextBox },
138
+ },
139
+ },
140
+ ],
141
+ columns: [{ name: 'title' }, { name: 'description' }],
142
+ interfaces: {
143
+ master: {
144
+ create: {
145
+ sections: [{ id: 'basic-info' }],
146
+ properties: [
147
+ { name: 'title', layout: { positions: { lg: { colSpan: 12 } } } },
148
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
149
+ ],
150
+ },
151
+ update: {
152
+ sections: [{ id: 'basic-info' }],
153
+ properties: [
154
+ { name: 'title', layout: { positions: { lg: { colSpan: 12 } } } },
155
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
156
+ ],
157
+ },
158
+ single: {
159
+ title: '{{title}}',
160
+ sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],
161
+ properties: [
162
+ { name: 'title', layout: { positions: { lg: { colSpan: 12 } } } },
163
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
164
+ ],
165
+ actions: [...entityMasterRecordActions()],
166
+ },
167
+ list: {
168
+ actions: [...entityMasterCrudActions()],
169
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
170
+ },
171
+ },
172
+ },
173
+ };
174
+ return entityDef;
175
+ }
176
+
177
+ /**
178
+ * Generated bundle index. Do not edit.
179
+ */
180
+
181
+ export { factoryEmploymentType };
182
+ //# sourceMappingURL=acorex-platform-module-human-capital-management-client-contracts-entities-employment-type.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-human-capital-management-client-contracts-entities-employment-type.mjs","sources":["../../../../libs/modules/human-capital-management/contracts/src/root-config.ts","../../../../libs/modules/human-capital-management/contracts/src/entities/employment-type/employment-type.entity.ts","../../../../libs/modules/human-capital-management/contracts/src/acorex-platform-module-human-capital-management-client-contracts-entities-employment-type.ts"],"sourcesContent":["const config = {\n i18n: 'human-capital-management',\n module: 'HumanCapitalManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'human-capital-management',\n name: config.module,\n title: '@human-capital-management:module.title',\n icon: 'fa-light fa-users',\n },\n entities: {\n employee: {\n name: 'Employee',\n source: `${config.module}.Employee`,\n title: '@human-capital-management:employees.entities.employee.title',\n titlePlural: '@human-capital-management:employees.entities.employee.plural',\n icon: 'fa-light fa-address-card',\n },\n employmentType: {\n name: 'EmploymentType',\n source: `${config.module}.EmploymentType`,\n title: '@human-capital-management:employment-types.entities.employment-type.title',\n titlePlural: '@human-capital-management:employment-types.entities.employment-type.plural',\n icon: 'fa-light fa-file-signature',\n },\n positionAssignment: {\n name: 'PositionAssignment',\n source: `${config.module}.PositionAssignment`,\n title: '@human-capital-management:position-assignments.entities.position-assignment.title',\n titlePlural: '@human-capital-management:position-assignments.entities.position-assignment.plural',\n icon: 'fa-light fa-user-tie-hair',\n },\n leaveType: {\n name: 'LeaveType',\n source: `${config.module}.LeaveType`,\n title: '@human-capital-management:leave-types.entities.leave-type.title',\n titlePlural: '@human-capital-management:leave-types.entities.leave-type.plural',\n icon: 'fa-light fa-calendar-days',\n },\n leaveRequest: {\n name: 'LeaveRequest',\n source: `${config.module}.LeaveRequest`,\n title: '@human-capital-management:leave-requests.entities.leave-request.title',\n titlePlural: '@human-capital-management:leave-requests.entities.leave-request.plural',\n icon: 'fa-light fa-plane-departure',\n },\n lifecycleEventType: {\n name: 'LifecycleEventType',\n source: `${config.module}.LifecycleEventType`,\n title: '@human-capital-management:lifecycle-event-types.entities.lifecycle-event-type.title',\n titlePlural: '@human-capital-management:lifecycle-event-types.entities.lifecycle-event-type.plural',\n icon: 'fa-light fa-diagram-next',\n },\n lifecycleEvent: {\n name: 'LifecycleEvent',\n source: `${config.module}.LifecycleEvent`,\n title: '@human-capital-management:lifecycle-events.entities.lifecycle-event.title',\n titlePlural: '@human-capital-management:lifecycle-events.entities.lifecycle-event.plural',\n icon: 'fa-light fa-clipboard-list-check',\n },\n },\n pages: {\n appointmentBoard: {\n path: 'Boards/ResourceAppointment',\n title: '@human-capital-management:leave-requests.menus.appointment-board.title',\n icon: 'fa-light fa-calendar-lines',\n },\n },\n queries: {\n dashboard: {\n employeesKpi: `${config.module}:Dashboard:EmployeesKpi`,\n },\n reports: {\n getHeadcountByDepartment: `${config.module}:Reports:GetHeadcountByDepartment`,\n getLeaveUsageByType: `${config.module}:Reports:GetLeaveUsageByType`,\n },\n },\n} as const;\n","import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function factoryEmploymentType(): Promise<AXPEntity | null> {\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.employmentType.name,\n plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }],\n title: RootConfig.entities.employmentType.title,\n icon: RootConfig.entities.employmentType.icon,\n formats: {\n individual: RootConfig.entities.employmentType.title,\n plural: RootConfig.entities.employmentType.titlePlural,\n searchResult: { title: '{{ title }}', description: RootConfig.module.title },\n },\n relatedEntities: [],\n groups: [\n {\n id: 'basic-info',\n title: '@human-capital-management:employment-types.entities.employment-type.groups.basic-info',\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'title',\n title: '@human-capital-management:employment-types.entities.employment-type.fields.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@human-capital-management:employment-types.entities.employment-type.fields.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.LargeTextBox },\n },\n },\n ],\n columns: [{ name: 'title' }, { name: 'description' }],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n return entityDef;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.employment-type';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,0BAA0B;AAChC,IAAA,MAAM,EAAE,wBAAwB;CACjC;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,0BAA0B;QACjC,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,wCAAwC;AAC/C,QAAA,IAAI,EAAE,mBAAmB;AAC1B,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,MAAM,EAAE,CAAA,EAAG,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terRecordActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'human-capital-management',
6
+ module: 'HumanCapitalManagement',
7
+ };
8
+ const RootConfig = {
9
+ config,
10
+ module: {
11
+ route: 'human-capital-management',
12
+ name: config.module,
13
+ title: '@human-capital-management:module.title',
14
+ icon: 'fa-light fa-users',
15
+ },
16
+ entities: {
17
+ employee: {
18
+ name: 'Employee',
19
+ source: `${config.module}.Employee`,
20
+ title: '@human-capital-management:employees.entities.employee.title',
21
+ titlePlural: '@human-capital-management:employees.entities.employee.plural',
22
+ icon: 'fa-light fa-address-card',
23
+ },
24
+ employmentType: {
25
+ name: 'EmploymentType',
26
+ source: `${config.module}.EmploymentType`,
27
+ title: '@human-capital-management:employment-types.entities.employment-type.title',
28
+ titlePlural: '@human-capital-management:employment-types.entities.employment-type.plural',
29
+ icon: 'fa-light fa-file-signature',
30
+ },
31
+ positionAssignment: {
32
+ name: 'PositionAssignment',
33
+ source: `${config.module}.PositionAssignment`,
34
+ title: '@human-capital-management:position-assignments.entities.position-assignment.title',
35
+ titlePlural: '@human-capital-management:position-assignments.entities.position-assignment.plural',
36
+ icon: 'fa-light fa-user-tie-hair',
37
+ },
38
+ leaveType: {
39
+ name: 'LeaveType',
40
+ source: `${config.module}.LeaveType`,
41
+ title: '@human-capital-management:leave-types.entities.leave-type.title',
42
+ titlePlural: '@human-capital-management:leave-types.entities.leave-type.plural',
43
+ icon: 'fa-light fa-calendar-days',
44
+ },
45
+ leaveRequest: {
46
+ name: 'LeaveRequest',
47
+ source: `${config.module}.LeaveRequest`,
48
+ title: '@human-capital-management:leave-requests.entities.leave-request.title',
49
+ titlePlural: '@human-capital-management:leave-requests.entities.leave-request.plural',
50
+ icon: 'fa-light fa-plane-departure',
51
+ },
52
+ lifecycleEventType: {
53
+ name: 'LifecycleEventType',
54
+ source: `${config.module}.LifecycleEventType`,
55
+ title: '@human-capital-management:lifecycle-event-types.entities.lifecycle-event-type.title',
56
+ titlePlural: '@human-capital-management:lifecycle-event-types.entities.lifecycle-event-type.plural',
57
+ icon: 'fa-light fa-diagram-next',
58
+ },
59
+ lifecycleEvent: {
60
+ name: 'LifecycleEvent',
61
+ source: `${config.module}.LifecycleEvent`,
62
+ title: '@human-capital-management:lifecycle-events.entities.lifecycle-event.title',
63
+ titlePlural: '@human-capital-management:lifecycle-events.entities.lifecycle-event.plural',
64
+ icon: 'fa-light fa-clipboard-list-check',
65
+ },
66
+ },
67
+ pages: {
68
+ appointmentBoard: {
69
+ path: 'Boards/ResourceAppointment',
70
+ title: '@human-capital-management:leave-requests.menus.appointment-board.title',
71
+ icon: 'fa-light fa-calendar-lines',
72
+ },
73
+ },
74
+ queries: {
75
+ dashboard: {
76
+ employeesKpi: `${config.module}:Dashboard:EmployeesKpi`,
77
+ },
78
+ reports: {
79
+ getHeadcountByDepartment: `${config.module}:Reports:GetHeadcountByDepartment`,
80
+ getLeaveUsageByType: `${config.module}:Reports:GetLeaveUsageByType`,
81
+ },
82
+ },
83
+ };
84
+
85
+ //#endregion
86
+ async function factoryLeaveRequest() {
87
+ const entityDef = {
88
+ module: RootConfig.module.name,
89
+ name: RootConfig.entities.leaveRequest.name,
90
+ title: RootConfig.entities.leaveRequest.title,
91
+ icon: RootConfig.entities.leaveRequest.icon,
92
+ plugins: [
93
+ { name: 'history' },
94
+ {
95
+ name: 'attachments',
96
+ options: {
97
+ showListAction: false,
98
+ },
99
+ },
100
+ {
101
+ name: 'workflow-run',
102
+ options: {
103
+ list: {
104
+ mode: 'workflow-run',
105
+ },
106
+ },
107
+ },
108
+ {
109
+ name: 'status',
110
+ options: {
111
+ field: 'statusId',
112
+ definition: 'human-capital-management.status.leave-request',
113
+ },
114
+ },
115
+ {
116
+ name: 'meta-data-form',
117
+ options: {
118
+ path: 'leaveTypeId',
119
+ display: 'section',
120
+ // display: {
121
+ // // section: {
122
+ // // title: 'Sample Form'
123
+ // // },
124
+ // popup: {
125
+ // enabled: true,
126
+ // title: "Sample Form"
127
+ // }
128
+ // }
129
+ }
130
+ },
131
+ ],
132
+ formats: {
133
+ individual: RootConfig.entities.leaveRequest.title,
134
+ plural: RootConfig.entities.leaveRequest.titlePlural,
135
+ searchResult: { title: '{{ employee.person.fullName }}', description: RootConfig.module.title },
136
+ },
137
+ groups: [
138
+ { id: 'request-details', title: '@human-capital-management:leave-requests.entities.leave-request.groups.request-details' },
139
+ ],
140
+ properties: [
141
+ {
142
+ name: 'id',
143
+ title: 'ID',
144
+ groupId: 'request-details',
145
+ schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
146
+ },
147
+ {
148
+ name: 'employeeId',
149
+ title: '@general:terms.people.employee',
150
+ groupId: 'request-details',
151
+ options: {
152
+ sort: { enabled: true },
153
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
154
+ },
155
+ schema: {
156
+ dataType: 'string',
157
+ interface: {
158
+ type: AXPWidgetsCatalog.lookup,
159
+ options: {
160
+ entity: `${RootConfig.module.name}.${RootConfig.entities.employee.name}`,
161
+ textField: 'person.fullName',
162
+ valueField: 'id',
163
+ look: 'select',
164
+ columns: ['person.fullName', 'employeeCode'],
165
+ expose: [
166
+ { source: 'id', target: 'employee.id' },
167
+ { source: 'person.fullName', target: 'employee.person.fullName' },
168
+ ],
169
+ },
170
+ },
171
+ },
172
+ validations: [{ rule: 'required' }],
173
+ },
174
+ {
175
+ name: 'leaveTypeId',
176
+ title: '@human-capital-management:leave-requests.entities.leave-request.fields.leave-type-id',
177
+ groupId: 'request-details',
178
+ options: {
179
+ sort: { enabled: true },
180
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
181
+ },
182
+ schema: {
183
+ dataType: 'string',
184
+ interface: {
185
+ type: AXPWidgetsCatalog.lookup,
186
+ options: {
187
+ entity: `${RootConfig.module.name}.${RootConfig.entities.leaveType.name}`,
188
+ textField: 'title',
189
+ valueField: 'id',
190
+ look: 'select',
191
+ columns: ['title'],
192
+ expose: [
193
+ { source: 'id', target: 'leaveType.id' },
194
+ { source: 'title', target: 'leaveType.title' },
195
+ ],
196
+ },
197
+ },
198
+ },
199
+ validations: [{ rule: 'required' }],
200
+ },
201
+ {
202
+ name: 'startDate',
203
+ title: '@general:terms.datetime.start-date',
204
+ groupId: 'request-details',
205
+ options: {
206
+ sort: { enabled: true },
207
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
208
+ },
209
+ schema: {
210
+ dataType: 'date',
211
+ defaultValue: '{{ date.today() }}',
212
+ interface: {
213
+ type: AXPWidgetsCatalog.dateTime,
214
+ },
215
+ },
216
+ validations: [{ rule: 'required' }],
217
+ },
218
+ {
219
+ name: 'endDate',
220
+ title: '@general:terms.datetime.end-date',
221
+ groupId: 'request-details',
222
+ options: {
223
+ sort: { enabled: true },
224
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
225
+ },
226
+ schema: {
227
+ dataType: 'date',
228
+ defaultValue: '{{ date.addDays(date.today(), 1) }}',
229
+ interface: {
230
+ type: AXPWidgetsCatalog.dateTime,
231
+ },
232
+ },
233
+ validations: [{ rule: 'required' }],
234
+ },
235
+ {
236
+ name: 'durationDays',
237
+ title: '@human-capital-management:leave-requests.entities.leave-request.fields.duration-days',
238
+ groupId: 'request-details',
239
+ options: {
240
+ sort: { enabled: true },
241
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
242
+ },
243
+ schema: {
244
+ dataType: 'number',
245
+ readonly: true,
246
+ defaultValue: 1,
247
+ interface: {
248
+ type: AXPWidgetsCatalog.number,
249
+ triggers: [
250
+ {
251
+ event: "{{ events.context('startDate', 'endDate') }}",
252
+ action: "{{ context.set('durationDays', date.duration(context.eval('startDate'), context.eval('endDate'), 'days')) }}",
253
+ },
254
+ ],
255
+ }
256
+ },
257
+ },
258
+ {
259
+ name: 'reason',
260
+ title: '@human-capital-management:leave-requests.entities.leave-request.fields.reason',
261
+ groupId: 'request-details',
262
+ options: {
263
+ sort: { enabled: false },
264
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
265
+ },
266
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.largeText } },
267
+ },
268
+ {
269
+ name: 'rejectReason',
270
+ title: '@human-capital-management:leave-requests.entities.leave-request.fields.manager-note',
271
+ groupId: 'request-details',
272
+ options: {
273
+ sort: { enabled: false },
274
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
275
+ },
276
+ schema: {
277
+ dataType: 'string',
278
+ readonly: true,
279
+ interface: { type: AXPWidgetsCatalog.largeText },
280
+ },
281
+ },
282
+ ],
283
+ columns: [
284
+ { name: 'employeeId', options: { dataPath: 'employee.person.fullName' } },
285
+ { name: 'leaveTypeId', options: { dataPath: 'leaveType.title' } },
286
+ { name: 'startDate' },
287
+ { name: 'endDate' },
288
+ { name: 'durationDays' },
289
+ { name: 'statusId' },
290
+ { name: 'reason' },
291
+ ],
292
+ interfaces: {
293
+ master: {
294
+ create: {
295
+ sections: [{ id: 'request-details' }],
296
+ properties: [
297
+ { name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },
298
+ { name: 'leaveTypeId', layout: { positions: { lg: { colSpan: 6 } } } },
299
+ {
300
+ name: 'startDate',
301
+ layout: { order: 10, positions: { md: { colSpan: 4, colStart: 1 }, lg: { colSpan: 4, colStart: 1 } } },
302
+ },
303
+ {
304
+ name: 'endDate',
305
+ layout: { order: 11, positions: { md: { colSpan: 4, colStart: 5 }, lg: { colSpan: 4, colStart: 5 } } },
306
+ },
307
+ {
308
+ name: 'durationDays',
309
+ layout: { order: 12, positions: { md: { colSpan: 4, colStart: 9 }, lg: { colSpan: 4, colStart: 9 } } },
310
+ },
311
+ { name: 'reason', layout: { positions: { lg: { colSpan: 12 } } } },
312
+ ],
313
+ },
314
+ update: {
315
+ sections: [{ id: 'request-details' }],
316
+ properties: [
317
+ { name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },
318
+ { name: 'leaveTypeId', layout: { positions: { lg: { colSpan: 6 } } } },
319
+ {
320
+ name: 'startDate',
321
+ layout: { order: 10, positions: { md: { colSpan: 4, colStart: 1 }, lg: { colSpan: 4, colStart: 1 } } },
322
+ },
323
+ {
324
+ name: 'endDate',
325
+ layout: { order: 11, positions: { md: { colSpan: 4, colStart: 5 }, lg: { colSpan: 4, colStart: 5 } } },
326
+ },
327
+ {
328
+ name: 'durationDays',
329
+ layout: { order: 12, positions: { md: { colSpan: 4, colStart: 9 }, lg: { colSpan: 4, colStart: 9 } } },
330
+ },
331
+ { name: 'reason', layout: { positions: { lg: { colSpan: 12 } } } },
332
+ ],
333
+ },
334
+ single: {
335
+ title: '{{employee.person.fullName}}',
336
+ sections: [
337
+ { id: 'request-details', order: 1 },
338
+ ],
339
+ properties: [
340
+ { name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },
341
+ { name: 'leaveTypeId', layout: { positions: { lg: { colSpan: 6 } } } },
342
+ {
343
+ name: 'startDate',
344
+ layout: { order: 10, positions: { md: { colSpan: 4, colStart: 1 }, lg: { colSpan: 4, colStart: 1 } } },
345
+ },
346
+ {
347
+ name: 'endDate',
348
+ layout: { order: 11, positions: { md: { colSpan: 4, colStart: 5 }, lg: { colSpan: 4, colStart: 5 } } },
349
+ },
350
+ {
351
+ name: 'durationDays',
352
+ layout: { order: 12, positions: { md: { colSpan: 4, colStart: 9 }, lg: { colSpan: 4, colStart: 9 } } },
353
+ },
354
+ { name: 'reason', layout: { positions: { lg: { colSpan: 12 } } } },
355
+ { name: 'rejectReason', layout: { positions: { lg: { colSpan: 12 } } } },
356
+ ],
357
+ actions: entityMasterRecordActions(),
358
+ },
359
+ list: {
360
+ actions: [...entityMasterCrudActions({ view: false, delete: false })],
361
+ views: [createAllQueryView({ sorts: [{ name: 'startDate', dir: 'desc' }] })],
362
+ },
363
+ },
364
+ },
365
+ };
366
+ return entityDef;
367
+ }
368
+
369
+ /**
370
+ * Generated bundle index. Do not edit.
371
+ */
372
+
373
+ export { factoryLeaveRequest };
374
+ //# sourceMappingURL=acorex-platform-module-human-capital-management-client-contracts-entities-leave-request.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-human-capital-management-client-contracts-entities-leave-request.mjs","sources":["../../../../libs/modules/human-capital-management/contracts/src/root-config.ts","../../../../libs/modules/human-capital-management/contracts/src/entities/leave-request/leave-request.entity.ts","../../../../libs/modules/human-capital-management/contracts/src/acorex-platform-module-human-capital-management-client-contracts-entities-leave-request.ts"],"sourcesContent":["const config = {\n i18n: 'human-capital-management',\n module: 'HumanCapitalManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'human-capital-management',\n name: config.module,\n title: '@human-capital-management:module.title',\n icon: 'fa-light fa-users',\n },\n entities: {\n employee: {\n name: 'Employee',\n source: `${config.module}.Employee`,\n title: '@human-capital-management:employees.entities.employee.title',\n titlePlural: '@human-capital-management:employees.entities.employee.plural',\n icon: 'fa-light fa-address-card',\n },\n employmentType: {\n name: 'EmploymentType',\n source: `${config.module}.EmploymentType`,\n title: '@human-capital-management:employment-types.entities.employment-type.title',\n titlePlural: '@human-capital-management:employment-types.entities.employment-type.plural',\n icon: 'fa-light fa-file-signature',\n },\n positionAssignment: {\n name: 'PositionAssignment',\n source: `${config.module}.PositionAssignment`,\n title: '@human-capital-management:position-assignments.entities.position-assignment.title',\n titlePlural: '@human-capital-management:position-assignments.entities.position-assignment.plural',\n icon: 'fa-light fa-user-tie-hair',\n },\n leaveType: {\n name: 'LeaveType',\n source: `${config.module}.LeaveType`,\n title: '@human-capital-management:leave-types.entities.leave-type.title',\n titlePlural: '@human-capital-management:leave-types.entities.leave-type.plural',\n icon: 'fa-light fa-calendar-days',\n },\n leaveRequest: {\n name: 'LeaveRequest',\n source: `${config.module}.LeaveRequest`,\n title: '@human-capital-management:leave-requests.entities.leave-request.title',\n titlePlural: '@human-capital-management:leave-requests.entities.leave-request.plural',\n icon: 'fa-light fa-plane-departure',\n },\n lifecycleEventType: {\n name: 'LifecycleEventType',\n source: `${config.module}.LifecycleEventType`,\n title: '@human-capital-management:lifecycle-event-types.entities.lifecycle-event-type.title',\n titlePlural: '@human-capital-management:lifecycle-event-types.entities.lifecycle-event-type.plural',\n icon: 'fa-light fa-diagram-next',\n },\n lifecycleEvent: {\n name: 'LifecycleEvent',\n source: `${config.module}.LifecycleEvent`,\n title: '@human-capital-management:lifecycle-events.entities.lifecycle-event.title',\n titlePlural: '@human-capital-management:lifecycle-events.entities.lifecycle-event.plural',\n icon: 'fa-light fa-clipboard-list-check',\n },\n },\n pages: {\n appointmentBoard: {\n path: 'Boards/ResourceAppointment',\n title: '@human-capital-management:leave-requests.menus.appointment-board.title',\n icon: 'fa-light fa-calendar-lines',\n },\n },\n queries: {\n dashboard: {\n employeesKpi: `${config.module}:Dashboard:EmployeesKpi`,\n },\n reports: {\n getHeadcountByDepartment: `${config.module}:Reports:GetHeadcountByDepartment`,\n getLeaveUsageByType: `${config.module}:Reports:GetLeaveUsageByType`,\n },\n },\n} as const;\n","import { AXPWidgetsCatalog } 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\nexport async function factoryLeaveRequest(): Promise<AXPEntity | null> {\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.leaveRequest.name,\n title: RootConfig.entities.leaveRequest.title,\n icon: RootConfig.entities.leaveRequest.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.leave-request',\n },\n },\n {\n name: 'meta-data-form',\n options:\n {\n path: 'leaveTypeId',\n display: 'section',\n // display: {\n // // section: {\n // // title: 'Sample Form'\n // // },\n // popup: {\n // enabled: true,\n // title: \"Sample Form\"\n // }\n // }\n }\n },\n ],\n formats: {\n individual: RootConfig.entities.leaveRequest.title,\n plural: RootConfig.entities.leaveRequest.titlePlural,\n searchResult: { title: '{{ employee.person.fullName }}', description: RootConfig.module.title },\n },\n groups: [\n { id: 'request-details', title: '@human-capital-management:leave-requests.entities.leave-request.groups.request-details' },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'request-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: 'request-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: AXPWidgetsCatalog.lookup,\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: 'leaveTypeId',\n title: '@human-capital-management:leave-requests.entities.leave-request.fields.leave-type-id',\n groupId: 'request-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: AXPWidgetsCatalog.lookup,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.leaveType.name}`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n columns: ['title'],\n expose: [\n { source: 'id', target: 'leaveType.id' },\n { source: 'title', target: 'leaveType.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'startDate',\n title: '@general:terms.datetime.start-date',\n groupId: 'request-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'date',\n defaultValue: '{{ date.today() }}',\n interface: {\n type: AXPWidgetsCatalog.dateTime,\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'endDate',\n title: '@general:terms.datetime.end-date',\n groupId: 'request-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'date',\n defaultValue: '{{ date.addDays(date.today(), 1) }}',\n interface: {\n type: AXPWidgetsCatalog.dateTime,\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'durationDays',\n title: '@human-capital-management:leave-requests.entities.leave-request.fields.duration-days',\n groupId: 'request-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'number',\n readonly: true,\n defaultValue: 1,\n interface: {\n type: AXPWidgetsCatalog.number,\n triggers: [\n {\n event: \"{{ events.context('startDate', 'endDate') }}\",\n action:\n \"{{ context.set('durationDays', date.duration(context.eval('startDate'), context.eval('endDate'), 'days')) }}\",\n },\n ],\n }\n },\n },\n {\n name: 'reason',\n title: '@human-capital-management:leave-requests.entities.leave-request.fields.reason',\n groupId: 'request-details',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.largeText } },\n },\n {\n name: 'rejectReason',\n title: '@human-capital-management:leave-requests.entities.leave-request.fields.manager-note',\n groupId: 'request-details',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.largeText },\n },\n },\n ],\n columns: [\n { name: 'employeeId', options: { dataPath: 'employee.person.fullName' } },\n { name: 'leaveTypeId', options: { dataPath: 'leaveType.title' } },\n { name: 'startDate' },\n { name: 'endDate' },\n { name: 'durationDays' },\n { name: 'statusId' },\n { name: 'reason' },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'request-details' }],\n properties: [\n { name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'leaveTypeId', layout: { positions: { lg: { colSpan: 6 } } } },\n {\n name: 'startDate',\n layout: { order: 10, positions: { md: { colSpan: 4, colStart: 1 }, lg: { colSpan: 4, colStart: 1 } } },\n },\n {\n name: 'endDate',\n layout: { order: 11, positions: { md: { colSpan: 4, colStart: 5 }, lg: { colSpan: 4, colStart: 5 } } },\n },\n {\n name: 'durationDays',\n layout: { order: 12, positions: { md: { colSpan: 4, colStart: 9 }, lg: { colSpan: 4, colStart: 9 } } },\n },\n { name: 'reason', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n update: {\n sections: [{ id: 'request-details' }],\n properties: [\n { name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'leaveTypeId', layout: { positions: { lg: { colSpan: 6 } } } },\n {\n name: 'startDate',\n layout: { order: 10, positions: { md: { colSpan: 4, colStart: 1 }, lg: { colSpan: 4, colStart: 1 } } },\n },\n {\n name: 'endDate',\n layout: { order: 11, positions: { md: { colSpan: 4, colStart: 5 }, lg: { colSpan: 4, colStart: 5 } } },\n },\n {\n name: 'durationDays',\n layout: { order: 12, positions: { md: { colSpan: 4, colStart: 9 }, lg: { colSpan: 4, colStart: 9 } } },\n },\n { name: 'reason', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n single: {\n title: '{{employee.person.fullName}}',\n sections: [\n { id: 'request-details', order: 1 },\n ],\n properties: [\n { name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'leaveTypeId', layout: { positions: { lg: { colSpan: 6 } } } },\n {\n name: 'startDate',\n layout: { order: 10, positions: { md: { colSpan: 4, colStart: 1 }, lg: { colSpan: 4, colStart: 1 } } },\n },\n {\n name: 'endDate',\n layout: { order: 11, positions: { md: { colSpan: 4, colStart: 5 }, lg: { colSpan: 4, colStart: 5 } } },\n },\n {\n name: 'durationDays',\n layout: { order: 12, positions: { md: { colSpan: 4, colStart: 9 }, lg: { colSpan: 4, colStart: 9 } } },\n },\n { name: 'reason', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'rejectReason', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: entityMasterRecordActions(),\n },\n list: {\n actions: [...entityMasterCrudActions({ view: false, delete: false })],\n views: [createAllQueryView({ sorts: [{ name: 'startDate', dir: 'desc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.leave-request';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,0BAA0B;AAChC,IAAA,MAAM,EAAE,wBAAwB;CACjC;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,0BAA0B;QACjC,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,wCAAwC;AAC/C,QAAA,IAAI,EAAE,mBAAmB;AAC1B,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,MAAM,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,SAAA,CAAW;AACnC,YAAA,KAAK,EAAE,6DAA6D;AACpE,YAAA,WAAW,EAAE,8DAA8D;AAC3E,YAAA,IAAI,EAAE,0BAA0B;AACjC,SAAA;AACD,QAAA,cAAc,EAAE;AACd,YAAA,IAAI,EAAE,gBAAgB;AACtB,YAAA,MAAM,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,eAAA,CAAiB;AACzC,YAAA,KAAK,EAAE,2EAA2E;AAClF,YAAA,WAAW,EAAE,4EAA4E;AACzF,YAAA,IAAI,EAAE,4BAA4B;AACnC,SAAA;AACD,QAAA,kBAAkB,EAAE;AAClB,YAAA,IAAI,EAAE,oBAAoB;AAC1B,YAAA,MAAM,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,mBAAA,CAAqB;AAC7C,YAAA,KAAK,EAAE,mFAAmF;AAC1F,YA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