@acorex-platform/module-timesheet-management-client 0.0.21

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 (45) hide show
  1. package/fesm2022/acorex-platform-module-timesheet-management-client-admin-adjust-timesheet-period.command-8lA7h4rI.mjs +57 -0
  2. package/fesm2022/acorex-platform-module-timesheet-management-client-admin-adjust-timesheet-period.command-8lA7h4rI.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-timesheet-management-client-approval-inbox.query-Wyz_jjxb.mjs +49 -0
  4. package/fesm2022/acorex-platform-module-timesheet-management-client-approval-inbox.query-Wyz_jjxb.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-timesheet-management-client-approve-timesheet-period.command-DlAeGANo.mjs +54 -0
  6. package/fesm2022/acorex-platform-module-timesheet-management-client-approve-timesheet-period.command-DlAeGANo.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-timesheet-management-client-compare-attendance-vs-timesheet.query-ZZym5nSx.mjs +91 -0
  8. package/fesm2022/acorex-platform-module-timesheet-management-client-compare-attendance-vs-timesheet.query-ZZym5nSx.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-timesheet-management-client-contracts.mjs +200 -0
  10. package/fesm2022/acorex-platform-module-timesheet-management-client-contracts.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-timesheet-management-client-create-time-entry.command-DS2EVLym.mjs +59 -0
  12. package/fesm2022/acorex-platform-module-timesheet-management-client-create-time-entry.command-DS2EVLym.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-timesheet-management-client-delete-time-entry.command-5_ItHpnx.mjs +59 -0
  14. package/fesm2022/acorex-platform-module-timesheet-management-client-delete-time-entry.command-5_ItHpnx.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-timesheet-management-client-lock-timesheet-period.command-D7V7SWUK.mjs +50 -0
  16. package/fesm2022/acorex-platform-module-timesheet-management-client-lock-timesheet-period.command-D7V7SWUK.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-timesheet-management-client-my-timesheet-grid.query-DlDY3tdF.mjs +90 -0
  18. package/fesm2022/acorex-platform-module-timesheet-management-client-my-timesheet-grid.query-DlDY3tdF.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-timesheet-management-client-reject-timesheet-period.command-CONxKPNm.mjs +56 -0
  20. package/fesm2022/acorex-platform-module-timesheet-management-client-reject-timesheet-period.command-CONxKPNm.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-timesheet-management-client-reopen-timesheet-period.command-DRr_c67L.mjs +56 -0
  22. package/fesm2022/acorex-platform-module-timesheet-management-client-reopen-timesheet-period.command-DRr_c67L.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-timesheet-management-client-report-billable-summary.query-BeLk4Of7.mjs +57 -0
  24. package/fesm2022/acorex-platform-module-timesheet-management-client-report-billable-summary.query-BeLk4Of7.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-timesheet-management-client-report-hours-by-project.query-Sp8cLnTC.mjs +69 -0
  26. package/fesm2022/acorex-platform-module-timesheet-management-client-report-hours-by-project.query-Sp8cLnTC.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-timesheet-management-client-report-hours-by-work-item.query-C8RU9Uc0.mjs +70 -0
  28. package/fesm2022/acorex-platform-module-timesheet-management-client-report-hours-by-work-item.query-C8RU9Uc0.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-timesheet-management-client-submit-timesheet-period.command-C2qlQVIC.mjs +51 -0
  30. package/fesm2022/acorex-platform-module-timesheet-management-client-submit-timesheet-period.command-C2qlQVIC.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-timesheet-management-client-team-timesheets.query-B0QpkVEI.mjs +51 -0
  32. package/fesm2022/acorex-platform-module-timesheet-management-client-team-timesheets.query-B0QpkVEI.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-timesheet-management-client-timesheet-validation.service-DMrJn3HU.mjs +263 -0
  34. package/fesm2022/acorex-platform-module-timesheet-management-client-timesheet-validation.service-DMrJn3HU.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-timesheet-management-client-update-time-entry.command-Do6s9OrI.mjs +60 -0
  36. package/fesm2022/acorex-platform-module-timesheet-management-client-update-time-entry.command-Do6s9OrI.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-timesheet-management-client-work-item-search.query-BA2kvF-S.mjs +68 -0
  38. package/fesm2022/acorex-platform-module-timesheet-management-client-work-item-search.query-BA2kvF-S.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-timesheet-management-client-workforce-exception-report.query-0q-AITic.mjs +40 -0
  40. package/fesm2022/acorex-platform-module-timesheet-management-client-workforce-exception-report.query-0q-AITic.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-module-timesheet-management-client.mjs +891 -0
  42. package/fesm2022/acorex-platform-module-timesheet-management-client.mjs.map +1 -0
  43. package/package.json +28 -0
  44. package/types/acorex-platform-module-timesheet-management-client-contracts.d.ts +305 -0
  45. package/types/acorex-platform-module-timesheet-management-client.d.ts +54 -0
