@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
|
@@ -5,7 +5,7 @@ import { CommonModule } from '@angular/common';
|
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
6
|
import { output, inject, viewChild, computed, signal, effect, ChangeDetectionStrategy, Component, NgModule, InjectionToken, DestroyRef, Injectable, Injector } from '@angular/core';
|
|
7
7
|
import { AXP_HOME_PAGES, AXPSearchCommandProvider, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER, createAllQueryView, AXPEntityCommandScope } from '@acorex/platform/common';
|
|
8
|
-
import {
|
|
8
|
+
import { AXPSessionService, AXPAuthGuard, AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex/platform/auth';
|
|
9
9
|
import { ROUTES, RouterLink } from '@angular/router';
|
|
10
10
|
import { AXButtonComponent } from '@acorex/components/button';
|
|
11
11
|
import { AXChipsComponent } from '@acorex/components/chips';
|
|
@@ -22,6 +22,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
|
22
22
|
import { Subject } from 'rxjs';
|
|
23
23
|
import { AXP_APPEARANCE_PROPERTY_GROUP, AXP_DATA_PATH_PROPERTY } from '@acorex/platform/layout/widgets';
|
|
24
24
|
import { AXDataSource } from '@acorex/cdk/common';
|
|
25
|
+
import { AXMUsersEntityService } from '@acorex/modules/security-management';
|
|
25
26
|
import { AXPWidgetsList } from '@acorex/modules/common';
|
|
26
27
|
|
|
27
28
|
const config = {
|
|
@@ -492,7 +493,7 @@ const AXPTaskBoardWidget = {
|
|
|
492
493
|
multiple: true,
|
|
493
494
|
valueField: 'id',
|
|
494
495
|
allowSearch: true,
|
|
495
|
-
dataSource: '
|
|
496
|
+
dataSource: 'task-board-assignees',
|
|
496
497
|
textField: 'displayName',
|
|
497
498
|
},
|
|
498
499
|
},
|
|
@@ -626,6 +627,144 @@ class AXPTaskTypeDataSourceDefinition {
|
|
|
626
627
|
}
|
|
627
628
|
}
|
|
628
629
|
|
|
630
|
+
const AXMPermissionsKeys = {
|
|
631
|
+
TaskManagement: {
|
|
632
|
+
Management: 'TaskManagement:Permission:Management',
|
|
633
|
+
Task: {
|
|
634
|
+
Management: 'TaskManagement:Permission:Task.Management',
|
|
635
|
+
ViewAll: 'TaskManagement:Permission:Task.ViewAll',
|
|
636
|
+
},
|
|
637
|
+
},
|
|
638
|
+
};
|
|
639
|
+
|
|
640
|
+
//#region ---- Imports ----
|
|
641
|
+
//#endregion
|
|
642
|
+
//#region ---- Permission Helpers ----
|
|
643
|
+
/** Permission to view and filter tasks across all assignees on the task board. */
|
|
644
|
+
const AXM_TASK_VIEW_ALL_PERMISSION = AXMPermissionsKeys.TaskManagement.Task.ViewAll;
|
|
645
|
+
/**
|
|
646
|
+
* Returns whether the current session may filter tasks by any assignee.
|
|
647
|
+
*/
|
|
648
|
+
function canViewAllTaskAssignees(sessionService) {
|
|
649
|
+
return sessionService.authorize(AXM_TASK_VIEW_ALL_PERMISSION);
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* Restricts assignee filter ids to the current user when {@link canViewAllTaskAssignees} is false.
|
|
653
|
+
*/
|
|
654
|
+
function normalizeTaskBoardAssigneeIds(sessionService, assigneeIds) {
|
|
655
|
+
if (canViewAllTaskAssignees(sessionService)) {
|
|
656
|
+
return assigneeIds;
|
|
657
|
+
}
|
|
658
|
+
const currentUserId = sessionService.user?.id;
|
|
659
|
+
return currentUserId != null ? [currentUserId] : [];
|
|
660
|
+
}
|
|
661
|
+
//#endregion
|
|
662
|
+
|
|
663
|
+
//#region ---- Imports ----
|
|
664
|
+
//#endregion
|
|
665
|
+
//#region ---- Data Source ----
|
|
666
|
+
/** Task-board assignee picker: all users when permitted, otherwise only the signed-in user. */
|
|
667
|
+
class AXMTaskBoardAssigneeDataSourceDefinition {
|
|
668
|
+
constructor() {
|
|
669
|
+
this.userService = inject(AXMUsersEntityService);
|
|
670
|
+
this.sessionService = inject(AXPSessionService);
|
|
671
|
+
}
|
|
672
|
+
items() {
|
|
673
|
+
return Promise.resolve([
|
|
674
|
+
{
|
|
675
|
+
name: 'task-board-assignees',
|
|
676
|
+
title: 'Task Board Assignees',
|
|
677
|
+
source: () => {
|
|
678
|
+
return new AXDataSource({
|
|
679
|
+
key: 'id',
|
|
680
|
+
load: async () => {
|
|
681
|
+
const currentUser = this.sessionService.user;
|
|
682
|
+
if (!canViewAllTaskAssignees(this.sessionService)) {
|
|
683
|
+
if (!currentUser?.id) {
|
|
684
|
+
return { items: [], total: 0 };
|
|
685
|
+
}
|
|
686
|
+
const selfItem = {
|
|
687
|
+
id: currentUser.id,
|
|
688
|
+
displayName: currentUser.title || currentUser.name,
|
|
689
|
+
username: currentUser.name,
|
|
690
|
+
};
|
|
691
|
+
return { items: [selfItem], total: 1 };
|
|
692
|
+
}
|
|
693
|
+
const res = await this.userService.query();
|
|
694
|
+
const items = res.items.map((item) => ({
|
|
695
|
+
...item,
|
|
696
|
+
displayName: item.displayName,
|
|
697
|
+
}));
|
|
698
|
+
return { items, total: res.total };
|
|
699
|
+
},
|
|
700
|
+
byKey: async (key) => {
|
|
701
|
+
const userId = key;
|
|
702
|
+
if (!canViewAllTaskAssignees(this.sessionService)) {
|
|
703
|
+
const currentUser = this.sessionService.user;
|
|
704
|
+
if (!currentUser?.id || currentUser.id !== userId) {
|
|
705
|
+
return null;
|
|
706
|
+
}
|
|
707
|
+
return {
|
|
708
|
+
id: currentUser.id,
|
|
709
|
+
displayName: currentUser.title || currentUser.name,
|
|
710
|
+
username: currentUser.name,
|
|
711
|
+
};
|
|
712
|
+
}
|
|
713
|
+
return await this.userService.getOne(userId);
|
|
714
|
+
},
|
|
715
|
+
pageSize: 100,
|
|
716
|
+
});
|
|
717
|
+
},
|
|
718
|
+
columns: [
|
|
719
|
+
{
|
|
720
|
+
name: 'id',
|
|
721
|
+
title: 'ID',
|
|
722
|
+
datatype: 'uuid',
|
|
723
|
+
type: AXPWidgetsCatalog.text,
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
name: 'displayName',
|
|
727
|
+
title: 'Display Name',
|
|
728
|
+
datatype: 'string',
|
|
729
|
+
type: AXPWidgetsCatalog.text,
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
name: 'username',
|
|
733
|
+
title: 'Username',
|
|
734
|
+
datatype: 'string',
|
|
735
|
+
type: AXPWidgetsCatalog.text,
|
|
736
|
+
},
|
|
737
|
+
],
|
|
738
|
+
filters: [
|
|
739
|
+
{
|
|
740
|
+
field: 'username',
|
|
741
|
+
title: 'Username',
|
|
742
|
+
operator: {
|
|
743
|
+
type: 'equal',
|
|
744
|
+
},
|
|
745
|
+
widget: {
|
|
746
|
+
type: AXPWidgetsCatalog.text,
|
|
747
|
+
},
|
|
748
|
+
filterType: {
|
|
749
|
+
advance: true,
|
|
750
|
+
inline: true,
|
|
751
|
+
},
|
|
752
|
+
},
|
|
753
|
+
],
|
|
754
|
+
textField: {
|
|
755
|
+
name: 'displayName',
|
|
756
|
+
title: 'Display Name',
|
|
757
|
+
},
|
|
758
|
+
valueField: {
|
|
759
|
+
name: 'id',
|
|
760
|
+
title: 'ID',
|
|
761
|
+
},
|
|
762
|
+
},
|
|
763
|
+
]);
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
//#endregion
|
|
767
|
+
|
|
629
768
|
function createAppRoute() {
|
|
630
769
|
const config = inject(AXP_ENTITY_CONFIG_TOKEN);
|
|
631
770
|
return {
|
|
@@ -637,7 +776,7 @@ function createAppRoute() {
|
|
|
637
776
|
children: [
|
|
638
777
|
{
|
|
639
778
|
path: '',
|
|
640
|
-
loadComponent: () => import('./acorex-modules-task-management-task-board.page-
|
|
779
|
+
loadComponent: () => import('./acorex-modules-task-management-task-board.page-C6j-_aSD.mjs').then((c) => c.AXMTaskBoardPage),
|
|
641
780
|
},
|
|
642
781
|
],
|
|
643
782
|
};
|
|
@@ -671,6 +810,11 @@ class AXPTaskBoardModule {
|
|
|
671
810
|
useClass: AXPTaskTypeDataSourceDefinition,
|
|
672
811
|
multi: true,
|
|
673
812
|
},
|
|
813
|
+
{
|
|
814
|
+
provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
|
|
815
|
+
useClass: AXMTaskBoardAssigneeDataSourceDefinition,
|
|
816
|
+
multi: true,
|
|
817
|
+
},
|
|
674
818
|
] }); }
|
|
675
819
|
}
|
|
676
820
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPTaskBoardModule, decorators: [{
|
|
@@ -699,6 +843,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
699
843
|
useClass: AXPTaskTypeDataSourceDefinition,
|
|
700
844
|
multi: true,
|
|
701
845
|
},
|
|
846
|
+
{
|
|
847
|
+
provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
|
|
848
|
+
useClass: AXMTaskBoardAssigneeDataSourceDefinition,
|
|
849
|
+
multi: true,
|
|
850
|
+
},
|
|
702
851
|
],
|
|
703
852
|
}]
|
|
704
853
|
}] });
|
|
@@ -972,6 +1121,7 @@ class AXPTaskBoardShortcutViewComponent extends AXPLayoutBaseWidgetComponent {
|
|
|
972
1121
|
constructor() {
|
|
973
1122
|
super(...arguments);
|
|
974
1123
|
this.taskBoardService = inject(AXPTaskBoardService);
|
|
1124
|
+
this.sessionService = inject(AXPSessionService);
|
|
975
1125
|
this.tasksCount = signal(0, ...(ngDevMode ? [{ debugName: "tasksCount" }] : /* istanbul ignore next */ []));
|
|
976
1126
|
this.assignee = computed(() => this.options()?.['assignee'] ?? [], ...(ngDevMode ? [{ debugName: "assignee" }] : /* istanbul ignore next */ []));
|
|
977
1127
|
this.priority = computed(() => this.options()?.['priority'] ?? [], ...(ngDevMode ? [{ debugName: "priority" }] : /* istanbul ignore next */ []));
|
|
@@ -985,7 +1135,7 @@ class AXPTaskBoardShortcutViewComponent extends AXPLayoutBaseWidgetComponent {
|
|
|
985
1135
|
}, ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
986
1136
|
this.queryParams = computed(() => {
|
|
987
1137
|
const dateRange = this.dateRange().name;
|
|
988
|
-
const assignee = this.assignee().map((a) => a.id);
|
|
1138
|
+
const assignee = normalizeTaskBoardAssigneeIds(this.sessionService, this.assignee().map((a) => a.id)).map(String);
|
|
989
1139
|
const priority = this.priority().map((p) => p.name);
|
|
990
1140
|
const type = this.selectedTaskTypes().map((t) => t.name);
|
|
991
1141
|
return { type, priority, assignee, dateRange };
|
|
@@ -1085,7 +1235,7 @@ const AXPTaskBoardShortcut = {
|
|
|
1085
1235
|
multiple: true,
|
|
1086
1236
|
valueField: 'id',
|
|
1087
1237
|
allowSearch: true,
|
|
1088
|
-
dataSource: '
|
|
1238
|
+
dataSource: 'task-board-assignees',
|
|
1089
1239
|
textField: 'displayName',
|
|
1090
1240
|
},
|
|
1091
1241
|
},
|
|
@@ -1183,17 +1333,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1183
1333
|
type: Injectable
|
|
1184
1334
|
}] });
|
|
1185
1335
|
|
|
1336
|
+
//#region ---- Imports ----
|
|
1337
|
+
//#endregion
|
|
1338
|
+
//#region ---- Permission Definition Provider ----
|
|
1186
1339
|
class AXMPermissionDefinitionProvider {
|
|
1340
|
+
constructor() {
|
|
1341
|
+
this.translationService = inject(AXTranslationService);
|
|
1342
|
+
}
|
|
1187
1343
|
async define(context) {
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1344
|
+
const keys = AXMPermissionsKeys.TaskManagement;
|
|
1345
|
+
const moduleTitle = await this.translationService.translateAsync('@task-management:module.title');
|
|
1346
|
+
const taskTrans = (action) => this.translationService.translateAsync(`@task-management:task.permissions.task.${action}.title`);
|
|
1347
|
+
const taskDescTrans = (action) => this.translationService.translateAsync(`@task-management:task.permissions.task.${action}.description`);
|
|
1348
|
+
context
|
|
1349
|
+
.addGroup(RootConfig.module.name, moduleTitle)
|
|
1350
|
+
.addPermission(keys.Task.Management, await taskTrans('manage'))
|
|
1351
|
+
.addChild(keys.Task.ViewAll, await taskTrans('view-all'), await taskDescTrans('view-all'))
|
|
1352
|
+
.endPermission()
|
|
1353
|
+
.endGroup();
|
|
1195
1354
|
}
|
|
1355
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMPermissionDefinitionProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1356
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMPermissionDefinitionProvider }); }
|
|
1196
1357
|
}
|
|
1358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMPermissionDefinitionProvider, decorators: [{
|
|
1359
|
+
type: Injectable
|
|
1360
|
+
}] });
|
|
1197
1361
|
|
|
1198
1362
|
const AXPTaskManagementMenuKeys = {
|
|
1199
1363
|
Root: 'task-management:menu',
|
|
@@ -6059,5 +6223,5 @@ var taskTemplate_entity = /*#__PURE__*/Object.freeze({
|
|
|
6059
6223
|
* Generated bundle index. Do not edit.
|
|
6060
6224
|
*/
|
|
6061
6225
|
|
|
6062
|
-
export { AXM_TASK_BOARD_ALL_VIEW_MODE_IDS as A,
|
|
6063
|
-
//# sourceMappingURL=acorex-modules-task-management-acorex-modules-task-management-
|
|
6226
|
+
export { AXM_TASK_BOARD_ALL_VIEW_MODE_IDS as A, taskDependencyFactory as B, taskFactory as C, taskStatusFactory as D, taskTemplateFactory as E, taskTypeFactory as F, timeLogFactory as G, RootConfig as R, AXMTaskBoardSettings as a, normalizeVisibleTaskBoardModesByParts as b, canViewAllTaskAssignees as c, AXPTaskBoardService as d, AXMPermissionsKeys as e, AXMSearchCommandProvider as f, AXMSettingProvider as g, AXMTaskManagementEntityProvider as h, AXMTaskManagementMenuProvider as i, AXMTaskManagementModule as j, AXPTaskBoardModule as k, AXPTaskBoardShortcut as l, AXPTaskBoardShortcutViewComponent as m, normalizeTaskBoardAssigneeIds as n, AXPTaskBoardWidget as o, AXPTaskBoardWidgetViewComponent as p, AXPTaskPopoverComponent as q, AXPTaskTypeDataSourceDefinition as r, AXPWorkflowTaskProvider as s, AXP_TASK_MANAGEMENT_DASHBOARD_SUB_BOARD as t, AXP_TASK_MANAGEMENT_DASHBOARD_SUB_SHORTCUT as u, AXP_TASK_MANAGEMENT_DASHBOARD_WIDGET_CATEGORY as v, AXP_WORKFLOW_TASK_PROVIDER as w, taskAssignmentFactory as x, taskChecklistItemFactory as y, taskContextFactory as z };
|
|
6227
|
+
//# sourceMappingURL=acorex-modules-task-management-acorex-modules-task-management-DDUq9FpA.mjs.map
|