@acorex/modules 20.3.0-next.3 → 20.3.0-next.5
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-content-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-DDriJFmP.mjs → acorex-modules-document-management-acorex-modules-document-management-DhEDQZru.mjs} +122 -80
- package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-DDriJFmP.mjs.map → acorex-modules-document-management-acorex-modules-document-management-DhEDQZru.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-OYJu4IJz.mjs → acorex-modules-document-management-attachment-widget.component-Bx2Ps7uX.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-OYJu4IJz.mjs.map → acorex-modules-document-management-attachment-widget.component-Bx2Ps7uX.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-CZzlGMcu.mjs → acorex-modules-document-management-create-folder-dialog.component-B26m8qWj.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-CZzlGMcu.mjs.map → acorex-modules-document-management-create-folder-dialog.component-B26m8qWj.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-details-view.component-VdV7xGPS.mjs → acorex-modules-document-management-details-view.component-3DmulyK_.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-details-view.component-VdV7xGPS.mjs.map → acorex-modules-document-management-details-view.component-3DmulyK_.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-document-signature-popup.component-Gi0_m0oe.mjs → acorex-modules-document-management-document-signature-popup.component-DmR6gFdD.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-document-signature-popup.component-Gi0_m0oe.mjs.map → acorex-modules-document-management-document-signature-popup.component-DmR6gFdD.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-BgRZ_nhs.mjs → acorex-modules-document-management-drive-choose.component-BNyPOrzl.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-BgRZ_nhs.mjs.map → acorex-modules-document-management-drive-choose.component-BNyPOrzl.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive.component-BRCGsnuI.mjs → acorex-modules-document-management-drive.component-D5X_bI5D.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-drive.component-BRCGsnuI.mjs.map → acorex-modules-document-management-drive.component-D5X_bI5D.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-CnsPx3K3.mjs → acorex-modules-document-management-large-icons-view.component-AzDtXQqt.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-CnsPx3K3.mjs.map → acorex-modules-document-management-large-icons-view.component-AzDtXQqt.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-D4OUme1W.mjs → acorex-modules-document-management-large-tiles-view.component-DCG_v9JT.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-D4OUme1W.mjs.map → acorex-modules-document-management-large-tiles-view.component-DCG_v9JT.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-list-view.component-C7i4jI9h.mjs → acorex-modules-document-management-list-view.component-Cb2OVElN.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-list-view.component-C7i4jI9h.mjs.map → acorex-modules-document-management-list-view.component-Cb2OVElN.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-DHVn7RIv.mjs → acorex-modules-document-management-rename-node-dialog.component-B7gcoDDb.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-DHVn7RIv.mjs.map → acorex-modules-document-management-rename-node-dialog.component-B7gcoDDb.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-By36moe5.mjs → acorex-modules-document-management-small-icons-view.component-EN4ttbvx.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-By36moe5.mjs.map → acorex-modules-document-management-small-icons-view.component-EN4ttbvx.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-CO6MfsEU.mjs → acorex-modules-document-management-small-tiles-view.component-C-HjbNwe.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-CO6MfsEU.mjs.map → acorex-modules-document-management-small-tiles-view.component-C-HjbNwe.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-acorex-modules-human-capital-management-WkDn4mpE.mjs → acorex-modules-human-capital-management-acorex-modules-human-capital-management-BQ_KNd7M.mjs} +23 -12
- package/fesm2022/{acorex-modules-human-capital-management-acorex-modules-human-capital-management-WkDn4mpE.mjs.map → acorex-modules-human-capital-management-acorex-modules-human-capital-management-BQ_KNd7M.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-employee-skill.entity-DsUYujPr.mjs → acorex-modules-human-capital-management-employee-skill.entity-3wofaUXu.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-employee-skill.entity-DsUYujPr.mjs.map → acorex-modules-human-capital-management-employee-skill.entity-3wofaUXu.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-employee.entity-CC-LIIki.mjs → acorex-modules-human-capital-management-employee.entity-1fVathnk.mjs} +10 -8
- package/fesm2022/acorex-modules-human-capital-management-employee.entity-1fVathnk.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-Mgkdm2vo.mjs → acorex-modules-human-capital-management-employment-type.entity-BWrwli0P.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-Mgkdm2vo.mjs.map → acorex-modules-human-capital-management-employment-type.entity-BWrwli0P.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-BJyciZGL.mjs → acorex-modules-human-capital-management-leave-request.entity-4ddc6R_K.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-BJyciZGL.mjs.map → acorex-modules-human-capital-management-leave-request.entity-4ddc6R_K.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-IewYlMLV.mjs → acorex-modules-human-capital-management-leave-type.entity-DYYJVRju.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-IewYlMLV.mjs.map → acorex-modules-human-capital-management-leave-type.entity-DYYJVRju.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-BlKFRnO0.mjs → acorex-modules-human-capital-management-position-assignment.entity-DIqdhqk4.mjs} +7 -53
- package/fesm2022/acorex-modules-human-capital-management-position-assignment.entity-DIqdhqk4.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-skill-level.entity-De1qKpcU.mjs → acorex-modules-human-capital-management-skill-level.entity-BN67pBaa.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-skill-level.entity-De1qKpcU.mjs.map → acorex-modules-human-capital-management-skill-level.entity-BN67pBaa.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-skill.entity-RrnBU0M5.mjs → acorex-modules-human-capital-management-skill.entity-D4CglCC7.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-skill.entity-RrnBU0M5.mjs.map → acorex-modules-human-capital-management-skill.entity-D4CglCC7.mjs.map} +1 -1
- package/fesm2022/acorex-modules-human-capital-management.mjs +1 -1
- package/fesm2022/acorex-modules-organization-management-org-chart.page-keZ4Gk7y.mjs +544 -0
- package/fesm2022/acorex-modules-organization-management-org-chart.page-keZ4Gk7y.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-position.entity-DK-i78ck.mjs → acorex-modules-organization-management-position.entity-CzBbuApR.mjs} +47 -1
- package/fesm2022/acorex-modules-organization-management-position.entity-CzBbuApR.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-settings.provider-feVwZnkw.mjs → acorex-modules-organization-management-settings.provider-BvOAb0jb.mjs} +21 -2
- package/fesm2022/acorex-modules-organization-management-settings.provider-BvOAb0jb.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management.mjs +358 -240
- package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-report-management.mjs +76 -16
- package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-settings-management-setting-page.component-Y-liTcuX.mjs → acorex-modules-settings-management-setting-page.component-IG1o_0Dp.mjs} +17 -14
- package/fesm2022/acorex-modules-settings-management-setting-page.component-IG1o_0Dp.mjs.map +1 -0
- package/fesm2022/acorex-modules-settings-management.mjs +1 -1
- package/fesm2022/acorex-modules-settings-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-task-management.mjs +0 -3
- package/fesm2022/acorex-modules-task-management.mjs.map +1 -1
- package/organization-management/README.md +98 -2
- package/organization-management/index.d.ts +44 -123
- package/package.json +1 -1
- package/report-management/index.d.ts +31 -3
- package/fesm2022/acorex-modules-human-capital-management-employee.entity-CC-LIIki.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-position-assignment.entity-BlKFRnO0.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-add-item.component-CtuULLkY.mjs +0 -89
- package/fesm2022/acorex-modules-organization-management-add-item.component-CtuULLkY.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-branch.entity-C4Le6Kv6.mjs +0 -317
- package/fesm2022/acorex-modules-organization-management-branch.entity-C4Le6Kv6.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-department.entity-BkEbajpN.mjs +0 -288
- package/fesm2022/acorex-modules-organization-management-department.entity-BkEbajpN.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-division.entity-Cds8jkR5.mjs +0 -515
- package/fesm2022/acorex-modules-organization-management-division.entity-Cds8jkR5.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-org-chart-configuration.page-DfwjhVRX.mjs +0 -116
- package/fesm2022/acorex-modules-organization-management-org-chart-configuration.page-DfwjhVRX.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-org-chart-configuration.service-D7NlQXp2.mjs +0 -147
- package/fesm2022/acorex-modules-organization-management-org-chart-configuration.service-D7NlQXp2.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-org-chart.page-DeqD7PyH.mjs +0 -989
- package/fesm2022/acorex-modules-organization-management-org-chart.page-DeqD7PyH.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-position.entity-DK-i78ck.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-settings.keys-B3cgSi_S.mjs +0 -22
- package/fesm2022/acorex-modules-organization-management-settings.keys-B3cgSi_S.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-settings.provider-feVwZnkw.mjs.map +0 -1
- package/fesm2022/acorex-modules-settings-management-setting-page.component-Y-liTcuX.mjs.map +0 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { AXMEntityCrudServiceImpl, AXPEntityService, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
|
1
|
+
import { AXMEntityCrudServiceImpl, entityMasterCrudActions, entityMasterRecordActions, AXPEntityService, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { Injectable, NgModule, inject, Injector } from '@angular/core';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import { AXPSessionService, AXPAuthGuard } from '@acorex/platform/auth';
|
|
6
|
-
import { AXP_SETTING_DEFINITION_PROVIDER, AXP_MENU_PROVIDER, AXP_HOME_PAGES } from '@acorex/platform/common';
|
|
6
|
+
import { createAllQueryView, AXPEntityQueryType, AXP_SETTING_DEFINITION_PROVIDER, AXP_MENU_PROVIDER, AXP_HOME_PAGES } from '@acorex/platform/common';
|
|
7
7
|
import { ROUTES } from '@angular/router';
|
|
8
8
|
import { AXDataSource } from '@acorex/cdk/common';
|
|
9
9
|
import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
|
|
10
|
+
import { AXPWidgetsList } from '@acorex/modules/common';
|
|
10
11
|
import { firstValueFrom } from 'rxjs';
|
|
11
12
|
import { AXP_DATASOURCE_DEFINITION_PROVIDER } from '@acorex/platform/core';
|
|
12
13
|
|
|
@@ -41,26 +42,6 @@ const RootConfig = {
|
|
|
41
42
|
title: `t("company.individual-title", {scope:"${config.i18n}"})`,
|
|
42
43
|
icon: 'fa-light fa-building',
|
|
43
44
|
},
|
|
44
|
-
division: {
|
|
45
|
-
name: 'Division',
|
|
46
|
-
source: `${config.module}.Division`,
|
|
47
|
-
title: `t("division.individual-title",{scope:"${config.i18n}"})`,
|
|
48
|
-
icon: 'fa-light fa-sitemap',
|
|
49
|
-
fullname: 'OrganizationManagement.Division',
|
|
50
|
-
},
|
|
51
|
-
department: {
|
|
52
|
-
name: 'Department',
|
|
53
|
-
source: `${config.module}.Department`,
|
|
54
|
-
title: `t("department.individual-title",{scope:"${config.i18n}"})`,
|
|
55
|
-
icon: 'fa-light fa-building-user',
|
|
56
|
-
},
|
|
57
|
-
branch: {
|
|
58
|
-
name: 'Branch',
|
|
59
|
-
source: `${config.module}.Branch`,
|
|
60
|
-
title: `t("branch.individual-title",{scope:"${config.i18n}"})`,
|
|
61
|
-
icon: 'fa-light fa-network-wired',
|
|
62
|
-
fullname: 'OrganizationManagement.Branch',
|
|
63
|
-
},
|
|
64
45
|
team: {
|
|
65
46
|
name: 'Team',
|
|
66
47
|
source: `${config.module}.Team`,
|
|
@@ -73,6 +54,18 @@ const RootConfig = {
|
|
|
73
54
|
title: `t("position.individual-title",{scope:"${config.i18n}"})`,
|
|
74
55
|
icon: 'fa-light fa-briefcase',
|
|
75
56
|
},
|
|
57
|
+
businessUnitType: {
|
|
58
|
+
name: 'BusinessUnitType',
|
|
59
|
+
source: `${config.module}.BusinessUnitType`,
|
|
60
|
+
title: `t("business-unit-type.individual-title",{scope:"${config.i18n}"})`,
|
|
61
|
+
icon: 'fa-light fa-tag',
|
|
62
|
+
},
|
|
63
|
+
businessUnit: {
|
|
64
|
+
name: 'BusinessUnit',
|
|
65
|
+
source: `${config.module}.BusinessUnit`,
|
|
66
|
+
title: `t("business-unit.individual-title",{scope:"${config.i18n}"})`,
|
|
67
|
+
icon: 'fa-light fa-sitemap',
|
|
68
|
+
},
|
|
76
69
|
structure: {
|
|
77
70
|
name: 'ChartStructure',
|
|
78
71
|
source: `${config.module}.ChartStructure`,
|
|
@@ -94,44 +87,6 @@ const RootConfig = {
|
|
|
94
87
|
},
|
|
95
88
|
};
|
|
96
89
|
|
|
97
|
-
class AXMOrganizationManagementBranchEntityService extends AXMEntityCrudServiceImpl {
|
|
98
|
-
}
|
|
99
|
-
class AXMOrganizationManagementBranchEntityServiceImpl extends AXMOrganizationManagementBranchEntityService {
|
|
100
|
-
constructor() {
|
|
101
|
-
super(`${RootConfig.module.name}.${RootConfig.entities.branch.name}`);
|
|
102
|
-
}
|
|
103
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBranchEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
104
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBranchEntityServiceImpl }); }
|
|
105
|
-
}
|
|
106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBranchEntityServiceImpl, decorators: [{
|
|
107
|
-
type: Injectable
|
|
108
|
-
}], ctorParameters: () => [] });
|
|
109
|
-
|
|
110
|
-
class AXMOrganizationManagementBranchEntityModule {
|
|
111
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBranchEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
112
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBranchEntityModule }); }
|
|
113
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBranchEntityModule, providers: [
|
|
114
|
-
{
|
|
115
|
-
provide: AXMOrganizationManagementBranchEntityService,
|
|
116
|
-
useClass: AXMOrganizationManagementBranchEntityServiceImpl,
|
|
117
|
-
},
|
|
118
|
-
] }); }
|
|
119
|
-
}
|
|
120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBranchEntityModule, decorators: [{
|
|
121
|
-
type: NgModule,
|
|
122
|
-
args: [{
|
|
123
|
-
imports: [],
|
|
124
|
-
exports: [],
|
|
125
|
-
declarations: [],
|
|
126
|
-
providers: [
|
|
127
|
-
{
|
|
128
|
-
provide: AXMOrganizationManagementBranchEntityService,
|
|
129
|
-
useClass: AXMOrganizationManagementBranchEntityServiceImpl,
|
|
130
|
-
},
|
|
131
|
-
],
|
|
132
|
-
}]
|
|
133
|
-
}] });
|
|
134
|
-
|
|
135
90
|
class AXMOrganizationManagementChartEntityService extends AXMEntityCrudServiceImpl {
|
|
136
91
|
}
|
|
137
92
|
class AXMOrganizationManagementChartEntityServiceImpl extends AXMOrganizationManagementChartEntityService {
|
|
@@ -208,82 +163,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImpor
|
|
|
208
163
|
}]
|
|
209
164
|
}] });
|
|
210
165
|
|
|
211
|
-
class AXMOrganizationManagementDepartmentEntityService extends AXMEntityCrudServiceImpl {
|
|
212
|
-
}
|
|
213
|
-
class AXMOrganizationManagementDepartmentEntityServiceImpl extends AXMOrganizationManagementDepartmentEntityService {
|
|
214
|
-
constructor() {
|
|
215
|
-
super(`${RootConfig.module.name}.${RootConfig.entities.department.name}`);
|
|
216
|
-
}
|
|
217
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementDepartmentEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
218
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementDepartmentEntityServiceImpl }); }
|
|
219
|
-
}
|
|
220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementDepartmentEntityServiceImpl, decorators: [{
|
|
221
|
-
type: Injectable
|
|
222
|
-
}], ctorParameters: () => [] });
|
|
223
|
-
|
|
224
|
-
class AXMOrganizationManagementDepartmentEntityModule {
|
|
225
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementDepartmentEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
226
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementDepartmentEntityModule }); }
|
|
227
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementDepartmentEntityModule, providers: [
|
|
228
|
-
{
|
|
229
|
-
provide: AXMOrganizationManagementDepartmentEntityService,
|
|
230
|
-
useClass: AXMOrganizationManagementDepartmentEntityServiceImpl,
|
|
231
|
-
},
|
|
232
|
-
] }); }
|
|
233
|
-
}
|
|
234
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementDepartmentEntityModule, decorators: [{
|
|
235
|
-
type: NgModule,
|
|
236
|
-
args: [{
|
|
237
|
-
imports: [],
|
|
238
|
-
exports: [],
|
|
239
|
-
declarations: [],
|
|
240
|
-
providers: [
|
|
241
|
-
{
|
|
242
|
-
provide: AXMOrganizationManagementDepartmentEntityService,
|
|
243
|
-
useClass: AXMOrganizationManagementDepartmentEntityServiceImpl,
|
|
244
|
-
},
|
|
245
|
-
],
|
|
246
|
-
}]
|
|
247
|
-
}] });
|
|
248
|
-
|
|
249
|
-
class AXMOrganizationManagementDivisionEntityService extends AXMEntityCrudServiceImpl {
|
|
250
|
-
}
|
|
251
|
-
class AXMOrganizationManagementDivisionEntityServiceImpl extends AXMOrganizationManagementDivisionEntityService {
|
|
252
|
-
constructor() {
|
|
253
|
-
super(`${RootConfig.module.name}.${RootConfig.entities.division.name}`);
|
|
254
|
-
}
|
|
255
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementDivisionEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
256
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementDivisionEntityServiceImpl }); }
|
|
257
|
-
}
|
|
258
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementDivisionEntityServiceImpl, decorators: [{
|
|
259
|
-
type: Injectable
|
|
260
|
-
}], ctorParameters: () => [] });
|
|
261
|
-
|
|
262
|
-
class AXMOrganizationManagementDivisionEntityModule {
|
|
263
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementDivisionEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
264
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementDivisionEntityModule }); }
|
|
265
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementDivisionEntityModule, providers: [
|
|
266
|
-
{
|
|
267
|
-
provide: AXMOrganizationManagementDivisionEntityService,
|
|
268
|
-
useClass: AXMOrganizationManagementDivisionEntityServiceImpl,
|
|
269
|
-
},
|
|
270
|
-
] }); }
|
|
271
|
-
}
|
|
272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementDivisionEntityModule, decorators: [{
|
|
273
|
-
type: NgModule,
|
|
274
|
-
args: [{
|
|
275
|
-
imports: [],
|
|
276
|
-
exports: [],
|
|
277
|
-
declarations: [],
|
|
278
|
-
providers: [
|
|
279
|
-
{
|
|
280
|
-
provide: AXMOrganizationManagementDivisionEntityService,
|
|
281
|
-
useClass: AXMOrganizationManagementDivisionEntityServiceImpl,
|
|
282
|
-
},
|
|
283
|
-
],
|
|
284
|
-
}]
|
|
285
|
-
}] });
|
|
286
|
-
|
|
287
166
|
class AXMOrganizationManagementPositionEntityService extends AXMEntityCrudServiceImpl {
|
|
288
167
|
}
|
|
289
168
|
class AXMOrganizationManagementPositionEntityServiceImpl extends AXMOrganizationManagementPositionEntityService {
|
|
@@ -398,6 +277,76 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImpor
|
|
|
398
277
|
}]
|
|
399
278
|
}] });
|
|
400
279
|
|
|
280
|
+
class AXMOrganizationManagementBusinessUnitTypeEntityService extends AXMEntityCrudServiceImpl {
|
|
281
|
+
}
|
|
282
|
+
class AXMOrganizationManagementBusinessUnitTypeEntityServiceImpl extends AXMOrganizationManagementBusinessUnitTypeEntityService {
|
|
283
|
+
constructor() {
|
|
284
|
+
super(`${RootConfig.module.name}.${RootConfig.entities.businessUnitType.name}`);
|
|
285
|
+
}
|
|
286
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBusinessUnitTypeEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
287
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBusinessUnitTypeEntityServiceImpl }); }
|
|
288
|
+
}
|
|
289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBusinessUnitTypeEntityServiceImpl, decorators: [{
|
|
290
|
+
type: Injectable
|
|
291
|
+
}], ctorParameters: () => [] });
|
|
292
|
+
|
|
293
|
+
class AXMOrganizationManagementBusinessUnitTypeEntityModule {
|
|
294
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBusinessUnitTypeEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
295
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBusinessUnitTypeEntityModule }); }
|
|
296
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBusinessUnitTypeEntityModule, providers: [
|
|
297
|
+
{
|
|
298
|
+
provide: AXMOrganizationManagementBusinessUnitTypeEntityService,
|
|
299
|
+
useClass: AXMOrganizationManagementBusinessUnitTypeEntityServiceImpl,
|
|
300
|
+
},
|
|
301
|
+
] }); }
|
|
302
|
+
}
|
|
303
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBusinessUnitTypeEntityModule, decorators: [{
|
|
304
|
+
type: NgModule,
|
|
305
|
+
args: [{
|
|
306
|
+
providers: [
|
|
307
|
+
{
|
|
308
|
+
provide: AXMOrganizationManagementBusinessUnitTypeEntityService,
|
|
309
|
+
useClass: AXMOrganizationManagementBusinessUnitTypeEntityServiceImpl,
|
|
310
|
+
},
|
|
311
|
+
],
|
|
312
|
+
}]
|
|
313
|
+
}] });
|
|
314
|
+
|
|
315
|
+
class AXMOrganizationManagementBusinessUnitEntityService extends AXMEntityCrudServiceImpl {
|
|
316
|
+
}
|
|
317
|
+
class AXMOrganizationManagementBusinessUnitEntityServiceImpl extends AXMOrganizationManagementBusinessUnitEntityService {
|
|
318
|
+
constructor() {
|
|
319
|
+
super(`${RootConfig.module.name}.${RootConfig.entities.businessUnit.name}`);
|
|
320
|
+
}
|
|
321
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBusinessUnitEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
322
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBusinessUnitEntityServiceImpl }); }
|
|
323
|
+
}
|
|
324
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBusinessUnitEntityServiceImpl, decorators: [{
|
|
325
|
+
type: Injectable
|
|
326
|
+
}], ctorParameters: () => [] });
|
|
327
|
+
|
|
328
|
+
class AXMOrganizationManagementBusinessUnitEntityModule {
|
|
329
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBusinessUnitEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
330
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBusinessUnitEntityModule }); }
|
|
331
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBusinessUnitEntityModule, providers: [
|
|
332
|
+
{
|
|
333
|
+
provide: AXMOrganizationManagementBusinessUnitEntityService,
|
|
334
|
+
useClass: AXMOrganizationManagementBusinessUnitEntityServiceImpl,
|
|
335
|
+
},
|
|
336
|
+
] }); }
|
|
337
|
+
}
|
|
338
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementBusinessUnitEntityModule, decorators: [{
|
|
339
|
+
type: NgModule,
|
|
340
|
+
args: [{
|
|
341
|
+
providers: [
|
|
342
|
+
{
|
|
343
|
+
provide: AXMOrganizationManagementBusinessUnitEntityService,
|
|
344
|
+
useClass: AXMOrganizationManagementBusinessUnitEntityServiceImpl,
|
|
345
|
+
},
|
|
346
|
+
],
|
|
347
|
+
}]
|
|
348
|
+
}] });
|
|
349
|
+
|
|
401
350
|
class AXMOrganizationManagementResponsibilityEntityService extends AXMEntityCrudServiceImpl {
|
|
402
351
|
}
|
|
403
352
|
class AXMOrganizationManagementResponsibilityEntityServiceImpl extends AXMOrganizationManagementResponsibilityEntityService {
|
|
@@ -436,42 +385,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImpor
|
|
|
436
385
|
}]
|
|
437
386
|
}] });
|
|
438
387
|
|
|
439
|
-
var
|
|
440
|
-
(function (
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
const AXM_ORG_CHART_NODE_TYPE_ENTITY_MAPPINGS = {
|
|
461
|
-
'OrganizationManagement.Company': { category: AXMOrganizationNodeTypeCategory.Company, type: AXMOrganizationNodeType.Company, title: 'Company', icon: 'fal fa-building', color: "primary" },
|
|
462
|
-
// Location
|
|
463
|
-
'OrganizationManagement.Country': { category: AXMOrganizationNodeTypeCategory.Location, type: AXMOrganizationNodeType.Country, title: 'Country', icon: 'fal fa-globe', color: "accent1" },
|
|
464
|
-
'OrganizationManagement.State': { category: AXMOrganizationNodeTypeCategory.Location, type: AXMOrganizationNodeType.State, title: 'State', icon: 'fal fa-map', color: "accent1" },
|
|
465
|
-
'OrganizationManagement.City': { category: AXMOrganizationNodeTypeCategory.Location, type: AXMOrganizationNodeType.City, title: 'City', icon: 'fal fa-city', color: "accent1" },
|
|
466
|
-
// Business Unit
|
|
467
|
-
'OrganizationManagement.Division': { category: AXMOrganizationNodeTypeCategory.BusinessUnit, type: AXMOrganizationNodeType.Division, title: 'Division', icon: 'fal fa-sitemap', color: "accent2" },
|
|
468
|
-
'OrganizationManagement.Department': { category: AXMOrganizationNodeTypeCategory.BusinessUnit, type: AXMOrganizationNodeType.Department, title: 'Department', icon: 'fal fa-building-user', color: "accent2" },
|
|
469
|
-
'OrganizationManagement.Branch': { category: AXMOrganizationNodeTypeCategory.BusinessUnit, type: AXMOrganizationNodeType.Branch, title: 'Branch', icon: 'fal fa-network-wired', color: "accent2" },
|
|
470
|
-
// Role
|
|
471
|
-
'OrganizationManagement.Position': { category: AXMOrganizationNodeTypeCategory.Role, type: AXMOrganizationNodeType.Position, title: 'Position', icon: 'fal fa-user-tie', color: "accent3" },
|
|
472
|
-
// Employee
|
|
473
|
-
'OrganizationManagement.Employee': { category: AXMOrganizationNodeTypeCategory.Employee, type: AXMOrganizationNodeType.Employee, title: 'Employee', icon: 'fal fa-address-card', color: "surface" }
|
|
474
|
-
};
|
|
388
|
+
var AXMOrgChartNodeType;
|
|
389
|
+
(function (AXMOrgChartNodeType) {
|
|
390
|
+
AXMOrgChartNodeType["Company"] = "Company";
|
|
391
|
+
AXMOrgChartNodeType["Country"] = "Country";
|
|
392
|
+
AXMOrgChartNodeType["State"] = "State";
|
|
393
|
+
AXMOrgChartNodeType["City"] = "City";
|
|
394
|
+
AXMOrgChartNodeType["Division"] = "Division";
|
|
395
|
+
AXMOrgChartNodeType["Department"] = "Department";
|
|
396
|
+
AXMOrgChartNodeType["Branch"] = "Branch";
|
|
397
|
+
AXMOrgChartNodeType["Position"] = "Position";
|
|
398
|
+
AXMOrgChartNodeType["Employee"] = "Employee";
|
|
399
|
+
})(AXMOrgChartNodeType || (AXMOrgChartNodeType = {}));
|
|
400
|
+
// Minimal high-level categories for rendering/legend only
|
|
401
|
+
var AXMOrgChartCategory;
|
|
402
|
+
(function (AXMOrgChartCategory) {
|
|
403
|
+
AXMOrgChartCategory["Company"] = "Company";
|
|
404
|
+
AXMOrgChartCategory["Location"] = "Location";
|
|
405
|
+
AXMOrgChartCategory["BusinessUnit"] = "BusinessUnit";
|
|
406
|
+
AXMOrgChartCategory["Position"] = "Position";
|
|
407
|
+
AXMOrgChartCategory["Employee"] = "Employee";
|
|
408
|
+
})(AXMOrgChartCategory || (AXMOrgChartCategory = {}));
|
|
475
409
|
|
|
476
410
|
class AXMOrganizationModuleEntityProvider {
|
|
477
411
|
constructor() {
|
|
@@ -489,14 +423,12 @@ class AXMOrganizationModuleEntityProvider {
|
|
|
489
423
|
switch (entityName) {
|
|
490
424
|
case RootConfig.entities.company.name:
|
|
491
425
|
return (await import('./acorex-modules-organization-management-company.entity-BBNM-Ihr.mjs')).factory(this.injector);
|
|
492
|
-
case RootConfig.entities.
|
|
493
|
-
return (await
|
|
494
|
-
case RootConfig.entities.
|
|
495
|
-
return (await
|
|
496
|
-
case RootConfig.entities.branch.name:
|
|
497
|
-
return (await import('./acorex-modules-organization-management-branch.entity-C4Le6Kv6.mjs')).factory(this.injector);
|
|
426
|
+
case RootConfig.entities.businessUnitType.name:
|
|
427
|
+
return (await Promise.resolve().then(function () { return businessUnitType_entity; })).factory(this.injector);
|
|
428
|
+
case RootConfig.entities.businessUnit.name:
|
|
429
|
+
return (await Promise.resolve().then(function () { return businessUnit_entity; })).factory(this.injector);
|
|
498
430
|
case RootConfig.entities.position.name:
|
|
499
|
-
return (await import('./acorex-modules-organization-management-position.entity-
|
|
431
|
+
return (await import('./acorex-modules-organization-management-position.entity-CzBbuApR.mjs')).factory(this.injector);
|
|
500
432
|
case RootConfig.entities.chart.name:
|
|
501
433
|
return (await import('./acorex-modules-organization-management-chart.entity-8J9I9lgq.mjs')).factory(this.injector);
|
|
502
434
|
case RootConfig.entities.team.name:
|
|
@@ -516,9 +448,136 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImpor
|
|
|
516
448
|
type: Injectable
|
|
517
449
|
}] });
|
|
518
450
|
|
|
451
|
+
async function factory$1(injector) {
|
|
452
|
+
const dataService = injector.get(AXMOrganizationManagementBusinessUnitEntityService);
|
|
453
|
+
const i18n = RootConfig.config.i18n;
|
|
454
|
+
const entityName = 'business-unit';
|
|
455
|
+
const entityDef = {
|
|
456
|
+
module: RootConfig.module.name,
|
|
457
|
+
name: RootConfig.entities.businessUnit.name,
|
|
458
|
+
source: '',
|
|
459
|
+
title: '@organization-management:business-unit.individual-title',
|
|
460
|
+
icon: 'fa-light fa-building-columns',
|
|
461
|
+
parentKey: 'parentId',
|
|
462
|
+
formats: {
|
|
463
|
+
individual: '@organization-management:business-unit.individual-title',
|
|
464
|
+
plural: '@organization-management:business-unit.plural-title',
|
|
465
|
+
searchResult: { title: '{{ title }}', description: RootConfig.module.title },
|
|
466
|
+
},
|
|
467
|
+
plugins: [
|
|
468
|
+
{
|
|
469
|
+
name: 'computed-property',
|
|
470
|
+
options: {
|
|
471
|
+
fields: [
|
|
472
|
+
{
|
|
473
|
+
name: 'manager',
|
|
474
|
+
title: '@general:terms.manager',
|
|
475
|
+
value: 'Static Manager Name',
|
|
476
|
+
group: { id: 'basic' },
|
|
477
|
+
showAs: { type: AXPWidgetsCatalog.text },
|
|
478
|
+
},
|
|
479
|
+
],
|
|
480
|
+
},
|
|
481
|
+
},
|
|
482
|
+
],
|
|
483
|
+
groups: [
|
|
484
|
+
{ id: 'basic', title: '@organization-management:business-unit.basic-info' },
|
|
485
|
+
{ id: 'relationInfo', title: '@organization-management:business-unit.relation-info' },
|
|
486
|
+
{ id: 'geographicInfo', title: '@location-management:location.geographic-details' },
|
|
487
|
+
],
|
|
488
|
+
properties: [
|
|
489
|
+
{ name: 'id', title: 'ID', groupId: 'basic', schema: { dataType: 'uuid', hidden: true, nullable: false, readonly: true, unique: { enabled: true } } },
|
|
490
|
+
{ name: 'title', title: '@organization-management:business-unit.title', groupId: 'basic', schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } }, validations: [{ rule: 'required' }] },
|
|
491
|
+
{ name: 'description', title: '@organization-management:business-unit.description', groupId: 'basic', schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.largeText } } },
|
|
492
|
+
{ name: 'typeId', title: '@organization-management:business-unit.type', groupId: 'relationInfo', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.LookupBox, options: { entity: `${RootConfig.module.name}.BusinessUnitType`, textField: 'title', valueField: 'id', look: 'select', expose: [{ source: 'id', target: 'type.id' }, { source: 'code', target: 'type.code' }, { source: 'title', target: 'type.title' }, { source: 'isLocationBased', target: 'type.isLocationBased' }] } } }, validations: [{ rule: 'required' }] },
|
|
493
|
+
{ name: 'parentId', title: '@organization-management:business-unit.parent', groupId: 'relationInfo', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.LookupBox, options: { entity: `${RootConfig.module.name}.BusinessUnit`, textField: 'title', valueField: 'id', look: 'select', expose: [{ source: 'id', target: 'parent.id' }, { source: 'title', target: 'parent.title' }] } } } },
|
|
494
|
+
{ name: 'countryId', title: '@location-management:location.country', groupId: 'geographicInfo', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.LookupBox, options: { entity: `LocationManagement.GeographicRegion`, textField: 'title', valueField: 'id', look: 'select', expose: [{ source: 'id', target: 'country.id' }, { source: 'title', target: 'country.title' }] } } } },
|
|
495
|
+
{ name: 'stateId', title: '@location-management:location.state', groupId: 'geographicInfo', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.LookupBox, options: { entity: `LocationManagement.GeographicRegion`, textField: 'title', valueField: 'id', look: 'select', expose: [{ source: 'id', target: 'state.id' }, { source: 'title', target: 'state.title' }] } } } },
|
|
496
|
+
{ name: 'cityId', title: '@location-management:location.city', groupId: 'geographicInfo', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.LookupBox, options: { entity: `LocationManagement.GeographicRegion`, textField: 'title', valueField: 'id', look: 'select', expose: [{ source: 'id', target: 'city.id' }, { source: 'title', target: 'city.title' }] } } } },
|
|
497
|
+
],
|
|
498
|
+
columns: [
|
|
499
|
+
{ name: 'title' },
|
|
500
|
+
{ name: 'typeId', options: { dataPath: 'type.title' } },
|
|
501
|
+
{ name: 'parentId', options: { dataPath: 'parent.title' } },
|
|
502
|
+
{ name: 'countryId', options: { dataPath: 'country.title' } },
|
|
503
|
+
{ name: 'cityId', options: { dataPath: 'city.title' } },
|
|
504
|
+
],
|
|
505
|
+
commands: {
|
|
506
|
+
create: { execute: async (data) => ({ id: await dataService.insertOne(data) }) },
|
|
507
|
+
delete: { execute: async (id) => await dataService.deleteOne(id) },
|
|
508
|
+
update: { execute: async (data) => await dataService.updateOne(data.id, data) },
|
|
509
|
+
},
|
|
510
|
+
queries: {
|
|
511
|
+
byKey: { execute: async (id) => await dataService.getOne(id), type: AXPEntityQueryType.Single },
|
|
512
|
+
list: { execute: async (e) => await dataService.query(e), type: AXPEntityQueryType.List },
|
|
513
|
+
},
|
|
514
|
+
interfaces: {
|
|
515
|
+
master: {
|
|
516
|
+
create: {
|
|
517
|
+
sections: [
|
|
518
|
+
{ id: 'basic' },
|
|
519
|
+
{ id: 'relationInfo' },
|
|
520
|
+
{ id: 'geographicInfo' },
|
|
521
|
+
],
|
|
522
|
+
properties: [
|
|
523
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
524
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
525
|
+
{ name: 'typeId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
526
|
+
{ name: 'parentId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
527
|
+
{ name: 'countryId', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
528
|
+
{ name: 'stateId', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
529
|
+
{ name: 'cityId', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
530
|
+
],
|
|
531
|
+
},
|
|
532
|
+
update: {
|
|
533
|
+
sections: [
|
|
534
|
+
{ id: 'basic' },
|
|
535
|
+
{ id: 'relationInfo' },
|
|
536
|
+
{ id: 'geographicInfo' },
|
|
537
|
+
],
|
|
538
|
+
properties: [
|
|
539
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
540
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
541
|
+
{ name: 'typeId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
542
|
+
{ name: 'parentId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
543
|
+
{ name: 'countryId', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
544
|
+
{ name: 'stateId', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
545
|
+
{ name: 'cityId', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
546
|
+
],
|
|
547
|
+
},
|
|
548
|
+
single: {
|
|
549
|
+
title: '{{title}}',
|
|
550
|
+
sections: [
|
|
551
|
+
{ id: 'basic' },
|
|
552
|
+
{ id: 'relationInfo' },
|
|
553
|
+
{ id: 'geographicInfo' },
|
|
554
|
+
],
|
|
555
|
+
properties: [
|
|
556
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
557
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
558
|
+
{ name: 'typeId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
559
|
+
{ name: 'parentId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
560
|
+
{ name: 'countryId', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
561
|
+
{ name: 'stateId', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
562
|
+
{ name: 'cityId', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
563
|
+
],
|
|
564
|
+
actions: [...entityMasterRecordActions()],
|
|
565
|
+
},
|
|
566
|
+
list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })] },
|
|
567
|
+
},
|
|
568
|
+
},
|
|
569
|
+
};
|
|
570
|
+
return entityDef;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
var businessUnit_entity = /*#__PURE__*/Object.freeze({
|
|
574
|
+
__proto__: null,
|
|
575
|
+
factory: factory$1
|
|
576
|
+
});
|
|
577
|
+
|
|
519
578
|
class AXMDepartmentDataSourceDefinition {
|
|
520
579
|
constructor() {
|
|
521
|
-
this.departmentService = inject(
|
|
580
|
+
this.departmentService = inject(AXMOrganizationManagementBusinessUnitEntityService);
|
|
522
581
|
}
|
|
523
582
|
items() {
|
|
524
583
|
return Promise.resolve([
|
|
@@ -594,7 +653,7 @@ class AXMDepartmentDataSourceDefinition {
|
|
|
594
653
|
|
|
595
654
|
class AXMDivisionDataSourceDefinition {
|
|
596
655
|
constructor() {
|
|
597
|
-
this.divisionService = inject(
|
|
656
|
+
this.divisionService = inject(AXMOrganizationManagementBusinessUnitEntityService);
|
|
598
657
|
}
|
|
599
658
|
items() {
|
|
600
659
|
return Promise.resolve([
|
|
@@ -934,75 +993,63 @@ class AXMMenuProvider {
|
|
|
934
993
|
const module = RootConfig.module;
|
|
935
994
|
context.addItems([
|
|
936
995
|
{
|
|
937
|
-
priority:
|
|
938
|
-
text:
|
|
996
|
+
priority: 9000,
|
|
997
|
+
text: `@${scope}:root-menu`,
|
|
939
998
|
icon: module.icon,
|
|
940
999
|
data: {
|
|
941
1000
|
requiredPermission: 'admin',
|
|
942
1001
|
},
|
|
943
1002
|
children: [
|
|
944
1003
|
{
|
|
945
|
-
text:
|
|
946
|
-
path: this.entityService.createPath(module.name, RootConfig.entities.division.name),
|
|
947
|
-
priority: 12,
|
|
948
|
-
icon: RootConfig.entities.division.icon,
|
|
949
|
-
},
|
|
950
|
-
{
|
|
951
|
-
text: `t('department.plural-title', {scope:"${scope}"})`,
|
|
952
|
-
path: this.entityService.createPath(module.name, RootConfig.entities.department.name),
|
|
953
|
-
priority: 13,
|
|
954
|
-
icon: RootConfig.entities.department.icon,
|
|
955
|
-
},
|
|
956
|
-
{
|
|
957
|
-
text: `t('branch.plural-title', {scope:"${scope}"})`,
|
|
958
|
-
path: this.entityService.createPath(module.name, RootConfig.entities.branch.name),
|
|
959
|
-
priority: 14,
|
|
960
|
-
icon: RootConfig.entities.branch.icon,
|
|
961
|
-
},
|
|
962
|
-
{
|
|
963
|
-
text: `t('team.plural-title', {scope:"${scope}"})`,
|
|
1004
|
+
text: `@${scope}:team.plural-title`,
|
|
964
1005
|
path: this.entityService.createPath(module.name, RootConfig.entities.team.name),
|
|
965
|
-
priority:
|
|
1006
|
+
priority: 10,
|
|
966
1007
|
icon: RootConfig.entities.team.icon,
|
|
967
1008
|
},
|
|
968
1009
|
{
|
|
969
|
-
text:
|
|
970
|
-
|
|
971
|
-
priority:
|
|
1010
|
+
text: `@${scope}:position.plural-title`,
|
|
1011
|
+
path: this.entityService.createPath(module.name, RootConfig.entities.position.name),
|
|
1012
|
+
priority: 15,
|
|
1013
|
+
icon: RootConfig.entities.position.icon,
|
|
972
1014
|
},
|
|
973
1015
|
{
|
|
974
|
-
text:
|
|
1016
|
+
text: `@${scope}:role.plural-title`,
|
|
975
1017
|
path: this.entityService.createPath(module.name, RootConfig.entities.role.name),
|
|
976
|
-
priority:
|
|
1018
|
+
priority: 20,
|
|
977
1019
|
icon: RootConfig.entities.role.icon,
|
|
978
1020
|
},
|
|
979
1021
|
{
|
|
980
|
-
text:
|
|
1022
|
+
text: `@${scope}:responsibility.plural-title`,
|
|
981
1023
|
path: this.entityService.createPath(module.name, RootConfig.entities.responsibility.name),
|
|
982
|
-
priority:
|
|
1024
|
+
priority: 25,
|
|
983
1025
|
icon: RootConfig.entities.responsibility.icon,
|
|
984
1026
|
},
|
|
985
1027
|
{
|
|
986
|
-
text:
|
|
987
|
-
|
|
1028
|
+
text: 'Chart',
|
|
1029
|
+
type: 'break',
|
|
988
1030
|
priority: 30,
|
|
989
|
-
icon: RootConfig.entities.position.icon,
|
|
990
1031
|
},
|
|
991
1032
|
{
|
|
992
|
-
text:
|
|
993
|
-
|
|
1033
|
+
text: `@${scope}:business-unit.plural-title`,
|
|
1034
|
+
path: this.entityService.createPath(module.name, RootConfig.entities.businessUnit.name),
|
|
1035
|
+
priority: 35,
|
|
1036
|
+
icon: RootConfig.entities.businessUnit.icon,
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
text: `@${scope}:business-unit-type.plural-title`,
|
|
1040
|
+
path: this.entityService.createPath(module.name, RootConfig.entities.businessUnitType.name),
|
|
994
1041
|
priority: 40,
|
|
1042
|
+
icon: RootConfig.entities.businessUnitType.icon,
|
|
995
1043
|
},
|
|
996
1044
|
{
|
|
997
|
-
text:
|
|
998
|
-
|
|
999
|
-
priority:
|
|
1000
|
-
icon: RootConfig.entities.structure.icon,
|
|
1045
|
+
text: 'Chart',
|
|
1046
|
+
type: 'break',
|
|
1047
|
+
priority: 45,
|
|
1001
1048
|
},
|
|
1002
1049
|
{
|
|
1003
1050
|
text: RootConfig.entities.chart.menu.title,
|
|
1004
1051
|
path: `${this.sessionService.application?.name}/organization/chart`,
|
|
1005
|
-
priority:
|
|
1052
|
+
priority: 50,
|
|
1006
1053
|
icon: RootConfig.entities.chart.icon,
|
|
1007
1054
|
},
|
|
1008
1055
|
],
|
|
@@ -1011,6 +1058,84 @@ class AXMMenuProvider {
|
|
|
1011
1058
|
}
|
|
1012
1059
|
}
|
|
1013
1060
|
|
|
1061
|
+
async function factory(injector) {
|
|
1062
|
+
const dataService = injector.get(AXMOrganizationManagementBusinessUnitTypeEntityService);
|
|
1063
|
+
const i18n = RootConfig.config.i18n;
|
|
1064
|
+
const entityName = 'business-unit-type';
|
|
1065
|
+
const entityDef = {
|
|
1066
|
+
module: RootConfig.module.name,
|
|
1067
|
+
name: RootConfig.entities.businessUnitType.name,
|
|
1068
|
+
source: '',
|
|
1069
|
+
title: '@organization-management:business-unit-type.individual-title',
|
|
1070
|
+
icon: 'fa-light fa-tags',
|
|
1071
|
+
formats: {
|
|
1072
|
+
individual: '@organization-management:business-unit-type.individual-title',
|
|
1073
|
+
plural: '@organization-management:business-unit-type.plural-title',
|
|
1074
|
+
searchResult: { title: '{{ title }}', description: RootConfig.module.title },
|
|
1075
|
+
},
|
|
1076
|
+
groups: [
|
|
1077
|
+
{ id: 'basic', title: '@organization-management:business-unit-type.basic-info' },
|
|
1078
|
+
],
|
|
1079
|
+
properties: [
|
|
1080
|
+
{ name: 'id', title: 'ID', groupId: 'basic', schema: { dataType: 'uuid', hidden: true, nullable: false, readonly: true, unique: { enabled: true } } },
|
|
1081
|
+
{ name: 'title', title: '@organization-management:business-unit-type.title', groupId: 'basic', schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } }, validations: [{ rule: 'required' }] },
|
|
1082
|
+
{ name: 'code', title: '@organization-management:business-unit-type.code', groupId: 'basic', schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } }, validations: [{ rule: 'required' }] },
|
|
1083
|
+
{ name: 'isLocationBased', title: '@organization-management:business-unit-type.is-location-based', groupId: 'basic', schema: { dataType: 'boolean', interface: { type: AXPWidgetsCatalog.toggle }, defaultValue: false } },
|
|
1084
|
+
],
|
|
1085
|
+
columns: [
|
|
1086
|
+
{ name: 'title' },
|
|
1087
|
+
{ name: 'code' },
|
|
1088
|
+
{ name: 'isLocationBased' },
|
|
1089
|
+
],
|
|
1090
|
+
commands: {
|
|
1091
|
+
create: { execute: async (data) => ({ id: await dataService.insertOne(data) }) },
|
|
1092
|
+
delete: { execute: async (id) => await dataService.deleteOne(id) },
|
|
1093
|
+
update: { execute: async (data) => await dataService.updateOne(data.id, data) },
|
|
1094
|
+
},
|
|
1095
|
+
queries: {
|
|
1096
|
+
byKey: { execute: async (id) => await dataService.getOne(id), type: AXPEntityQueryType.Single },
|
|
1097
|
+
list: { execute: async (e) => await dataService.query(e), type: AXPEntityQueryType.List },
|
|
1098
|
+
},
|
|
1099
|
+
interfaces: {
|
|
1100
|
+
master: {
|
|
1101
|
+
create: {
|
|
1102
|
+
sections: [{ id: 'basic' }],
|
|
1103
|
+
properties: [
|
|
1104
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
1105
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
1106
|
+
{ name: 'isLocationBased', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
1107
|
+
],
|
|
1108
|
+
},
|
|
1109
|
+
update: {
|
|
1110
|
+
sections: [{ id: 'basic' }],
|
|
1111
|
+
properties: [
|
|
1112
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
1113
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
1114
|
+
{ name: 'isLocationBased', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
1115
|
+
],
|
|
1116
|
+
},
|
|
1117
|
+
single: {
|
|
1118
|
+
title: '{{title}}',
|
|
1119
|
+
sections: [{ id: 'basic' }],
|
|
1120
|
+
properties: [
|
|
1121
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
1122
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
1123
|
+
{ name: 'isLocationBased', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
1124
|
+
],
|
|
1125
|
+
actions: [...entityMasterRecordActions()],
|
|
1126
|
+
},
|
|
1127
|
+
list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })] },
|
|
1128
|
+
},
|
|
1129
|
+
},
|
|
1130
|
+
};
|
|
1131
|
+
return entityDef;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
var businessUnitType_entity = /*#__PURE__*/Object.freeze({
|
|
1135
|
+
__proto__: null,
|
|
1136
|
+
factory: factory
|
|
1137
|
+
});
|
|
1138
|
+
|
|
1014
1139
|
function routesFacory() {
|
|
1015
1140
|
const config = inject(AXP_ENTITY_CONFIG_TOKEN);
|
|
1016
1141
|
const routes = [
|
|
@@ -1023,11 +1148,7 @@ function routesFacory() {
|
|
|
1023
1148
|
children: [
|
|
1024
1149
|
{
|
|
1025
1150
|
path: 'chart',
|
|
1026
|
-
loadComponent: () => import('./acorex-modules-organization-management-org-chart.page-
|
|
1027
|
-
},
|
|
1028
|
-
{
|
|
1029
|
-
path: 'configuration',
|
|
1030
|
-
loadComponent: () => import('./acorex-modules-organization-management-org-chart-configuration.page-DfwjhVRX.mjs').then((c) => c.AXMOrgChartConfigurationPage),
|
|
1151
|
+
loadComponent: () => import('./acorex-modules-organization-management-org-chart.page-keZ4Gk7y.mjs').then((c) => c.AXMOrgChartPage),
|
|
1031
1152
|
},
|
|
1032
1153
|
],
|
|
1033
1154
|
},
|
|
@@ -1044,7 +1165,7 @@ function routesFactory() {
|
|
|
1044
1165
|
children: [
|
|
1045
1166
|
{
|
|
1046
1167
|
path: 'chart',
|
|
1047
|
-
loadComponent: () => import('./acorex-modules-organization-management-org-chart.page-
|
|
1168
|
+
loadComponent: () => import('./acorex-modules-organization-management-org-chart.page-keZ4Gk7y.mjs').then((c) => c.AXMOrgChartPage),
|
|
1048
1169
|
},
|
|
1049
1170
|
],
|
|
1050
1171
|
};
|
|
@@ -1056,11 +1177,10 @@ class AXMOrganizationManagementModule {
|
|
|
1056
1177
|
AXMOrganizationManagementRoleEntityModule,
|
|
1057
1178
|
AXMOrganizationManagementTeamEntityModule,
|
|
1058
1179
|
AXMOrganizationManagementCompanyEntityModule,
|
|
1059
|
-
AXMOrganizationManagementDepartmentEntityModule,
|
|
1060
|
-
AXMOrganizationManagementDivisionEntityModule,
|
|
1061
|
-
AXMOrganizationManagementBranchEntityModule,
|
|
1062
1180
|
AXMOrganizationManagementPositionEntityModule,
|
|
1063
|
-
AXMOrganizationManagementChartEntityModule
|
|
1181
|
+
AXMOrganizationManagementChartEntityModule,
|
|
1182
|
+
AXMOrganizationManagementBusinessUnitEntityModule,
|
|
1183
|
+
AXMOrganizationManagementBusinessUnitTypeEntityModule] }); }
|
|
1064
1184
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementModule, providers: [
|
|
1065
1185
|
{
|
|
1066
1186
|
provide: AXP_ENTITY_DEFINITION_LOADER,
|
|
@@ -1071,7 +1191,7 @@ class AXMOrganizationManagementModule {
|
|
|
1071
1191
|
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
|
1072
1192
|
useFactory: async () => {
|
|
1073
1193
|
const injector = inject(Injector);
|
|
1074
|
-
const provider = (await import('./acorex-modules-organization-management-settings.provider-
|
|
1194
|
+
const provider = (await import('./acorex-modules-organization-management-settings.provider-BvOAb0jb.mjs')).AXMSettingProvider;
|
|
1075
1195
|
return new provider(injector);
|
|
1076
1196
|
},
|
|
1077
1197
|
multi: true,
|
|
@@ -1127,11 +1247,10 @@ class AXMOrganizationManagementModule {
|
|
|
1127
1247
|
AXMOrganizationManagementRoleEntityModule,
|
|
1128
1248
|
AXMOrganizationManagementTeamEntityModule,
|
|
1129
1249
|
AXMOrganizationManagementCompanyEntityModule,
|
|
1130
|
-
AXMOrganizationManagementDepartmentEntityModule,
|
|
1131
|
-
AXMOrganizationManagementDivisionEntityModule,
|
|
1132
|
-
AXMOrganizationManagementBranchEntityModule,
|
|
1133
1250
|
AXMOrganizationManagementPositionEntityModule,
|
|
1134
|
-
AXMOrganizationManagementChartEntityModule
|
|
1251
|
+
AXMOrganizationManagementChartEntityModule,
|
|
1252
|
+
AXMOrganizationManagementBusinessUnitEntityModule,
|
|
1253
|
+
AXMOrganizationManagementBusinessUnitTypeEntityModule] }); }
|
|
1135
1254
|
}
|
|
1136
1255
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXMOrganizationManagementModule, decorators: [{
|
|
1137
1256
|
type: NgModule,
|
|
@@ -1142,11 +1261,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImpor
|
|
|
1142
1261
|
AXMOrganizationManagementRoleEntityModule,
|
|
1143
1262
|
AXMOrganizationManagementTeamEntityModule,
|
|
1144
1263
|
AXMOrganizationManagementCompanyEntityModule,
|
|
1145
|
-
AXMOrganizationManagementDepartmentEntityModule,
|
|
1146
|
-
AXMOrganizationManagementDivisionEntityModule,
|
|
1147
|
-
AXMOrganizationManagementBranchEntityModule,
|
|
1148
1264
|
AXMOrganizationManagementPositionEntityModule,
|
|
1149
1265
|
AXMOrganizationManagementChartEntityModule,
|
|
1266
|
+
AXMOrganizationManagementBusinessUnitEntityModule,
|
|
1267
|
+
AXMOrganizationManagementBusinessUnitTypeEntityModule,
|
|
1150
1268
|
],
|
|
1151
1269
|
providers: [
|
|
1152
1270
|
{
|
|
@@ -1158,7 +1276,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImpor
|
|
|
1158
1276
|
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
|
1159
1277
|
useFactory: async () => {
|
|
1160
1278
|
const injector = inject(Injector);
|
|
1161
|
-
const provider = (await import('./acorex-modules-organization-management-settings.provider-
|
|
1279
|
+
const provider = (await import('./acorex-modules-organization-management-settings.provider-BvOAb0jb.mjs')).AXMSettingProvider;
|
|
1162
1280
|
return new provider(injector);
|
|
1163
1281
|
},
|
|
1164
1282
|
multi: true,
|
|
@@ -1217,5 +1335,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImpor
|
|
|
1217
1335
|
* Generated bundle index. Do not edit.
|
|
1218
1336
|
*/
|
|
1219
1337
|
|
|
1220
|
-
export {
|
|
1338
|
+
export { AXMOrgChartCategory, AXMOrgChartNodeType, AXMOrganizationManagementBusinessUnitEntityModule, AXMOrganizationManagementBusinessUnitEntityService, AXMOrganizationManagementBusinessUnitEntityServiceImpl, AXMOrganizationManagementBusinessUnitTypeEntityModule, AXMOrganizationManagementBusinessUnitTypeEntityService, AXMOrganizationManagementBusinessUnitTypeEntityServiceImpl, AXMOrganizationManagementChartEntityModule, AXMOrganizationManagementChartEntityService, AXMOrganizationManagementChartEntityServiceImpl, AXMOrganizationManagementCompanyEntityModule, AXMOrganizationManagementCompanyEntityService, AXMOrganizationManagementCompanyEntityServiceImpl, AXMOrganizationManagementModule, AXMOrganizationManagementPositionEntityModule, AXMOrganizationManagementPositionEntityService, AXMOrganizationManagementPositionEntityServiceImpl, AXMOrganizationManagementResponsibilityEntityModule, AXMOrganizationManagementResponsibilityEntityService, AXMOrganizationManagementResponsibilityEntityServiceImpl, AXMOrganizationManagementRoleEntityModule, AXMOrganizationManagementRoleEntityService, AXMOrganizationManagementRoleEntityServiceImpl, AXMOrganizationManagementTeamEntityModule, AXMOrganizationManagementTeamEntityService, AXMOrganizationManagementTeamEntityServiceImpl, RootConfig };
|
|
1221
1339
|
//# sourceMappingURL=acorex-modules-organization-management.mjs.map
|