@@ -0,0 +1,891 @@
1
+ import * as i1 from '@acorex/components/button';
2
+ import { AXButtonModule } from '@acorex/components/button';
3
+ import { AXDecoratorModule } from '@acorex/components/decorators';
4
+ import * as i2 from '@acorex/components/loading';
5
+ import { AXLoadingModule } from '@acorex/components/loading';
6
+ import * as i4 from '@acorex/core/translation';
7
+ import { AXTranslationModule } from '@acorex/core/translation';
8
+ import { AXPSystemStatusType, AXPStatusProvider, systemStatusToDefinition } from '@acorex-platform/framework-shared/core';
9
+ import { AXPThemeLayoutBlockComponent, AXP_PAGE_COMPONENT_PROVIDER } from '@acorex-platform/framework-client/layout/components';
10
+ import { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';
11
+ import { AXPPageLayoutBaseComponent, AXPPageLayoutComponent, AXPPageLayoutBase } from '@acorex-platform/framework-client/layout/views';
12
+ import { AXPCommandService, AXPRuntimeModule, provideCommandSetups, provideQuerySetups } from '@acorex-platform/framework-client/runtime';
13
+ import * as i3 from '@angular/common';
14
+ import { CommonModule, AsyncPipe } from '@angular/common';
15
+ import * as i0 from '@angular/core';
16
+ import { inject, signal, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, Injectable, NgModule } from '@angular/core';
17
+ import { groupBy, sumBy } from 'lodash';
18
+ import { RootConfig, AXMTimesheetManagementFeatureKeys, AXMTimesheetPeriodLockedStatusId, AXPProjectsWorkPermissionKeys, AXMTimesheetManagementMenuKeys, AXMTimesheetManagementCommandKeys } from '@acorex-platform/module-timesheet-management-client/contracts';
19
+ import { AXP_PROTECTED_ROUTE_GUARDS, AXP_MENU_PROVIDER, AXP_STATUS_PROVIDERS } from '@acorex-platform/framework-client/common';
20
+ import { AXPRootLayoutComponent } from '@acorex-platform/framework-client/themes/default';
21
+ import { AXPSessionService, AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';
22
+ import { AXP_MODULE_MANIFEST_PROVIDER, AXP_FEATURE_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/core';
23
+ import { ROUTES } from '@angular/router';
24
+ import { AXPCommonMenuKeys, AXPCommonPermissionGroupKeys } from '@acorex-platform/module-common-client/contracts';
25
+ import { firstValueFrom } from 'rxjs';
26
+
27
+ //#region ---- Component ----
28
+ class AXMMyTimesheetPageComponent extends AXPPageLayoutBaseComponent {
29
+ constructor() {
30
+ super(...arguments);
31
+ //#region ---- Services & Dependencies ----
32
+ this.entityService = inject(AXPEntityService);
33
+ this.commandService = inject(AXPCommandService);
34
+ //#endregion
35
+ //#region ---- State ----
36
+ this.loading = signal(false, /* @ts-ignore */
37
+ ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
38
+ this.period = signal(null, /* @ts-ignore */
39
+ ...(ngDevMode ? [{ debugName: "period" }] : /* istanbul ignore next */ []));
40
+ this.days = signal([], /* @ts-ignore */
41
+ ...(ngDevMode ? [{ debugName: "days" }] : /* istanbul ignore next */ []));
42
+ this.totalSeconds = signal(0, /* @ts-ignore */
43
+ ...(ngDevMode ? [{ debugName: "totalSeconds" }] : /* istanbul ignore next */ []));
44
+ this.canSubmit = computed(() => this.period()?.statusId === AXPSystemStatusType.Draft, /* @ts-ignore */
45
+ ...(ngDevMode ? [{ debugName: "canSubmit" }] : /* istanbul ignore next */ []));
46
+ }
47
+ //#endregion
48
+ //#region ---- Lifecycle ----
49
+ async ngOnInit() {
50
+ await super.ngOnInit();
51
+ await this.loadGrid();
52
+ }
53
+ //#endregion
54
+ //#region ---- Page metadata ----
55
+ getPageTitle() {
56
+ return RootConfig.pages.myTimesheet.title;
57
+ }
58
+ //#endregion
59
+ //#region ---- UI handlers ----
60
+ formatHours(totalSeconds) {
61
+ const hours = Math.floor(totalSeconds / 3600);
62
+ const minutes = Math.floor((totalSeconds % 3600) / 60);
63
+ return `${hours}h ${minutes}m`;
64
+ }
65
+ //#endregion
66
+ //#region ---- Data loading ----
67
+ async loadGrid() {
68
+ const employeeId = this.sessionService.user?.id;
69
+ if (!employeeId) {
70
+ return;
71
+ }
72
+ this.loading.set(true);
73
+ try {
74
+ const periodAccessor = this.entityService
75
+ .withEntity(RootConfig.module.name, RootConfig.entities.timesheetPeriod.name)
76
+ .data();
77
+ const periods = await periodAccessor.query({
78
+ skip: 0,
79
+ take: 1,
80
+ sort: [{ field: 'startDate', dir: 'desc' }],
81
+ filter: {
82
+ field: 'employeeId',
83
+ operator: { type: 'equal' },
84
+ value: employeeId,
85
+ },
86
+ });
87
+ const currentPeriod = periods.items[0] ?? null;
88
+ this.period.set(currentPeriod);
89
+ if (!currentPeriod) {
90
+ this.days.set([]);
91
+ this.totalSeconds.set(0);
92
+ this.recompute();
93
+ return;
94
+ }
95
+ const entryAccessor = this.entityService
96
+ .withEntity(RootConfig.module.name, RootConfig.entities.timeEntry.name)
97
+ .data();
98
+ const entriesResult = await entryAccessor.query({
99
+ skip: 0,
100
+ take: 1000,
101
+ filter: {
102
+ logic: 'and',
103
+ filters: [
104
+ { field: 'employeeId', operator: { type: 'equal' }, value: employeeId },
105
+ { field: 'periodId', operator: { type: 'equal' }, value: currentPeriod.id },
106
+ ],
107
+ },
108
+ });
109
+ const grouped = groupBy(entriesResult.items, (row) => row.entryDate);
110
+ const days = Object.keys(grouped)
111
+ .sort()
112
+ .map((date) => ({
113
+ date,
114
+ totalSeconds: sumBy(grouped[date], (row) => row.durationSeconds ?? 0),
115
+ entries: grouped[date],
116
+ }));
117
+ this.days.set(days);
118
+ this.totalSeconds.set(sumBy(entriesResult.items, (row) => row.durationSeconds ?? 0));
119
+ this.recompute();
120
+ }
121
+ finally {
122
+ this.loading.set(false);
123
+ }
124
+ }
125
+ /** Submits the current period via the registered command. */
126
+ async submitCurrentPeriod() {
127
+ const id = this.period()?.id;
128
+ if (!id) {
129
+ return;
130
+ }
131
+ const result = await this.commandService.execute('TimesheetManagement.TimesheetPeriod:Submit', { id });
132
+ if (result?.success) {
133
+ await this.loadGrid();
134
+ }
135
+ }
136
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMMyTimesheetPageComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
137
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMMyTimesheetPageComponent, isStandalone: true, selector: "axm-my-timesheet-page", host: { classAttribute: "axm-my-timesheet-page block w-full" }, providers: [
138
+ {
139
+ provide: AXPPageLayoutBase,
140
+ useExisting: AXMMyTimesheetPageComponent,
141
+ },
142
+ ], usesInheritance: true, ngImport: i0, template: `
143
+ <axp-page-layout>
144
+ <axp-page-content>
145
+ <div class="flex flex-col gap-4 p-4">
146
+ @if (loading()) {
147
+ <ax-loading />
148
+ } @else if (!period()) {
149
+ <p class="text-sm text-muted">
150
+ {{ '@timesheet-management:pages.my-timesheet.empty-period' | translate | async }}
151
+ </p>
152
+ } @else {
153
+ <div class="flex flex-wrap items-center justify-between gap-4">
154
+ <div>
155
+ <p class="text-sm font-medium">
156
+ {{ period()?.startDate }} – {{ period()?.endDate }}
157
+ </p>
158
+ <p class="text-xs text-muted">
159
+ {{ '@timesheet-management:timesheet-periods.entities.timesheet-period.fields.status' | translate | async }}:
160
+ {{ period()?.statusId }}
161
+ </p>
162
+ </div>
163
+ <div class="flex items-center gap-3">
164
+ <p class="text-sm">{{ formatHours(totalSeconds()) }}</p>
165
+ @if (canSubmit()) {
166
+ <ax-button color="primary" (onClick)="submitCurrentPeriod()">
167
+ {{ '@timesheet-management:timesheet-periods.transitions.submit' | translate | async }}
168
+ </ax-button>
169
+ }
170
+ </div>
171
+ </div>
172
+
173
+ <div class="overflow-x-auto rounded border border-surface">
174
+ <table class="w-full text-sm">
175
+ <thead>
176
+ <tr class="border-b border-surface bg-lighter-surface">
177
+ <th class="p-2 text-left">{{ '@general:terms.date' | translate | async }}</th>
178
+ <th class="p-2 text-right">{{ '@timesheet-management:time-entries.entities.time-entry.fields.duration' | translate | async }}</th>
179
+ <th class="p-2 text-left">{{ '@timesheet-management:work-items.entities.work-item.title' | translate | async }}</th>
180
+ </tr>
181
+ </thead>
182
+ <tbody>
183
+ @for (day of days(); track day.date) {
184
+ <tr class="border-b border-lighter-surface">
185
+ <td class="p-2">{{ day.date }}</td>
186
+ <td class="p-2 text-right">{{ formatHours(day.totalSeconds) }}</td>
187
+ <td class="p-2">{{ day.entries.length }}</td>
188
+ </tr>
189
+ }
190
+ </tbody>
191
+ </table>
192
+ </div>
193
+ }
194
+ </div>
195
+ </axp-page-content>
196
+ </axp-page-layout>
197
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i2.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "component", type: AXPPageLayoutComponent, selector: "axp-page-layout" }, { kind: "component", type: AXPThemeLayoutBlockComponent, selector: " axp-page-content, axp-page-footer-container, axp-page-footer, axp-page-header, axp-page-header-container, axp-page-toolbar, axp-layout-content, axp-layout-page-content, axp-layout-sections, axp-layout-body, axp-layout-page-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title-bar, axp-layout-title, axp-layout-title-actions, axp-layout-nav-button, axp-layout-description, axp-layout-breadcrumbs, axp-layout-list-action, " }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
198
+ }
199
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMMyTimesheetPageComponent, decorators: [{
200
+ type: Component,
201
+ args: [{
202
+ selector: 'axm-my-timesheet-page',
203
+ imports: [
204
+ CommonModule,
205
+ AsyncPipe,
206
+ AXButtonModule,
207
+ AXDecoratorModule,
208
+ AXLoadingModule,
209
+ AXTranslationModule,
210
+ AXPPageLayoutComponent,
211
+ AXPThemeLayoutBlockComponent,
212
+ ],
213
+ template: `
214
+ <axp-page-layout>
215
+ <axp-page-content>
216
+ <div class="flex flex-col gap-4 p-4">
217
+ @if (loading()) {
218
+ <ax-loading />
219
+ } @else if (!period()) {
220
+ <p class="text-sm text-muted">
221
+ {{ '@timesheet-management:pages.my-timesheet.empty-period' | translate | async }}
222
+ </p>
223
+ } @else {
224
+ <div class="flex flex-wrap items-center justify-between gap-4">
225
+ <div>
226
+ <p class="text-sm font-medium">
227
+ {{ period()?.startDate }} – {{ period()?.endDate }}
228
+ </p>
229
+ <p class="text-xs text-muted">
230
+ {{ '@timesheet-management:timesheet-periods.entities.timesheet-period.fields.status' | translate | async }}:
231
+ {{ period()?.statusId }}
232
+ </p>
233
+ </div>
234
+ <div class="flex items-center gap-3">
235
+ <p class="text-sm">{{ formatHours(totalSeconds()) }}</p>
236
+ @if (canSubmit()) {
237
+ <ax-button color="primary" (onClick)="submitCurrentPeriod()">
238
+ {{ '@timesheet-management:timesheet-periods.transitions.submit' | translate | async }}
239
+ </ax-button>
240
+ }
241
+ </div>
242
+ </div>
243
+
244
+ <div class="overflow-x-auto rounded border border-surface">
245
+ <table class="w-full text-sm">
246
+ <thead>
247
+ <tr class="border-b border-surface bg-lighter-surface">
248
+ <th class="p-2 text-left">{{ '@general:terms.date' | translate | async }}</th>
249
+ <th class="p-2 text-right">{{ '@timesheet-management:time-entries.entities.time-entry.fields.duration' | translate | async }}</th>
250
+ <th class="p-2 text-left">{{ '@timesheet-management:work-items.entities.work-item.title' | translate | async }}</th>
251
+ </tr>
252
+ </thead>
253
+ <tbody>
254
+ @for (day of days(); track day.date) {
255
+ <tr class="border-b border-lighter-surface">
256
+ <td class="p-2">{{ day.date }}</td>
257
+ <td class="p-2 text-right">{{ formatHours(day.totalSeconds) }}</td>
258
+ <td class="p-2">{{ day.entries.length }}</td>
259
+ </tr>
260
+ }
261
+ </tbody>
262
+ </table>
263
+ </div>
264
+ }
265
+ </div>
266
+ </axp-page-content>
267
+ </axp-page-layout>
268
+ `,
269
+ changeDetection: ChangeDetectionStrategy.OnPush,
270
+ encapsulation: ViewEncapsulation.None,
271
+ providers: [
272
+ {
273
+ provide: AXPPageLayoutBase,
274
+ useExisting: AXMMyTimesheetPageComponent,
275
+ },
276
+ ],
277
+ host: { class: 'axm-my-timesheet-page block w-full' },
278
+ }]
279
+ }] });
280
+
281
+ var myTimesheetPage_component = /*#__PURE__*/Object.freeze({
282
+ __proto__: null,
283
+ AXMMyTimesheetPageComponent: AXMMyTimesheetPageComponent
284
+ });
285
+
286
+ //#region ---- Page component key ----
287
+ const MY_TIMESHEET_PAGE_COMPONENT_KEY = 'timesheet-management-my-timesheet-page';
288
+ //#endregion
289
+ //#region ---- My Timesheet Page Component Provider ----
290
+ class AXMMyTimesheetPageComponentProvider {
291
+ async components() {
292
+ return [
293
+ {
294
+ key: MY_TIMESHEET_PAGE_COMPONENT_KEY,
295
+ loader: () => Promise.resolve().then(function () { return myTimesheetPage_component; }).then((m) => m.AXMMyTimesheetPageComponent),
296
+ },
297
+ ];
298
+ }
299
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMMyTimesheetPageComponentProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
300
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMMyTimesheetPageComponentProvider }); }
301
+ }
302
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMMyTimesheetPageComponentProvider, decorators: [{
303
+ type: Injectable
304
+ }] });
305
+
306
+ //#region ---- My Timesheet Routes ----
307
+ const myTimesheetPageRoutes = [
308
+ {
309
+ path: `:app/${RootConfig.module.route}/${RootConfig.pages.myTimesheet.path}`,
310
+ canActivate: [...AXP_PROTECTED_ROUTE_GUARDS],
311
+ loadComponent: () => AXPRootLayoutComponent,
312
+ children: [
313
+ {
314
+ path: '',
315
+ loadComponent: () => Promise.resolve().then(function () { return myTimesheetPage_component; }).then((m) => m.AXMMyTimesheetPageComponent),
316
+ data: { reuse: true },
317
+ },
318
+ ],
319
+ },
320
+ ];
321
+ //#endregion
322
+
323
+ //#region ---- Imports ----
324
+ //#endregion
325
+ //#region ---- Feature Definition Provider ----
326
+ class AXMTimesheetManagementFeatureDefinitionProvider {
327
+ async provide(context) {
328
+ context.addFeature(AXMTimesheetManagementFeatureKeys.TimesheetEntry, {
329
+ title: '@timesheet-management:features.timesheet-entry.title',
330
+ description: '@timesheet-management:features.timesheet-entry.description',
331
+ defaultValue: true,
332
+ type: 'boolean',
333
+ });
334
+ context.addFeature(AXMTimesheetManagementFeatureKeys.TimesheetApproval, {
335
+ title: '@timesheet-management:features.timesheet-approval.title',
336
+ description: '@timesheet-management:features.timesheet-approval.description',
337
+ defaultValue: true,
338
+ type: 'boolean',
339
+ });
340
+ context.addFeature(AXMTimesheetManagementFeatureKeys.TimesheetReporting, {
341
+ title: '@timesheet-management:features.timesheet-reporting.title',
342
+ description: '@timesheet-management:features.timesheet-reporting.description',
343
+ defaultValue: true,
344
+ type: 'boolean',
345
+ });
346
+ }
347
+ }
348
+ //#endregion
349
+
350
+ //#region ---- Imports ----
351
+ //#endregion
352
+ //#region ---- Timesheet Correction Status Provider ----
353
+ class AXMTimesheetCorrectionStatusProvider extends AXPStatusProvider {
354
+ constructor() {
355
+ super(...arguments);
356
+ this.key = 'timesheet-management.status.timesheet-correction';
357
+ this.defaultStatus = AXPSystemStatusType.WaitingApproval;
358
+ this.statuses = [
359
+ systemStatusToDefinition(AXPSystemStatusType.WaitingApproval, {
360
+ title: '@timesheet-management:timesheet-corrections.states.waiting-approval',
361
+ generateView: true,
362
+ }),
363
+ systemStatusToDefinition(AXPSystemStatusType.Approved, {
364
+ title: '@timesheet-management:timesheet-corrections.states.approved',
365
+ generateView: true,
366
+ }),
367
+ systemStatusToDefinition(AXPSystemStatusType.Rejected, {
368
+ title: '@timesheet-management:timesheet-corrections.states.rejected',
369
+ generateView: true,
370
+ }),
371
+ ];
372
+ this.transitions = [
373
+ {
374
+ from: AXPSystemStatusType.WaitingApproval,
375
+ to: AXPSystemStatusType.Approved,
376
+ title: '@general:statuses.transitions.approve',
377
+ requiresApproval: true,
378
+ },
379
+ {
380
+ from: AXPSystemStatusType.WaitingApproval,
381
+ to: AXPSystemStatusType.Rejected,
382
+ title: '@general:statuses.transitions.reject',
383
+ requiresApproval: true,
384
+ },
385
+ ];
386
+ }
387
+ }
388
+ //#endregion
389
+
390
+ //#region ---- Imports ----
391
+ //#endregion
392
+ //#region ---- Timesheet Period Status Provider ----
393
+ /**
394
+ * Timesheet period status provider defining Draft, WaitingApproval, Approved, Rejected, and locked states.
395
+ * Used by the status plugin to manage period submission, approval, rejection, reopen, and lock transitions.
396
+ */
397
+ class AXMTimesheetPeriodStatusProvider extends AXPStatusProvider {
398
+ constructor() {
399
+ super(...arguments);
400
+ this.key = 'timesheet-management.status.timesheet-period';
401
+ this.defaultStatus = AXPSystemStatusType.Draft;
402
+ this.statuses = [
403
+ systemStatusToDefinition(AXPSystemStatusType.Draft, {
404
+ title: '@timesheet-management:timesheet-periods.states.draft',
405
+ generateView: true,
406
+ }),
407
+ systemStatusToDefinition(AXPSystemStatusType.WaitingApproval, {
408
+ title: '@timesheet-management:timesheet-periods.states.waiting-approval',
409
+ generateView: true,
410
+ }),
411
+ systemStatusToDefinition(AXPSystemStatusType.Approved, {
412
+ title: '@timesheet-management:timesheet-periods.states.approved',
413
+ generateView: true,
414
+ }),
415
+ systemStatusToDefinition(AXPSystemStatusType.Rejected, {
416
+ title: '@timesheet-management:timesheet-periods.states.rejected',
417
+ generateView: true,
418
+ }),
419
+ {
420
+ name: AXMTimesheetPeriodLockedStatusId,
421
+ title: '@timesheet-management:timesheet-periods.states.locked',
422
+ color: 'neutral',
423
+ icon: 'fa-light fa-lock',
424
+ generateView: true,
425
+ },
426
+ ];
427
+ this.transitions = [
428
+ {
429
+ from: AXPSystemStatusType.Draft,
430
+ to: AXPSystemStatusType.WaitingApproval,
431
+ title: '@timesheet-management:timesheet-periods.transitions.submit',
432
+ requiresApproval: true,
433
+ },
434
+ {
435
+ from: AXPSystemStatusType.WaitingApproval,
436
+ to: AXPSystemStatusType.Approved,
437
+ title: '@timesheet-management:timesheet-periods.transitions.approve',
438
+ requiresApproval: true,
439
+ },
440
+ {
441
+ from: AXPSystemStatusType.WaitingApproval,
442
+ to: AXPSystemStatusType.Rejected,
443
+ title: '@timesheet-management:timesheet-periods.transitions.reject',
444
+ requiresApproval: true,
445
+ },
446
+ {
447
+ from: AXPSystemStatusType.Rejected,
448
+ to: AXPSystemStatusType.Draft,
449
+ title: '@timesheet-management:timesheet-periods.transitions.reopen',
450
+ },
451
+ {
452
+ from: AXPSystemStatusType.Approved,
453
+ to: AXPSystemStatusType.Draft,
454
+ title: '@timesheet-management:timesheet-periods.transitions.reopen',
455
+ requiresApproval: true,
456
+ },
457
+ {
458
+ from: AXPSystemStatusType.Approved,
459
+ to: AXMTimesheetPeriodLockedStatusId,
460
+ title: '@timesheet-management:timesheet-periods.transitions.lock',
461
+ requiresApproval: true,
462
+ },
463
+ ];
464
+ }
465
+ }
466
+ //#endregion
467
+
468
+ const TimesheetManagementManifest = {
469
+ name: RootConfig.module.name,
470
+ version: '1.0.0',
471
+ title: RootConfig.module.title,
472
+ icon: RootConfig.module.icon,
473
+ i18n: RootConfig.config.i18n,
474
+ type: 'domain',
475
+ domain: 'human-capital',
476
+ required: false,
477
+ };
478
+
479
+ //#region ---- Menu Provider ----
480
+ class AXMTimesheetManagementMenuProvider {
481
+ constructor() {
482
+ this.entityService = inject(AXPEntityService);
483
+ this.sessionService = inject(AXPSessionService);
484
+ }
485
+ async provide(context) {
486
+ const isAuthorized = await firstValueFrom(this.sessionService.isAuthorized$);
487
+ if (!isAuthorized) {
488
+ return;
489
+ }
490
+ const module = RootConfig.module;
491
+ const keys = AXPProjectsWorkPermissionKeys;
492
+ const app = this.sessionService.application?.name ?? ':app';
493
+ const organizationMenu = context.find(AXPCommonMenuKeys.Organization);
494
+ if (!organizationMenu.exists) {
495
+ context.addItems([
496
+ {
497
+ name: AXPCommonMenuKeys.Organization,
498
+ priority: 9000,
499
+ text: '@organization-management:module.menus.root.title',
500
+ type: 'menu',
501
+ icon: 'fa-light fa-sitemap',
502
+ children: [],
503
+ },
504
+ ]);
505
+ }
506
+ context.find(AXPCommonMenuKeys.Organization).addItems([
507
+ {
508
+ name: AXMTimesheetManagementMenuKeys.MyTimesheet,
509
+ text: RootConfig.pages.myTimesheet.title,
510
+ path: `${app}/${RootConfig.module.route}/${RootConfig.pages.myTimesheet.path}`,
511
+ priority: 25,
512
+ icon: RootConfig.pages.myTimesheet.icon,
513
+ policy: {
514
+ permissions: [keys.MaintainTimesheets],
515
+ features: [AXMTimesheetManagementFeatureKeys.TimesheetEntry],
516
+ },
517
+ },
518
+ {
519
+ name: AXMTimesheetManagementMenuKeys.PeriodHistory,
520
+ text: RootConfig.entities.timesheetPeriod.titlePlural,
521
+ path: this.entityService.createPath(module.name, RootConfig.entities.timesheetPeriod.name),
522
+ priority: 26,
523
+ icon: RootConfig.entities.timesheetPeriod.icon,
524
+ policy: {
525
+ permissions: [keys.MaintainTimesheets],
526
+ features: [AXMTimesheetManagementFeatureKeys.TimesheetEntry],
527
+ },
528
+ },
529
+ {
530
+ name: AXMTimesheetManagementMenuKeys.ApprovalInbox,
531
+ text: RootConfig.pages.approvalInbox.title,
532
+ path: `${app}/${RootConfig.module.route}/${RootConfig.pages.approvalInbox.path}`,
533
+ priority: 27,
534
+ icon: RootConfig.pages.approvalInbox.icon,
535
+ policy: {
536
+ permissions: [keys.ManageTimesheetActions],
537
+ features: [AXMTimesheetManagementFeatureKeys.TimesheetApproval],
538
+ },
539
+ },
540
+ {
541
+ name: AXMTimesheetManagementMenuKeys.TeamTimesheets,
542
+ text: RootConfig.pages.teamTimesheets.title,
543
+ path: `${app}/${RootConfig.module.route}/${RootConfig.pages.teamTimesheets.path}`,
544
+ priority: 28,
545
+ icon: RootConfig.pages.teamTimesheets.icon,
546
+ policy: {
547
+ permissions: [keys.ManageTimesheetActions],
548
+ features: [AXMTimesheetManagementFeatureKeys.TimesheetApproval],
549
+ },
550
+ },
551
+ {
552
+ name: AXMTimesheetManagementMenuKeys.WorkItems,
553
+ text: RootConfig.entities.workItem.titlePlural,
554
+ path: this.entityService.createPath(module.name, RootConfig.entities.workItem.name),
555
+ priority: 29,
556
+ icon: RootConfig.entities.workItem.icon,
557
+ policy: {
558
+ permissions: [keys.MaintainTimesheets],
559
+ features: [AXMTimesheetManagementFeatureKeys.TimesheetEntry],
560
+ },
561
+ },
562
+ ]);
563
+ const orgConfigMenu = context.find(AXPCommonMenuKeys.OrganizationConfig);
564
+ if (!orgConfigMenu.exists) {
565
+ context.find(AXPCommonMenuKeys.Configuration).addItems([
566
+ {
567
+ name: AXPCommonMenuKeys.OrganizationConfig,
568
+ priority: 8600,
569
+ text: '@organization-management:module.menus.configuration.title',
570
+ icon: module.icon,
571
+ type: 'menu',
572
+ children: [],
573
+ },
574
+ ]);
575
+ }
576
+ context.find(AXPCommonMenuKeys.OrganizationConfig).addItems([
577
+ {
578
+ name: AXMTimesheetManagementMenuKeys.Policies,
579
+ text: RootConfig.entities.timesheetPolicy.titlePlural,
580
+ path: this.entityService.createPath(module.name, RootConfig.entities.timesheetPolicy.name),
581
+ priority: 23,
582
+ icon: RootConfig.entities.timesheetPolicy.icon,
583
+ policy: {
584
+ permissions: [keys.Setup],
585
+ features: [AXMTimesheetManagementFeatureKeys.TimesheetEntry],
586
+ },
587
+ },
588
+ ]);
589
+ }
590
+ }
591
+ //#endregion
592
+
593
+ //#endregion
594
+ //#region ---- Permission Definition Provider ----
595
+ /**
596
+ * Registers timesheet capabilities into the shared Projects & Work group.
597
+ */
598
+ class AXMTimesheetManagementPermissionDefinitionProvider {
599
+ async define(context) {
600
+ const keys = AXPProjectsWorkPermissionKeys;
601
+ const groups = AXPCommonPermissionGroupKeys;
602
+ const P = '@common:projects-work.permissions';
603
+ const G = '@common:permission-groups';
604
+ context.addGroup(groups.ProjectsWork.Root, `${G}.projects-work.title`, `${G}.projects-work.description`, { order: 60 });
605
+ context
606
+ .addGroup(groups.ProjectsWork.TimeTracking, `${G}.projects-work-time-tracking.title`, `${G}.projects-work-time-tracking.description`, { parent: groups.ProjectsWork.Root, order: 30 })
607
+ .addPermission(keys.MaintainTimesheets, `${P}.maintain-timesheets.title`, `${P}.maintain-timesheets.description`)
608
+ .endPermission()
609
+ .addPermission(keys.ManageTimesheetActions, `${P}.manage-timesheet-actions.title`, `${P}.manage-timesheet-actions.description`)
610
+ .endPermission()
611
+ .addPermission(keys.ViewTimesheetReports, `${P}.view-timesheet-reports.title`, `${P}.view-timesheet-reports.description`)
612
+ .endPermission()
613
+ .endGroup();
614
+ }
615
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMTimesheetManagementPermissionDefinitionProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
616
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMTimesheetManagementPermissionDefinitionProvider }); }
617
+ }
618
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMTimesheetManagementPermissionDefinitionProvider, decorators: [{
619
+ type: Injectable
620
+ }] });
621
+
622
+ //#region ---- Imports ----
623
+ //#endregion
624
+ //#region ---- Module ----
625
+ class AXMTimesheetManagementModule {
626
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMTimesheetManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
627
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: AXMTimesheetManagementModule, imports: [CommonModule, AXPRuntimeModule] }); }
628
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMTimesheetManagementModule, providers: [
629
+ {
630
+ provide: ROUTES,
631
+ multi: true,
632
+ useFactory: () => [...myTimesheetPageRoutes],
633
+ },
634
+ {
635
+ provide: AXP_PAGE_COMPONENT_PROVIDER,
636
+ useClass: AXMMyTimesheetPageComponentProvider,
637
+ multi: true,
638
+ },
639
+ {
640
+ provide: AXP_MODULE_MANIFEST_PROVIDER,
641
+ useValue: TimesheetManagementManifest,
642
+ multi: true,
643
+ },
644
+ {
645
+ provide: AXP_PERMISSION_DEFINITION_PROVIDER,
646
+ useClass: AXMTimesheetManagementPermissionDefinitionProvider,
647
+ multi: true,
648
+ },
649
+ {
650
+ provide: AXP_MENU_PROVIDER,
651
+ useClass: AXMTimesheetManagementMenuProvider,
652
+ multi: true,
653
+ },
654
+ {
655
+ provide: AXP_FEATURE_DEFINITION_PROVIDER,
656
+ useClass: AXMTimesheetManagementFeatureDefinitionProvider,
657
+ multi: true,
658
+ },
659
+ {
660
+ provide: AXP_STATUS_PROVIDERS,
661
+ useClass: AXMTimesheetPeriodStatusProvider,
662
+ multi: true,
663
+ },
664
+ {
665
+ provide: AXP_STATUS_PROVIDERS,
666
+ useClass: AXMTimesheetCorrectionStatusProvider,
667
+ multi: true,
668
+ },
669
+ provideCommandSetups([
670
+ // {
671
+ // key: AXMTimesheetManagementCommandKeys.WorkItemResolveFromJira,
672
+ // command: () =>
673
+ // import('./features/work-item/commands/resolve-work-item-from-jira-issue.command').then(
674
+ // (c) => c.ResolveWorkItemFromJiraIssueCommand,
675
+ // ),
676
+ // },
677
+ {
678
+ key: AXMTimesheetManagementCommandKeys.TimeEntryCreate,
679
+ command: () => import('./acorex-platform-module-timesheet-management-client-create-time-entry.command-DS2EVLym.mjs').then((c) => c.CreateTimeEntryCommand),
680
+ },
681
+ {
682
+ key: AXMTimesheetManagementCommandKeys.TimeEntryUpdate,
683
+ command: () => import('./acorex-platform-module-timesheet-management-client-update-time-entry.command-Do6s9OrI.mjs').then((c) => c.UpdateTimeEntryCommand),
684
+ },
685
+ {
686
+ key: AXMTimesheetManagementCommandKeys.TimeEntryDelete,
687
+ command: () => import('./acorex-platform-module-timesheet-management-client-delete-time-entry.command-5_ItHpnx.mjs').then((c) => c.DeleteTimeEntryCommand),
688
+ },
689
+ {
690
+ key: AXMTimesheetManagementCommandKeys.TimesheetPeriodSubmit,
691
+ command: () => import('./acorex-platform-module-timesheet-management-client-submit-timesheet-period.command-C2qlQVIC.mjs').then((c) => c.SubmitTimesheetPeriodCommand),
692
+ },
693
+ {
694
+ key: AXMTimesheetManagementCommandKeys.TimesheetPeriodApprove,
695
+ command: () => import('./acorex-platform-module-timesheet-management-client-approve-timesheet-period.command-DlAeGANo.mjs').then((c) => c.ApproveTimesheetPeriodCommand),
696
+ },
697
+ {
698
+ key: AXMTimesheetManagementCommandKeys.TimesheetPeriodReject,
699
+ command: () => import('./acorex-platform-module-timesheet-management-client-reject-timesheet-period.command-CONxKPNm.mjs').then((c) => c.RejectTimesheetPeriodCommand),
700
+ },
701
+ {
702
+ key: AXMTimesheetManagementCommandKeys.TimesheetPeriodReopen,
703
+ command: () => import('./acorex-platform-module-timesheet-management-client-reopen-timesheet-period.command-DRr_c67L.mjs').then((c) => c.ReopenTimesheetPeriodCommand),
704
+ },
705
+ {
706
+ key: AXMTimesheetManagementCommandKeys.TimesheetPeriodLock,
707
+ command: () => import('./acorex-platform-module-timesheet-management-client-lock-timesheet-period.command-D7V7SWUK.mjs').then((c) => c.LockTimesheetPeriodCommand),
708
+ },
709
+ {
710
+ key: AXMTimesheetManagementCommandKeys.TimesheetPeriodAdminAdjust,
711
+ command: () => import('./acorex-platform-module-timesheet-management-client-admin-adjust-timesheet-period.command-8lA7h4rI.mjs').then((c) => c.AdminAdjustTimesheetPeriodCommand),
712
+ },
713
+ ]),
714
+ provideQuerySetups([
715
+ {
716
+ key: 'TimesheetManagement:MyTimesheetGrid',
717
+ loader: () => import('./acorex-platform-module-timesheet-management-client-my-timesheet-grid.query-DlDY3tdF.mjs').then((c) => c.AXMMyTimesheetGridQuery),
718
+ },
719
+ {
720
+ key: 'TimesheetManagement:TeamTimesheets',
721
+ loader: () => import('./acorex-platform-module-timesheet-management-client-team-timesheets.query-B0QpkVEI.mjs').then((c) => c.AXMTeamTimesheetsQuery),
722
+ },
723
+ {
724
+ key: 'TimesheetManagement:ApprovalInbox',
725
+ loader: () => import('./acorex-platform-module-timesheet-management-client-approval-inbox.query-Wyz_jjxb.mjs').then((c) => c.AXMApprovalInboxQuery),
726
+ },
727
+ {
728
+ key: 'TimesheetManagement:ReportHoursByProject',
729
+ loader: () => import('./acorex-platform-module-timesheet-management-client-report-hours-by-project.query-Sp8cLnTC.mjs').then((c) => c.AXMReportHoursByProjectQuery),
730
+ },
731
+ {
732
+ key: 'TimesheetManagement:ReportHoursByWorkItem',
733
+ loader: () => import('./acorex-platform-module-timesheet-management-client-report-hours-by-work-item.query-C8RU9Uc0.mjs').then((c) => c.AXMReportHoursByWorkItemQuery),
734
+ },
735
+ {
736
+ key: 'TimesheetManagement:ReportBillableSummary',
737
+ loader: () => import('./acorex-platform-module-timesheet-management-client-report-billable-summary.query-BeLk4Of7.mjs').then((c) => c.AXMReportBillableSummaryQuery),
738
+ },
739
+ {
740
+ key: 'TimesheetManagement:WorkItemSearch',
741
+ loader: () => import('./acorex-platform-module-timesheet-management-client-work-item-search.query-BA2kvF-S.mjs').then((c) => c.AXMWorkItemSearchQuery),
742
+ },
743
+ {
744
+ key: 'Workforce:CompareAttendanceVsTimesheet',
745
+ loader: () => import('./acorex-platform-module-timesheet-management-client-compare-attendance-vs-timesheet.query-ZZym5nSx.mjs').then((c) => c.AXMCompareAttendanceVsTimesheetQuery),
746
+ },
747
+ {
748
+ key: 'Workforce:ExceptionReport',
749
+ loader: () => import('./acorex-platform-module-timesheet-management-client-workforce-exception-report.query-0q-AITic.mjs').then((c) => c.AXMWorkforceExceptionReportQuery),
750
+ },
751
+ ]),
752
+ ], imports: [CommonModule, AXPRuntimeModule] }); }
753
+ }
754
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMTimesheetManagementModule, decorators: [{
755
+ type: NgModule,
756
+ args: [{
757
+ imports: [CommonModule, AXPRuntimeModule],
758
+ providers: [
759
+ {
760
+ provide: ROUTES,
761
+ multi: true,
762
+ useFactory: () => [...myTimesheetPageRoutes],
763
+ },
764
+ {
765
+ provide: AXP_PAGE_COMPONENT_PROVIDER,
766
+ useClass: AXMMyTimesheetPageComponentProvider,
767
+ multi: true,
768
+ },
769
+ {
770
+ provide: AXP_MODULE_MANIFEST_PROVIDER,
771
+ useValue: TimesheetManagementManifest,
772
+ multi: true,
773
+ },
774
+ {
775
+ provide: AXP_PERMISSION_DEFINITION_PROVIDER,
776
+ useClass: AXMTimesheetManagementPermissionDefinitionProvider,
777
+ multi: true,
778
+ },
779
+ {
780
+ provide: AXP_MENU_PROVIDER,
781
+ useClass: AXMTimesheetManagementMenuProvider,
782
+ multi: true,
783
+ },
784
+ {
785
+ provide: AXP_FEATURE_DEFINITION_PROVIDER,
786
+ useClass: AXMTimesheetManagementFeatureDefinitionProvider,
787
+ multi: true,
788
+ },
789
+ {
790
+ provide: AXP_STATUS_PROVIDERS,
791
+ useClass: AXMTimesheetPeriodStatusProvider,
792
+ multi: true,
793
+ },
794
+ {
795
+ provide: AXP_STATUS_PROVIDERS,
796
+ useClass: AXMTimesheetCorrectionStatusProvider,
797
+ multi: true,
798
+ },
799
+ provideCommandSetups([
800
+ // {
801
+ // key: AXMTimesheetManagementCommandKeys.WorkItemResolveFromJira,
802
+ // command: () =>
803
+ // import('./features/work-item/commands/resolve-work-item-from-jira-issue.command').then(
804
+ // (c) => c.ResolveWorkItemFromJiraIssueCommand,
805
+ // ),
806
+ // },
807
+ {
808
+ key: AXMTimesheetManagementCommandKeys.TimeEntryCreate,
809
+ command: () => import('./acorex-platform-module-timesheet-management-client-create-time-entry.command-DS2EVLym.mjs').then((c) => c.CreateTimeEntryCommand),
810
+ },
811
+ {
812
+ key: AXMTimesheetManagementCommandKeys.TimeEntryUpdate,
813
+ command: () => import('./acorex-platform-module-timesheet-management-client-update-time-entry.command-Do6s9OrI.mjs').then((c) => c.UpdateTimeEntryCommand),
814
+ },
815
+ {
816
+ key: AXMTimesheetManagementCommandKeys.TimeEntryDelete,
817
+ command: () => import('./acorex-platform-module-timesheet-management-client-delete-time-entry.command-5_ItHpnx.mjs').then((c) => c.DeleteTimeEntryCommand),
818
+ },
819
+ {
820
+ key: AXMTimesheetManagementCommandKeys.TimesheetPeriodSubmit,
821
+ command: () => import('./acorex-platform-module-timesheet-management-client-submit-timesheet-period.command-C2qlQVIC.mjs').then((c) => c.SubmitTimesheetPeriodCommand),
822
+ },
823
+ {
824
+ key: AXMTimesheetManagementCommandKeys.TimesheetPeriodApprove,
825
+ command: () => import('./acorex-platform-module-timesheet-management-client-approve-timesheet-period.command-DlAeGANo.mjs').then((c) => c.ApproveTimesheetPeriodCommand),
826
+ },
827
+ {
828
+ key: AXMTimesheetManagementCommandKeys.TimesheetPeriodReject,
829
+ command: () => import('./acorex-platform-module-timesheet-management-client-reject-timesheet-period.command-CONxKPNm.mjs').then((c) => c.RejectTimesheetPeriodCommand),
830
+ },
831
+ {
832
+ key: AXMTimesheetManagementCommandKeys.TimesheetPeriodReopen,
833
+ command: () => import('./acorex-platform-module-timesheet-management-client-reopen-timesheet-period.command-DRr_c67L.mjs').then((c) => c.ReopenTimesheetPeriodCommand),
834
+ },
835
+ {
836
+ key: AXMTimesheetManagementCommandKeys.TimesheetPeriodLock,
837
+ command: () => import('./acorex-platform-module-timesheet-management-client-lock-timesheet-period.command-D7V7SWUK.mjs').then((c) => c.LockTimesheetPeriodCommand),
838
+ },
839
+ {
840
+ key: AXMTimesheetManagementCommandKeys.TimesheetPeriodAdminAdjust,
841
+ command: () => import('./acorex-platform-module-timesheet-management-client-admin-adjust-timesheet-period.command-8lA7h4rI.mjs').then((c) => c.AdminAdjustTimesheetPeriodCommand),
842
+ },
843
+ ]),
844
+ provideQuerySetups([
845
+ {
846
+ key: 'TimesheetManagement:MyTimesheetGrid',
847
+ loader: () => import('./acorex-platform-module-timesheet-management-client-my-timesheet-grid.query-DlDY3tdF.mjs').then((c) => c.AXMMyTimesheetGridQuery),
848
+ },
849
+ {
850
+ key: 'TimesheetManagement:TeamTimesheets',
851
+ loader: () => import('./acorex-platform-module-timesheet-management-client-team-timesheets.query-B0QpkVEI.mjs').then((c) => c.AXMTeamTimesheetsQuery),
852
+ },
853
+ {
854
+ key: 'TimesheetManagement:ApprovalInbox',
855
+ loader: () => import('./acorex-platform-module-timesheet-management-client-approval-inbox.query-Wyz_jjxb.mjs').then((c) => c.AXMApprovalInboxQuery),
856
+ },
857
+ {
858
+ key: 'TimesheetManagement:ReportHoursByProject',
859
+ loader: () => import('./acorex-platform-module-timesheet-management-client-report-hours-by-project.query-Sp8cLnTC.mjs').then((c) => c.AXMReportHoursByProjectQuery),
860
+ },
861
+ {
862
+ key: 'TimesheetManagement:ReportHoursByWorkItem',
863
+ loader: () => import('./acorex-platform-module-timesheet-management-client-report-hours-by-work-item.query-C8RU9Uc0.mjs').then((c) => c.AXMReportHoursByWorkItemQuery),
864
+ },
865
+ {
866
+ key: 'TimesheetManagement:ReportBillableSummary',
867
+ loader: () => import('./acorex-platform-module-timesheet-management-client-report-billable-summary.query-BeLk4Of7.mjs').then((c) => c.AXMReportBillableSummaryQuery),
868
+ },
869
+ {
870
+ key: 'TimesheetManagement:WorkItemSearch',
871
+ loader: () => import('./acorex-platform-module-timesheet-management-client-work-item-search.query-BA2kvF-S.mjs').then((c) => c.AXMWorkItemSearchQuery),
872
+ },
873
+ {
874
+ key: 'Workforce:CompareAttendanceVsTimesheet',
875
+ loader: () => import('./acorex-platform-module-timesheet-management-client-compare-attendance-vs-timesheet.query-ZZym5nSx.mjs').then((c) => c.AXMCompareAttendanceVsTimesheetQuery),
876
+ },
877
+ {
878
+ key: 'Workforce:ExceptionReport',
879
+ loader: () => import('./acorex-platform-module-timesheet-management-client-workforce-exception-report.query-0q-AITic.mjs').then((c) => c.AXMWorkforceExceptionReportQuery),
880
+ },
881
+ ]),
882
+ ],
883
+ }]
884
+ }] });
885
+
886
+ /**
887
+ * Generated bundle index. Do not edit.
888
+ */
889
+
890
+ export { AXMMyTimesheetPageComponent, AXMMyTimesheetPageComponentProvider, AXMTimesheetManagementFeatureDefinitionProvider, AXMTimesheetManagementModule, MY_TIMESHEET_PAGE_COMPONENT_KEY, TimesheetManagementManifest, myTimesheetPageRoutes };
891
+ //# sourceMappingURL=acorex-platform-module-timesheet-management-client.mjs.map