@acorex-platform/module-human-capital-management-client 1.0.2 → 2.0.0-beta.0
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-human-capital-management-client-acorex-platform-module-human-capital-management-client-2NzXGCVk.mjs → acorex-platform-module-human-capital-management-client-acorex-platform-module-human-capital-management-client-D2cJK2Ib.mjs} +380 -126
- package/fesm2022/acorex-platform-module-human-capital-management-client-acorex-platform-module-human-capital-management-client-D2cJK2Ib.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-human-capital-management-client-approve-leave-request.command-Om_S0k9L.mjs → acorex-platform-module-human-capital-management-client-approve-leave-request.command-CWrisv79.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-approve-leave-request.command-Om_S0k9L.mjs.map → acorex-platform-module-human-capital-management-client-approve-leave-request.command-CWrisv79.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-assign-position-assignment.command-2iHIogn6.mjs → acorex-platform-module-human-capital-management-client-assign-position-assignment.command-BJII8ynP.mjs} +2 -2
- package/fesm2022/acorex-platform-module-human-capital-management-client-assign-position-assignment.command-BJII8ynP.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-human-capital-management-client-cancel-leave-request.command-DGriRFiQ.mjs → acorex-platform-module-human-capital-management-client-cancel-leave-request.command-CD8tDXCv.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-cancel-leave-request.command-DGriRFiQ.mjs.map → acorex-platform-module-human-capital-management-client-cancel-leave-request.command-CD8tDXCv.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-employee.mjs +1 -0
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-employee.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-leave-request.mjs +14 -34
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-leave-request.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-acorex-platform-module-human-capital-management-client-contracts-entity-catalog-G4FFIMvd.mjs → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-acorex-platform-module-human-capital-management-client-contracts-entity-catalog-DUPGqkbH.mjs} +44 -9
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-acorex-platform-module-human-capital-management-client-contracts-entity-catalog-DUPGqkbH.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-catalog-scope.keys-D8MsCaj5.mjs → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-catalog-scope.keys-BEYYlN7b.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-catalog-scope.keys-D8MsCaj5.mjs.map → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-catalog-scope.keys-BEYYlN7b.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-commands.keys-B5rEwAkf.mjs → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-commands.keys-BR9V8Pyn.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-commands.keys-B5rEwAkf.mjs.map → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-commands.keys-BR9V8Pyn.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employee.entity-DeQmRygb.mjs → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employee.entity-CV3gcLuA.mjs} +4 -3
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employee.entity-CV3gcLuA.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employment-type.entity-gkImBJNV.mjs → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employment-type.entity-Dx78wCvD.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employment-type.entity-gkImBJNV.mjs.map → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employment-type.entity-Dx78wCvD.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-request.entity-D5MKVw7e.mjs → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-request.entity-AutNrrda.mjs} +16 -36
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-request.entity-AutNrrda.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-type.entity-BS1ln4HC.mjs → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-type.entity-Qd9uROk2.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-type.entity-BS1ln4HC.mjs.map → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-type.entity-Qd9uROk2.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event-type.entity-Cj7_EEYt.mjs → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event-type.entity-SboaKJyk.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event-type.entity-Cj7_EEYt.mjs.map → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event-type.entity-SboaKJyk.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event.entity-DtIy06_8.mjs → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event.entity-DmkzomEV.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event.entity-DtIy06_8.mjs.map → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event.entity-DmkzomEV.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-position-assignment.entity-NYvLlI_7.mjs → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-position-assignment.entity-C3dq7y16.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-position-assignment.entity-NYvLlI_7.mjs.map → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-position-assignment.entity-C3dq7y16.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts.mjs +41 -21
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-edit-personal-info.command-Ddf1quqk.mjs → acorex-platform-module-human-capital-management-client-edit-personal-info.command-Vm1SQZiQ.mjs} +8 -5
- package/fesm2022/acorex-platform-module-human-capital-management-client-edit-personal-info.command-Vm1SQZiQ.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-human-capital-management-client-edit-signature.command-CPHVtOwv.mjs → acorex-platform-module-human-capital-management-client-edit-signature.command-ENU68Czy.mjs} +5 -7
- package/fesm2022/acorex-platform-module-human-capital-management-client-edit-signature.command-ENU68Czy.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-human-capital-management-client-profile-documents-panel.component-BeHIU0Em.mjs → acorex-platform-module-human-capital-management-client-profile-documents-panel.component-SwjPfBbl.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-human-capital-management-client-profile-documents-panel.component-BeHIU0Em.mjs.map → acorex-platform-module-human-capital-management-client-profile-documents-panel.component-SwjPfBbl.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-profile-documents-panel.component.provider-DHamm55f.mjs → acorex-platform-module-human-capital-management-client-profile-documents-panel.component.provider-BI2coRF-.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-human-capital-management-client-profile-documents-panel.component.provider-DHamm55f.mjs.map → acorex-platform-module-human-capital-management-client-profile-documents-panel.component.provider-BI2coRF-.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-reject-leave-request.command-O9gipd8g.mjs → acorex-platform-module-human-capital-management-client-reject-leave-request.command-BfvfurT1.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-reject-leave-request.command-O9gipd8g.mjs.map → acorex-platform-module-human-capital-management-client-reject-leave-request.command-BfvfurT1.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-revoke-position-assignment.command-DmVlDQ8_.mjs → acorex-platform-module-human-capital-management-client-revoke-position-assignment.command-a3hP-q88.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-revoke-position-assignment.command-DmVlDQ8_.mjs.map → acorex-platform-module-human-capital-management-client-revoke-position-assignment.command-a3hP-q88.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-start-leave-request-flow.command-Bm0LVRB9.mjs → acorex-platform-module-human-capital-management-client-start-leave-request-flow.command-BDctjTqW.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-start-leave-request-flow.command-Bm0LVRB9.mjs.map → acorex-platform-module-human-capital-management-client-start-leave-request-flow.command-BDctjTqW.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-start-lifecycle-event-flow.command-aGyEvdvc.mjs → acorex-platform-module-human-capital-management-client-start-lifecycle-event-flow.command-DrKITqtO.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-human-capital-management-client-start-lifecycle-event-flow.command-aGyEvdvc.mjs.map → acorex-platform-module-human-capital-management-client-start-lifecycle-event-flow.command-DrKITqtO.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-human-capital-management-client.mjs +1 -1
- package/i18n/en-AU/human-capital-management.json +2 -2
- package/i18n/en-US/human-capital-management.json +2 -2
- package/i18n/fa-IR/human-capital-management.json +2 -2
- package/package.json +2 -2
- package/types/acorex-platform-module-human-capital-management-client-contracts.d.ts +8 -1
- package/types/acorex-platform-module-human-capital-management-client.d.ts +7 -4
- package/fesm2022/acorex-platform-module-human-capital-management-client-acorex-platform-module-human-capital-management-client-2NzXGCVk.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-human-capital-management-client-assign-position-assignment.command-2iHIogn6.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-acorex-platform-module-human-capital-management-client-contracts-entity-catalog-G4FFIMvd.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employee.entity-DeQmRygb.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-request.entity-D5MKVw7e.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-human-capital-management-client-edit-personal-info.command-Ddf1quqk.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-human-capital-management-client-edit-signature.command-CPHVtOwv.mjs.map +0 -1
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { AXPSystemStatuses, AXPStatusProvider, systemStatusToDefinition, AXPSystemStatusType,
|
|
2
|
-
import { AXPTaskBadgeProvider, AXPResourceAppointmentBoardProvider, AXP_TASK_BADGE_PROVIDERS, USER_CARD_ITEMS_HOOK, AXP_RESOURCE_APPOINTMENT_PROVIDER, AXP_SIGNATURE_PROVIDER, AXP_PAGE_COMPONENT_PROVIDER } from '@acorex-platform/framework-client/layout/components';
|
|
1
|
+
import { AXPSystemStatuses, resolveMultiLanguageString, getSystemStatus, AXPStatusProvider, systemStatusToDefinition, AXPSystemStatusType, hasMultiLanguageContent } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { AXPTaskBadgeProvider, AXPResourceAppointmentBoardProvider, AXPWorkItemDetailsComponent, AXP_TASK_BADGE_PROVIDERS, USER_CARD_ITEMS_HOOK, AXP_RESOURCE_APPOINTMENT_PROVIDER, AXP_SIGNATURE_PROVIDER, AXP_PAGE_COMPONENT_PROVIDER } from '@acorex-platform/framework-client/layout/components';
|
|
3
3
|
import { AXPEntityService, AXP_ENTITY_CONFIG_TOKEN } from '@acorex-platform/framework-client/layout/entity';
|
|
4
4
|
import { AXPCommandEventsService, AXPCommandExecutor, AXPRuntimeModule, provideCommandSetups, AXPCommandService } from '@acorex-platform/framework-client/runtime';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
6
|
import { inject, DestroyRef, signal, Injectable, input, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule, LOCALE_ID } from '@angular/core';
|
|
7
7
|
import { get, merge, first } from 'lodash';
|
|
8
8
|
import { RootConfig, AXPHumanCapitalManagementFeatureKeys, AXPHumanCapitalManagementCommandKeys, AXM_POSITION_ASSIGNMENT_STATUS, AXPPeopleOrganizationPermissionKeys, AXPHumanCapitalManagementMenuKeys, HCM_CATALOG_SCOPE_HR } from '@acorex-platform/module-human-capital-management-client/contracts';
|
|
9
|
-
import { AXPLayoutBuilderService } from '@acorex-platform/framework-client/layout/builder';
|
|
10
9
|
import * as i4 from '@acorex/core/translation';
|
|
11
|
-
import { AXTranslationService, AXTranslationModule, resolveMultiLanguageString } from '@acorex/core/translation';
|
|
10
|
+
import { AXTranslationService, AXTranslationModule, resolveMultiLanguageString as resolveMultiLanguageString$1 } from '@acorex/core/translation';
|
|
11
|
+
import { AXPLayoutBuilderService } from '@acorex-platform/framework-client/layout/builder';
|
|
12
12
|
import * as i1 from '@acorex/components/button';
|
|
13
13
|
import { AXButtonModule } from '@acorex/components/button';
|
|
14
14
|
import * as i2 from '@acorex/components/decorators';
|
|
15
15
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
16
|
-
import { AXPTaskPopoverComponent } from '@acorex-platform/module-task-management-client';
|
|
17
16
|
import * as i3 from '@angular/common';
|
|
18
17
|
import { CommonModule } from '@angular/common';
|
|
19
18
|
import { AXP_RESOURCE_APPOINTMENT_PAGE_CONFIG } from '@acorex-platform/module-common-client';
|
|
20
19
|
import { AXM_ORG_CHART_NODE_CONTRIBUTOR } from '@acorex-platform/module-organization-management-client';
|
|
21
20
|
import { AXPSessionService, AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';
|
|
22
|
-
import { AXP_STATUS_PROVIDERS, AXP_PROTECTED_ROUTE_GUARDS, AXP_MENU_PROVIDER } from '@acorex-platform/framework-client/common';
|
|
21
|
+
import { AXP_STATUS_PROVIDERS, AXPDataRefreshService, AXP_PROTECTED_ROUTE_GUARDS, AXP_MENU_PROVIDER } from '@acorex-platform/framework-client/common';
|
|
23
22
|
import { AXP_FEATURE_DEFINITION_PROVIDER, AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, AXP_CATALOG_SCOPE_DEFINITION_PROVIDER, AXP_HOOK_PROVIDER, provideLazyProvider } from '@acorex-platform/framework-client/core';
|
|
24
23
|
import { ROUTES } from '@angular/router';
|
|
25
24
|
import { AXPCommonMenuKeys, AXPCommonPermissionGroupKeys } from '@acorex-platform/module-common-client/contracts';
|
|
@@ -109,10 +108,254 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
109
108
|
type: Injectable
|
|
110
109
|
}], ctorParameters: () => [] });
|
|
111
110
|
|
|
111
|
+
//#region ----- Imports -----
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region ----- Public API -----
|
|
114
|
+
/**
|
|
115
|
+
* Side-panel sections for one leave request: the saved request fields, then each metadata group
|
|
116
|
+
* with the values stored on `metaDataForm`.
|
|
117
|
+
*/
|
|
118
|
+
function buildLeaveRequestAppointmentSections(request, leaveTypeTitle, metaDataList, locale, labels, yesLabel, noLabel, status) {
|
|
119
|
+
const details = [];
|
|
120
|
+
if (status?.title) {
|
|
121
|
+
details.push({ label: labels.status, badge: status });
|
|
122
|
+
}
|
|
123
|
+
details.push({ label: labels.leaveType, value: leaveTypeTitle || null }, { label: labels.startDate, value: toDate(request.startDate), format: 'date' }, { label: labels.endDate, value: toDate(request.endDate), format: 'date' }, { label: labels.duration, value: request.durationDays ?? null, format: 'number' }, { label: labels.reason, value: textOrNull(request.reason) });
|
|
124
|
+
const managerNote = textOrNull(request.rejectReason);
|
|
125
|
+
if (managerNote) {
|
|
126
|
+
details.push({ label: labels.managerNote, value: managerNote });
|
|
127
|
+
}
|
|
128
|
+
const sections = [{ title: labels.detailsTitle, rows: details }];
|
|
129
|
+
const form = request.metaDataForm ?? {};
|
|
130
|
+
const usedNames = new Set();
|
|
131
|
+
const groups = [...(metaDataList?.groups ?? [])].sort((a, b) => (a.order ?? 0) - (b.order ?? 0));
|
|
132
|
+
for (const group of groups) {
|
|
133
|
+
const fields = [...(group.fields ?? [])]
|
|
134
|
+
.filter((field) => field?.name && field.status !== 'deleted')
|
|
135
|
+
.sort((a, b) => (a.order ?? 0) - (b.order ?? 0));
|
|
136
|
+
const rows = fields.map((field) => {
|
|
137
|
+
usedNames.add(field.name);
|
|
138
|
+
return metadataRow(field, readMetaValue(form, field.name), locale, yesLabel, noLabel);
|
|
139
|
+
});
|
|
140
|
+
if (rows.length === 0) {
|
|
141
|
+
continue;
|
|
142
|
+
}
|
|
143
|
+
const groupTitle = resolveMultiLanguageString(group.title, locale);
|
|
144
|
+
sections.push({
|
|
145
|
+
title: groups.length === 1 ? labels.metadataTitle : groupTitle || labels.metadataTitle,
|
|
146
|
+
rows,
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
const extraRows = Object.keys(form)
|
|
150
|
+
.filter((name) => !usedNames.has(name))
|
|
151
|
+
.sort()
|
|
152
|
+
.map((name) => metadataRow({ name, title: name, interface: '' }, form[name], locale, yesLabel, noLabel))
|
|
153
|
+
.filter((row) => row.value != null && row.value !== '');
|
|
154
|
+
if (extraRows.length > 0) {
|
|
155
|
+
const metadataSection = sections.find((section) => section.title === labels.metadataTitle);
|
|
156
|
+
if (metadataSection && groups.length <= 1) {
|
|
157
|
+
metadataSection.rows.push(...extraRows);
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
sections.push({ title: labels.metadataTitle, rows: extraRows });
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return sections;
|
|
164
|
+
}
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region ----- Metadata values -----
|
|
167
|
+
function metadataRow(field, value, locale, yesLabel, noLabel) {
|
|
168
|
+
const label = resolveMultiLanguageString(field.title, locale) || field.name;
|
|
169
|
+
const widget = widgetType(field.interface);
|
|
170
|
+
const formatted = formatMetaValue(value, widget, field, locale, yesLabel, noLabel);
|
|
171
|
+
return { label, ...formatted };
|
|
172
|
+
}
|
|
173
|
+
function formatMetaValue(value, widget, field, locale, yesLabel, noLabel) {
|
|
174
|
+
if (value == null || value === '') {
|
|
175
|
+
return { value: null };
|
|
176
|
+
}
|
|
177
|
+
if (typeof value === 'boolean' || isBooleanWidget(widget)) {
|
|
178
|
+
return { value: value === true || value === 'true' ? yesLabel : noLabel };
|
|
179
|
+
}
|
|
180
|
+
if (typeof value === 'number' || isNumberWidget(widget)) {
|
|
181
|
+
const numeric = typeof value === 'number' ? value : Number(value);
|
|
182
|
+
return Number.isFinite(numeric) ? { value: numeric, format: 'number' } : { value: textOrNull(value) };
|
|
183
|
+
}
|
|
184
|
+
if (isDateWidget(widget) && (typeof value === 'string' || value instanceof Date)) {
|
|
185
|
+
const date = toDate(value);
|
|
186
|
+
if (!date) {
|
|
187
|
+
return { value: textOrNull(value) };
|
|
188
|
+
}
|
|
189
|
+
const raw = typeof value === 'string' ? value : '';
|
|
190
|
+
const format = isDateOnly(raw) || !widget.includes('time') ? 'date' : 'datetime';
|
|
191
|
+
return { value: date, format };
|
|
192
|
+
}
|
|
193
|
+
const fromOptions = optionLabel(value, field, locale);
|
|
194
|
+
if (fromOptions) {
|
|
195
|
+
return { value: fromOptions };
|
|
196
|
+
}
|
|
197
|
+
return { value: textOrNull(displayUnknown(value, locale)) };
|
|
198
|
+
}
|
|
199
|
+
function readMetaValue(form, fieldName) {
|
|
200
|
+
if (Object.prototype.hasOwnProperty.call(form, fieldName)) {
|
|
201
|
+
return form[fieldName];
|
|
202
|
+
}
|
|
203
|
+
for (const value of Object.values(form)) {
|
|
204
|
+
if (value != null && typeof value === 'object' && !Array.isArray(value)) {
|
|
205
|
+
const nested = value;
|
|
206
|
+
if (Object.prototype.hasOwnProperty.call(nested, fieldName)) {
|
|
207
|
+
return nested[fieldName];
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return undefined;
|
|
212
|
+
}
|
|
213
|
+
function widgetType(interfaceValue) {
|
|
214
|
+
const config = parseInterface(interfaceValue);
|
|
215
|
+
return typeof config?.['type'] === 'string' ? config['type'] : '';
|
|
216
|
+
}
|
|
217
|
+
function parseInterface(interfaceValue) {
|
|
218
|
+
if (typeof interfaceValue === 'string') {
|
|
219
|
+
const trimmed = interfaceValue.trim();
|
|
220
|
+
if (!trimmed.startsWith('{')) {
|
|
221
|
+
return { type: trimmed };
|
|
222
|
+
}
|
|
223
|
+
try {
|
|
224
|
+
const parsed = JSON.parse(trimmed);
|
|
225
|
+
return parsed != null && typeof parsed === 'object' ? parsed : null;
|
|
226
|
+
}
|
|
227
|
+
catch {
|
|
228
|
+
return { type: trimmed };
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
if (interfaceValue != null && typeof interfaceValue === 'object') {
|
|
232
|
+
return interfaceValue;
|
|
233
|
+
}
|
|
234
|
+
return null;
|
|
235
|
+
}
|
|
236
|
+
function isDateWidget(widget) {
|
|
237
|
+
return widget.includes('date') || widget.includes('time');
|
|
238
|
+
}
|
|
239
|
+
function isNumberWidget(widget) {
|
|
240
|
+
return widget.includes('number');
|
|
241
|
+
}
|
|
242
|
+
function isBooleanWidget(widget) {
|
|
243
|
+
return widget.includes('toggle') || widget.includes('checkbox') || widget.includes('switch');
|
|
244
|
+
}
|
|
245
|
+
function optionLabel(value, field, locale) {
|
|
246
|
+
const options = dataSourceOptions(field);
|
|
247
|
+
if (options.length === 0) {
|
|
248
|
+
return null;
|
|
249
|
+
}
|
|
250
|
+
const keys = Array.isArray(value) ? value : [value];
|
|
251
|
+
const labels = keys
|
|
252
|
+
.map((key) => {
|
|
253
|
+
const match = options.find((option) => option.id === String(key));
|
|
254
|
+
return match ? resolveMultiLanguageString(match.title, locale) : '';
|
|
255
|
+
})
|
|
256
|
+
.filter((label) => label.length > 0);
|
|
257
|
+
return labels.length > 0 ? labels.join(', ') : null;
|
|
258
|
+
}
|
|
259
|
+
function dataSourceOptions(field) {
|
|
260
|
+
const interfaceOptions = parseInterface(field.interface)?.['options'];
|
|
261
|
+
const configuration = field.configuration;
|
|
262
|
+
const sources = [readDataSource(interfaceOptions), readDataSource(configuration)];
|
|
263
|
+
for (const source of sources) {
|
|
264
|
+
if (source.length > 0) {
|
|
265
|
+
return source;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return [];
|
|
269
|
+
}
|
|
270
|
+
function readDataSource(source) {
|
|
271
|
+
const record = source != null && typeof source === 'object' ? source : null;
|
|
272
|
+
const dataSource = record?.['dataSource'];
|
|
273
|
+
if (!Array.isArray(dataSource)) {
|
|
274
|
+
return [];
|
|
275
|
+
}
|
|
276
|
+
return dataSource.flatMap((item) => {
|
|
277
|
+
if (item == null || typeof item !== 'object') {
|
|
278
|
+
return [];
|
|
279
|
+
}
|
|
280
|
+
const row = item;
|
|
281
|
+
const id = row['id'] ?? row['value'];
|
|
282
|
+
if (id == null) {
|
|
283
|
+
return [];
|
|
284
|
+
}
|
|
285
|
+
return [{ id: String(id), title: row['title'] ?? row['text'] ?? row['name'] ?? id }];
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
function displayUnknown(value, locale) {
|
|
289
|
+
if (value == null || value === '') {
|
|
290
|
+
return '';
|
|
291
|
+
}
|
|
292
|
+
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
|
|
293
|
+
return String(value);
|
|
294
|
+
}
|
|
295
|
+
if (Array.isArray(value)) {
|
|
296
|
+
return value
|
|
297
|
+
.map((item) => displayUnknown(item, locale))
|
|
298
|
+
.filter((item) => item.length > 0)
|
|
299
|
+
.join(', ');
|
|
300
|
+
}
|
|
301
|
+
if (typeof value === 'object') {
|
|
302
|
+
const record = value;
|
|
303
|
+
const labeled = record['title'] ?? record['text'] ?? record['name'] ?? record['label'] ?? record['fullName'];
|
|
304
|
+
if (labeled != null) {
|
|
305
|
+
const resolved = resolveMultiLanguageString(labeled, locale) || displayUnknown(labeled, locale);
|
|
306
|
+
if (resolved) {
|
|
307
|
+
return resolved;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
return '';
|
|
312
|
+
}
|
|
313
|
+
function textOrNull(value) {
|
|
314
|
+
if (value == null) {
|
|
315
|
+
return null;
|
|
316
|
+
}
|
|
317
|
+
const text = typeof value === 'string' ? value.trim() : String(value);
|
|
318
|
+
return text.length > 0 ? text : null;
|
|
319
|
+
}
|
|
320
|
+
function toDate(value) {
|
|
321
|
+
if (value instanceof Date && !Number.isNaN(value.getTime())) {
|
|
322
|
+
return value;
|
|
323
|
+
}
|
|
324
|
+
if (typeof value !== 'string' || value.trim().length === 0) {
|
|
325
|
+
return null;
|
|
326
|
+
}
|
|
327
|
+
const match = /^(\d{4})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2}))?/.exec(value.trim());
|
|
328
|
+
if (match) {
|
|
329
|
+
const date = match[4] != null
|
|
330
|
+
? new Date(Number(match[1]), Number(match[2]) - 1, Number(match[3]), Number(match[4]), Number(match[5]))
|
|
331
|
+
: new Date(Number(match[1]), Number(match[2]) - 1, Number(match[3]));
|
|
332
|
+
return Number.isNaN(date.getTime()) ? null : date;
|
|
333
|
+
}
|
|
334
|
+
const parsed = new Date(value);
|
|
335
|
+
return Number.isNaN(parsed.getTime()) ? null : parsed;
|
|
336
|
+
}
|
|
337
|
+
function isDateOnly(value) {
|
|
338
|
+
return /^\d{4}-\d{2}-\d{2}$/.test(value.trim());
|
|
339
|
+
}
|
|
340
|
+
//#endregion
|
|
341
|
+
|
|
342
|
+
async function loadPages(query, take, filter) {
|
|
343
|
+
const items = [];
|
|
344
|
+
let total;
|
|
345
|
+
do {
|
|
346
|
+
const page = await query({ skip: items.length, take, ...(filter ? { filter } : {}) });
|
|
347
|
+
items.push(...page.items);
|
|
348
|
+
total = page.total;
|
|
349
|
+
if (page.items.length === 0)
|
|
350
|
+
break;
|
|
351
|
+
} while (items.length < total);
|
|
352
|
+
return items;
|
|
353
|
+
}
|
|
112
354
|
class AXMLeaveRequestResourceAppointmentProvider extends AXPResourceAppointmentBoardProvider {
|
|
113
355
|
constructor() {
|
|
114
356
|
super(...arguments);
|
|
115
357
|
this.entityService = inject(AXPEntityService);
|
|
358
|
+
this.translationService = inject(AXTranslationService);
|
|
116
359
|
}
|
|
117
360
|
get name() {
|
|
118
361
|
return 'leave-request';
|
|
@@ -133,73 +376,67 @@ class AXMLeaveRequestResourceAppointmentProvider extends AXPResourceAppointmentB
|
|
|
133
376
|
const fieldFilters = [];
|
|
134
377
|
if (filter?.range?.from) {
|
|
135
378
|
fieldFilters.push({
|
|
136
|
-
field: '
|
|
137
|
-
operator: { type: '
|
|
379
|
+
field: 'endDate',
|
|
380
|
+
operator: { type: 'gt' },
|
|
138
381
|
value: filter.range.from,
|
|
139
382
|
});
|
|
140
383
|
}
|
|
141
384
|
if (filter?.range?.end) {
|
|
142
385
|
fieldFilters.push({
|
|
143
|
-
field: '
|
|
386
|
+
field: 'startDate',
|
|
144
387
|
operator: { type: 'lte' },
|
|
145
388
|
value: filter.range.end,
|
|
146
389
|
});
|
|
147
390
|
}
|
|
148
|
-
const
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
const
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
391
|
+
const leaveTypeDataAccessor = this.entityService
|
|
392
|
+
.withEntity(RootConfig.module.name, RootConfig.entities.leaveType.name)
|
|
393
|
+
.data();
|
|
394
|
+
const locale = this.translationService.getActiveLang();
|
|
395
|
+
const [employees, leaveTypes, items, labels, yesLabel, noLabel] = await Promise.all([
|
|
396
|
+
loadPages(query => employeeDataAccessor.query(query), 200),
|
|
397
|
+
loadPages(query => leaveTypeDataAccessor.query(query), 200),
|
|
398
|
+
loadPages(query => leaveRequestDataAccessor.query(query), 1000, fieldFilters.length ? { logic: 'and', filters: fieldFilters } : undefined),
|
|
399
|
+
this.detailLabels(),
|
|
400
|
+
this.translationService.translateAsync('@general:widgets.toggle.yes'),
|
|
401
|
+
this.translationService.translateAsync('@general:widgets.toggle.no'),
|
|
402
|
+
]);
|
|
403
|
+
const leaveTypeById = new Map(leaveTypes.map((leaveType) => [leaveType.id, leaveType]));
|
|
404
|
+
const appointmentsByEmployee = new Map();
|
|
405
|
+
for (const item of items) {
|
|
406
|
+
const leaveType = leaveTypeById.get(item.leaveTypeId);
|
|
407
|
+
const leaveTypeTitle = resolveMultiLanguageString(item.leaveType?.title, locale)
|
|
408
|
+
|| resolveMultiLanguageString(leaveType?.title, locale);
|
|
409
|
+
const statusId = item.statusId ?? item.status?.id;
|
|
410
|
+
const appointments = appointmentsByEmployee.get(item.employeeId) ?? [];
|
|
411
|
+
appointments.push({
|
|
169
412
|
id: item.id,
|
|
170
|
-
title:
|
|
171
|
-
startDate: item.startDate,
|
|
172
|
-
endDate: item.endDate,
|
|
413
|
+
title: leaveTypeTitle,
|
|
414
|
+
startDate: new Date(item.startDate),
|
|
415
|
+
endDate: new Date(item.endDate),
|
|
173
416
|
resourceId: item.employeeId,
|
|
174
417
|
description: item.reason,
|
|
175
|
-
allDay:
|
|
176
|
-
|
|
418
|
+
allDay: true,
|
|
419
|
+
statusId,
|
|
420
|
+
categoryId: item.leaveTypeId,
|
|
421
|
+
sections: buildLeaveRequestAppointmentSections(item, leaveTypeTitle, leaveType?.metaDataList, locale, labels, yesLabel, noLabel, this.statusBadge(statusId, item.status?.title)),
|
|
422
|
+
});
|
|
423
|
+
appointmentsByEmployee.set(item.employeeId, appointments);
|
|
424
|
+
}
|
|
425
|
+
return employees.map(employee => ({
|
|
426
|
+
id: employee.id,
|
|
427
|
+
title: employee.person?.fullName || employee.employeeCode || '',
|
|
428
|
+
description: employee.employeeCode,
|
|
429
|
+
icon: RootConfig.entities.employee.icon,
|
|
430
|
+
appointments: appointmentsByEmployee.get(employee.id) ?? [],
|
|
177
431
|
}));
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
// title: leave.employee?.person?.displayName ?? '@general:terms.people.employee',
|
|
187
|
-
// appointments: [],
|
|
188
|
-
// };
|
|
189
|
-
// resourcesMap.set(resourceId, resource);
|
|
190
|
-
// }
|
|
191
|
-
// const task: AXPResourceAppointmentItem = {
|
|
192
|
-
// id: leave.id,
|
|
193
|
-
// title: leave.leaveType?.title ?? '@human-capital-management:leave-requests.entities.leave-request.title',
|
|
194
|
-
// description: leave.reason,
|
|
195
|
-
// startDate: leave.startDate,
|
|
196
|
-
// endDate: leave.endDate,
|
|
197
|
-
// allDay: false,
|
|
198
|
-
// resourceId,
|
|
199
|
-
// };
|
|
200
|
-
// resource.appointments.push(task);
|
|
201
|
-
// }
|
|
202
|
-
// return Array.from(resourcesMap.values());
|
|
432
|
+
}
|
|
433
|
+
async getCategories() {
|
|
434
|
+
const accessor = this.entityService
|
|
435
|
+
.withEntity(RootConfig.module.name, RootConfig.entities.leaveType.name)
|
|
436
|
+
.data();
|
|
437
|
+
const items = await loadPages(query => accessor.query(query), 200);
|
|
438
|
+
const locale = this.translationService.getActiveLang();
|
|
439
|
+
return items.map(({ id, title }) => ({ id, title: resolveMultiLanguageString(title, locale) }));
|
|
203
440
|
}
|
|
204
441
|
async getStatuses() {
|
|
205
442
|
const waitingApproval = AXPSystemStatuses.WaitingApproval;
|
|
@@ -227,6 +464,35 @@ class AXMLeaveRequestResourceAppointmentProvider extends AXPResourceAppointmentB
|
|
|
227
464
|
// No-op for now – commands are handled by existing leave request commands elsewhere.
|
|
228
465
|
return { success: true, kind: 'object', data: undefined };
|
|
229
466
|
}
|
|
467
|
+
async detailLabels() {
|
|
468
|
+
const translate = (key) => this.translationService.translateAsync(key);
|
|
469
|
+
const [detailsTitle, metadataTitle, leaveType, startDate, endDate, duration, reason, managerNote, status,] = await Promise.all([
|
|
470
|
+
translate('@human-capital-management:leave-requests.entities.leave-request.groups.request-details'),
|
|
471
|
+
translate('@data-management:metadata-definitions.components.meta-data-form.title'),
|
|
472
|
+
translate('@human-capital-management:leave-requests.entities.leave-request.fields.leave-type-id'),
|
|
473
|
+
translate('@general:terms.datetime.start-date'),
|
|
474
|
+
translate('@general:terms.datetime.end-date'),
|
|
475
|
+
translate('@human-capital-management:leave-requests.entities.leave-request.fields.duration-days'),
|
|
476
|
+
translate('@human-capital-management:leave-requests.entities.leave-request.fields.reason'),
|
|
477
|
+
translate('@human-capital-management:leave-requests.entities.leave-request.fields.manager-note'),
|
|
478
|
+
translate('@general:work-board.detail-panel.status'),
|
|
479
|
+
]);
|
|
480
|
+
return { detailsTitle, metadataTitle, leaveType, startDate, endDate, duration, reason, managerNote, status };
|
|
481
|
+
}
|
|
482
|
+
statusBadge(statusId, fallbackTitle) {
|
|
483
|
+
if (!statusId && !fallbackTitle) {
|
|
484
|
+
return undefined;
|
|
485
|
+
}
|
|
486
|
+
const definition = isSystemStatus(statusId) ? getSystemStatus(statusId) : undefined;
|
|
487
|
+
return {
|
|
488
|
+
title: definition?.title || fallbackTitle || statusId || '',
|
|
489
|
+
color: definition?.color,
|
|
490
|
+
icon: definition?.icon,
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
function isSystemStatus(statusId) {
|
|
495
|
+
return !!statusId && Object.values(AXPSystemStatuses).some((status) => status.name === statusId);
|
|
230
496
|
}
|
|
231
497
|
|
|
232
498
|
class AXPLeaveRequestDialogService {
|
|
@@ -371,7 +637,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
371
637
|
}]
|
|
372
638
|
}] });
|
|
373
639
|
|
|
374
|
-
class AXMLeaveRequestTaskPopoverComponent extends
|
|
640
|
+
class AXMLeaveRequestTaskPopoverComponent extends AXPWorkItemDetailsComponent {
|
|
375
641
|
constructor() {
|
|
376
642
|
super(...arguments);
|
|
377
643
|
this.task = input.required(/* @ts-ignore */
|
|
@@ -619,7 +885,7 @@ class AXMLeaveRequestTaskPopoverComponent extends AXPTaskPopoverComponent {
|
|
|
619
885
|
}
|
|
620
886
|
</div>
|
|
621
887
|
</div>
|
|
622
|
-
`, isInline: true, styles: [".leave-request-popover{padding:12px;display:flex;flex-direction:column;gap:10px;min-width:280px;max-width:360px}.leave-request-popover__section{display:flex;flex-direction:column;gap:6px}.leave-request-popover__section-header{display:flex;align-items:center;gap:6px;font-weight:600;font-size:13px;color:var(--ax-sys-color-text-primary);padding-bottom:6px;border-bottom:1px solid var(--ax-sys-color-border)}.leave-request-popover__section-header i{font-size:13px;color:var(--ax-sys-color-text-neutral-600)}.leave-request-popover__section-content{display:flex;flex-direction:column;gap:6px}.leave-request-popover__info-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;font-size:12px;line-height:1.4}.leave-request-popover__label{color:var(--ax-sys-color-text-neutral-600);font-weight:500;flex-shrink:0}.leave-request-popover__value{color:var(--ax-sys-color-text-primary);text-align:right;word-break:break-word}.leave-request-popover__reason{margin:0;padding:8px;background:var(--ax-sys-color-lighter-surface);border-radius:4px;font-size:12px;line-height:1.4;color:var(--ax-sys-color-text-primary)}.leave-request-popover__status-badge{display:inline-block;padding:3px 10px;border-radius:10px;font-size:11px;font-weight:500;text-transform:capitalize}.leave-request-popover__status-badge[data-status=waiting-approval]{background:var(--ax-sys-color-warning-lightest);color:var(--ax-sys-color-warning)}.leave-request-popover__status-badge[data-status=approved]{background:var(--ax-sys-color-success-lightest);color:var(--ax-sys-color-success)}.leave-request-popover__status-badge[data-status=rejected]{background:var(--ax-sys-color-danger-lightest);color:var(--ax-sys-color-danger)}.leave-request-popover__status-badge[data-status=cancelled]{background:var(--ax-sys-color-neutral-lightest);color:var(--ax-sys-color-neutral)}.leave-request-popover__actions{display:flex;gap:6px;flex-wrap:wrap;padding-top:8px;border-top:1px solid var(--ax-sys-color-border)}.leave-request-popover__action-btn{flex:1;min-width:90px}\n/*! tailwindcss v4.3.
|
|
888
|
+
`, isInline: true, styles: [".leave-request-popover{padding:12px;display:flex;flex-direction:column;gap:10px;min-width:280px;max-width:360px}.leave-request-popover__section{display:flex;flex-direction:column;gap:6px}.leave-request-popover__section-header{display:flex;align-items:center;gap:6px;font-weight:600;font-size:13px;color:var(--ax-sys-color-text-primary);padding-bottom:6px;border-bottom:1px solid var(--ax-sys-color-border)}.leave-request-popover__section-header i{font-size:13px;color:var(--ax-sys-color-text-neutral-600)}.leave-request-popover__section-content{display:flex;flex-direction:column;gap:6px}.leave-request-popover__info-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;font-size:12px;line-height:1.4}.leave-request-popover__label{color:var(--ax-sys-color-text-neutral-600);font-weight:500;flex-shrink:0}.leave-request-popover__value{color:var(--ax-sys-color-text-primary);text-align:right;word-break:break-word}.leave-request-popover__reason{margin:0;padding:8px;background:var(--ax-sys-color-lighter-surface);border-radius:4px;font-size:12px;line-height:1.4;color:var(--ax-sys-color-text-primary)}.leave-request-popover__status-badge{display:inline-block;padding:3px 10px;border-radius:10px;font-size:11px;font-weight:500;text-transform:capitalize}.leave-request-popover__status-badge[data-status=waiting-approval]{background:var(--ax-sys-color-warning-lightest);color:var(--ax-sys-color-warning)}.leave-request-popover__status-badge[data-status=approved]{background:var(--ax-sys-color-success-lightest);color:var(--ax-sys-color-success)}.leave-request-popover__status-badge[data-status=rejected]{background:var(--ax-sys-color-danger-lightest);color:var(--ax-sys-color-danger)}.leave-request-popover__status-badge[data-status=cancelled]{background:var(--ax-sys-color-neutral-lightest);color:var(--ax-sys-color-neutral)}.leave-request-popover__actions{display:flex;gap:6px;flex-wrap:wrap;padding-top:8px;border-top:1px solid var(--ax-sys-color-border)}.leave-request-popover__action-btn{flex:1;min-width:90px}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
623
889
|
}
|
|
624
890
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMLeaveRequestTaskPopoverComponent, decorators: [{
|
|
625
891
|
type: Component,
|
|
@@ -742,7 +1008,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
742
1008
|
}
|
|
743
1009
|
</div>
|
|
744
1010
|
</div>
|
|
745
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXTranslationModule], styles: [".leave-request-popover{padding:12px;display:flex;flex-direction:column;gap:10px;min-width:280px;max-width:360px}.leave-request-popover__section{display:flex;flex-direction:column;gap:6px}.leave-request-popover__section-header{display:flex;align-items:center;gap:6px;font-weight:600;font-size:13px;color:var(--ax-sys-color-text-primary);padding-bottom:6px;border-bottom:1px solid var(--ax-sys-color-border)}.leave-request-popover__section-header i{font-size:13px;color:var(--ax-sys-color-text-neutral-600)}.leave-request-popover__section-content{display:flex;flex-direction:column;gap:6px}.leave-request-popover__info-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;font-size:12px;line-height:1.4}.leave-request-popover__label{color:var(--ax-sys-color-text-neutral-600);font-weight:500;flex-shrink:0}.leave-request-popover__value{color:var(--ax-sys-color-text-primary);text-align:right;word-break:break-word}.leave-request-popover__reason{margin:0;padding:8px;background:var(--ax-sys-color-lighter-surface);border-radius:4px;font-size:12px;line-height:1.4;color:var(--ax-sys-color-text-primary)}.leave-request-popover__status-badge{display:inline-block;padding:3px 10px;border-radius:10px;font-size:11px;font-weight:500;text-transform:capitalize}.leave-request-popover__status-badge[data-status=waiting-approval]{background:var(--ax-sys-color-warning-lightest);color:var(--ax-sys-color-warning)}.leave-request-popover__status-badge[data-status=approved]{background:var(--ax-sys-color-success-lightest);color:var(--ax-sys-color-success)}.leave-request-popover__status-badge[data-status=rejected]{background:var(--ax-sys-color-danger-lightest);color:var(--ax-sys-color-danger)}.leave-request-popover__status-badge[data-status=cancelled]{background:var(--ax-sys-color-neutral-lightest);color:var(--ax-sys-color-neutral)}.leave-request-popover__actions{display:flex;gap:6px;flex-wrap:wrap;padding-top:8px;border-top:1px solid var(--ax-sys-color-border)}.leave-request-popover__action-btn{flex:1;min-width:90px}\n/*! tailwindcss v4.3.
|
|
1011
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXTranslationModule], styles: [".leave-request-popover{padding:12px;display:flex;flex-direction:column;gap:10px;min-width:280px;max-width:360px}.leave-request-popover__section{display:flex;flex-direction:column;gap:6px}.leave-request-popover__section-header{display:flex;align-items:center;gap:6px;font-weight:600;font-size:13px;color:var(--ax-sys-color-text-primary);padding-bottom:6px;border-bottom:1px solid var(--ax-sys-color-border)}.leave-request-popover__section-header i{font-size:13px;color:var(--ax-sys-color-text-neutral-600)}.leave-request-popover__section-content{display:flex;flex-direction:column;gap:6px}.leave-request-popover__info-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;font-size:12px;line-height:1.4}.leave-request-popover__label{color:var(--ax-sys-color-text-neutral-600);font-weight:500;flex-shrink:0}.leave-request-popover__value{color:var(--ax-sys-color-text-primary);text-align:right;word-break:break-word}.leave-request-popover__reason{margin:0;padding:8px;background:var(--ax-sys-color-lighter-surface);border-radius:4px;font-size:12px;line-height:1.4;color:var(--ax-sys-color-text-primary)}.leave-request-popover__status-badge{display:inline-block;padding:3px 10px;border-radius:10px;font-size:11px;font-weight:500;text-transform:capitalize}.leave-request-popover__status-badge[data-status=waiting-approval]{background:var(--ax-sys-color-warning-lightest);color:var(--ax-sys-color-warning)}.leave-request-popover__status-badge[data-status=approved]{background:var(--ax-sys-color-success-lightest);color:var(--ax-sys-color-success)}.leave-request-popover__status-badge[data-status=rejected]{background:var(--ax-sys-color-danger-lightest);color:var(--ax-sys-color-danger)}.leave-request-popover__status-badge[data-status=cancelled]{background:var(--ax-sys-color-neutral-lightest);color:var(--ax-sys-color-neutral)}.leave-request-popover__actions{display:flex;gap:6px;flex-wrap:wrap;padding-top:8px;border-top:1px solid var(--ax-sys-color-border)}.leave-request-popover__action-btn{flex:1;min-width:90px}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"] }]
|
|
746
1012
|
}], propDecorators: { task: [{ type: i0.Input, args: [{ isSignal: true, alias: "task", required: true }] }] } });
|
|
747
1013
|
|
|
748
1014
|
//#region ---- Imports ----
|
|
@@ -842,7 +1108,7 @@ class AXMLifecycleEventFeatureModule {
|
|
|
842
1108
|
provideCommandSetups([
|
|
843
1109
|
{
|
|
844
1110
|
key: AXPHumanCapitalManagementCommandKeys.LifecycleEvent.StartFlow,
|
|
845
|
-
command: () => import('./acorex-platform-module-human-capital-management-client-start-lifecycle-event-flow.command-
|
|
1111
|
+
command: () => import('./acorex-platform-module-human-capital-management-client-start-lifecycle-event-flow.command-DrKITqtO.mjs').then((c) => c.StartLifecycleEventFlowCommand),
|
|
846
1112
|
},
|
|
847
1113
|
]),
|
|
848
1114
|
], imports: [AXPRuntimeModule] }); }
|
|
@@ -860,7 +1126,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
860
1126
|
provideCommandSetups([
|
|
861
1127
|
{
|
|
862
1128
|
key: AXPHumanCapitalManagementCommandKeys.LifecycleEvent.StartFlow,
|
|
863
|
-
command: () => import('./acorex-platform-module-human-capital-management-client-start-lifecycle-event-flow.command-
|
|
1129
|
+
command: () => import('./acorex-platform-module-human-capital-management-client-start-lifecycle-event-flow.command-DrKITqtO.mjs').then((c) => c.StartLifecycleEventFlowCommand),
|
|
864
1130
|
},
|
|
865
1131
|
]),
|
|
866
1132
|
],
|
|
@@ -944,19 +1210,19 @@ class AXMLeaveRequestFeatureModule {
|
|
|
944
1210
|
provideCommandSetups([
|
|
945
1211
|
{
|
|
946
1212
|
key: AXPHumanCapitalManagementCommandKeys.LeaveRequest.StartFlow,
|
|
947
|
-
command: () => import('./acorex-platform-module-human-capital-management-client-start-leave-request-flow.command-
|
|
1213
|
+
command: () => import('./acorex-platform-module-human-capital-management-client-start-leave-request-flow.command-BDctjTqW.mjs').then((c) => c.StartLeaveRequestFlowCommand),
|
|
948
1214
|
},
|
|
949
1215
|
{
|
|
950
1216
|
key: 'HumanCapitalManagement.LeaveRequest:Approve',
|
|
951
|
-
command: () => import('./acorex-platform-module-human-capital-management-client-approve-leave-request.command-
|
|
1217
|
+
command: () => import('./acorex-platform-module-human-capital-management-client-approve-leave-request.command-CWrisv79.mjs').then((c) => c.ApproveLeaveRequestCommand),
|
|
952
1218
|
},
|
|
953
1219
|
{
|
|
954
1220
|
key: 'HumanCapitalManagement.LeaveRequest:Reject',
|
|
955
|
-
command: () => import('./acorex-platform-module-human-capital-management-client-reject-leave-request.command-
|
|
1221
|
+
command: () => import('./acorex-platform-module-human-capital-management-client-reject-leave-request.command-BfvfurT1.mjs').then((c) => c.RejectLeaveRequestCommand),
|
|
956
1222
|
},
|
|
957
1223
|
{
|
|
958
1224
|
key: 'HumanCapitalManagement.LeaveRequest:Cancel',
|
|
959
|
-
command: () => import('./acorex-platform-module-human-capital-management-client-cancel-leave-request.command-
|
|
1225
|
+
command: () => import('./acorex-platform-module-human-capital-management-client-cancel-leave-request.command-CD8tDXCv.mjs').then((c) => c.CancelLeaveRequestCommand),
|
|
960
1226
|
},
|
|
961
1227
|
]),
|
|
962
1228
|
], imports: [CommonModule, AXPRuntimeModule] }); }
|
|
@@ -979,19 +1245,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
979
1245
|
provideCommandSetups([
|
|
980
1246
|
{
|
|
981
1247
|
key: AXPHumanCapitalManagementCommandKeys.LeaveRequest.StartFlow,
|
|
982
|
-
command: () => import('./acorex-platform-module-human-capital-management-client-start-leave-request-flow.command-
|
|
1248
|
+
command: () => import('./acorex-platform-module-human-capital-management-client-start-leave-request-flow.command-BDctjTqW.mjs').then((c) => c.StartLeaveRequestFlowCommand),
|
|
983
1249
|
},
|
|
984
1250
|
{
|
|
985
1251
|
key: 'HumanCapitalManagement.LeaveRequest:Approve',
|
|
986
|
-
command: () => import('./acorex-platform-module-human-capital-management-client-approve-leave-request.command-
|
|
1252
|
+
command: () => import('./acorex-platform-module-human-capital-management-client-approve-leave-request.command-CWrisv79.mjs').then((c) => c.ApproveLeaveRequestCommand),
|
|
987
1253
|
},
|
|
988
1254
|
{
|
|
989
1255
|
key: 'HumanCapitalManagement.LeaveRequest:Reject',
|
|
990
|
-
command: () => import('./acorex-platform-module-human-capital-management-client-reject-leave-request.command-
|
|
1256
|
+
command: () => import('./acorex-platform-module-human-capital-management-client-reject-leave-request.command-BfvfurT1.mjs').then((c) => c.RejectLeaveRequestCommand),
|
|
991
1257
|
},
|
|
992
1258
|
{
|
|
993
1259
|
key: 'HumanCapitalManagement.LeaveRequest:Cancel',
|
|
994
|
-
command: () => import('./acorex-platform-module-human-capital-management-client-cancel-leave-request.command-
|
|
1260
|
+
command: () => import('./acorex-platform-module-human-capital-management-client-cancel-leave-request.command-CD8tDXCv.mjs').then((c) => c.CancelLeaveRequestCommand),
|
|
995
1261
|
},
|
|
996
1262
|
]),
|
|
997
1263
|
],
|
|
@@ -1171,6 +1437,7 @@ class AXMMenuProvider {
|
|
|
1171
1437
|
},
|
|
1172
1438
|
]);
|
|
1173
1439
|
}
|
|
1440
|
+
const app = this.sessionService.application?.name ?? ':app';
|
|
1174
1441
|
context.find(AXPCommonMenuKeys.Organization).addItems([
|
|
1175
1442
|
{
|
|
1176
1443
|
name: AXPHumanCapitalManagementMenuKeys.Employees,
|
|
@@ -1195,6 +1462,17 @@ class AXMMenuProvider {
|
|
|
1195
1462
|
features: [AXPHumanCapitalManagementFeatureKeys.LeaveManagement],
|
|
1196
1463
|
},
|
|
1197
1464
|
},
|
|
1465
|
+
{
|
|
1466
|
+
name: AXPHumanCapitalManagementMenuKeys.LeaveRequestBoard,
|
|
1467
|
+
text: '@human-capital-management:leave-requests.menus.appointment-board.title',
|
|
1468
|
+
path: `${app}/${RootConfig.pages.appointmentBoard.path}/leave-request`,
|
|
1469
|
+
priority: 21,
|
|
1470
|
+
icon: RootConfig.pages.appointmentBoard.icon,
|
|
1471
|
+
policy: {
|
|
1472
|
+
permissions: [keys.ManageEmployeeActions],
|
|
1473
|
+
features: [AXPHumanCapitalManagementFeatureKeys.LeaveManagement],
|
|
1474
|
+
},
|
|
1475
|
+
},
|
|
1198
1476
|
]);
|
|
1199
1477
|
const orgConfigMenu = context.find(AXPCommonMenuKeys.OrganizationConfig);
|
|
1200
1478
|
if (!orgConfigMenu.exists) {
|
|
@@ -1503,12 +1781,12 @@ class AXMHumanCapitalManagementLeaveRequestExpressionEvaluatorScopeProvider {
|
|
|
1503
1781
|
.query({ skip: 0, take: 500 });
|
|
1504
1782
|
const rows = (page.items ?? []);
|
|
1505
1783
|
const sorted = [...rows].sort((a, b) => {
|
|
1506
|
-
const ta = resolveMultiLanguageString(a.title, locale).trim() || a.id;
|
|
1507
|
-
const tb = resolveMultiLanguageString(b.title, locale).trim() || b.id;
|
|
1784
|
+
const ta = resolveMultiLanguageString$1(a.title, locale).trim() || a.id;
|
|
1785
|
+
const tb = resolveMultiLanguageString$1(b.title, locale).trim() || b.id;
|
|
1508
1786
|
return ta.localeCompare(tb, locale, { sensitivity: 'base' });
|
|
1509
1787
|
});
|
|
1510
1788
|
return sorted.map((row) => {
|
|
1511
|
-
const title = resolveMultiLanguageString(row.title, locale).trim() || row.id;
|
|
1789
|
+
const title = resolveMultiLanguageString$1(row.title, locale).trim() || row.id;
|
|
1512
1790
|
const workflowConfig = row.workflowConfig;
|
|
1513
1791
|
const workflowId = workflowConfig?.workflowName?.trim();
|
|
1514
1792
|
const defaultInput = workflowConfig?.defaultInput ?? {};
|
|
@@ -1595,12 +1873,12 @@ class AXMHumanCapitalManagementLifecycleEventExpressionEvaluatorScopeProvider {
|
|
|
1595
1873
|
.query({ skip: 0, take: 500 });
|
|
1596
1874
|
const rows = (page.items ?? []);
|
|
1597
1875
|
const sorted = [...rows].sort((a, b) => {
|
|
1598
|
-
const ta = resolveMultiLanguageString(a.title, locale).trim() || a.id;
|
|
1599
|
-
const tb = resolveMultiLanguageString(b.title, locale).trim() || b.id;
|
|
1876
|
+
const ta = resolveMultiLanguageString$1(a.title, locale).trim() || a.id;
|
|
1877
|
+
const tb = resolveMultiLanguageString$1(b.title, locale).trim() || b.id;
|
|
1600
1878
|
return ta.localeCompare(tb, locale, { sensitivity: 'base' });
|
|
1601
1879
|
});
|
|
1602
1880
|
return sorted.map((row) => {
|
|
1603
|
-
const menuTitle = resolveMultiLanguageString(row.title, locale).trim() || row.id;
|
|
1881
|
+
const menuTitle = resolveMultiLanguageString$1(row.title, locale).trim() || row.id;
|
|
1604
1882
|
const workflowConfig = row.workflowConfig;
|
|
1605
1883
|
const workflowId = workflowConfig?.workflowName?.trim();
|
|
1606
1884
|
const defaultInput = workflowConfig?.defaultInput ?? {};
|
|
@@ -1685,53 +1963,25 @@ class AXMHcmProfileContextService {
|
|
|
1685
1963
|
//#region ----- Services & Dependencies -----
|
|
1686
1964
|
this.sessionService = inject(AXPSessionService);
|
|
1687
1965
|
this.entityService = inject(AXPEntityService);
|
|
1688
|
-
|
|
1689
|
-
//#region ----- State -----
|
|
1690
|
-
this.cachedUserId = null;
|
|
1691
|
-
this.inflight = null;
|
|
1966
|
+
this.dataRefresh = inject(AXPDataRefreshService);
|
|
1692
1967
|
}
|
|
1693
1968
|
//#endregion
|
|
1694
1969
|
//#region ----- Public API -----
|
|
1695
1970
|
async resolve() {
|
|
1696
1971
|
const userId = this.sessionService.user?.id;
|
|
1697
|
-
|
|
1698
|
-
this.clearCache();
|
|
1699
|
-
return null;
|
|
1700
|
-
}
|
|
1701
|
-
if (this.cachedUserId === userId && this.cachedContext !== undefined) {
|
|
1702
|
-
return this.cachedContext;
|
|
1703
|
-
}
|
|
1704
|
-
if (this.inflight && this.cachedUserId === userId) {
|
|
1705
|
-
return this.inflight;
|
|
1706
|
-
}
|
|
1707
|
-
this.cachedUserId = userId;
|
|
1708
|
-
this.inflight = this.loadContext(userId).finally(() => {
|
|
1709
|
-
this.inflight = null;
|
|
1710
|
-
});
|
|
1711
|
-
this.cachedContext = await this.inflight;
|
|
1712
|
-
return this.cachedContext;
|
|
1972
|
+
return userId ? this.loadContext(userId) : null;
|
|
1713
1973
|
}
|
|
1974
|
+
/** @deprecated Entity mutations invalidate shared reads automatically. */
|
|
1714
1975
|
clearCache() {
|
|
1715
|
-
this.
|
|
1716
|
-
this.cachedContext = undefined;
|
|
1717
|
-
this.inflight = null;
|
|
1976
|
+
this.dataRefresh.entity('HumanCapitalManagement.Employee');
|
|
1718
1977
|
}
|
|
1719
1978
|
//#endregion
|
|
1720
1979
|
//#region ----- Private Methods -----
|
|
1721
1980
|
async loadContext(userId) {
|
|
1722
|
-
const
|
|
1981
|
+
const employee = await this.entityService
|
|
1723
1982
|
.withEntity(RootConfig.module.name, RootConfig.entities.employee.name)
|
|
1724
1983
|
.data()
|
|
1725
|
-
.
|
|
1726
|
-
filter: {
|
|
1727
|
-
field: 'userId',
|
|
1728
|
-
operator: { type: 'equal' },
|
|
1729
|
-
value: userId,
|
|
1730
|
-
},
|
|
1731
|
-
take: 1,
|
|
1732
|
-
skip: 0,
|
|
1733
|
-
});
|
|
1734
|
-
const employee = first(employeeResult.items);
|
|
1984
|
+
.findBy('userId', userId, { fields: ['id', 'personId'] });
|
|
1735
1985
|
const employeeId = get(employee, 'id');
|
|
1736
1986
|
const personId = get(employee, 'personId');
|
|
1737
1987
|
if (!employeeId || !personId) {
|
|
@@ -1880,7 +2130,7 @@ const HumanCapitalProfileDocumentsGroupsHookProvider = {
|
|
|
1880
2130
|
const POSITION_LABEL = '@human-capital-management:employees.entities.employee.fields.primary-position';
|
|
1881
2131
|
const BUSINESS_UNIT_LABEL = '@human-capital-management:employees.entities.employee.fields.primary-business-unit';
|
|
1882
2132
|
function asDisplayTitle(value, locale) {
|
|
1883
|
-
return resolveMultiLanguageString
|
|
2133
|
+
return resolveMultiLanguageString(value, locale).trim();
|
|
1884
2134
|
}
|
|
1885
2135
|
function pickActiveAssignment(items) {
|
|
1886
2136
|
const active = items.filter((item) => item.statusId === AXM_POSITION_ASSIGNMENT_STATUS.active);
|
|
@@ -2018,7 +2268,7 @@ class AXMHcmEmployeeSignatureProvider {
|
|
|
2018
2268
|
const employee = await this.entityService
|
|
2019
2269
|
.withEntity(RootConfig.module.name, RootConfig.entities.employee.name)
|
|
2020
2270
|
.data()
|
|
2021
|
-
.byKey(profileContext.employeeId);
|
|
2271
|
+
.byKey(profileContext.employeeId, { fields: ['id', 'signature'] });
|
|
2022
2272
|
const signature = employee?.signature;
|
|
2023
2273
|
if (typeof signature !== 'string') {
|
|
2024
2274
|
return null;
|
|
@@ -2082,6 +2332,10 @@ function createAppointmentBoardRoute() {
|
|
|
2082
2332
|
breadcrumbs: [{ title: RootConfig.module.title }],
|
|
2083
2333
|
showResourceHeaders: true,
|
|
2084
2334
|
showUnassignedAppointments: true,
|
|
2335
|
+
calendarToolbar: {
|
|
2336
|
+
resourceTitle: RootConfig.entities.employee.title,
|
|
2337
|
+
categoryTitle: RootConfig.entities.leaveType.title,
|
|
2338
|
+
},
|
|
2085
2339
|
},
|
|
2086
2340
|
},
|
|
2087
2341
|
],
|
|
@@ -2180,23 +2434,23 @@ class AXMHumanCapitalManagementModule {
|
|
|
2180
2434
|
useClass: AXMHcmEmployeeSignatureProvider,
|
|
2181
2435
|
multi: true,
|
|
2182
2436
|
},
|
|
2183
|
-
provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-human-capital-management-client-profile-documents-panel.component.provider-
|
|
2437
|
+
provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-human-capital-management-client-profile-documents-panel.component.provider-BI2coRF-.mjs').then((module) => module.AXMHcmProfileDocumentsPanelComponentProvider)),
|
|
2184
2438
|
provideCommandSetups([
|
|
2185
2439
|
{
|
|
2186
2440
|
key: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Assign,
|
|
2187
|
-
command: () => import('./acorex-platform-module-human-capital-management-client-assign-position-assignment.command-
|
|
2441
|
+
command: () => import('./acorex-platform-module-human-capital-management-client-assign-position-assignment.command-BJII8ynP.mjs').then((c) => c.AXMAssignPositionAssignmentCommand),
|
|
2188
2442
|
},
|
|
2189
2443
|
{
|
|
2190
2444
|
key: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Revoke,
|
|
2191
|
-
command: () => import('./acorex-platform-module-human-capital-management-client-revoke-position-assignment.command-
|
|
2445
|
+
command: () => import('./acorex-platform-module-human-capital-management-client-revoke-position-assignment.command-a3hP-q88.mjs').then((c) => c.AXMRevokePositionAssignmentByIdCommand),
|
|
2192
2446
|
},
|
|
2193
2447
|
{
|
|
2194
2448
|
key: AXPHumanCapitalManagementCommandKeys.Profile.EditPersonalInfo,
|
|
2195
|
-
command: () => import('./acorex-platform-module-human-capital-management-client-edit-personal-info.command-
|
|
2449
|
+
command: () => import('./acorex-platform-module-human-capital-management-client-edit-personal-info.command-Vm1SQZiQ.mjs').then((c) => c.AXMHcmEditPersonalInfoCommand),
|
|
2196
2450
|
},
|
|
2197
2451
|
{
|
|
2198
2452
|
key: AXPHumanCapitalManagementCommandKeys.Profile.EditSignature,
|
|
2199
|
-
command: () => import('./acorex-platform-module-human-capital-management-client-edit-signature.command-
|
|
2453
|
+
command: () => import('./acorex-platform-module-human-capital-management-client-edit-signature.command-ENU68Czy.mjs').then((c) => c.AXMHcmEditSignatureCommand),
|
|
2200
2454
|
},
|
|
2201
2455
|
]),
|
|
2202
2456
|
], imports: [CommonModule,
|
|
@@ -2297,23 +2551,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
2297
2551
|
useClass: AXMHcmEmployeeSignatureProvider,
|
|
2298
2552
|
multi: true,
|
|
2299
2553
|
},
|
|
2300
|
-
provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-human-capital-management-client-profile-documents-panel.component.provider-
|
|
2554
|
+
provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-human-capital-management-client-profile-documents-panel.component.provider-BI2coRF-.mjs').then((module) => module.AXMHcmProfileDocumentsPanelComponentProvider)),
|
|
2301
2555
|
provideCommandSetups([
|
|
2302
2556
|
{
|
|
2303
2557
|
key: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Assign,
|
|
2304
|
-
command: () => import('./acorex-platform-module-human-capital-management-client-assign-position-assignment.command-
|
|
2558
|
+
command: () => import('./acorex-platform-module-human-capital-management-client-assign-position-assignment.command-BJII8ynP.mjs').then((c) => c.AXMAssignPositionAssignmentCommand),
|
|
2305
2559
|
},
|
|
2306
2560
|
{
|
|
2307
2561
|
key: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Revoke,
|
|
2308
|
-
command: () => import('./acorex-platform-module-human-capital-management-client-revoke-position-assignment.command-
|
|
2562
|
+
command: () => import('./acorex-platform-module-human-capital-management-client-revoke-position-assignment.command-a3hP-q88.mjs').then((c) => c.AXMRevokePositionAssignmentByIdCommand),
|
|
2309
2563
|
},
|
|
2310
2564
|
{
|
|
2311
2565
|
key: AXPHumanCapitalManagementCommandKeys.Profile.EditPersonalInfo,
|
|
2312
|
-
command: () => import('./acorex-platform-module-human-capital-management-client-edit-personal-info.command-
|
|
2566
|
+
command: () => import('./acorex-platform-module-human-capital-management-client-edit-personal-info.command-Vm1SQZiQ.mjs').then((c) => c.AXMHcmEditPersonalInfoCommand),
|
|
2313
2567
|
},
|
|
2314
2568
|
{
|
|
2315
2569
|
key: AXPHumanCapitalManagementCommandKeys.Profile.EditSignature,
|
|
2316
|
-
command: () => import('./acorex-platform-module-human-capital-management-client-edit-signature.command-
|
|
2570
|
+
command: () => import('./acorex-platform-module-human-capital-management-client-edit-signature.command-ENU68Czy.mjs').then((c) => c.AXMHcmEditSignatureCommand),
|
|
2317
2571
|
},
|
|
2318
2572
|
]),
|
|
2319
2573
|
],
|
|
@@ -2325,4 +2579,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
2325
2579
|
*/
|
|
2326
2580
|
|
|
2327
2581
|
export { AXMHcmProfileContextService as A, DOCUMENT_DRIVE_PAGE_COMPONENT_KEY as D, PROFILE_DOCUMENTS_PANEL_COMPONENT_KEY as P, AXMHumanCapitalManagementModule as a, AXMLeaveRequestBadgeProvider as b, AXMLeaveRequestResourceAppointmentProvider as c, AXMLeaveRequestTaskPopoverComponent as d, AXPHumanCapitalManagementFeatureDefinitionProvider as e, AXPLeaveRequestDialogService as f };
|
|
2328
|
-
//# sourceMappingURL=acorex-platform-module-human-capital-management-client-acorex-platform-module-human-capital-management-client-
|
|
2582
|
+
//# sourceMappingURL=acorex-platform-module-human-capital-management-client-acorex-platform-module-human-capital-management-client-D2cJK2Ib.mjs.map
|