@acorex/modules 21.0.0-next.43 → 21.0.0-next.44
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-modules-ai-management.mjs +31 -225
- package/fesm2022/acorex-modules-ai-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-acorex-modules-human-capital-management-Bwk3-2wy.mjs → acorex-modules-human-capital-management-acorex-modules-human-capital-management-hImDhzkB.mjs} +16 -19
- package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-hImDhzkB.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-approve-leave-request.command-B5aSubCY.mjs → acorex-modules-human-capital-management-approve-leave-request.command-DujyJOvo.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-approve-leave-request.command-B5aSubCY.mjs.map → acorex-modules-human-capital-management-approve-leave-request.command-DujyJOvo.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-assign-position-assignment.command-l8dGe3kg.mjs → acorex-modules-human-capital-management-assign-position-assignment.command-BPB9vaCn.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-assign-position-assignment.command-l8dGe3kg.mjs.map → acorex-modules-human-capital-management-assign-position-assignment.command-BPB9vaCn.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-cancel-leave-request.command-CeV-5Y5n.mjs → acorex-modules-human-capital-management-cancel-leave-request.command-BdPUdhbU.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-cancel-leave-request.command-CeV-5Y5n.mjs.map → acorex-modules-human-capital-management-cancel-leave-request.command-BdPUdhbU.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-employee.entity-DNgt9yQm.mjs → acorex-modules-human-capital-management-employee.entity-CgmF-WPf.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-employee.entity-DNgt9yQm.mjs.map → acorex-modules-human-capital-management-employee.entity-CgmF-WPf.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-rq8-Bauc.mjs → acorex-modules-human-capital-management-employment-type.entity-Chio_E9S.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-rq8-Bauc.mjs.map → acorex-modules-human-capital-management-employment-type.entity-Chio_E9S.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-DlQJw4F6.mjs → acorex-modules-human-capital-management-leave-request.entity--9iGu0H7.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-DlQJw4F6.mjs.map → acorex-modules-human-capital-management-leave-request.entity--9iGu0H7.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-D5J2oOuY.mjs → acorex-modules-human-capital-management-leave-type.entity-O0j4P2oU.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-D5J2oOuY.mjs.map → acorex-modules-human-capital-management-leave-type.entity-O0j4P2oU.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-D7mKhxYp.mjs → acorex-modules-human-capital-management-position-assignment.entity-Bg6omEy_.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-D7mKhxYp.mjs.map → acorex-modules-human-capital-management-position-assignment.entity-Bg6omEy_.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-reject-leave-request.command-C4AWFOmG.mjs → acorex-modules-human-capital-management-reject-leave-request.command-ZNGufyB1.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-reject-leave-request.command-C4AWFOmG.mjs.map → acorex-modules-human-capital-management-reject-leave-request.command-ZNGufyB1.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-revoke-position-assignment.command-BSJhBW3p.mjs → acorex-modules-human-capital-management-revoke-position-assignment.command-C8pwJExa.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-revoke-position-assignment.command-BSJhBW3p.mjs.map → acorex-modules-human-capital-management-revoke-position-assignment.command-C8pwJExa.mjs.map} +1 -1
- package/fesm2022/acorex-modules-human-capital-management.mjs +1 -1
- package/fesm2022/{acorex-modules-organization-management-acorex-modules-organization-management-Dqhk5reQ.mjs → acorex-modules-organization-management-acorex-modules-organization-management-CGzZcKEy.mjs} +141 -578
- package/fesm2022/acorex-modules-organization-management-acorex-modules-organization-management-CGzZcKEy.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-add-business-unit-to-business-unit.command-pnxqURIQ.mjs → acorex-modules-organization-management-add-business-unit-to-business-unit.command-BEJyfR3P.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-add-business-unit-to-business-unit.command-pnxqURIQ.mjs.map → acorex-modules-organization-management-add-business-unit-to-business-unit.command-BEJyfR3P.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-add-position-to-business-unit.command-DbHKd1Nd.mjs → acorex-modules-organization-management-add-position-to-business-unit.command-DKgxg9q5.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-add-position-to-business-unit.command-DbHKd1Nd.mjs.map → acorex-modules-organization-management-add-position-to-business-unit.command-DKgxg9q5.mjs.map} +1 -1
- package/fesm2022/acorex-modules-organization-management-add-team-to-business-unit.command-DJJT7BXT.mjs +130 -0
- package/fesm2022/acorex-modules-organization-management-add-team-to-business-unit.command-DJJT7BXT.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-business-unit.entity-FsF290Im.mjs → acorex-modules-organization-management-business-unit.entity-BAp38sib.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-business-unit.entity-FsF290Im.mjs.map → acorex-modules-organization-management-business-unit.entity-BAp38sib.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-chart.entity-_OJkO2zX.mjs → acorex-modules-organization-management-chart.entity-WfmpWj8R.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-chart.entity-_OJkO2zX.mjs.map → acorex-modules-organization-management-chart.entity-WfmpWj8R.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-company.entity-Dw7_BvxV.mjs → acorex-modules-organization-management-company.entity-BUVLrwjq.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-company.entity-Dw7_BvxV.mjs.map → acorex-modules-organization-management-company.entity-BUVLrwjq.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-entity.provider-BWw2RN_V.mjs → acorex-modules-organization-management-entity.provider-DH3eUGTu.mjs} +15 -15
- package/fesm2022/{acorex-modules-organization-management-entity.provider-BWw2RN_V.mjs.map → acorex-modules-organization-management-entity.provider-DH3eUGTu.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-feature-definition.provider-D3WYwpy0.mjs → acorex-modules-organization-management-feature-definition.provider-DuScrBze.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-feature-definition.provider-D3WYwpy0.mjs.map → acorex-modules-organization-management-feature-definition.provider-DuScrBze.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-job-definition-pages-component.provider-CnS_nu1v.mjs → acorex-modules-organization-management-job-definition-pages-component.provider-D-J9JCsU.mjs} +3 -3
- package/fesm2022/{acorex-modules-organization-management-job-definition-pages-component.provider-CnS_nu1v.mjs.map → acorex-modules-organization-management-job-definition-pages-component.provider-D-J9JCsU.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-job-definition-responsibilities-page.component-ZTopEh2M.mjs → acorex-modules-organization-management-job-definition-responsibilities-page.component-Dsy5rFGw.mjs} +3 -3
- package/fesm2022/{acorex-modules-organization-management-job-definition-responsibilities-page.component-ZTopEh2M.mjs.map → acorex-modules-organization-management-job-definition-responsibilities-page.component-Dsy5rFGw.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-job-definition-skills-page.component-Yyzwqg0v.mjs → acorex-modules-organization-management-job-definition-skills-page.component-B73wLPby.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-job-definition-skills-page.component-Yyzwqg0v.mjs.map → acorex-modules-organization-management-job-definition-skills-page.component-B73wLPby.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-job-definition.entity-DJjmv1hf.mjs → acorex-modules-organization-management-job-definition.entity-B7mWKYqb.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-job-definition.entity-DJjmv1hf.mjs.map → acorex-modules-organization-management-job-definition.entity-B7mWKYqb.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-job-level.datasource-DJH3zaNN.mjs → acorex-modules-organization-management-job-level.datasource-DibRoKXR.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-job-level.datasource-DJH3zaNN.mjs.map → acorex-modules-organization-management-job-level.datasource-DibRoKXR.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-job-level.entity-DBEFEBzu.mjs → acorex-modules-organization-management-job-level.entity-C_MzeTw5.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-job-level.entity-DBEFEBzu.mjs.map → acorex-modules-organization-management-job-level.entity-C_MzeTw5.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-menu.provider-yGn338K1.mjs → acorex-modules-organization-management-menu.provider-CQeJINzl.mjs} +3 -2
- package/fesm2022/{acorex-modules-organization-management-menu.provider-yGn338K1.mjs.map → acorex-modules-organization-management-menu.provider-CQeJINzl.mjs.map} +1 -1
- package/fesm2022/acorex-modules-organization-management-org-chart-default-node-contribution.provider-D3hCHSr_.mjs +228 -0
- package/fesm2022/acorex-modules-organization-management-org-chart-default-node-contribution.provider-D3hCHSr_.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-org-chart-employee-flyout-contribution.provider-Bv0I-45L.mjs +182 -0
- package/fesm2022/acorex-modules-organization-management-org-chart-employee-flyout-contribution.provider-Bv0I-45L.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-org-chart-position-employee-node-contribution.provider-DbfYza8q.mjs +170 -0
- package/fesm2022/acorex-modules-organization-management-org-chart-position-employee-node-contribution.provider-DbfYza8q.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-org-chart-ux-node-contribution.provider-C9APxguL.mjs +334 -0
- package/fesm2022/acorex-modules-organization-management-org-chart-ux-node-contribution.provider-C9APxguL.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-org-chart.page-C1J123cl.mjs → acorex-modules-organization-management-org-chart.page-BcHO5kKP.mjs} +104 -19
- package/fesm2022/acorex-modules-organization-management-org-chart.page-BcHO5kKP.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-permission-definition.provider-B1f668X4.mjs → acorex-modules-organization-management-permission-definition.provider-BcIRJpBt.mjs} +3 -2
- package/fesm2022/{acorex-modules-organization-management-permission-definition.provider-B1f668X4.mjs.map → acorex-modules-organization-management-permission-definition.provider-BcIRJpBt.mjs.map} +1 -1
- package/fesm2022/acorex-modules-organization-management-permission.keys-DwZNBc12.mjs +56 -0
- package/fesm2022/acorex-modules-organization-management-permission.keys-DwZNBc12.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-position.entity-BvSjM5Hs.mjs → acorex-modules-organization-management-position.entity-DBOpLtSI.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-position.entity-BvSjM5Hs.mjs.map → acorex-modules-organization-management-position.entity-DBOpLtSI.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-remove-position-from-business-unit.command-CPdbVSno.mjs → acorex-modules-organization-management-remove-position-from-business-unit.command-TqYgfnsy.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-remove-position-from-business-unit.command-CPdbVSno.mjs.map → acorex-modules-organization-management-remove-position-from-business-unit.command-TqYgfnsy.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-replace-position-assignee.command-CQRcVN6R.mjs → acorex-modules-organization-management-replace-position-assignee.command-BJ2gn0-A.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-replace-position-assignee.command-CQRcVN6R.mjs.map → acorex-modules-organization-management-replace-position-assignee.command-BJ2gn0-A.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-Ce3T04Qb.mjs → acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-CZdMLIL-.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-Ce3T04Qb.mjs.map → acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-CZdMLIL-.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-view.component-CIr7JDX-.mjs → acorex-modules-organization-management-responsibilities-matrix-widget-view.component-BBo97rDN.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-view.component-CIr7JDX-.mjs.map → acorex-modules-organization-management-responsibilities-matrix-widget-view.component-BBo97rDN.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix.component-BXWso7Ga.mjs → acorex-modules-organization-management-responsibilities-matrix.component-D9oH_Fbb.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix.component-BXWso7Ga.mjs.map → acorex-modules-organization-management-responsibilities-matrix.component-D9oH_Fbb.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-responsibility-level.entity-DB04XTJ8.mjs → acorex-modules-organization-management-responsibility-level.entity-D6IG9Zc7.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-responsibility-level.entity-DB04XTJ8.mjs.map → acorex-modules-organization-management-responsibility-level.entity-D6IG9Zc7.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-responsibility.entity-BMqhYqJS.mjs → acorex-modules-organization-management-responsibility.entity-BosNxYjW.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-responsibility.entity-BMqhYqJS.mjs.map → acorex-modules-organization-management-responsibility.entity-BosNxYjW.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-settings.provider-BhIJkbq_.mjs → acorex-modules-organization-management-settings.provider-CL9C9UXA.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-settings.provider-BhIJkbq_.mjs.map → acorex-modules-organization-management-settings.provider-CL9C9UXA.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-team-business-unit.entity-DkTtZv7y.mjs → acorex-modules-organization-management-team-business-unit.entity-CYFGTcHe.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-team-business-unit.entity-DkTtZv7y.mjs.map → acorex-modules-organization-management-team-business-unit.entity-CYFGTcHe.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-team-member-role.entity-DPqEPpkP.mjs → acorex-modules-organization-management-team-member-role.entity-B5vNDne0.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-team-member-role.entity-DPqEPpkP.mjs.map → acorex-modules-organization-management-team-member-role.entity-B5vNDne0.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-team-member.entity-IN-CPv5W.mjs → acorex-modules-organization-management-team-member.entity-DsKuxCRB.mjs} +14 -2
- package/fesm2022/acorex-modules-organization-management-team-member.entity-DsKuxCRB.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-team.entity-D7B8ulFX.mjs → acorex-modules-organization-management-team.entity-Cg30cho_.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-team.entity-D7B8ulFX.mjs.map → acorex-modules-organization-management-team.entity-Cg30cho_.mjs.map} +1 -1
- package/fesm2022/acorex-modules-organization-management.mjs +1 -1
- package/fesm2022/{acorex-modules-task-management-acorex-modules-task-management-CWlgXg_u.mjs → acorex-modules-task-management-acorex-modules-task-management-DDUq9FpA.mjs} +178 -14
- package/fesm2022/acorex-modules-task-management-acorex-modules-task-management-DDUq9FpA.mjs.map +1 -0
- package/fesm2022/{acorex-modules-task-management-task-board.page-Bxpga0DN.mjs → acorex-modules-task-management-task-board.page-C6j-_aSD.mjs} +106 -68
- package/fesm2022/acorex-modules-task-management-task-board.page-C6j-_aSD.mjs.map +1 -0
- package/fesm2022/acorex-modules-task-management.mjs +1 -1
- package/organization-management/README.md +1 -1
- package/package.json +2 -2
- package/types/acorex-modules-ai-management.d.ts +25 -67
- package/types/acorex-modules-organization-management.d.ts +128 -69
- package/types/acorex-modules-task-management.d.ts +12 -1
- package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-Bwk3-2wy.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-acorex-modules-organization-management-Dqhk5reQ.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-org-chart.page-C1J123cl.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-team-member.entity-IN-CPv5W.mjs.map +0 -1
- package/fesm2022/acorex-modules-task-management-acorex-modules-task-management-CWlgXg_u.mjs.map +0 -1
- package/fesm2022/acorex-modules-task-management-task-board.page-Bxpga0DN.mjs.map +0 -1
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { createAllQueryView, AXPSettingsService,
|
|
2
|
-
import { entityMasterCrudActions, entityMasterRecordActions,
|
|
1
|
+
import { createAllQueryView, AXPSettingsService, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER } from '@acorex/platform/common';
|
|
2
|
+
import { entityMasterCrudActions, entityMasterRecordActions, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
|
3
3
|
import { AXPWidgetsList } from '@acorex/modules/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { InjectionToken, signal, Injectable, inject, input, output, ViewEncapsulation, ChangeDetectionStrategy, Component,
|
|
5
|
+
import { InjectionToken, signal, Injectable, inject, input, output, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
6
6
|
import * as i1 from '@acorex/components/button';
|
|
7
7
|
import { AXButtonModule } from '@acorex/components/button';
|
|
8
8
|
import * as i2 from '@acorex/components/decorators';
|
|
9
9
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
10
10
|
import * as i3$1 from '@acorex/core/translation';
|
|
11
|
-
import { AXTranslationModule
|
|
11
|
+
import { AXTranslationModule } from '@acorex/core/translation';
|
|
12
12
|
import * as i3 from '@angular/common';
|
|
13
13
|
import { CommonModule } from '@angular/common';
|
|
14
|
-
import {
|
|
14
|
+
import { AXPAuthGuard, AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex/platform/auth';
|
|
15
15
|
import { AXP_IDENTIFIER_RULES } from '@acorex/modules/identifier-management';
|
|
16
|
-
import { AXPPlatformScope,
|
|
16
|
+
import { AXPPlatformScope, provideLazyProvider, AXP_MODULE_MANIFEST_PROVIDER, AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, AXP_DATASOURCE_DEFINITION_PROVIDER, AXP_FEATURE_DEFINITION_PROVIDER } from '@acorex/platform/core';
|
|
17
17
|
import { AXP_PAGE_COMPONENT_PROVIDER } from '@acorex/platform/layout/components';
|
|
18
18
|
import { AXPWidgetGroupEnum, AXP_WIDGETS_EDITOR_CATEGORY, AXPWidgetCoreModule, AXP_WIDGET_DEFINITION_PROVIDER } from '@acorex/platform/layout/widget-core';
|
|
19
|
-
import { AXPCommandService, provideCommand } from '@acorex/platform/runtime';
|
|
20
19
|
import { ROUTES } from '@angular/router';
|
|
21
20
|
import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_LABEL_PROPERTY, AXP_READONLY_PROPERTY, AXP_DISABLED_PROPERTY } from '@acorex/platform/layout/widgets';
|
|
22
|
-
import {
|
|
21
|
+
import { provideCommand } from '@acorex/platform/runtime';
|
|
23
22
|
|
|
24
23
|
const config = {
|
|
25
24
|
i18n: 'organization-management',
|
|
@@ -401,6 +400,83 @@ var AXMOrgChartCategory;
|
|
|
401
400
|
AXMOrgChartCategory["Employee"] = "Employee";
|
|
402
401
|
})(AXMOrgChartCategory || (AXMOrgChartCategory = {}));
|
|
403
402
|
|
|
403
|
+
//#region ---- Imports ----
|
|
404
|
+
//#endregion
|
|
405
|
+
const HCM_EMPLOYEE_SOURCE = 'HumanCapitalManagement.Employee';
|
|
406
|
+
//#region ---- Resolve flyout employee ----
|
|
407
|
+
/**
|
|
408
|
+
* Employee id for org chart **Employee** flyout actions: card occupant, unit head, top role, or an `employee` node.
|
|
409
|
+
* Returns undefined when the seat is vacant or no person is linked.
|
|
410
|
+
*/
|
|
411
|
+
function axmResolveOrgChartFlyoutEmployeeId(context) {
|
|
412
|
+
if (context.nodeKind === 'employee') {
|
|
413
|
+
const entity = context.node.entity;
|
|
414
|
+
if (entity?.id != null && axmIsEmployeeEntityType(entity.type)) {
|
|
415
|
+
const id = String(entity.id).trim();
|
|
416
|
+
return id.length > 0 ? id : undefined;
|
|
417
|
+
}
|
|
418
|
+
return undefined;
|
|
419
|
+
}
|
|
420
|
+
if (context.nodeKind === 'company-root') {
|
|
421
|
+
const topRole = context.node.metadata?.['topRole'];
|
|
422
|
+
if (!topRole || topRole['vacant'] === true) {
|
|
423
|
+
return undefined;
|
|
424
|
+
}
|
|
425
|
+
const raw = topRole['employeeId'];
|
|
426
|
+
return typeof raw === 'string' && raw.trim().length > 0 ? raw.trim() : undefined;
|
|
427
|
+
}
|
|
428
|
+
if (context.nodeKind === 'business-unit') {
|
|
429
|
+
const unitHead = context.node.metadata?.['unitHead'];
|
|
430
|
+
if (!unitHead || unitHead['vacant'] === true) {
|
|
431
|
+
return undefined;
|
|
432
|
+
}
|
|
433
|
+
const raw = unitHead['employeeId'];
|
|
434
|
+
return typeof raw === 'string' && raw.trim().length > 0 ? raw.trim() : undefined;
|
|
435
|
+
}
|
|
436
|
+
if (context.nodeKind === 'position') {
|
|
437
|
+
if (context.node.metadata?.['vacant'] === true) {
|
|
438
|
+
return undefined;
|
|
439
|
+
}
|
|
440
|
+
const occ = context.node.metadata?.['occupant'];
|
|
441
|
+
const raw = occ?.['employeeId'];
|
|
442
|
+
return typeof raw === 'string' && raw.trim().length > 0 ? raw.trim() : undefined;
|
|
443
|
+
}
|
|
444
|
+
return undefined;
|
|
445
|
+
}
|
|
446
|
+
function axmIsEmployeeEntityType(entityType) {
|
|
447
|
+
if (!entityType || typeof entityType !== 'string') {
|
|
448
|
+
return false;
|
|
449
|
+
}
|
|
450
|
+
return entityType === HCM_EMPLOYEE_SOURCE || entityType.endsWith('.Employee');
|
|
451
|
+
}
|
|
452
|
+
//#endregion
|
|
453
|
+
|
|
454
|
+
//#region ---- Org chart: employee flyout (assigned person + employee nodes) ----
|
|
455
|
+
/**
|
|
456
|
+
* Stable {@link AXMOrgChartNodeMenuAction.submenuGroupId} for actions that target the person on a card
|
|
457
|
+
* (chief executive, unit head, seat occupant) or the {@link AXMOrgChartNodeKind} `employee` node itself.
|
|
458
|
+
* Private chat/email move here from the Communication group.
|
|
459
|
+
*/
|
|
460
|
+
const AXM_ORG_CHART_EMPLOYEE_SUBMENU_GROUP_ID = 'organization-management.org-chart.employee-submenu';
|
|
461
|
+
/**
|
|
462
|
+
* i18n key: `organization-chart.employee-submenu.title` in `organization-management` assets.
|
|
463
|
+
*/
|
|
464
|
+
const AXM_ORG_CHART_EMPLOYEE_SUBMENU_TITLE_I18N_KEY = '@organization-management:organization-chart.employee-submenu.title';
|
|
465
|
+
const AXM_ORG_CHART_EMPLOYEE_SUBMENU_ICON = 'fa-light fa-user';
|
|
466
|
+
//#endregion
|
|
467
|
+
|
|
468
|
+
//#region ---- Org chart: view / layout flyout ----
|
|
469
|
+
/**
|
|
470
|
+
* Stable {@link AXMOrgChartNodeMenuAction.submenuGroupId} for panel toggle and branch expand/collapse.
|
|
471
|
+
*/
|
|
472
|
+
const AXM_ORG_CHART_LAYOUT_SUBMENU_GROUP_ID = 'organization-management.org-chart.layout-submenu';
|
|
473
|
+
/**
|
|
474
|
+
* i18n key: `organization-chart.layout-submenu.title` in `organization-management` assets.
|
|
475
|
+
*/
|
|
476
|
+
const AXM_ORG_CHART_LAYOUT_SUBMENU_TITLE_I18N_KEY = '@organization-management:organization-chart.layout-submenu.title';
|
|
477
|
+
const AXM_ORG_CHART_LAYOUT_SUBMENU_ICON = 'fa-light fa-sidebar';
|
|
478
|
+
//#endregion
|
|
479
|
+
|
|
404
480
|
//#region ---- Org chart: shared communication flyout ----
|
|
405
481
|
/**
|
|
406
482
|
* Stable {@link AXMOrgChartNodeMenuAction.submenuGroupId} so chat and email extensions merge
|
|
@@ -628,10 +704,10 @@ const AXMResponsibilitiesMatrixWidget = {
|
|
|
628
704
|
],
|
|
629
705
|
components: {
|
|
630
706
|
view: {
|
|
631
|
-
component: () => import('./acorex-modules-organization-management-responsibilities-matrix-widget-view.component-
|
|
707
|
+
component: () => import('./acorex-modules-organization-management-responsibilities-matrix-widget-view.component-BBo97rDN.mjs').then((c) => c.AXMResponsibilitiesMatrixWidgetViewComponent),
|
|
632
708
|
},
|
|
633
709
|
edit: {
|
|
634
|
-
component: () => import('./acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-
|
|
710
|
+
component: () => import('./acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-CZdMLIL-.mjs').then((c) => c.AXMResponsibilitiesMatrixWidgetEditComponent),
|
|
635
711
|
},
|
|
636
712
|
},
|
|
637
713
|
};
|
|
@@ -653,6 +729,7 @@ const AXMOrganizationManagementCommandKeys = {
|
|
|
653
729
|
OrganizationChart: {
|
|
654
730
|
AddPositionToBusinessUnit: 'OrganizationManagement.OrgChart:AddPositionToBusinessUnit',
|
|
655
731
|
AddBusinessUnitToBusinessUnit: 'OrganizationManagement.OrgChart:AddBusinessUnitToBusinessUnit',
|
|
732
|
+
AddTeamToBusinessUnit: 'OrganizationManagement.OrgChart:AddTeamToBusinessUnit',
|
|
656
733
|
RemovePositionFromBusinessUnit: 'OrganizationManagement.OrgChart:RemovePositionFromBusinessUnit',
|
|
657
734
|
ReplacePositionAssignee: 'OrganizationManagement.OrgChart:ReplacePositionAssignee',
|
|
658
735
|
},
|
|
@@ -662,509 +739,42 @@ const AXM_HCM_POSITION_ASSIGNMENT_ASSIGN_COMMAND = 'HumanCapitalManagement.Posit
|
|
|
662
739
|
/** HCM command key (string only; avoid importing HCM from org-management). */
|
|
663
740
|
const AXM_HCM_POSITION_ASSIGNMENT_REVOKE_COMMAND = 'HumanCapitalManagement.PositionAssignment:Revoke';
|
|
664
741
|
|
|
665
|
-
const AXPOrganizationManagementPermissionKeys = {
|
|
666
|
-
OrganizationManagement: {
|
|
667
|
-
Management: 'OrganizationManagement:Permission:OrganizationManagement.Management',
|
|
668
|
-
},
|
|
669
|
-
// Important Entity - Full CRUD
|
|
670
|
-
Team: {
|
|
671
|
-
Management: 'OrganizationManagement:Permission:Team.Management',
|
|
672
|
-
View: 'OrganizationManagement:Permission:Team.View',
|
|
673
|
-
Create: 'OrganizationManagement:Permission:Team.Create',
|
|
674
|
-
Update: 'OrganizationManagement:Permission:Team.Update',
|
|
675
|
-
Delete: 'OrganizationManagement:Permission:Team.Delete',
|
|
676
|
-
},
|
|
677
|
-
// Important Entity - Full CRUD
|
|
678
|
-
Position: {
|
|
679
|
-
Management: 'OrganizationManagement:Permission:Position.Management',
|
|
680
|
-
View: 'OrganizationManagement:Permission:Position.View',
|
|
681
|
-
Create: 'OrganizationManagement:Permission:Position.Create',
|
|
682
|
-
Update: 'OrganizationManagement:Permission:Position.Update',
|
|
683
|
-
Delete: 'OrganizationManagement:Permission:Position.Delete',
|
|
684
|
-
},
|
|
685
|
-
// Important Entity - Full CRUD
|
|
686
|
-
JobDefinition: {
|
|
687
|
-
Management: 'OrganizationManagement:Permission:JobDefinition.Management',
|
|
688
|
-
View: 'OrganizationManagement:Permission:JobDefinition.View',
|
|
689
|
-
Create: 'OrganizationManagement:Permission:JobDefinition.Create',
|
|
690
|
-
Update: 'OrganizationManagement:Permission:JobDefinition.Update',
|
|
691
|
-
Delete: 'OrganizationManagement:Permission:JobDefinition.Delete',
|
|
692
|
-
},
|
|
693
|
-
// Simple Entity - Management Only
|
|
694
|
-
JobLevel: {
|
|
695
|
-
Management: 'OrganizationManagement:Permission:JobLevel.Management',
|
|
696
|
-
},
|
|
697
|
-
// Simple Entity - Management Only
|
|
698
|
-
Responsibility: {
|
|
699
|
-
Management: 'OrganizationManagement:Permission:Responsibility.Management',
|
|
700
|
-
},
|
|
701
|
-
// Important Entity - Full CRUD
|
|
702
|
-
BusinessUnit: {
|
|
703
|
-
Management: 'OrganizationManagement:Permission:BusinessUnit.Management',
|
|
704
|
-
View: 'OrganizationManagement:Permission:BusinessUnit.View',
|
|
705
|
-
Create: 'OrganizationManagement:Permission:BusinessUnit.Create',
|
|
706
|
-
Update: 'OrganizationManagement:Permission:BusinessUnit.Update',
|
|
707
|
-
Delete: 'OrganizationManagement:Permission:BusinessUnit.Delete',
|
|
708
|
-
},
|
|
709
|
-
// Simple Entity - Management Only
|
|
710
|
-
BusinessUnitType: {
|
|
711
|
-
Management: 'OrganizationManagement:Permission:BusinessUnitType.Management',
|
|
712
|
-
},
|
|
713
|
-
// Simple Entity - Management Only
|
|
714
|
-
Chart: {
|
|
715
|
-
Management: 'OrganizationManagement:Permission:Chart.Management',
|
|
716
|
-
},
|
|
717
|
-
};
|
|
718
|
-
|
|
719
742
|
//#region ---- Imports ----
|
|
720
743
|
//#endregion
|
|
721
|
-
//#region ----
|
|
722
|
-
const orgChartNodeActionKey$1 = (suffix) => `@organization-management:organization-chart.node-actions.${suffix}`;
|
|
723
|
-
//#endregion
|
|
724
|
-
class AXMOrgChartDefaultNodeContributionProvider {
|
|
725
|
-
constructor() {
|
|
726
|
-
//#region ---- Services & Dependencies ----
|
|
727
|
-
this.commandService = inject(AXPCommandService);
|
|
728
|
-
this.workflowService = inject(AXPWorkflowService);
|
|
729
|
-
this.sessionService = inject(AXPSessionService);
|
|
730
|
-
this.entityService = inject(AXPEntityService);
|
|
731
|
-
this.localeId = inject(LOCALE_ID);
|
|
732
|
-
this.translationService = inject(AXTranslationService);
|
|
733
|
-
}
|
|
734
|
-
//#endregion
|
|
735
|
-
//#region ---- Menu Actions ----
|
|
736
|
-
async getMenuActions(context) {
|
|
737
|
-
if (context.nodeKind !== 'company-root' && context.nodeKind !== 'business-unit') {
|
|
738
|
-
return [];
|
|
739
|
-
}
|
|
740
|
-
const businessUnitId = this.resolveBusinessUnitId(context);
|
|
741
|
-
const parentId = context.nodeKind === 'business-unit' ? businessUnitId : undefined;
|
|
742
|
-
const typeAllowsDirectPositions = context.nodeKind === 'business-unit' && businessUnitId
|
|
743
|
-
? await this.resolveTypeAllowsDirectPositions(context, businessUnitId)
|
|
744
|
-
: false;
|
|
745
|
-
/** When true, a separator goes after the last “Add BU by type” row before the Add position row. */
|
|
746
|
-
const hasPositionRowAfterBuTypes = context.nodeKind === 'business-unit' && Boolean(businessUnitId) && typeAllowsDirectPositions;
|
|
747
|
-
const canCreateBusinessUnit = this.authorize(AXPOrganizationManagementPermissionKeys.BusinessUnit.Create);
|
|
748
|
-
const canUpdateBusinessUnit = this.authorize(AXPOrganizationManagementPermissionKeys.BusinessUnit.Update);
|
|
749
|
-
const canDeleteBusinessUnit = this.authorize(AXPOrganizationManagementPermissionKeys.BusinessUnit.Delete);
|
|
750
|
-
const canViewPosition = this.authorize(AXPOrganizationManagementPermissionKeys.Position.View);
|
|
751
|
-
const buTypeRows = await this.loadBusinessUnitTypes();
|
|
752
|
-
const addNewBuKey = orgChartNodeActionKey$1('add-new-bu-with-type');
|
|
753
|
-
const addBuActions = await Promise.all(buTypeRows.map(async (row, index) => ({
|
|
754
|
-
id: `organization-management.add-bu-type.${row.id}`,
|
|
755
|
-
title: await this.menuTitleDualLocale(addNewBuKey, { type: row.title }),
|
|
756
|
-
nestedInAddFlyout: true,
|
|
757
|
-
icon: 'fa-light fa-sitemap',
|
|
758
|
-
order: 10 + index,
|
|
759
|
-
disabled: !canCreateBusinessUnit,
|
|
760
|
-
break: hasPositionRowAfterBuTypes && index === buTypeRows.length - 1 && buTypeRows.length > 0,
|
|
761
|
-
execute: async () => {
|
|
762
|
-
await this.commandService.execute(AXMOrganizationManagementCommandKeys.OrganizationChart.AddBusinessUnitToBusinessUnit, { parentBusinessUnitId: parentId, typeId: row.id });
|
|
763
|
-
await context.refreshChart();
|
|
764
|
-
},
|
|
765
|
-
})));
|
|
766
|
-
const addPositionToBuAction = context.nodeKind === 'business-unit' && businessUnitId && typeAllowsDirectPositions
|
|
767
|
-
? {
|
|
768
|
-
id: 'organization-management.add-position-to-business-unit',
|
|
769
|
-
title: orgChartNodeActionKey$1('add-new-position'),
|
|
770
|
-
nestedInAddFlyout: true,
|
|
771
|
-
icon: 'fa-light fa-briefcase',
|
|
772
|
-
order: 10 + buTypeRows.length,
|
|
773
|
-
disabled: !canUpdateBusinessUnit || !canViewPosition,
|
|
774
|
-
execute: async () => {
|
|
775
|
-
const result = await this.commandService.execute(AXMOrganizationManagementCommandKeys.OrganizationChart.AddPositionToBusinessUnit, { businessUnitId });
|
|
776
|
-
if (result?.success) {
|
|
777
|
-
await context.refreshChart();
|
|
778
|
-
}
|
|
779
|
-
},
|
|
780
|
-
}
|
|
781
|
-
: null;
|
|
782
|
-
const removeBuActions = context.nodeKind === 'business-unit'
|
|
783
|
-
? [
|
|
784
|
-
{
|
|
785
|
-
id: 'organization-management.remove-bu',
|
|
786
|
-
title: orgChartNodeActionKey$1('remove'),
|
|
787
|
-
icon: 'fa-light fa-trash',
|
|
788
|
-
color: 'danger',
|
|
789
|
-
order: 120,
|
|
790
|
-
disabled: !canDeleteBusinessUnit || !businessUnitId,
|
|
791
|
-
execute: async () => {
|
|
792
|
-
await this.workflowService.execute('delete-entity', {
|
|
793
|
-
entity: RootConfig.entities.businessUnit.source,
|
|
794
|
-
data: { id: businessUnitId },
|
|
795
|
-
options: { process: { showResult: true } },
|
|
796
|
-
});
|
|
797
|
-
await context.refreshChart();
|
|
798
|
-
},
|
|
799
|
-
},
|
|
800
|
-
]
|
|
801
|
-
: [];
|
|
802
|
-
return [...addBuActions, ...(addPositionToBuAction ? [addPositionToBuAction] : []), ...removeBuActions];
|
|
803
|
-
}
|
|
804
|
-
//#endregion
|
|
805
|
-
//#region ---- Authorization ----
|
|
806
|
-
authorize(permission) {
|
|
807
|
-
return this.sessionService.authorize(permission);
|
|
808
|
-
}
|
|
809
|
-
//#endregion
|
|
810
|
-
//#region ---- Menu Labels ----
|
|
811
|
-
/**
|
|
812
|
-
* Resolves copy for menu rows: nested `translate` bindings do not pass interpolation params into the pipe;
|
|
813
|
-
* use per-locale strings via {@link createMultiLanguageString}.
|
|
814
|
-
*
|
|
815
|
-
* TODO: Remove this dual-locale pre-resolution once we can pass interpolation params through
|
|
816
|
-
* {@link AXPMultiLanguageString} and/or the menu `translate` pipe (see `@acorex/components/menu` item template).
|
|
817
|
-
*/
|
|
818
|
-
async menuTitleDualLocale(key, params) {
|
|
819
|
-
const [enUs, faIr] = await Promise.all([
|
|
820
|
-
this.translationService.translateAsync(key, { lang: 'en-US', params }),
|
|
821
|
-
this.translationService.translateAsync(key, { lang: 'fa-IR', params }),
|
|
822
|
-
]);
|
|
823
|
-
return createMultiLanguageString(enUs, faIr);
|
|
824
|
-
}
|
|
825
|
-
//#endregion
|
|
826
|
-
//#region ---- Business Unit Types ----
|
|
827
|
-
/**
|
|
828
|
-
* Resolves whether the BU's type allows direct positions (metadata from chart, nested type, or type lookup).
|
|
829
|
-
*/
|
|
830
|
-
async resolveTypeAllowsDirectPositions(context, businessUnitId) {
|
|
831
|
-
const fromMeta = context.node.metadata?.['typeAllowsDirectPositions'];
|
|
832
|
-
if (typeof fromMeta === 'boolean') {
|
|
833
|
-
return fromMeta;
|
|
834
|
-
}
|
|
835
|
-
try {
|
|
836
|
-
const bu = await this.entityService
|
|
837
|
-
.withEntity(RootConfig.module.name, RootConfig.entities.businessUnit.name)
|
|
838
|
-
.data()
|
|
839
|
-
.byKey(businessUnitId);
|
|
840
|
-
const row = bu;
|
|
841
|
-
const nested = row?.type?.allowsDirectPositions;
|
|
842
|
-
if (typeof nested === 'boolean') {
|
|
843
|
-
return nested;
|
|
844
|
-
}
|
|
845
|
-
const typeId = row?.typeId?.trim();
|
|
846
|
-
if (typeId) {
|
|
847
|
-
const ty = await this.entityService
|
|
848
|
-
.withEntity(RootConfig.module.name, RootConfig.entities.businessUnitType.name)
|
|
849
|
-
.data()
|
|
850
|
-
.byKey(typeId);
|
|
851
|
-
return ty?.allowsDirectPositions !== false;
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
catch {
|
|
855
|
-
// fall through
|
|
856
|
-
}
|
|
857
|
-
return true;
|
|
858
|
-
}
|
|
859
|
-
async loadBusinessUnitTypes() {
|
|
860
|
-
try {
|
|
861
|
-
const result = await this.entityService
|
|
862
|
-
.withEntity(RootConfig.module.name, RootConfig.entities.businessUnitType.name)
|
|
863
|
-
.data()
|
|
864
|
-
.query({
|
|
865
|
-
skip: 0,
|
|
866
|
-
take: 500,
|
|
867
|
-
sort: [{ field: 'title', dir: 'asc' }],
|
|
868
|
-
});
|
|
869
|
-
const items = (result.items ?? []);
|
|
870
|
-
return items
|
|
871
|
-
.map((row) => {
|
|
872
|
-
const id = String(row.id ?? '');
|
|
873
|
-
const title = this.resolveBusinessUnitTypeLabel(row);
|
|
874
|
-
return { id, title: title || (row.name ?? '').trim() || id };
|
|
875
|
-
})
|
|
876
|
-
.filter((row) => row.id.length > 0);
|
|
877
|
-
}
|
|
878
|
-
catch {
|
|
879
|
-
return [];
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
/**
|
|
883
|
-
* API rows use {@link AXPMultiLanguageString} for `title`; treating it as a string breaks `.trim()` and drops all types.
|
|
884
|
-
*/
|
|
885
|
-
resolveBusinessUnitTypeLabel(row) {
|
|
886
|
-
const raw = row.title;
|
|
887
|
-
if (raw == null) {
|
|
888
|
-
return '';
|
|
889
|
-
}
|
|
890
|
-
if (typeof raw === 'string') {
|
|
891
|
-
return raw.trim();
|
|
892
|
-
}
|
|
893
|
-
return resolveMultiLanguageString(raw, this.localeId).trim();
|
|
894
|
-
}
|
|
895
|
-
//#endregion
|
|
896
|
-
//#region ---- Node Metadata ----
|
|
897
|
-
resolveBusinessUnitId(context) {
|
|
898
|
-
if (context.nodeKind === 'business-unit') {
|
|
899
|
-
return (context.node.entity?.id ??
|
|
900
|
-
context.node.metadata?.['businessUnitId'] ??
|
|
901
|
-
context.node.metadata?.['unitId']);
|
|
902
|
-
}
|
|
903
|
-
return context.node.metadata?.['businessUnitId'];
|
|
904
|
-
}
|
|
905
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartDefaultNodeContributionProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
906
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartDefaultNodeContributionProvider }); }
|
|
907
|
-
}
|
|
908
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartDefaultNodeContributionProvider, decorators: [{
|
|
909
|
-
type: Injectable
|
|
910
|
-
}] });
|
|
911
|
-
|
|
912
|
-
//#region ---- Imports ----
|
|
913
|
-
//#endregion
|
|
914
|
-
//#region ---- Module Constants ----
|
|
915
|
-
const orgChartNodeActionKey = (suffix) => `@organization-management:organization-chart.node-actions.${suffix}`;
|
|
916
|
-
const HCM_EMPLOYEE_MODULE = 'HumanCapitalManagement';
|
|
917
|
-
const HCM_EMPLOYEE_NAME = 'Employee';
|
|
918
|
-
const HCM_EMPLOYEE_SOURCE = `${HCM_EMPLOYEE_MODULE}.${HCM_EMPLOYEE_NAME}`;
|
|
919
|
-
const HCM_EMPLOYEE_TITLE_KEY = '@human-capital-management:employees.entities.employee.title';
|
|
920
|
-
const POSITION_ENTITY_SOURCE = RootConfig.entities.position.source;
|
|
921
|
-
const positionAssignmentCreatePermission = 'HumanCapitalManagement:Permission:PositionAssignment.Create';
|
|
922
|
-
const positionAssignmentEditPermission = 'HumanCapitalManagement:Permission:PositionAssignment.Edit';
|
|
923
|
-
const employeeEditPermission = 'HumanCapitalManagement:Permission:Employee.Edit';
|
|
924
|
-
//#endregion
|
|
744
|
+
//#region ---- NgModule ----
|
|
925
745
|
/**
|
|
926
|
-
*
|
|
746
|
+
* Registers organization chart node contributors and chart-scoped commands for Organization Management.
|
|
927
747
|
*/
|
|
928
|
-
class
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
};
|
|
943
|
-
}
|
|
944
|
-
//#endregion
|
|
945
|
-
//#region ---- AXMOrgChartNodeContributionProvider Implementation ----
|
|
946
|
-
async getMenuActions(context) {
|
|
947
|
-
if (context.nodeKind === 'position') {
|
|
948
|
-
return this.getPositionNodeActions(context);
|
|
949
|
-
}
|
|
950
|
-
if (context.nodeKind === 'employee') {
|
|
951
|
-
return this.getEmployeeNodeActions(context);
|
|
952
|
-
}
|
|
953
|
-
return [];
|
|
954
|
-
}
|
|
955
|
-
//#endregion
|
|
956
|
-
//#region ---- Position Node Actions ----
|
|
957
|
-
getPositionNodeActions(context) {
|
|
958
|
-
const positionId = this.resolvePositionId(context);
|
|
959
|
-
if (!positionId) {
|
|
960
|
-
return [];
|
|
961
|
-
}
|
|
962
|
-
const businessUnitId = this.resolveBusinessUnitIdForPosition(context);
|
|
963
|
-
const vacant = context.node.metadata?.['vacant'] === true;
|
|
964
|
-
const occupant = context.node.metadata?.['occupant'];
|
|
965
|
-
const occupantEmployeeId = typeof occupant?.['employeeId'] === 'string' && occupant['employeeId'].trim().length > 0
|
|
966
|
-
? occupant['employeeId'].trim()
|
|
967
|
-
: undefined;
|
|
968
|
-
const canViewPosition = this.authorize(AXPOrganizationManagementPermissionKeys.Position.View);
|
|
969
|
-
const canUpdatePosition = this.authorize(AXPOrganizationManagementPermissionKeys.Position.Update);
|
|
970
|
-
const canUpdateBusinessUnit = this.authorize(AXPOrganizationManagementPermissionKeys.BusinessUnit.Update);
|
|
971
|
-
const canCreateAssignment = this.authorize(positionAssignmentCreatePermission);
|
|
972
|
-
const canEditAssignment = this.authorize(positionAssignmentEditPermission);
|
|
973
|
-
const actions = [];
|
|
974
|
-
actions.push({
|
|
975
|
-
id: 'organization-management.modify-position-from-chart',
|
|
976
|
-
title: orgChartNodeActionKey('modify-position'),
|
|
977
|
-
icon: 'fa-light fa-pen',
|
|
978
|
-
order: 100,
|
|
979
|
-
disabled: !canUpdatePosition || !canViewPosition,
|
|
980
|
-
execute: async (ctx) => {
|
|
981
|
-
const pid = this.resolvePositionId(ctx);
|
|
982
|
-
if (!pid) {
|
|
983
|
-
return;
|
|
984
|
-
}
|
|
985
|
-
await this.commandService.execute('Entity:Update', {
|
|
986
|
-
__context__: {
|
|
987
|
-
entity: POSITION_ENTITY_SOURCE,
|
|
988
|
-
entityInfo: this.positionEntityInfo,
|
|
989
|
-
data: pid,
|
|
990
|
-
options: {
|
|
991
|
-
process: {
|
|
992
|
-
redirect: false,
|
|
993
|
-
},
|
|
994
|
-
},
|
|
995
|
-
},
|
|
996
|
-
});
|
|
997
|
-
await ctx.refreshChart();
|
|
998
|
-
},
|
|
999
|
-
});
|
|
1000
|
-
if (vacant && businessUnitId) {
|
|
1001
|
-
actions.push({
|
|
1002
|
-
id: 'organization-management.assign-employee-to-position-from-chart',
|
|
1003
|
-
title: orgChartNodeActionKey('assign-employee-to-position'),
|
|
1004
|
-
icon: 'fa-light fa-user-plus',
|
|
1005
|
-
order: 110,
|
|
1006
|
-
disabled: !canCreateAssignment,
|
|
1007
|
-
execute: async (ctx) => {
|
|
1008
|
-
const pid = this.resolvePositionId(ctx);
|
|
1009
|
-
const buId = this.resolveBusinessUnitIdForPosition(ctx);
|
|
1010
|
-
if (!pid || !buId) {
|
|
1011
|
-
return;
|
|
1012
|
-
}
|
|
1013
|
-
const result = await this.commandService.execute(AXM_HCM_POSITION_ASSIGNMENT_ASSIGN_COMMAND, {
|
|
1014
|
-
data: {
|
|
1015
|
-
businessUnitId: buId,
|
|
1016
|
-
positionId: pid,
|
|
1017
|
-
isPrimary: false,
|
|
1018
|
-
},
|
|
1019
|
-
});
|
|
1020
|
-
if (result?.success) {
|
|
1021
|
-
await ctx.refreshChart();
|
|
1022
|
-
}
|
|
1023
|
-
},
|
|
1024
|
-
});
|
|
1025
|
-
}
|
|
1026
|
-
if (!vacant && occupantEmployeeId && businessUnitId) {
|
|
1027
|
-
actions.push({
|
|
1028
|
-
id: 'organization-management.replace-position-assignee-from-chart',
|
|
1029
|
-
title: orgChartNodeActionKey('assign-new-employee-to-position'),
|
|
1030
|
-
icon: 'fa-light fa-arrows-rotate',
|
|
1031
|
-
order: 115,
|
|
1032
|
-
disabled: !canCreateAssignment || !canEditAssignment,
|
|
1033
|
-
execute: async (ctx) => {
|
|
1034
|
-
const pid = this.resolvePositionId(ctx);
|
|
1035
|
-
const buId = this.resolveBusinessUnitIdForPosition(ctx);
|
|
1036
|
-
const occ = ctx.node.metadata?.['occupant'];
|
|
1037
|
-
const eid = typeof occ?.['employeeId'] === 'string' && occ['employeeId'].trim().length > 0
|
|
1038
|
-
? occ['employeeId'].trim()
|
|
1039
|
-
: '';
|
|
1040
|
-
if (!pid || !buId || !eid) {
|
|
1041
|
-
return;
|
|
1042
|
-
}
|
|
1043
|
-
const result = await this.commandService.execute(AXMOrganizationManagementCommandKeys.OrganizationChart.ReplacePositionAssignee, { businessUnitId: buId, positionId: pid, currentEmployeeId: eid });
|
|
1044
|
-
if (result?.success) {
|
|
1045
|
-
await ctx.refreshChart();
|
|
1046
|
-
}
|
|
1047
|
-
},
|
|
1048
|
-
});
|
|
1049
|
-
}
|
|
1050
|
-
if (businessUnitId) {
|
|
1051
|
-
actions.push({
|
|
1052
|
-
id: 'organization-management.remove-position-from-unit-from-chart',
|
|
1053
|
-
title: orgChartNodeActionKey('remove-from-unit'),
|
|
1054
|
-
icon: 'fa-light fa-link-slash',
|
|
1055
|
-
color: 'danger',
|
|
1056
|
-
order: 120,
|
|
1057
|
-
disabled: !canUpdateBusinessUnit,
|
|
1058
|
-
execute: async (ctx) => {
|
|
1059
|
-
const pid = this.resolvePositionId(ctx);
|
|
1060
|
-
const buId = this.resolveBusinessUnitIdForPosition(ctx);
|
|
1061
|
-
if (!pid || !buId) {
|
|
1062
|
-
return;
|
|
1063
|
-
}
|
|
1064
|
-
const occ = ctx.node.metadata?.['occupant'];
|
|
1065
|
-
const occId = typeof occ?.['employeeId'] === 'string' && occ['employeeId'].trim().length > 0
|
|
1066
|
-
? occ['employeeId'].trim()
|
|
1067
|
-
: undefined;
|
|
1068
|
-
const result = await this.commandService.execute(AXMOrganizationManagementCommandKeys.OrganizationChart.RemovePositionFromBusinessUnit, {
|
|
1069
|
-
businessUnitId: buId,
|
|
1070
|
-
positionId: pid,
|
|
1071
|
-
...(occId ? { occupantEmployeeId: occId } : {}),
|
|
1072
|
-
});
|
|
1073
|
-
if (result?.success) {
|
|
1074
|
-
await ctx.refreshChart();
|
|
1075
|
-
}
|
|
1076
|
-
},
|
|
1077
|
-
});
|
|
1078
|
-
}
|
|
1079
|
-
return actions;
|
|
1080
|
-
}
|
|
1081
|
-
//#endregion
|
|
1082
|
-
//#region ---- Employee Node Actions ----
|
|
1083
|
-
getEmployeeNodeActions(context) {
|
|
1084
|
-
const employeeId = this.resolveEmployeeId(context);
|
|
1085
|
-
if (!employeeId) {
|
|
1086
|
-
return [];
|
|
1087
|
-
}
|
|
1088
|
-
const canEditEmployee = this.authorize(employeeEditPermission);
|
|
1089
|
-
return [
|
|
1090
|
-
{
|
|
1091
|
-
id: 'organization-management.modify-employee-from-chart',
|
|
1092
|
-
title: orgChartNodeActionKey('modify-employee'),
|
|
1093
|
-
icon: 'fa-light fa-pen',
|
|
1094
|
-
order: 100,
|
|
1095
|
-
disabled: !canEditEmployee,
|
|
1096
|
-
execute: async (ctx) => {
|
|
1097
|
-
const eid = this.resolveEmployeeId(ctx);
|
|
1098
|
-
if (!eid) {
|
|
1099
|
-
return;
|
|
1100
|
-
}
|
|
1101
|
-
await this.commandService.execute('Entity:Update', {
|
|
1102
|
-
__context__: {
|
|
1103
|
-
entity: HCM_EMPLOYEE_SOURCE,
|
|
1104
|
-
entityInfo: this.employeeEntityInfo,
|
|
1105
|
-
data: eid,
|
|
1106
|
-
options: {
|
|
1107
|
-
process: {
|
|
1108
|
-
redirect: false,
|
|
1109
|
-
},
|
|
1110
|
-
},
|
|
1111
|
-
},
|
|
1112
|
-
});
|
|
1113
|
-
await ctx.refreshChart();
|
|
1114
|
-
},
|
|
1115
|
-
},
|
|
1116
|
-
];
|
|
1117
|
-
}
|
|
1118
|
-
//#endregion
|
|
1119
|
-
//#region ---- Resolvers & Authorization ----
|
|
1120
|
-
authorize(permission) {
|
|
1121
|
-
return this.sessionService.authorize(permission);
|
|
1122
|
-
}
|
|
1123
|
-
resolvePositionId(context) {
|
|
1124
|
-
const entity = context.node.entity;
|
|
1125
|
-
if (entity?.id != null && this.isPositionEntityType(entity.type)) {
|
|
1126
|
-
const id = String(entity.id).trim();
|
|
1127
|
-
return id.length > 0 ? id : undefined;
|
|
1128
|
-
}
|
|
1129
|
-
const metaPid = context.node.metadata?.['positionId'];
|
|
1130
|
-
if (typeof metaPid === 'string' && metaPid.trim().length > 0) {
|
|
1131
|
-
return metaPid.trim();
|
|
1132
|
-
}
|
|
1133
|
-
return undefined;
|
|
1134
|
-
}
|
|
1135
|
-
isPositionEntityType(entityType) {
|
|
1136
|
-
if (!entityType || typeof entityType !== 'string') {
|
|
1137
|
-
return false;
|
|
1138
|
-
}
|
|
1139
|
-
return entityType === POSITION_ENTITY_SOURCE || entityType.endsWith('.Position');
|
|
1140
|
-
}
|
|
1141
|
-
resolveBusinessUnitIdForPosition(context) {
|
|
1142
|
-
const meta = context.node.metadata ?? {};
|
|
1143
|
-
const a = meta['businessUnitId'];
|
|
1144
|
-
const b = meta['organizationalUnitId'];
|
|
1145
|
-
const raw = (typeof a === 'string' && a.trim().length > 0 ? a : typeof b === 'string' ? b : '');
|
|
1146
|
-
const id = String(raw).trim();
|
|
1147
|
-
return id.length > 0 ? id : undefined;
|
|
1148
|
-
}
|
|
1149
|
-
resolveEmployeeId(context) {
|
|
1150
|
-
const entity = context.node.entity;
|
|
1151
|
-
if (entity?.id != null && this.isEmployeeEntityType(entity.type)) {
|
|
1152
|
-
const id = String(entity.id).trim();
|
|
1153
|
-
return id.length > 0 ? id : undefined;
|
|
1154
|
-
}
|
|
1155
|
-
return undefined;
|
|
1156
|
-
}
|
|
1157
|
-
isEmployeeEntityType(entityType) {
|
|
1158
|
-
if (!entityType || typeof entityType !== 'string') {
|
|
1159
|
-
return false;
|
|
1160
|
-
}
|
|
1161
|
-
return entityType === HCM_EMPLOYEE_SOURCE || entityType.endsWith('.Employee');
|
|
1162
|
-
}
|
|
1163
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartPositionEmployeeNodeContributionProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1164
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartPositionEmployeeNodeContributionProvider }); }
|
|
748
|
+
class AXMOrganizationChartModule {
|
|
749
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrganizationChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
750
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: AXMOrganizationChartModule }); }
|
|
751
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrganizationChartModule, providers: [
|
|
752
|
+
provideLazyProvider(AXM_ORG_CHART_NODE_CONTRIBUTOR, () => import('./acorex-modules-organization-management-org-chart-default-node-contribution.provider-D3hCHSr_.mjs').then((m) => m.AXMOrgChartDefaultNodeContributionProvider)),
|
|
753
|
+
provideLazyProvider(AXM_ORG_CHART_NODE_CONTRIBUTOR, () => import('./acorex-modules-organization-management-org-chart-position-employee-node-contribution.provider-DbfYza8q.mjs').then((m) => m.AXMOrgChartPositionEmployeeNodeContributionProvider)),
|
|
754
|
+
provideLazyProvider(AXM_ORG_CHART_NODE_CONTRIBUTOR, () => import('./acorex-modules-organization-management-org-chart-employee-flyout-contribution.provider-Bv0I-45L.mjs').then((m) => m.AXMOrgChartEmployeeFlyoutContributionProvider)),
|
|
755
|
+
provideLazyProvider(AXM_ORG_CHART_NODE_CONTRIBUTOR, () => import('./acorex-modules-organization-management-org-chart-ux-node-contribution.provider-C9APxguL.mjs').then((m) => m.AXMOrgChartUxNodeContributionProvider)),
|
|
756
|
+
provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.AddPositionToBusinessUnit, () => import('./acorex-modules-organization-management-add-position-to-business-unit.command-DKgxg9q5.mjs').then((m) => m.AXMAddPositionToBusinessUnitCommand)),
|
|
757
|
+
provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.AddBusinessUnitToBusinessUnit, () => import('./acorex-modules-organization-management-add-business-unit-to-business-unit.command-BEJyfR3P.mjs').then((m) => m.AXMAddBusinessUnitToBusinessUnitCommand)),
|
|
758
|
+
provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.AddTeamToBusinessUnit, () => import('./acorex-modules-organization-management-add-team-to-business-unit.command-DJJT7BXT.mjs').then((m) => m.AXMAddTeamToBusinessUnitCommand)),
|
|
759
|
+
provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.RemovePositionFromBusinessUnit, () => import('./acorex-modules-organization-management-remove-position-from-business-unit.command-TqYgfnsy.mjs').then((m) => m.AXMRemovePositionFromBusinessUnitCommand)),
|
|
760
|
+
provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.ReplacePositionAssignee, () => import('./acorex-modules-organization-management-replace-position-assignee.command-BJ2gn0-A.mjs').then((m) => m.AXMReplacePositionAssigneeCommand)),
|
|
761
|
+
] }); }
|
|
1165
762
|
}
|
|
1166
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type:
|
|
1167
|
-
type:
|
|
763
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrganizationChartModule, decorators: [{
|
|
764
|
+
type: NgModule,
|
|
765
|
+
args: [{
|
|
766
|
+
providers: [
|
|
767
|
+
provideLazyProvider(AXM_ORG_CHART_NODE_CONTRIBUTOR, () => import('./acorex-modules-organization-management-org-chart-default-node-contribution.provider-D3hCHSr_.mjs').then((m) => m.AXMOrgChartDefaultNodeContributionProvider)),
|
|
768
|
+
provideLazyProvider(AXM_ORG_CHART_NODE_CONTRIBUTOR, () => import('./acorex-modules-organization-management-org-chart-position-employee-node-contribution.provider-DbfYza8q.mjs').then((m) => m.AXMOrgChartPositionEmployeeNodeContributionProvider)),
|
|
769
|
+
provideLazyProvider(AXM_ORG_CHART_NODE_CONTRIBUTOR, () => import('./acorex-modules-organization-management-org-chart-employee-flyout-contribution.provider-Bv0I-45L.mjs').then((m) => m.AXMOrgChartEmployeeFlyoutContributionProvider)),
|
|
770
|
+
provideLazyProvider(AXM_ORG_CHART_NODE_CONTRIBUTOR, () => import('./acorex-modules-organization-management-org-chart-ux-node-contribution.provider-C9APxguL.mjs').then((m) => m.AXMOrgChartUxNodeContributionProvider)),
|
|
771
|
+
provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.AddPositionToBusinessUnit, () => import('./acorex-modules-organization-management-add-position-to-business-unit.command-DKgxg9q5.mjs').then((m) => m.AXMAddPositionToBusinessUnitCommand)),
|
|
772
|
+
provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.AddBusinessUnitToBusinessUnit, () => import('./acorex-modules-organization-management-add-business-unit-to-business-unit.command-BEJyfR3P.mjs').then((m) => m.AXMAddBusinessUnitToBusinessUnitCommand)),
|
|
773
|
+
provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.AddTeamToBusinessUnit, () => import('./acorex-modules-organization-management-add-team-to-business-unit.command-DJJT7BXT.mjs').then((m) => m.AXMAddTeamToBusinessUnitCommand)),
|
|
774
|
+
provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.RemovePositionFromBusinessUnit, () => import('./acorex-modules-organization-management-remove-position-from-business-unit.command-TqYgfnsy.mjs').then((m) => m.AXMRemovePositionFromBusinessUnitCommand)),
|
|
775
|
+
provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.ReplacePositionAssignee, () => import('./acorex-modules-organization-management-replace-position-assignee.command-BJ2gn0-A.mjs').then((m) => m.AXMReplacePositionAssigneeCommand)),
|
|
776
|
+
],
|
|
777
|
+
}]
|
|
1168
778
|
}] });
|
|
1169
779
|
|
|
1170
780
|
function routesFacory() {
|
|
@@ -1180,7 +790,7 @@ function routesFacory() {
|
|
|
1180
790
|
{
|
|
1181
791
|
path: 'chart',
|
|
1182
792
|
resolve: { orgChartUi: orgChartUiPrefsResolver },
|
|
1183
|
-
loadComponent: () => import('./acorex-modules-organization-management-org-chart.page-
|
|
793
|
+
loadComponent: () => import('./acorex-modules-organization-management-org-chart.page-BcHO5kKP.mjs').then((c) => c.AXMOrgChartPage),
|
|
1184
794
|
},
|
|
1185
795
|
],
|
|
1186
796
|
},
|
|
@@ -1198,7 +808,7 @@ function routesFactory() {
|
|
|
1198
808
|
{
|
|
1199
809
|
path: 'chart',
|
|
1200
810
|
resolve: { orgChartUi: orgChartUiPrefsResolver },
|
|
1201
|
-
loadComponent: () => import('./acorex-modules-organization-management-org-chart.page-
|
|
811
|
+
loadComponent: () => import('./acorex-modules-organization-management-org-chart.page-BcHO5kKP.mjs').then((c) => c.AXMOrgChartPage),
|
|
1202
812
|
},
|
|
1203
813
|
],
|
|
1204
814
|
};
|
|
@@ -1206,7 +816,8 @@ function routesFactory() {
|
|
|
1206
816
|
class AXMOrganizationManagementModule {
|
|
1207
817
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrganizationManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1208
818
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: AXMOrganizationManagementModule, imports: [CommonModule,
|
|
1209
|
-
AXPWidgetCoreModule
|
|
819
|
+
AXPWidgetCoreModule,
|
|
820
|
+
AXMOrganizationChartModule] }); }
|
|
1210
821
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrganizationManagementModule, providers: [
|
|
1211
822
|
provideLazyProvider(AXP_IDENTIFIER_RULES, () => import('./acorex-modules-organization-management-organization-code-identifier-rules.provider-pocBJezL.mjs').then((m) => m.AXMOrganizationBusinessUnitCodeIdentifierRule)),
|
|
1212
823
|
provideLazyProvider(AXP_IDENTIFIER_RULES, () => import('./acorex-modules-organization-management-organization-code-identifier-rules.provider-pocBJezL.mjs').then((m) => m.AXMOrganizationTeamCodeIdentifierRule)),
|
|
@@ -1217,31 +828,20 @@ class AXMOrganizationManagementModule {
|
|
|
1217
828
|
multi: true,
|
|
1218
829
|
useFactory: routesFacory,
|
|
1219
830
|
},
|
|
1220
|
-
{
|
|
1221
|
-
provide: AXP_HOME_PAGES,
|
|
1222
|
-
multi: true,
|
|
1223
|
-
useFactory: () => [
|
|
1224
|
-
{
|
|
1225
|
-
key: 'organization-chart',
|
|
1226
|
-
title: 'Organization Chart',
|
|
1227
|
-
route: routesFactory(),
|
|
1228
|
-
},
|
|
1229
|
-
],
|
|
1230
|
-
},
|
|
1231
831
|
provideLazyProvider(AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, () => import('./acorex-modules-organization-management-data-source-evaluator-scope.provider-BrKtojM9.mjs').then((m) => m.AXMOrganizationManagementDataSourceEvaluatorScopeProvider)),
|
|
1232
|
-
provideLazyProvider(AXP_DATASOURCE_DEFINITION_PROVIDER, () => import('./acorex-modules-organization-management-job-level.datasource-
|
|
832
|
+
provideLazyProvider(AXP_DATASOURCE_DEFINITION_PROVIDER, () => import('./acorex-modules-organization-management-job-level.datasource-DibRoKXR.mjs').then((m) => m.AXMJobLevelDataSourceDefinition)),
|
|
1233
833
|
// Module Manifest Provider
|
|
1234
834
|
{
|
|
1235
835
|
provide: AXP_MODULE_MANIFEST_PROVIDER,
|
|
1236
836
|
useValue: OrganizationManagementManifest,
|
|
1237
837
|
multi: true,
|
|
1238
838
|
},
|
|
1239
|
-
provideLazyProvider(AXP_PERMISSION_DEFINITION_PROVIDER, () => import('./acorex-modules-organization-management-permission-definition.provider-
|
|
1240
|
-
provideLazyProvider(AXP_MENU_PROVIDER, () => import('./acorex-modules-organization-management-menu.provider-
|
|
1241
|
-
provideLazyProvider(AXP_ENTITY_DEFINITION_LOADER, () => import('./acorex-modules-organization-management-entity.provider-
|
|
1242
|
-
provideLazyProvider(AXP_FEATURE_DEFINITION_PROVIDER, () => import('./acorex-modules-organization-management-feature-definition.provider-
|
|
1243
|
-
provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-modules-organization-management-job-definition-pages-component.provider-
|
|
1244
|
-
provideLazyProvider(AXP_SETTING_DEFINITION_PROVIDER, () => import('./acorex-modules-organization-management-settings.provider-
|
|
839
|
+
provideLazyProvider(AXP_PERMISSION_DEFINITION_PROVIDER, () => import('./acorex-modules-organization-management-permission-definition.provider-BcIRJpBt.mjs').then((m) => m.AXMPermissionDefinitionProvider)),
|
|
840
|
+
provideLazyProvider(AXP_MENU_PROVIDER, () => import('./acorex-modules-organization-management-menu.provider-CQeJINzl.mjs').then((m) => m.AXMMenuProvider)),
|
|
841
|
+
provideLazyProvider(AXP_ENTITY_DEFINITION_LOADER, () => import('./acorex-modules-organization-management-entity.provider-DH3eUGTu.mjs').then((m) => m.AXMOrganizationModuleEntityProvider)),
|
|
842
|
+
provideLazyProvider(AXP_FEATURE_DEFINITION_PROVIDER, () => import('./acorex-modules-organization-management-feature-definition.provider-DuScrBze.mjs').then((m) => m.AXPOrganizationManagementFeatureDefinitionProvider)),
|
|
843
|
+
provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-modules-organization-management-job-definition-pages-component.provider-D-J9JCsU.mjs').then((m) => m.AXMJobDefinitionPagesComponentProvider)),
|
|
844
|
+
provideLazyProvider(AXP_SETTING_DEFINITION_PROVIDER, () => import('./acorex-modules-organization-management-settings.provider-CL9C9UXA.mjs').then((m) => m.AXMSettingProvider)),
|
|
1245
845
|
// Widgets must register eagerly: lazy registration can resolve after entity forms bind,
|
|
1246
846
|
// so module editors like responsibilities-matrix-editor would not be found (blank UI).
|
|
1247
847
|
{
|
|
@@ -1249,22 +849,9 @@ class AXMOrganizationManagementModule {
|
|
|
1249
849
|
useClass: AXMOrganizationManagementWidgetsProvider,
|
|
1250
850
|
multi: true,
|
|
1251
851
|
},
|
|
1252
|
-
{
|
|
1253
|
-
provide: AXM_ORG_CHART_NODE_CONTRIBUTOR,
|
|
1254
|
-
useClass: AXMOrgChartDefaultNodeContributionProvider,
|
|
1255
|
-
multi: true,
|
|
1256
|
-
},
|
|
1257
|
-
{
|
|
1258
|
-
provide: AXM_ORG_CHART_NODE_CONTRIBUTOR,
|
|
1259
|
-
useClass: AXMOrgChartPositionEmployeeNodeContributionProvider,
|
|
1260
|
-
multi: true,
|
|
1261
|
-
},
|
|
1262
|
-
provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.AddPositionToBusinessUnit, () => import('./acorex-modules-organization-management-add-position-to-business-unit.command-DbHKd1Nd.mjs').then((m) => m.AXMAddPositionToBusinessUnitCommand)),
|
|
1263
|
-
provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.AddBusinessUnitToBusinessUnit, () => import('./acorex-modules-organization-management-add-business-unit-to-business-unit.command-pnxqURIQ.mjs').then((m) => m.AXMAddBusinessUnitToBusinessUnitCommand)),
|
|
1264
|
-
provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.RemovePositionFromBusinessUnit, () => import('./acorex-modules-organization-management-remove-position-from-business-unit.command-CPdbVSno.mjs').then((m) => m.AXMRemovePositionFromBusinessUnitCommand)),
|
|
1265
|
-
provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.ReplacePositionAssignee, () => import('./acorex-modules-organization-management-replace-position-assignee.command-CQRcVN6R.mjs').then((m) => m.AXMReplacePositionAssigneeCommand)),
|
|
1266
852
|
], imports: [CommonModule,
|
|
1267
|
-
AXPWidgetCoreModule
|
|
853
|
+
AXPWidgetCoreModule,
|
|
854
|
+
AXMOrganizationChartModule] }); }
|
|
1268
855
|
}
|
|
1269
856
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrganizationManagementModule, decorators: [{
|
|
1270
857
|
type: NgModule,
|
|
@@ -1272,6 +859,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1272
859
|
imports: [
|
|
1273
860
|
CommonModule,
|
|
1274
861
|
AXPWidgetCoreModule,
|
|
862
|
+
AXMOrganizationChartModule,
|
|
1275
863
|
],
|
|
1276
864
|
providers: [
|
|
1277
865
|
provideLazyProvider(AXP_IDENTIFIER_RULES, () => import('./acorex-modules-organization-management-organization-code-identifier-rules.provider-pocBJezL.mjs').then((m) => m.AXMOrganizationBusinessUnitCodeIdentifierRule)),
|
|
@@ -1283,31 +871,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1283
871
|
multi: true,
|
|
1284
872
|
useFactory: routesFacory,
|
|
1285
873
|
},
|
|
1286
|
-
{
|
|
1287
|
-
provide: AXP_HOME_PAGES,
|
|
1288
|
-
multi: true,
|
|
1289
|
-
useFactory: () => [
|
|
1290
|
-
{
|
|
1291
|
-
key: 'organization-chart',
|
|
1292
|
-
title: 'Organization Chart',
|
|
1293
|
-
route: routesFactory(),
|
|
1294
|
-
},
|
|
1295
|
-
],
|
|
1296
|
-
},
|
|
1297
874
|
provideLazyProvider(AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, () => import('./acorex-modules-organization-management-data-source-evaluator-scope.provider-BrKtojM9.mjs').then((m) => m.AXMOrganizationManagementDataSourceEvaluatorScopeProvider)),
|
|
1298
|
-
provideLazyProvider(AXP_DATASOURCE_DEFINITION_PROVIDER, () => import('./acorex-modules-organization-management-job-level.datasource-
|
|
875
|
+
provideLazyProvider(AXP_DATASOURCE_DEFINITION_PROVIDER, () => import('./acorex-modules-organization-management-job-level.datasource-DibRoKXR.mjs').then((m) => m.AXMJobLevelDataSourceDefinition)),
|
|
1299
876
|
// Module Manifest Provider
|
|
1300
877
|
{
|
|
1301
878
|
provide: AXP_MODULE_MANIFEST_PROVIDER,
|
|
1302
879
|
useValue: OrganizationManagementManifest,
|
|
1303
880
|
multi: true,
|
|
1304
881
|
},
|
|
1305
|
-
provideLazyProvider(AXP_PERMISSION_DEFINITION_PROVIDER, () => import('./acorex-modules-organization-management-permission-definition.provider-
|
|
1306
|
-
provideLazyProvider(AXP_MENU_PROVIDER, () => import('./acorex-modules-organization-management-menu.provider-
|
|
1307
|
-
provideLazyProvider(AXP_ENTITY_DEFINITION_LOADER, () => import('./acorex-modules-organization-management-entity.provider-
|
|
1308
|
-
provideLazyProvider(AXP_FEATURE_DEFINITION_PROVIDER, () => import('./acorex-modules-organization-management-feature-definition.provider-
|
|
1309
|
-
provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-modules-organization-management-job-definition-pages-component.provider-
|
|
1310
|
-
provideLazyProvider(AXP_SETTING_DEFINITION_PROVIDER, () => import('./acorex-modules-organization-management-settings.provider-
|
|
882
|
+
provideLazyProvider(AXP_PERMISSION_DEFINITION_PROVIDER, () => import('./acorex-modules-organization-management-permission-definition.provider-BcIRJpBt.mjs').then((m) => m.AXMPermissionDefinitionProvider)),
|
|
883
|
+
provideLazyProvider(AXP_MENU_PROVIDER, () => import('./acorex-modules-organization-management-menu.provider-CQeJINzl.mjs').then((m) => m.AXMMenuProvider)),
|
|
884
|
+
provideLazyProvider(AXP_ENTITY_DEFINITION_LOADER, () => import('./acorex-modules-organization-management-entity.provider-DH3eUGTu.mjs').then((m) => m.AXMOrganizationModuleEntityProvider)),
|
|
885
|
+
provideLazyProvider(AXP_FEATURE_DEFINITION_PROVIDER, () => import('./acorex-modules-organization-management-feature-definition.provider-DuScrBze.mjs').then((m) => m.AXPOrganizationManagementFeatureDefinitionProvider)),
|
|
886
|
+
provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-modules-organization-management-job-definition-pages-component.provider-D-J9JCsU.mjs').then((m) => m.AXMJobDefinitionPagesComponentProvider)),
|
|
887
|
+
provideLazyProvider(AXP_SETTING_DEFINITION_PROVIDER, () => import('./acorex-modules-organization-management-settings.provider-CL9C9UXA.mjs').then((m) => m.AXMSettingProvider)),
|
|
1311
888
|
// Widgets must register eagerly: lazy registration can resolve after entity forms bind,
|
|
1312
889
|
// so module editors like responsibilities-matrix-editor would not be found (blank UI).
|
|
1313
890
|
{
|
|
@@ -1315,20 +892,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1315
892
|
useClass: AXMOrganizationManagementWidgetsProvider,
|
|
1316
893
|
multi: true,
|
|
1317
894
|
},
|
|
1318
|
-
{
|
|
1319
|
-
provide: AXM_ORG_CHART_NODE_CONTRIBUTOR,
|
|
1320
|
-
useClass: AXMOrgChartDefaultNodeContributionProvider,
|
|
1321
|
-
multi: true,
|
|
1322
|
-
},
|
|
1323
|
-
{
|
|
1324
|
-
provide: AXM_ORG_CHART_NODE_CONTRIBUTOR,
|
|
1325
|
-
useClass: AXMOrgChartPositionEmployeeNodeContributionProvider,
|
|
1326
|
-
multi: true,
|
|
1327
|
-
},
|
|
1328
|
-
provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.AddPositionToBusinessUnit, () => import('./acorex-modules-organization-management-add-position-to-business-unit.command-DbHKd1Nd.mjs').then((m) => m.AXMAddPositionToBusinessUnitCommand)),
|
|
1329
|
-
provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.AddBusinessUnitToBusinessUnit, () => import('./acorex-modules-organization-management-add-business-unit-to-business-unit.command-pnxqURIQ.mjs').then((m) => m.AXMAddBusinessUnitToBusinessUnitCommand)),
|
|
1330
|
-
provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.RemovePositionFromBusinessUnit, () => import('./acorex-modules-organization-management-remove-position-from-business-unit.command-CPdbVSno.mjs').then((m) => m.AXMRemovePositionFromBusinessUnitCommand)),
|
|
1331
|
-
provideCommand(AXMOrganizationManagementCommandKeys.OrganizationChart.ReplacePositionAssignee, () => import('./acorex-modules-organization-management-replace-position-assignee.command-CQRcVN6R.mjs').then((m) => m.AXMReplacePositionAssigneeCommand)),
|
|
1332
895
|
],
|
|
1333
896
|
}]
|
|
1334
897
|
}] });
|
|
@@ -1337,5 +900,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1337
900
|
* Generated bundle index. Do not edit.
|
|
1338
901
|
*/
|
|
1339
902
|
|
|
1340
|
-
export { AXM_ORG_CHART_HOST as A, RootConfig as R, AXMOrgChartNodeType as a, AXM_ORG_CHART_NODE_CONTRIBUTOR as b, AXPOrganizationManagementSettings as c, AXMOrgChartStructureRefreshHub as d, AXMOrgChartCategory as e,
|
|
1341
|
-
//# sourceMappingURL=acorex-modules-organization-management-acorex-modules-organization-management-
|
|
903
|
+
export { AXM_ORG_CHART_HOST as A, RootConfig as R, AXMOrgChartNodeType as a, AXM_ORG_CHART_NODE_CONTRIBUTOR as b, AXPOrganizationManagementSettings as c, AXMOrgChartStructureRefreshHub as d, AXMOrgChartCategory as e, AXM_ORG_CHART_EMPLOYEE_SUBMENU_GROUP_ID as f, AXMOrgChartDetailPanelComponent as g, AXMOrganizationManagementCommandKeys as h, AXM_HCM_POSITION_ASSIGNMENT_ASSIGN_COMMAND as i, axmResolveOrgChartFlyoutEmployeeId as j, AXM_ORG_CHART_EMPLOYEE_SUBMENU_ICON as k, AXM_ORG_CHART_EMPLOYEE_SUBMENU_TITLE_I18N_KEY as l, AXM_ORG_CHART_LAYOUT_SUBMENU_ICON as m, normalizeVacantLeafSeatsSetting as n, AXM_ORG_CHART_LAYOUT_SUBMENU_TITLE_I18N_KEY as o, parseOrgChartMode as p, AXM_ORG_CHART_LAYOUT_SUBMENU_GROUP_ID as q, AXM_HCM_POSITION_ASSIGNMENT_REVOKE_COMMAND as r, AXMOrganizationManagementModule as s, AXM_ORG_CHART_COMMUNICATION_SUBMENU_GROUP_ID as t, AXM_ORG_CHART_COMMUNICATION_SUBMENU_ICON as u, AXM_ORG_CHART_COMMUNICATION_SUBMENU_TITLE_I18N_KEY as v, AXM_ORG_CHART_STRUCTURE_SCHEMA_VERSION as w, factory as x, businessUnitType_entity as y };
|
|
904
|
+
//# sourceMappingURL=acorex-modules-organization-management-acorex-modules-organization-management-CGzZcKEy.mjs.map
|