@acorex-platform/module-timesheet-management-client 0.0.32 → 0.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/acorex-platform-module-timesheet-management-client-admin-adjust-timesheet-period.command-8lA7h4rI.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client-approval-inbox.query-Wyz_jjxb.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client-approve-timesheet-period.command-DlAeGANo.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client-compare-attendance-vs-timesheet.query-ZZym5nSx.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entities-time-entry.mjs +369 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entities-time-entry.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entities-timesheet-correction.mjs +252 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entities-timesheet-correction.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entities-timesheet-period.mjs +347 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entities-timesheet-period.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entities-timesheet-policy.mjs +281 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entities-timesheet-policy.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entities-work-item.mjs +305 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entities-work-item.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entity-catalog-acorex-platform-module-timesheet-management-client-contracts-entity-catalog-BbB3MCCl.mjs +97 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entity-catalog-acorex-platform-module-timesheet-management-client-contracts-entity-catalog-BbB3MCCl.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entity-catalog-time-entry.entity-CAs7zUnV.mjs +295 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entity-catalog-time-entry.entity-CAs7zUnV.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entity-catalog-timesheet-correction.entity--wZeCM5Q.mjs +178 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entity-catalog-timesheet-correction.entity--wZeCM5Q.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entity-catalog-timesheet-period.entity-BOyfB4YA.mjs +273 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entity-catalog-timesheet-period.entity-BOyfB4YA.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entity-catalog-timesheet-policy.entity-CqqN7Xty.mjs +207 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entity-catalog-timesheet-policy.entity-CqqN7Xty.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entity-catalog-work-item.entity-DilF7u50.mjs +231 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entity-catalog-work-item.entity-DilF7u50.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client-create-time-entry.command-DS2EVLym.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client-delete-time-entry.command-5_ItHpnx.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client-local-entities.mjs +33 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-local-entities.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-timesheet-management-client-lock-timesheet-period.command-D7V7SWUK.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client-my-timesheet-grid.query-DlDY3tdF.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client-reject-timesheet-period.command-CONxKPNm.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client-reopen-timesheet-period.command-DRr_c67L.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client-report-billable-summary.query-BeLk4Of7.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client-report-hours-by-project.query-Sp8cLnTC.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client-report-hours-by-work-item.query-C8RU9Uc0.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client-submit-timesheet-period.command-C2qlQVIC.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client-team-timesheets.query-B0QpkVEI.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client-timesheet-validation.service-DMrJn3HU.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client-update-time-entry.command-Do6s9OrI.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client-work-item-search.query-BA2kvF-S.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client-workforce-exception-report.query-0q-AITic.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client.mjs +1 -1
- package/fesm2022/acorex-platform-module-timesheet-management-client.mjs.map +1 -1
- package/package.json +29 -1
- package/types/acorex-platform-module-timesheet-management-client-contracts-entities-time-entry.d.ts +8 -0
- package/types/acorex-platform-module-timesheet-management-client-contracts-entities-timesheet-correction.d.ts +8 -0
- package/types/acorex-platform-module-timesheet-management-client-contracts-entities-timesheet-period.d.ts +8 -0
- package/types/acorex-platform-module-timesheet-management-client-contracts-entities-timesheet-policy.d.ts +8 -0
- package/types/acorex-platform-module-timesheet-management-client-contracts-entities-work-item.d.ts +8 -0
- package/types/acorex-platform-module-timesheet-management-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-timesheet-management-client-local-entities.d.ts +12 -0
package/fesm2022/acorex-platform-module-timesheet-management-client-contracts-entities-work-item.mjs
ADDED
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
|
|
4
|
+
//#region ---- Module Config ----
|
|
5
|
+
const config = {
|
|
6
|
+
i18n: 'timesheet-management',
|
|
7
|
+
module: 'TimesheetManagement',
|
|
8
|
+
route: 'timesheet-management',
|
|
9
|
+
};
|
|
10
|
+
const RootConfig = {
|
|
11
|
+
config,
|
|
12
|
+
module: {
|
|
13
|
+
name: config.module,
|
|
14
|
+
route: config.route,
|
|
15
|
+
title: `@${config.i18n}:module.title`,
|
|
16
|
+
icon: 'fa-light fa-clock',
|
|
17
|
+
},
|
|
18
|
+
entities: {
|
|
19
|
+
workItem: {
|
|
20
|
+
name: 'WorkItem',
|
|
21
|
+
source: `${config.module}.WorkItem`,
|
|
22
|
+
title: `@${config.i18n}:work-items.entities.work-item.title`,
|
|
23
|
+
titlePlural: `@${config.i18n}:work-items.entities.work-item.plural`,
|
|
24
|
+
icon: 'fa-light fa-list-check',
|
|
25
|
+
},
|
|
26
|
+
timesheetPeriod: {
|
|
27
|
+
name: 'TimesheetPeriod',
|
|
28
|
+
source: `${config.module}.TimesheetPeriod`,
|
|
29
|
+
title: `@${config.i18n}:timesheet-periods.entities.timesheet-period.title`,
|
|
30
|
+
titlePlural: `@${config.i18n}:timesheet-periods.entities.timesheet-period.plural`,
|
|
31
|
+
icon: 'fa-light fa-calendar-week',
|
|
32
|
+
},
|
|
33
|
+
timeEntry: {
|
|
34
|
+
name: 'TimeEntry',
|
|
35
|
+
source: `${config.module}.TimeEntry`,
|
|
36
|
+
title: `@${config.i18n}:time-entries.entities.time-entry.title`,
|
|
37
|
+
titlePlural: `@${config.i18n}:time-entries.entities.time-entry.plural`,
|
|
38
|
+
icon: 'fa-light fa-hourglass-half',
|
|
39
|
+
},
|
|
40
|
+
timesheetCorrection: {
|
|
41
|
+
name: 'TimesheetCorrection',
|
|
42
|
+
source: `${config.module}.TimesheetCorrection`,
|
|
43
|
+
title: `@${config.i18n}:timesheet-corrections.entities.timesheet-correction.title`,
|
|
44
|
+
titlePlural: `@${config.i18n}:timesheet-corrections.entities.timesheet-correction.plural`,
|
|
45
|
+
icon: 'fa-light fa-pen-to-square',
|
|
46
|
+
},
|
|
47
|
+
timesheetPolicy: {
|
|
48
|
+
name: 'TimesheetPolicy',
|
|
49
|
+
source: `${config.module}.TimesheetPolicy`,
|
|
50
|
+
title: `@${config.i18n}:timesheet-policies.entities.timesheet-policy.title`,
|
|
51
|
+
titlePlural: `@${config.i18n}:timesheet-policies.entities.timesheet-policy.plural`,
|
|
52
|
+
icon: 'fa-light fa-sliders',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
pages: {
|
|
56
|
+
myTimesheet: {
|
|
57
|
+
path: 'my-timesheet',
|
|
58
|
+
title: `@${config.i18n}:pages.my-timesheet.title`,
|
|
59
|
+
icon: 'fa-light fa-calendar-week',
|
|
60
|
+
},
|
|
61
|
+
approvalInbox: {
|
|
62
|
+
path: 'approval-inbox',
|
|
63
|
+
title: `@${config.i18n}:pages.approval-inbox.title`,
|
|
64
|
+
icon: 'fa-light fa-inbox',
|
|
65
|
+
},
|
|
66
|
+
teamTimesheets: {
|
|
67
|
+
path: 'team-timesheets',
|
|
68
|
+
title: `@${config.i18n}:pages.team-timesheets.title`,
|
|
69
|
+
icon: 'fa-light fa-users',
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
//#endregion
|
|
74
|
+
|
|
75
|
+
//#region ---- Constants ----
|
|
76
|
+
const i18n = RootConfig.config.i18n;
|
|
77
|
+
const entityI18n = `${i18n}:work-items.entities.work-item`;
|
|
78
|
+
const listSortAndFilterOptions = {
|
|
79
|
+
sort: { enabled: true },
|
|
80
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
81
|
+
};
|
|
82
|
+
const WORK_ITEM_SOURCE_TYPE_OPTIONS = [
|
|
83
|
+
{ id: 'Internal', title: `@${entityI18n}.fields.source-type.options.internal` },
|
|
84
|
+
{ id: 'Jira', title: `@${entityI18n}.fields.source-type.options.jira` },
|
|
85
|
+
{ id: 'Task', title: `@${entityI18n}.fields.source-type.options.task` },
|
|
86
|
+
];
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region ---- Entity Factory ----
|
|
89
|
+
/**
|
|
90
|
+
* Work item entity factory for billable/non-billable time tracking references.
|
|
91
|
+
*/
|
|
92
|
+
async function factoryWorkItem() {
|
|
93
|
+
const entityDef = {
|
|
94
|
+
module: RootConfig.module.name,
|
|
95
|
+
name: RootConfig.entities.workItem.name,
|
|
96
|
+
title: RootConfig.entities.workItem.title,
|
|
97
|
+
icon: RootConfig.entities.workItem.icon,
|
|
98
|
+
formats: {
|
|
99
|
+
individual: RootConfig.entities.workItem.title,
|
|
100
|
+
plural: RootConfig.entities.workItem.titlePlural,
|
|
101
|
+
searchResult: {
|
|
102
|
+
title: '{{ code }}',
|
|
103
|
+
description: '{{ title }}',
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
plugins: [
|
|
107
|
+
{ name: 'history' },
|
|
108
|
+
{ name: 'unique-fields', options: { fields: 'code', scope: 'tenant' } },
|
|
109
|
+
],
|
|
110
|
+
groups: [
|
|
111
|
+
{ id: 'basic-info', title: '@general:terms.interface.basic-info' },
|
|
112
|
+
{ id: 'source', title: `@${entityI18n}.groups.source` },
|
|
113
|
+
{ id: 'assignment', title: `@${entityI18n}.groups.assignment` },
|
|
114
|
+
{ id: 'settings', title: '@general:terms.interface.settings' },
|
|
115
|
+
],
|
|
116
|
+
properties: [
|
|
117
|
+
{
|
|
118
|
+
name: 'id',
|
|
119
|
+
title: '@general:terms.common.id',
|
|
120
|
+
groupId: 'basic-info',
|
|
121
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: 'code',
|
|
125
|
+
title: `@${entityI18n}.fields.code.title`,
|
|
126
|
+
groupId: 'basic-info',
|
|
127
|
+
options: listSortAndFilterOptions,
|
|
128
|
+
schema: {
|
|
129
|
+
dataType: 'string',
|
|
130
|
+
unique: { enabled: true },
|
|
131
|
+
interface: { type: AXPWidgetsCatalog.text },
|
|
132
|
+
},
|
|
133
|
+
validations: [{ rule: 'required' }],
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: 'title',
|
|
137
|
+
title: '@general:terms.common.title',
|
|
138
|
+
groupId: 'basic-info',
|
|
139
|
+
options: listSortAndFilterOptions,
|
|
140
|
+
schema: {
|
|
141
|
+
dataType: 'string',
|
|
142
|
+
interface: { type: AXPWidgetsCatalog.text, options: { multiLanguage: true } },
|
|
143
|
+
},
|
|
144
|
+
validations: [{ rule: 'required' }],
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: 'sourceType',
|
|
148
|
+
title: `@${entityI18n}.fields.source-type.title`,
|
|
149
|
+
groupId: 'source',
|
|
150
|
+
options: listSortAndFilterOptions,
|
|
151
|
+
schema: {
|
|
152
|
+
dataType: 'string',
|
|
153
|
+
defaultValue: 'Internal',
|
|
154
|
+
interface: {
|
|
155
|
+
type: AXPWidgetsCatalog.select,
|
|
156
|
+
options: { items: WORK_ITEM_SOURCE_TYPE_OPTIONS },
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
validations: [{ rule: 'required' }],
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: 'sourceRef',
|
|
163
|
+
title: `@${entityI18n}.fields.source-ref.title`,
|
|
164
|
+
groupId: 'source',
|
|
165
|
+
schema: {
|
|
166
|
+
dataType: 'string',
|
|
167
|
+
interface: { type: AXPWidgetsCatalog.largeText, options: { rows: 4 } },
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: 'isBillableDefault',
|
|
172
|
+
title: `@${entityI18n}.fields.is-billable-default.title`,
|
|
173
|
+
groupId: 'settings',
|
|
174
|
+
options: listSortAndFilterOptions,
|
|
175
|
+
schema: {
|
|
176
|
+
dataType: 'boolean',
|
|
177
|
+
defaultValue: true,
|
|
178
|
+
interface: { type: AXPWidgetsCatalog.toggle },
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: 'isActive',
|
|
183
|
+
title: `@${entityI18n}.fields.is-active.title`,
|
|
184
|
+
groupId: 'settings',
|
|
185
|
+
options: listSortAndFilterOptions,
|
|
186
|
+
schema: {
|
|
187
|
+
dataType: 'boolean',
|
|
188
|
+
defaultValue: true,
|
|
189
|
+
interface: { type: AXPWidgetsCatalog.toggle },
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: 'employeeId',
|
|
194
|
+
title: `@${entityI18n}.fields.employee-id.title`,
|
|
195
|
+
groupId: 'assignment',
|
|
196
|
+
options: listSortAndFilterOptions,
|
|
197
|
+
schema: {
|
|
198
|
+
dataType: 'string',
|
|
199
|
+
interface: {
|
|
200
|
+
type: AXPWidgetsCatalog.lookup,
|
|
201
|
+
options: {
|
|
202
|
+
look: 'select',
|
|
203
|
+
entity: 'HumanCapitalManagement.Employee',
|
|
204
|
+
textField: 'person.fullName',
|
|
205
|
+
valueField: 'id',
|
|
206
|
+
expose: [
|
|
207
|
+
{ source: 'id', target: 'employee.id' },
|
|
208
|
+
{ source: 'employeeCode', target: 'employee.employeeCode' },
|
|
209
|
+
{ source: 'person.fullName', target: 'employee.person.fullName' },
|
|
210
|
+
],
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
name: 'projectId',
|
|
217
|
+
title: `@${entityI18n}.fields.project-id.title`,
|
|
218
|
+
groupId: 'assignment',
|
|
219
|
+
options: listSortAndFilterOptions,
|
|
220
|
+
schema: {
|
|
221
|
+
dataType: 'string',
|
|
222
|
+
interface: {
|
|
223
|
+
type: AXPWidgetsCatalog.lookup,
|
|
224
|
+
options: {
|
|
225
|
+
look: 'select',
|
|
226
|
+
entity: 'ProjectManagement.Project',
|
|
227
|
+
textField: 'name',
|
|
228
|
+
valueField: 'id',
|
|
229
|
+
expose: [
|
|
230
|
+
{ source: 'id', target: 'project.id' },
|
|
231
|
+
{ source: 'title', target: 'project.title' },
|
|
232
|
+
],
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
],
|
|
238
|
+
columns: [
|
|
239
|
+
{ name: 'code' },
|
|
240
|
+
{ name: 'title' },
|
|
241
|
+
{ name: 'sourceType' },
|
|
242
|
+
{ name: 'employeeId', options: { dataPath: 'employee.person.fullName' } },
|
|
243
|
+
{ name: 'projectId', options: { dataPath: 'project.title' } },
|
|
244
|
+
{ name: 'isBillableDefault' },
|
|
245
|
+
{ name: 'isActive' },
|
|
246
|
+
],
|
|
247
|
+
interfaces: {
|
|
248
|
+
master: {
|
|
249
|
+
create: {
|
|
250
|
+
sections: [{ id: 'basic-info' }, { id: 'source' }, { id: 'assignment' }, { id: 'settings' }],
|
|
251
|
+
properties: [
|
|
252
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
253
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
254
|
+
{ name: 'sourceType', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
255
|
+
{ name: 'sourceRef', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
256
|
+
{ name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
257
|
+
{ name: 'projectId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
258
|
+
{ name: 'isBillableDefault', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
259
|
+
{ name: 'isActive', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
260
|
+
],
|
|
261
|
+
},
|
|
262
|
+
update: {
|
|
263
|
+
sections: [{ id: 'basic-info' }, { id: 'source' }, { id: 'assignment' }, { id: 'settings' }],
|
|
264
|
+
properties: [
|
|
265
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
266
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
267
|
+
{ name: 'sourceType', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
268
|
+
{ name: 'sourceRef', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
269
|
+
{ name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
270
|
+
{ name: 'projectId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
271
|
+
{ name: 'isBillableDefault', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
272
|
+
{ name: 'isActive', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
273
|
+
],
|
|
274
|
+
},
|
|
275
|
+
single: {
|
|
276
|
+
title: '{{ code }}',
|
|
277
|
+
sections: [{ id: 'basic-info' }, { id: 'source' }, { id: 'assignment' }, { id: 'settings' }],
|
|
278
|
+
properties: [
|
|
279
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
280
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
281
|
+
{ name: 'sourceType', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
282
|
+
{ name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
283
|
+
{ name: 'projectId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
284
|
+
{ name: 'isBillableDefault', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
285
|
+
{ name: 'isActive', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
286
|
+
],
|
|
287
|
+
actions: [...entityMasterRecordActions()],
|
|
288
|
+
},
|
|
289
|
+
list: {
|
|
290
|
+
actions: [...entityMasterCrudActions()],
|
|
291
|
+
views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],
|
|
292
|
+
},
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
};
|
|
296
|
+
return entityDef;
|
|
297
|
+
}
|
|
298
|
+
//#endregion
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Generated bundle index. Do not edit.
|
|
302
|
+
*/
|
|
303
|
+
|
|
304
|
+
export { factoryWorkItem };
|
|
305
|
+
//# sourceMappingURL=acorex-platform-module-timesheet-management-client-contracts-entities-work-item.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-timesheet-management-client-contracts-entities-work-item.mjs","sources":["../../../../libs/modules/timesheet-management/contracts/src/root-config.ts","../../../../libs/modules/timesheet-management/contracts/src/entities/work-item/work-item.entity.ts","../../../../libs/modules/timesheet-management/contracts/src/acorex-platform-module-timesheet-management-client-contracts-entities-work-item.ts"],"sourcesContent":["//#region ---- Module Config ----\n\nconst config = {\n i18n: 'timesheet-management',\n module: 'TimesheetManagement',\n route: 'timesheet-management',\n};\n\nexport const RootConfig = {\n config,\n module: {\n name: config.module,\n route: config.route,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-clock',\n },\n entities: {\n workItem: {\n name: 'WorkItem',\n source: `${config.module}.WorkItem`,\n title: `@${config.i18n}:work-items.entities.work-item.title`,\n titlePlural: `@${config.i18n}:work-items.entities.work-item.plural`,\n icon: 'fa-light fa-list-check',\n },\n timesheetPeriod: {\n name: 'TimesheetPeriod',\n source: `${config.module}.TimesheetPeriod`,\n title: `@${config.i18n}:timesheet-periods.entities.timesheet-period.title`,\n titlePlural: `@${config.i18n}:timesheet-periods.entities.timesheet-period.plural`,\n icon: 'fa-light fa-calendar-week',\n },\n timeEntry: {\n name: 'TimeEntry',\n source: `${config.module}.TimeEntry`,\n title: `@${config.i18n}:time-entries.entities.time-entry.title`,\n titlePlural: `@${config.i18n}:time-entries.entities.time-entry.plural`,\n icon: 'fa-light fa-hourglass-half',\n },\n timesheetCorrection: {\n name: 'TimesheetCorrection',\n source: `${config.module}.TimesheetCorrection`,\n title: `@${config.i18n}:timesheet-corrections.entities.timesheet-correction.title`,\n titlePlural: `@${config.i18n}:timesheet-corrections.entities.timesheet-correction.plural`,\n icon: 'fa-light fa-pen-to-square',\n },\n timesheetPolicy: {\n name: 'TimesheetPolicy',\n source: `${config.module}.TimesheetPolicy`,\n title: `@${config.i18n}:timesheet-policies.entities.timesheet-policy.title`,\n titlePlural: `@${config.i18n}:timesheet-policies.entities.timesheet-policy.plural`,\n icon: 'fa-light fa-sliders',\n },\n },\n pages: {\n myTimesheet: {\n path: 'my-timesheet',\n title: `@${config.i18n}:pages.my-timesheet.title`,\n icon: 'fa-light fa-calendar-week',\n },\n approvalInbox: {\n path: 'approval-inbox',\n title: `@${config.i18n}:pages.approval-inbox.title`,\n icon: 'fa-light fa-inbox',\n },\n teamTimesheets: {\n path: 'team-timesheets',\n title: `@${config.i18n}:pages.team-timesheets.title`,\n icon: 'fa-light fa-users',\n },\n },\n};\n\n//#endregion\n","import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Constants ----\n\nconst i18n = RootConfig.config.i18n;\nconst entityI18n = `${i18n}:work-items.entities.work-item`;\n\nconst listSortAndFilterOptions = {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n};\n\nconst WORK_ITEM_SOURCE_TYPE_OPTIONS = [\n { id: 'Internal', title: `@${entityI18n}.fields.source-type.options.internal` },\n { id: 'Jira', title: `@${entityI18n}.fields.source-type.options.jira` },\n { id: 'Task', title: `@${entityI18n}.fields.source-type.options.task` },\n];\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\n/**\n * Work item entity factory for billable/non-billable time tracking references.\n */\nexport async function factoryWorkItem(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.workItem.name,\n title: RootConfig.entities.workItem.title,\n icon: RootConfig.entities.workItem.icon,\n formats: {\n individual: RootConfig.entities.workItem.title,\n plural: RootConfig.entities.workItem.titlePlural,\n searchResult: {\n title: '{{ code }}',\n description: '{{ title }}',\n },\n },\n plugins: [\n { name: 'history' },\n { name: 'unique-fields', options: { fields: 'code', scope: 'tenant' } },\n ],\n groups: [\n { id: 'basic-info', title: '@general:terms.interface.basic-info' },\n { id: 'source', title: `@${entityI18n}.groups.source` },\n { id: 'assignment', title: `@${entityI18n}.groups.assignment` },\n { id: 'settings', title: '@general:terms.interface.settings' },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'code',\n title: `@${entityI18n}.fields.code.title`,\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n unique: { enabled: true },\n interface: { type: AXPWidgetsCatalog.text },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.text, options: { multiLanguage: true } },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'sourceType',\n title: `@${entityI18n}.fields.source-type.title`,\n groupId: 'source',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n defaultValue: 'Internal',\n interface: {\n type: AXPWidgetsCatalog.select,\n options: { items: WORK_ITEM_SOURCE_TYPE_OPTIONS },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'sourceRef',\n title: `@${entityI18n}.fields.source-ref.title`,\n groupId: 'source',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.largeText, options: { rows: 4 } },\n },\n },\n {\n name: 'isBillableDefault',\n title: `@${entityI18n}.fields.is-billable-default.title`,\n groupId: 'settings',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'boolean',\n defaultValue: true,\n interface: { type: AXPWidgetsCatalog.toggle },\n },\n },\n {\n name: 'isActive',\n title: `@${entityI18n}.fields.is-active.title`,\n groupId: 'settings',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'boolean',\n defaultValue: true,\n interface: { type: AXPWidgetsCatalog.toggle },\n },\n },\n {\n name: 'employeeId',\n title: `@${entityI18n}.fields.employee-id.title`,\n groupId: 'assignment',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n look: 'select',\n entity: 'HumanCapitalManagement.Employee',\n textField: 'person.fullName',\n valueField: 'id',\n expose: [\n { source: 'id', target: 'employee.id' },\n { source: 'employeeCode', target: 'employee.employeeCode' },\n { source: 'person.fullName', target: 'employee.person.fullName' },\n ],\n },\n },\n },\n },\n {\n name: 'projectId',\n title: `@${entityI18n}.fields.project-id.title`,\n groupId: 'assignment',\n options: listSortAndFilterOptions,\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n look: 'select',\n entity: 'ProjectManagement.Project',\n textField: 'name',\n valueField: 'id',\n expose: [\n { source: 'id', target: 'project.id' },\n { source: 'title', target: 'project.title' },\n ],\n },\n },\n },\n },\n ],\n columns: [\n { name: 'code' },\n { name: 'title' },\n { name: 'sourceType' },\n { name: 'employeeId', options: { dataPath: 'employee.person.fullName' } },\n { name: 'projectId', options: { dataPath: 'project.title' } },\n { name: 'isBillableDefault' },\n { name: 'isActive' },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'source' }, { id: 'assignment' }, { id: 'settings' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'sourceType', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'sourceRef', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'projectId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'isBillableDefault', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'isActive', layout: { positions: { lg: { colSpan: 6 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'source' }, { id: 'assignment' }, { id: 'settings' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'sourceType', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'sourceRef', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'projectId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'isBillableDefault', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'isActive', layout: { positions: { lg: { colSpan: 6 } } } },\n ],\n },\n single: {\n title: '{{ code }}',\n sections: [{ id: 'basic-info' }, { id: 'source' }, { id: 'assignment' }, { id: 'settings' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'sourceType', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'projectId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'isBillableDefault', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'isActive', layout: { positions: { lg: { colSpan: 6 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.work-item';\n"],"names":[],"mappings":";;;AAAA;AAEA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,sBAAsB;AAC5B,IAAA,MAAM,EAAE,qBAAqB;AAC7B,IAAA,KAAK,EAAE,sBAAsB;CAC9B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,KAAK,EAAE,MAAM,CAAC,KAAK;AACnB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,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,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,oCAAA,CAAsC;AAC5D,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,qCAAA,CAAuC;AACnE,YAAA,IAAI,EAAE,wBAAwB;AAC/B,SAAA;AACD,QAAA,eAAe,EAAE;AACf,YAAA,IAAI,EAAE,iBAAiB;AACvB,YAAA,MAAM,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,gBAAA,CAAkB;AAC1C,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,kDAAA,CAAoD;AAC1E,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,mDAAA,CAAqD;AACjF,YAAA,IAAI,EAAE,2BAA2B;AAClC,SAAA;AACD,QAAA,SA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OA;;AAEG;;"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
//#region ---- Module Config ----
|
|
2
|
+
const config = {
|
|
3
|
+
i18n: 'timesheet-management',
|
|
4
|
+
module: 'TimesheetManagement',
|
|
5
|
+
route: 'timesheet-management',
|
|
6
|
+
};
|
|
7
|
+
const RootConfig = {
|
|
8
|
+
config,
|
|
9
|
+
module: {
|
|
10
|
+
name: config.module,
|
|
11
|
+
route: config.route,
|
|
12
|
+
title: `@${config.i18n}:module.title`,
|
|
13
|
+
icon: 'fa-light fa-clock',
|
|
14
|
+
},
|
|
15
|
+
entities: {
|
|
16
|
+
workItem: {
|
|
17
|
+
name: 'WorkItem',
|
|
18
|
+
source: `${config.module}.WorkItem`,
|
|
19
|
+
title: `@${config.i18n}:work-items.entities.work-item.title`,
|
|
20
|
+
titlePlural: `@${config.i18n}:work-items.entities.work-item.plural`,
|
|
21
|
+
icon: 'fa-light fa-list-check',
|
|
22
|
+
},
|
|
23
|
+
timesheetPeriod: {
|
|
24
|
+
name: 'TimesheetPeriod',
|
|
25
|
+
source: `${config.module}.TimesheetPeriod`,
|
|
26
|
+
title: `@${config.i18n}:timesheet-periods.entities.timesheet-period.title`,
|
|
27
|
+
titlePlural: `@${config.i18n}:timesheet-periods.entities.timesheet-period.plural`,
|
|
28
|
+
icon: 'fa-light fa-calendar-week',
|
|
29
|
+
},
|
|
30
|
+
timeEntry: {
|
|
31
|
+
name: 'TimeEntry',
|
|
32
|
+
source: `${config.module}.TimeEntry`,
|
|
33
|
+
title: `@${config.i18n}:time-entries.entities.time-entry.title`,
|
|
34
|
+
titlePlural: `@${config.i18n}:time-entries.entities.time-entry.plural`,
|
|
35
|
+
icon: 'fa-light fa-hourglass-half',
|
|
36
|
+
},
|
|
37
|
+
timesheetCorrection: {
|
|
38
|
+
name: 'TimesheetCorrection',
|
|
39
|
+
source: `${config.module}.TimesheetCorrection`,
|
|
40
|
+
title: `@${config.i18n}:timesheet-corrections.entities.timesheet-correction.title`,
|
|
41
|
+
titlePlural: `@${config.i18n}:timesheet-corrections.entities.timesheet-correction.plural`,
|
|
42
|
+
icon: 'fa-light fa-pen-to-square',
|
|
43
|
+
},
|
|
44
|
+
timesheetPolicy: {
|
|
45
|
+
name: 'TimesheetPolicy',
|
|
46
|
+
source: `${config.module}.TimesheetPolicy`,
|
|
47
|
+
title: `@${config.i18n}:timesheet-policies.entities.timesheet-policy.title`,
|
|
48
|
+
titlePlural: `@${config.i18n}:timesheet-policies.entities.timesheet-policy.plural`,
|
|
49
|
+
icon: 'fa-light fa-sliders',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
pages: {
|
|
53
|
+
myTimesheet: {
|
|
54
|
+
path: 'my-timesheet',
|
|
55
|
+
title: `@${config.i18n}:pages.my-timesheet.title`,
|
|
56
|
+
icon: 'fa-light fa-calendar-week',
|
|
57
|
+
},
|
|
58
|
+
approvalInbox: {
|
|
59
|
+
path: 'approval-inbox',
|
|
60
|
+
title: `@${config.i18n}:pages.approval-inbox.title`,
|
|
61
|
+
icon: 'fa-light fa-inbox',
|
|
62
|
+
},
|
|
63
|
+
teamTimesheets: {
|
|
64
|
+
path: 'team-timesheets',
|
|
65
|
+
title: `@${config.i18n}:pages.team-timesheets.title`,
|
|
66
|
+
icon: 'fa-light fa-users',
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
//#endregion
|
|
71
|
+
|
|
72
|
+
//#region ----- Imports -----
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region ----- Local entity catalog -----
|
|
75
|
+
/**
|
|
76
|
+
* Lazy per-entity layout factories. Do not re-export from the contracts barrel
|
|
77
|
+
* so RootConfig imports stay light. Server seed and client `local-entities`
|
|
78
|
+
* consume this catalog explicitly.
|
|
79
|
+
*/
|
|
80
|
+
const timesheetManagementLocalEntityCatalog = {
|
|
81
|
+
moduleName: RootConfig.module.name,
|
|
82
|
+
loaders: {
|
|
83
|
+
[RootConfig.entities.timeEntry.name]: () => import('./acorex-platform-module-timesheet-management-client-contracts-entity-catalog-time-entry.entity-CAs7zUnV.mjs').then((m) => m.factoryTimeEntry()),
|
|
84
|
+
[RootConfig.entities.timesheetCorrection.name]: () => import('./acorex-platform-module-timesheet-management-client-contracts-entity-catalog-timesheet-correction.entity--wZeCM5Q.mjs').then((m) => m.factoryTimesheetCorrection()),
|
|
85
|
+
[RootConfig.entities.timesheetPeriod.name]: () => import('./acorex-platform-module-timesheet-management-client-contracts-entity-catalog-timesheet-period.entity-BOyfB4YA.mjs').then((m) => m.factoryTimesheetPeriod()),
|
|
86
|
+
[RootConfig.entities.timesheetPolicy.name]: () => import('./acorex-platform-module-timesheet-management-client-contracts-entity-catalog-timesheet-policy.entity-CqqN7Xty.mjs').then((m) => m.factoryTimesheetPolicy()),
|
|
87
|
+
[RootConfig.entities.workItem.name]: () => import('./acorex-platform-module-timesheet-management-client-contracts-entity-catalog-work-item.entity-DilF7u50.mjs').then((m) => m.factoryWorkItem()),
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
//#endregion
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Generated bundle index. Do not edit.
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
export { RootConfig as R, timesheetManagementLocalEntityCatalog as t };
|
|
97
|
+
//# sourceMappingURL=acorex-platform-module-timesheet-management-client-contracts-entity-catalog-acorex-platform-module-timesheet-management-client-contracts-entity-catalog-BbB3MCCl.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-timesheet-management-client-contracts-entity-catalog-acorex-platform-module-timesheet-management-client-contracts-entity-catalog-BbB3MCCl.mjs","sources":["../../../../libs/modules/timesheet-management/contracts/src/root-config.ts","../../../../libs/modules/timesheet-management/contracts/src/entity-catalog.ts","../../../../libs/modules/timesheet-management/contracts/src/acorex-platform-module-timesheet-management-client-contracts-entity-catalog.ts"],"sourcesContent":["//#region ---- Module Config ----\n\nconst config = {\n i18n: 'timesheet-management',\n module: 'TimesheetManagement',\n route: 'timesheet-management',\n};\n\nexport const RootConfig = {\n config,\n module: {\n name: config.module,\n route: config.route,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-clock',\n },\n entities: {\n workItem: {\n name: 'WorkItem',\n source: `${config.module}.WorkItem`,\n title: `@${config.i18n}:work-items.entities.work-item.title`,\n titlePlural: `@${config.i18n}:work-items.entities.work-item.plural`,\n icon: 'fa-light fa-list-check',\n },\n timesheetPeriod: {\n name: 'TimesheetPeriod',\n source: `${config.module}.TimesheetPeriod`,\n title: `@${config.i18n}:timesheet-periods.entities.timesheet-period.title`,\n titlePlural: `@${config.i18n}:timesheet-periods.entities.timesheet-period.plural`,\n icon: 'fa-light fa-calendar-week',\n },\n timeEntry: {\n name: 'TimeEntry',\n source: `${config.module}.TimeEntry`,\n title: `@${config.i18n}:time-entries.entities.time-entry.title`,\n titlePlural: `@${config.i18n}:time-entries.entities.time-entry.plural`,\n icon: 'fa-light fa-hourglass-half',\n },\n timesheetCorrection: {\n name: 'TimesheetCorrection',\n source: `${config.module}.TimesheetCorrection`,\n title: `@${config.i18n}:timesheet-corrections.entities.timesheet-correction.title`,\n titlePlural: `@${config.i18n}:timesheet-corrections.entities.timesheet-correction.plural`,\n icon: 'fa-light fa-pen-to-square',\n },\n timesheetPolicy: {\n name: 'TimesheetPolicy',\n source: `${config.module}.TimesheetPolicy`,\n title: `@${config.i18n}:timesheet-policies.entities.timesheet-policy.title`,\n titlePlural: `@${config.i18n}:timesheet-policies.entities.timesheet-policy.plural`,\n icon: 'fa-light fa-sliders',\n },\n },\n pages: {\n myTimesheet: {\n path: 'my-timesheet',\n title: `@${config.i18n}:pages.my-timesheet.title`,\n icon: 'fa-light fa-calendar-week',\n },\n approvalInbox: {\n path: 'approval-inbox',\n title: `@${config.i18n}:pages.approval-inbox.title`,\n icon: 'fa-light fa-inbox',\n },\n teamTimesheets: {\n path: 'team-timesheets',\n title: `@${config.i18n}:pages.team-timesheets.title`,\n icon: 'fa-light fa-users',\n },\n },\n};\n\n//#endregion\n","//#region ----- Imports -----\n\nimport type { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ----- Local entity catalog -----\n\n/**\n * Lazy per-entity layout factories. Do not re-export from the contracts barrel\n * so RootConfig imports stay light. Server seed and client `local-entities`\n * consume this catalog explicitly.\n */\nexport const timesheetManagementLocalEntityCatalog: AXPLocalEntityCatalog = {\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.timeEntry.name]: () =>\n import('./entities/time-entry/time-entry.entity.js').then((m) => m.factoryTimeEntry()),\n [RootConfig.entities.timesheetCorrection.name]: () =>\n import('./entities/timesheet-correction/timesheet-correction.entity.js').then((m) => m.factoryTimesheetCorrection()),\n [RootConfig.entities.timesheetPeriod.name]: () =>\n import('./entities/timesheet-period/timesheet-period.entity.js').then((m) => m.factoryTimesheetPeriod()),\n [RootConfig.entities.timesheetPolicy.name]: () =>\n import('./entities/timesheet-policy/timesheet-policy.entity.js').then((m) => m.factoryTimesheetPolicy()),\n [RootConfig.entities.workItem.name]: () =>\n import('./entities/work-item/work-item.entity.js').then((m) => m.factoryWorkItem()),\n },\n};\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-catalog';\n"],"names":[],"mappings":"AAAA;AAEA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,sBAAsB;AAC5B,IAAA,MAAM,EAAE,qBAAqB;AAC7B,IAAA,KAAK,EAAE,sBAAsB;CAC9B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,KAAK,EAAE,MAAM,CAAC,KAAK;AACnB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,mBAAmB;AAC1B,KAAA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