@acorex/modules 20.2.4-next.6 → 20.2.4-next.8
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/dashboard-management/index.d.ts +2 -2
- package/fesm2022/acorex-modules-dashboard-management.mjs +3 -3
- package/fesm2022/acorex-modules-dashboard-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-BhU14Qou.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-Cp2gr7Iv.mjs} +69 -69
- package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-Cp2gr7Iv.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-permission-definition.provider-D4lGFRCA.mjs → acorex-modules-form-template-management-permission-definition.provider-C1RCxyNV.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-permission-definition.provider-D4lGFRCA.mjs.map → acorex-modules-form-template-management-permission-definition.provider-C1RCxyNV.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-settings.provider-499Y4rLb.mjs → acorex-modules-form-template-management-settings.provider-6AeK3OKQ.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-settings.provider-499Y4rLb.mjs.map → acorex-modules-form-template-management-settings.provider-6AeK3OKQ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-template-picker.component-2EkzMuIy.mjs → acorex-modules-form-template-management-template-picker.component-CLjMSNDH.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-template-picker.component-2EkzMuIy.mjs.map → acorex-modules-form-template-management-template-picker.component-CLjMSNDH.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-DwgbgFrf.mjs → acorex-modules-form-template-management-template-widget-edit.component-C54ki1jt.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-DwgbgFrf.mjs.map → acorex-modules-form-template-management-template-widget-edit.component-C54ki1jt.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-template.entity-D_14HgMr.mjs → acorex-modules-form-template-management-template.entity-juNqjlv4.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-template.entity-D_14HgMr.mjs.map → acorex-modules-form-template-management-template.entity-juNqjlv4.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-BLgx_xby.mjs → acorex-modules-form-template-management-viewer-popup.component-CV8UjR-U.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-BLgx_xby.mjs.map → acorex-modules-form-template-management-viewer-popup.component-CV8UjR-U.mjs.map} +1 -1
- package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-acorex-modules-human-capital-management-1PmjMC7i.mjs → acorex-modules-human-capital-management-acorex-modules-human-capital-management-D4A3ZYFq.mjs} +328 -49
- package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-D4A3ZYFq.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-employee-skill.entity-DyOHJWW_.mjs → acorex-modules-human-capital-management-employee-skill.entity-DfVvf8Fg.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-employee-skill.entity-DyOHJWW_.mjs.map → acorex-modules-human-capital-management-employee-skill.entity-DfVvf8Fg.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-employee.entity-5J-FoLiT.mjs → acorex-modules-human-capital-management-employee.entity-ByBqfKiF.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-employee.entity-5J-FoLiT.mjs.map → acorex-modules-human-capital-management-employee.entity-ByBqfKiF.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-DFpRtSOh.mjs → acorex-modules-human-capital-management-employment-type.entity-DZ8ubvD6.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-DFpRtSOh.mjs.map → acorex-modules-human-capital-management-employment-type.entity-DZ8ubvD6.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-DuNvJq-k.mjs → acorex-modules-human-capital-management-position-assignment.entity-BtIVnv-C.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-DuNvJq-k.mjs.map → acorex-modules-human-capital-management-position-assignment.entity-BtIVnv-C.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-skill-level.entity-0ZzRent7.mjs → acorex-modules-human-capital-management-skill-level.entity-DFCE3zcH.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-skill-level.entity-0ZzRent7.mjs.map → acorex-modules-human-capital-management-skill-level.entity-DFCE3zcH.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-skill.entity-Dd7p11vj.mjs → acorex-modules-human-capital-management-skill.entity-DPeTwYH4.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-skill.entity-Dd7p11vj.mjs.map → acorex-modules-human-capital-management-skill.entity-DPeTwYH4.mjs.map} +1 -1
- package/fesm2022/acorex-modules-human-capital-management.mjs +1 -1
- package/fesm2022/acorex-modules-organization-management.mjs +368 -0
- package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-security-management.mjs +5 -5
- package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-task-management.mjs +3 -3
- package/fesm2022/acorex-modules-task-management.mjs.map +1 -1
- package/human-capital-management/index.d.ts +37 -1
- package/package.json +6 -5
- package/security-management/index.d.ts +3 -3
- package/task-management/index.d.ts +2 -2
- package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-BhU14Qou.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-1PmjMC7i.mjs.map +0 -1
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { AXMEntityCrudServiceImpl, AXPEntityService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Injectable, inject, Injector, NgModule } from '@angular/core';
|
|
1
4
|
import { AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER } from '@acorex/platform/common';
|
|
2
|
-
import {
|
|
5
|
+
import { AXP_DATASOURCE_DEFINITION_PROVIDER } from '@acorex/platform/core';
|
|
3
6
|
import { CommonModule } from '@angular/common';
|
|
4
|
-
import * as i0 from '@angular/core';
|
|
5
|
-
import { inject, Injector, Injectable, NgModule } from '@angular/core';
|
|
6
7
|
import { AXPSessionService } from '@acorex/platform/auth';
|
|
7
8
|
import { firstValueFrom } from 'rxjs';
|
|
8
9
|
import { AXP_IDENTIFIER_RULES } from '@acorex/modules/identifier-management';
|
|
10
|
+
import { AXDataSource } from '@acorex/cdk/common';
|
|
11
|
+
import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
|
|
9
12
|
|
|
10
13
|
const config = {
|
|
11
14
|
i18n: 'human-capital-management',
|
|
@@ -59,6 +62,45 @@ const RootConfig = {
|
|
|
59
62
|
},
|
|
60
63
|
};
|
|
61
64
|
|
|
65
|
+
class AXMHumanCapitalManagementEmployeeEntityService extends AXMEntityCrudServiceImpl {
|
|
66
|
+
}
|
|
67
|
+
class AXMHumanCapitalManagementEmployeeEntityServiceImpl extends AXMHumanCapitalManagementEmployeeEntityService {
|
|
68
|
+
constructor() {
|
|
69
|
+
super(`${RootConfig.module.name}.${RootConfig.entities.employee.name}`);
|
|
70
|
+
}
|
|
71
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementEmployeeEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
72
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementEmployeeEntityServiceImpl }); }
|
|
73
|
+
}
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementEmployeeEntityServiceImpl, decorators: [{
|
|
75
|
+
type: Injectable
|
|
76
|
+
}], ctorParameters: () => [] });
|
|
77
|
+
|
|
78
|
+
class AXMHumanCapitalManagementSkillEntityService extends AXMEntityCrudServiceImpl {
|
|
79
|
+
}
|
|
80
|
+
class AXMHumanCapitalManagementSkillEntityServiceImpl extends AXMHumanCapitalManagementSkillEntityService {
|
|
81
|
+
constructor() {
|
|
82
|
+
super(`${RootConfig.module.name}.${RootConfig.entities.skill.name}`);
|
|
83
|
+
}
|
|
84
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementSkillEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
85
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementSkillEntityServiceImpl }); }
|
|
86
|
+
}
|
|
87
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementSkillEntityServiceImpl, decorators: [{
|
|
88
|
+
type: Injectable
|
|
89
|
+
}], ctorParameters: () => [] });
|
|
90
|
+
|
|
91
|
+
class AXMHumanCapitalManagementEmploymentTypeEntityService extends AXMEntityCrudServiceImpl {
|
|
92
|
+
}
|
|
93
|
+
class AXMHumanCapitalManagementEmploymentTypeEntityServiceImpl extends AXMHumanCapitalManagementEmploymentTypeEntityService {
|
|
94
|
+
constructor() {
|
|
95
|
+
super(`${RootConfig.module.name}.${RootConfig.entities.employmentType.name}`);
|
|
96
|
+
}
|
|
97
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementEmploymentTypeEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
98
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementEmploymentTypeEntityServiceImpl }); }
|
|
99
|
+
}
|
|
100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementEmploymentTypeEntityServiceImpl, decorators: [{
|
|
101
|
+
type: Injectable
|
|
102
|
+
}], ctorParameters: () => [] });
|
|
103
|
+
|
|
62
104
|
class AXMHumanCapitalModuleEntityProvider {
|
|
63
105
|
constructor() {
|
|
64
106
|
this.injector = inject(Injector);
|
|
@@ -74,17 +116,17 @@ class AXMHumanCapitalModuleEntityProvider {
|
|
|
74
116
|
if (moduleName == RootConfig.module.name) {
|
|
75
117
|
switch (entityName) {
|
|
76
118
|
case RootConfig.entities.employee.name:
|
|
77
|
-
return (await import('./acorex-modules-human-capital-management-employee.entity-
|
|
119
|
+
return (await import('./acorex-modules-human-capital-management-employee.entity-ByBqfKiF.mjs')).factory(this.injector);
|
|
78
120
|
case RootConfig.entities.employmentType.name:
|
|
79
|
-
return (await import('./acorex-modules-human-capital-management-employment-type.entity-
|
|
121
|
+
return (await import('./acorex-modules-human-capital-management-employment-type.entity-DZ8ubvD6.mjs')).factory(this.injector);
|
|
80
122
|
case RootConfig.entities.skill.name:
|
|
81
|
-
return (await import('./acorex-modules-human-capital-management-skill.entity-
|
|
123
|
+
return (await import('./acorex-modules-human-capital-management-skill.entity-DPeTwYH4.mjs')).factory(this.injector);
|
|
82
124
|
case RootConfig.entities.skillLevel.name:
|
|
83
|
-
return (await import('./acorex-modules-human-capital-management-skill-level.entity-
|
|
125
|
+
return (await import('./acorex-modules-human-capital-management-skill-level.entity-DFCE3zcH.mjs')).factory(this.injector);
|
|
84
126
|
case RootConfig.entities.employeeSkill.name:
|
|
85
|
-
return (await import('./acorex-modules-human-capital-management-employee-skill.entity-
|
|
127
|
+
return (await import('./acorex-modules-human-capital-management-employee-skill.entity-DfVvf8Fg.mjs')).factory(this.injector);
|
|
86
128
|
case RootConfig.entities.positionAssignment?.name:
|
|
87
|
-
return (await import('./acorex-modules-human-capital-management-position-assignment.entity-
|
|
129
|
+
return (await import('./acorex-modules-human-capital-management-position-assignment.entity-BtIVnv-C.mjs')).factory(this.injector);
|
|
88
130
|
}
|
|
89
131
|
}
|
|
90
132
|
return null;
|
|
@@ -145,19 +187,6 @@ class AXMMenuProvider {
|
|
|
145
187
|
}
|
|
146
188
|
}
|
|
147
189
|
|
|
148
|
-
class AXMHumanCapitalManagementEmploymentTypeEntityService extends AXMEntityCrudServiceImpl {
|
|
149
|
-
}
|
|
150
|
-
class AXMHumanCapitalManagementEmploymentTypeEntityServiceImpl extends AXMHumanCapitalManagementEmploymentTypeEntityService {
|
|
151
|
-
constructor() {
|
|
152
|
-
super(`${RootConfig.module.name}.${RootConfig.entities.employmentType.name}`);
|
|
153
|
-
}
|
|
154
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementEmploymentTypeEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
155
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementEmploymentTypeEntityServiceImpl }); }
|
|
156
|
-
}
|
|
157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementEmploymentTypeEntityServiceImpl, decorators: [{
|
|
158
|
-
type: Injectable
|
|
159
|
-
}], ctorParameters: () => [] });
|
|
160
|
-
|
|
161
190
|
class AXMHumanCapitalManagementEmploymentTypeEntityModule {
|
|
162
191
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementEmploymentTypeEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
163
192
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementEmploymentTypeEntityModule }); }
|
|
@@ -183,19 +212,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
183
212
|
}]
|
|
184
213
|
}] });
|
|
185
214
|
|
|
186
|
-
class AXMHumanCapitalManagementSkillEntityService extends AXMEntityCrudServiceImpl {
|
|
187
|
-
}
|
|
188
|
-
class AXMHumanCapitalManagementSkillEntityServiceImpl extends AXMHumanCapitalManagementSkillEntityService {
|
|
189
|
-
constructor() {
|
|
190
|
-
super(`${RootConfig.module.name}.${RootConfig.entities.skill.name}`);
|
|
191
|
-
}
|
|
192
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementSkillEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
193
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementSkillEntityServiceImpl }); }
|
|
194
|
-
}
|
|
195
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementSkillEntityServiceImpl, decorators: [{
|
|
196
|
-
type: Injectable
|
|
197
|
-
}], ctorParameters: () => [] });
|
|
198
|
-
|
|
199
215
|
class AXMHumanCapitalManagementSkillEntityModule {
|
|
200
216
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementSkillEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
201
217
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementSkillEntityModule }); }
|
|
@@ -311,19 +327,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
311
327
|
}]
|
|
312
328
|
}] });
|
|
313
329
|
|
|
314
|
-
class AXMHumanCapitalManagementEmployeeEntityService extends AXMEntityCrudServiceImpl {
|
|
315
|
-
}
|
|
316
|
-
class AXMHumanCapitalManagementEmployeeEntityServiceImpl extends AXMHumanCapitalManagementEmployeeEntityService {
|
|
317
|
-
constructor() {
|
|
318
|
-
super(`${RootConfig.module.name}.${RootConfig.entities.employee.name}`);
|
|
319
|
-
}
|
|
320
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementEmployeeEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
321
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementEmployeeEntityServiceImpl }); }
|
|
322
|
-
}
|
|
323
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementEmployeeEntityServiceImpl, decorators: [{
|
|
324
|
-
type: Injectable
|
|
325
|
-
}], ctorParameters: () => [] });
|
|
326
|
-
|
|
327
330
|
class AXMHumanCapitalManagementEmployeeEntityModule {
|
|
328
331
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementEmployeeEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
329
332
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementEmployeeEntityModule }); }
|
|
@@ -353,6 +356,252 @@ const AXM_EMPLOYEE_CODE_IDENTIFIER_RULE = {
|
|
|
353
356
|
scopeConfig: { byTenant: false, period: 'yearly', minValue: 100, blockSize: 0 },
|
|
354
357
|
};
|
|
355
358
|
|
|
359
|
+
class AXMEmployeeDataSourceDefinition {
|
|
360
|
+
constructor() {
|
|
361
|
+
this.employeeService = inject(AXMHumanCapitalManagementEmployeeEntityService);
|
|
362
|
+
}
|
|
363
|
+
items() {
|
|
364
|
+
return Promise.resolve([
|
|
365
|
+
{
|
|
366
|
+
name: 'employees',
|
|
367
|
+
title: 'Employees',
|
|
368
|
+
source: () => {
|
|
369
|
+
return new AXDataSource({
|
|
370
|
+
key: 'id',
|
|
371
|
+
load: async (_) => {
|
|
372
|
+
try {
|
|
373
|
+
const res = await this.employeeService.query();
|
|
374
|
+
return {
|
|
375
|
+
items: res.items.map((item) => ({
|
|
376
|
+
...item,
|
|
377
|
+
})),
|
|
378
|
+
total: res.total,
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
catch (e) {
|
|
382
|
+
console.log(e);
|
|
383
|
+
throw e;
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
byKey: async (key) => {
|
|
387
|
+
return await this.employeeService.getOne(key);
|
|
388
|
+
},
|
|
389
|
+
pageSize: 100,
|
|
390
|
+
});
|
|
391
|
+
},
|
|
392
|
+
columns: [
|
|
393
|
+
{
|
|
394
|
+
name: 'id',
|
|
395
|
+
title: 'ID',
|
|
396
|
+
datatype: 'uuid',
|
|
397
|
+
type: AXPWidgetsCatalog.text,
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
name: 'employeeCode',
|
|
401
|
+
title: 'Employee Code',
|
|
402
|
+
datatype: 'string',
|
|
403
|
+
type: AXPWidgetsCatalog.text,
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
name: 'party.displayName',
|
|
407
|
+
title: 'Display Name',
|
|
408
|
+
datatype: 'string',
|
|
409
|
+
type: AXPWidgetsCatalog.text,
|
|
410
|
+
},
|
|
411
|
+
],
|
|
412
|
+
filters: [
|
|
413
|
+
{
|
|
414
|
+
field: 'employeeCode',
|
|
415
|
+
title: 'Employee Code',
|
|
416
|
+
operator: {
|
|
417
|
+
type: 'equal',
|
|
418
|
+
},
|
|
419
|
+
widget: {
|
|
420
|
+
type: AXPWidgetsCatalog.text,
|
|
421
|
+
},
|
|
422
|
+
filterType: {
|
|
423
|
+
advance: true,
|
|
424
|
+
inline: true,
|
|
425
|
+
},
|
|
426
|
+
},
|
|
427
|
+
],
|
|
428
|
+
textField: {
|
|
429
|
+
name: 'party.displayName',
|
|
430
|
+
title: 'Display Name',
|
|
431
|
+
},
|
|
432
|
+
valueField: {
|
|
433
|
+
name: 'id',
|
|
434
|
+
title: 'ID',
|
|
435
|
+
},
|
|
436
|
+
},
|
|
437
|
+
]);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
class AXMSkillDataSourceDefinition {
|
|
442
|
+
constructor() {
|
|
443
|
+
this.skillService = inject(AXMHumanCapitalManagementSkillEntityService);
|
|
444
|
+
}
|
|
445
|
+
items() {
|
|
446
|
+
return Promise.resolve([
|
|
447
|
+
{
|
|
448
|
+
name: 'skills',
|
|
449
|
+
title: 'Skills',
|
|
450
|
+
source: () => {
|
|
451
|
+
return new AXDataSource({
|
|
452
|
+
key: 'id',
|
|
453
|
+
load: async (_) => {
|
|
454
|
+
try {
|
|
455
|
+
const res = await this.skillService.query();
|
|
456
|
+
return {
|
|
457
|
+
items: res.items.map((item) => ({
|
|
458
|
+
...item,
|
|
459
|
+
})),
|
|
460
|
+
total: res.total,
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
catch (e) {
|
|
464
|
+
console.log(e);
|
|
465
|
+
throw e;
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
byKey: async (key) => {
|
|
469
|
+
return await this.skillService.getOne(key);
|
|
470
|
+
},
|
|
471
|
+
pageSize: 100,
|
|
472
|
+
});
|
|
473
|
+
},
|
|
474
|
+
columns: [
|
|
475
|
+
{
|
|
476
|
+
name: 'id',
|
|
477
|
+
title: 'ID',
|
|
478
|
+
datatype: 'uuid',
|
|
479
|
+
type: AXPWidgetsCatalog.text,
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
name: 'title',
|
|
483
|
+
title: 'Title',
|
|
484
|
+
datatype: 'string',
|
|
485
|
+
type: AXPWidgetsCatalog.text,
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
name: 'description',
|
|
489
|
+
title: 'Description',
|
|
490
|
+
datatype: 'string',
|
|
491
|
+
type: AXPWidgetsCatalog.text,
|
|
492
|
+
},
|
|
493
|
+
],
|
|
494
|
+
filters: [
|
|
495
|
+
{
|
|
496
|
+
field: 'title',
|
|
497
|
+
title: 'Title',
|
|
498
|
+
operator: {
|
|
499
|
+
type: 'equal',
|
|
500
|
+
},
|
|
501
|
+
widget: {
|
|
502
|
+
type: AXPWidgetsCatalog.text,
|
|
503
|
+
},
|
|
504
|
+
filterType: {
|
|
505
|
+
advance: true,
|
|
506
|
+
inline: true,
|
|
507
|
+
},
|
|
508
|
+
},
|
|
509
|
+
],
|
|
510
|
+
textField: {
|
|
511
|
+
name: 'title',
|
|
512
|
+
title: 'Title',
|
|
513
|
+
},
|
|
514
|
+
valueField: {
|
|
515
|
+
name: 'id',
|
|
516
|
+
title: 'ID',
|
|
517
|
+
},
|
|
518
|
+
},
|
|
519
|
+
]);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
class AXMEmploymentTypeDataSourceDefinition {
|
|
524
|
+
constructor() {
|
|
525
|
+
this.employmentTypeService = inject(AXMHumanCapitalManagementEmploymentTypeEntityService);
|
|
526
|
+
}
|
|
527
|
+
items() {
|
|
528
|
+
return Promise.resolve([
|
|
529
|
+
{
|
|
530
|
+
name: 'employmentTypes',
|
|
531
|
+
title: 'Employment Types',
|
|
532
|
+
source: () => {
|
|
533
|
+
return new AXDataSource({
|
|
534
|
+
key: 'id',
|
|
535
|
+
load: async (_) => {
|
|
536
|
+
try {
|
|
537
|
+
const res = await this.employmentTypeService.query();
|
|
538
|
+
return {
|
|
539
|
+
items: res.items.map((item) => ({
|
|
540
|
+
...item,
|
|
541
|
+
})),
|
|
542
|
+
total: res.total,
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
catch (e) {
|
|
546
|
+
console.log(e);
|
|
547
|
+
throw e;
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
byKey: async (key) => {
|
|
551
|
+
return await this.employmentTypeService.getOne(key);
|
|
552
|
+
},
|
|
553
|
+
pageSize: 100,
|
|
554
|
+
});
|
|
555
|
+
},
|
|
556
|
+
columns: [
|
|
557
|
+
{
|
|
558
|
+
name: 'id',
|
|
559
|
+
title: 'ID',
|
|
560
|
+
datatype: 'uuid',
|
|
561
|
+
type: AXPWidgetsCatalog.text,
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
name: 'title',
|
|
565
|
+
title: 'Title',
|
|
566
|
+
datatype: 'string',
|
|
567
|
+
type: AXPWidgetsCatalog.text,
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
name: 'description',
|
|
571
|
+
title: 'Description',
|
|
572
|
+
datatype: 'string',
|
|
573
|
+
type: AXPWidgetsCatalog.text,
|
|
574
|
+
},
|
|
575
|
+
],
|
|
576
|
+
filters: [
|
|
577
|
+
{
|
|
578
|
+
field: 'title',
|
|
579
|
+
title: 'Title',
|
|
580
|
+
operator: {
|
|
581
|
+
type: 'equal',
|
|
582
|
+
},
|
|
583
|
+
widget: {
|
|
584
|
+
type: AXPWidgetsCatalog.text,
|
|
585
|
+
},
|
|
586
|
+
filterType: {
|
|
587
|
+
advance: true,
|
|
588
|
+
inline: true,
|
|
589
|
+
},
|
|
590
|
+
},
|
|
591
|
+
],
|
|
592
|
+
textField: {
|
|
593
|
+
name: 'title',
|
|
594
|
+
title: 'Title',
|
|
595
|
+
},
|
|
596
|
+
valueField: {
|
|
597
|
+
name: 'id',
|
|
598
|
+
title: 'ID',
|
|
599
|
+
},
|
|
600
|
+
},
|
|
601
|
+
]);
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
356
605
|
class AXMHumanCapitalManagementModule {
|
|
357
606
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
358
607
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMHumanCapitalManagementModule, imports: [CommonModule,
|
|
@@ -387,6 +636,21 @@ class AXMHumanCapitalManagementModule {
|
|
|
387
636
|
},
|
|
388
637
|
multi: true,
|
|
389
638
|
},
|
|
639
|
+
{
|
|
640
|
+
provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
|
|
641
|
+
useClass: AXMEmployeeDataSourceDefinition,
|
|
642
|
+
multi: true,
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
|
|
646
|
+
useClass: AXMSkillDataSourceDefinition,
|
|
647
|
+
multi: true,
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
|
|
651
|
+
useClass: AXMEmploymentTypeDataSourceDefinition,
|
|
652
|
+
multi: true,
|
|
653
|
+
},
|
|
390
654
|
], imports: [CommonModule,
|
|
391
655
|
AXMHumanCapitalManagementEmploymentTypeEntityModule,
|
|
392
656
|
AXMHumanCapitalManagementSkillEntityModule,
|
|
@@ -432,6 +696,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
432
696
|
},
|
|
433
697
|
multi: true,
|
|
434
698
|
},
|
|
699
|
+
{
|
|
700
|
+
provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
|
|
701
|
+
useClass: AXMEmployeeDataSourceDefinition,
|
|
702
|
+
multi: true,
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
|
|
706
|
+
useClass: AXMSkillDataSourceDefinition,
|
|
707
|
+
multi: true,
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
|
|
711
|
+
useClass: AXMEmploymentTypeDataSourceDefinition,
|
|
712
|
+
multi: true,
|
|
713
|
+
},
|
|
435
714
|
],
|
|
436
715
|
}]
|
|
437
716
|
}] });
|
|
@@ -441,4 +720,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
441
720
|
*/
|
|
442
721
|
|
|
443
722
|
export { AXMHumanCapitalManagementEmployeeEntityService as A, RootConfig as R, AXMHumanCapitalManagementEmploymentTypeEntityService as a, AXMHumanCapitalManagementSkillEntityService as b, AXMHumanCapitalManagementSkillLevelEntityService as c, AXMHumanCapitalManagementEmployeeSkillEntityService as d, AXMHumanCapitalManagementPositionAssignmentEntityService as e, AXMHumanCapitalManagementModule as f };
|
|
444
|
-
//# sourceMappingURL=acorex-modules-human-capital-management-acorex-modules-human-capital-management-
|
|
723
|
+
//# sourceMappingURL=acorex-modules-human-capital-management-acorex-modules-human-capital-management-D4A3ZYFq.mjs.map
|