@acorex-platform/module-learning-management-client 0.0.32 → 0.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-attendance.mjs +310 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-attendance.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-certificate-definition.mjs +361 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-certificate-definition.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-certificate-type.mjs +315 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-certificate-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-certificate.mjs +419 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-certificate.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-course-type.mjs +303 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-course-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-course.mjs +425 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-course.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-enrollment.mjs +351 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-enrollment.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-learning-path-course.mjs +275 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-learning-path-course.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-learning-path.mjs +312 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-learning-path.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-license-type.mjs +268 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-license-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-license.mjs +455 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-license.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-mandatory-training-rule.mjs +307 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-mandatory-training-rule.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-skill-level.mjs +269 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-skill-level.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-skill.mjs +312 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-skill.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-training-definition.mjs +385 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-training-definition.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-training-type.mjs +268 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-training-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-training.mjs +533 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-training.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-acorex-platform-module-learning-management-client-contracts-entity-catalog-ClNS17tj.mjs +168 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-acorex-platform-module-learning-management-client-contracts-entity-catalog-ClNS17tj.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-attendance.entity-Ck3M7119.mjs +177 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-attendance.entity-Ck3M7119.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-certificate-definition.entity-BWLX4Ntr.mjs +228 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-certificate-definition.entity-BWLX4Ntr.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-certificate-type.entity-DP1VM7Wz.mjs +182 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-certificate-type.entity-DP1VM7Wz.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-certificate.entity-CpFZWjQD.mjs +286 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-certificate.entity-CpFZWjQD.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-course-type.entity-COvPpeuP.mjs +170 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-course-type.entity-COvPpeuP.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-course.entity-DGV0GXOx.mjs +292 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-course.entity-DGV0GXOx.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-enrollment.entity-BjMAdjP4.mjs +218 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-enrollment.entity-BjMAdjP4.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-learning-path-course.entity-CnigiF4h.mjs +142 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-learning-path-course.entity-CnigiF4h.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-learning-path.entity-BvwGprqj.mjs +179 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-learning-path.entity-BvwGprqj.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-license-type.entity-CIx_yEsa.mjs +135 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-license-type.entity-CIx_yEsa.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-license.entity-Io-OsU9-.mjs +322 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-license.entity-Io-OsU9-.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-mandatory-training-rule.entity-C1K_lJO-.mjs +174 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-mandatory-training-rule.entity-C1K_lJO-.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-skill-level.entity-CwnxHQp0.mjs +136 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-skill-level.entity-CwnxHQp0.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-skill.entity-BssD-nXO.mjs +179 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-skill.entity-BssD-nXO.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-training-definition.entity-DEeDkZCy.mjs +252 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-training-definition.entity-DEeDkZCy.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-training-type.entity-BrWqwqm6.mjs +135 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-training-type.entity-BrWqwqm6.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-training.entity-CFDPUTEF.mjs +400 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-training.entity-CFDPUTEF.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-learning-management-client-local-entities.mjs +45 -0
- package/fesm2022/acorex-platform-module-learning-management-client-local-entities.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-learning-management-client.mjs +1 -1
- package/fesm2022/acorex-platform-module-learning-management-client.mjs.map +1 -1
- package/package.json +77 -1
- package/types/acorex-platform-module-learning-management-client-contracts-entities-attendance.d.ts +5 -0
- package/types/acorex-platform-module-learning-management-client-contracts-entities-certificate-definition.d.ts +5 -0
- package/types/acorex-platform-module-learning-management-client-contracts-entities-certificate-type.d.ts +5 -0
- package/types/acorex-platform-module-learning-management-client-contracts-entities-certificate.d.ts +5 -0
- package/types/acorex-platform-module-learning-management-client-contracts-entities-course-type.d.ts +5 -0
- package/types/acorex-platform-module-learning-management-client-contracts-entities-course.d.ts +5 -0
- package/types/acorex-platform-module-learning-management-client-contracts-entities-enrollment.d.ts +5 -0
- package/types/acorex-platform-module-learning-management-client-contracts-entities-learning-path-course.d.ts +5 -0
- package/types/acorex-platform-module-learning-management-client-contracts-entities-learning-path.d.ts +5 -0
- package/types/acorex-platform-module-learning-management-client-contracts-entities-license-type.d.ts +5 -0
- package/types/acorex-platform-module-learning-management-client-contracts-entities-license.d.ts +5 -0
- package/types/acorex-platform-module-learning-management-client-contracts-entities-mandatory-training-rule.d.ts +5 -0
- package/types/acorex-platform-module-learning-management-client-contracts-entities-skill-level.d.ts +5 -0
- package/types/acorex-platform-module-learning-management-client-contracts-entities-skill.d.ts +5 -0
- package/types/acorex-platform-module-learning-management-client-contracts-entities-training-definition.d.ts +5 -0
- package/types/acorex-platform-module-learning-management-client-contracts-entities-training-type.d.ts +5 -0
- package/types/acorex-platform-module-learning-management-client-contracts-entities-training.d.ts +5 -0
- package/types/acorex-platform-module-learning-management-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-learning-management-client-contracts.d.ts +4 -2
- package/types/acorex-platform-module-learning-management-client-local-entities.d.ts +12 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
//#region ---- Root Configuration ----
|
|
2
|
+
const config = { i18n: 'learning-management', module: 'LearningManagement' };
|
|
3
|
+
const RootConfig = {
|
|
4
|
+
config,
|
|
5
|
+
module: {
|
|
6
|
+
module: 'learning-management',
|
|
7
|
+
name: 'LearningManagement',
|
|
8
|
+
title: '@learning-management:module.title',
|
|
9
|
+
icon: 'fa-light fa-graduation-cap',
|
|
10
|
+
},
|
|
11
|
+
entities: {
|
|
12
|
+
skillCategory: {
|
|
13
|
+
name: 'SkillCategory',
|
|
14
|
+
title: '@learning-management:skills.entities.skill-category.title',
|
|
15
|
+
titlePlural: '@learning-management:skills.entities.skill-category.plural',
|
|
16
|
+
icon: 'fa-light fa-layer-group',
|
|
17
|
+
},
|
|
18
|
+
skill: {
|
|
19
|
+
name: 'Skill',
|
|
20
|
+
title: '@learning-management:skills.entities.skill.title',
|
|
21
|
+
titlePlural: '@learning-management:skills.entities.skill.plural',
|
|
22
|
+
icon: 'fa-light fa-lightbulb',
|
|
23
|
+
},
|
|
24
|
+
skillLevel: {
|
|
25
|
+
name: 'SkillLevel',
|
|
26
|
+
title: '@learning-management:skills.entities.skill-level.title',
|
|
27
|
+
titlePlural: '@learning-management:skills.entities.skill-level.plural',
|
|
28
|
+
icon: 'fa-light fa-stairs',
|
|
29
|
+
},
|
|
30
|
+
courseType: {
|
|
31
|
+
name: 'CourseType',
|
|
32
|
+
title: '@learning-management:courses.entities.course-type.title',
|
|
33
|
+
titlePlural: '@learning-management:courses.entities.course-type.plural',
|
|
34
|
+
icon: 'fa-light fa-diagram-project',
|
|
35
|
+
},
|
|
36
|
+
trainingDefinition: {
|
|
37
|
+
name: 'TrainingDefinition',
|
|
38
|
+
title: '@learning-management:trainings.entities.training-definition.title',
|
|
39
|
+
titlePlural: '@learning-management:trainings.entities.training-definition.plural',
|
|
40
|
+
icon: 'fa-light fa-clipboard-list-check',
|
|
41
|
+
},
|
|
42
|
+
course: {
|
|
43
|
+
name: 'Course',
|
|
44
|
+
title: '@learning-management:courses.entities.course.title',
|
|
45
|
+
titlePlural: '@learning-management:courses.entities.course.plural',
|
|
46
|
+
icon: 'fa-light fa-book-open',
|
|
47
|
+
},
|
|
48
|
+
trainingType: {
|
|
49
|
+
name: 'TrainingType',
|
|
50
|
+
title: '@learning-management:trainings.entities.training-type.title',
|
|
51
|
+
titlePlural: '@learning-management:trainings.entities.training-type.plural',
|
|
52
|
+
icon: 'fa-light fa-clipboard-list',
|
|
53
|
+
},
|
|
54
|
+
training: {
|
|
55
|
+
name: 'Training',
|
|
56
|
+
title: '@learning-management:trainings.entities.training.title',
|
|
57
|
+
titlePlural: '@learning-management:trainings.entities.training.plural',
|
|
58
|
+
icon: 'fa-light fa-chalkboard-teacher',
|
|
59
|
+
},
|
|
60
|
+
enrollment: {
|
|
61
|
+
name: 'Enrollment',
|
|
62
|
+
title: '@learning-management:enrollments.entities.enrollment.title',
|
|
63
|
+
titlePlural: '@learning-management:enrollments.entities.enrollment.plural',
|
|
64
|
+
icon: 'fa-light fa-user-plus',
|
|
65
|
+
},
|
|
66
|
+
attendance: {
|
|
67
|
+
name: 'Attendance',
|
|
68
|
+
title: '@learning-management:enrollments.entities.attendance.title',
|
|
69
|
+
titlePlural: '@learning-management:enrollments.entities.attendance.plural',
|
|
70
|
+
icon: 'fa-light fa-calendar-check',
|
|
71
|
+
},
|
|
72
|
+
certificateType: {
|
|
73
|
+
name: 'CertificateType',
|
|
74
|
+
title: '@learning-management:certificates.entities.certificate-type.title',
|
|
75
|
+
titlePlural: '@learning-management:certificates.entities.certificate-type.plural',
|
|
76
|
+
icon: 'fa-light fa-stamp',
|
|
77
|
+
},
|
|
78
|
+
certificateDefinition: {
|
|
79
|
+
name: 'CertificateDefinition',
|
|
80
|
+
title: '@learning-management:certificates.entities.certificate-definition.title',
|
|
81
|
+
titlePlural: '@learning-management:certificates.entities.certificate-definition.plural',
|
|
82
|
+
icon: 'fa-light fa-scroll',
|
|
83
|
+
},
|
|
84
|
+
certificate: {
|
|
85
|
+
name: 'Certificate',
|
|
86
|
+
title: '@learning-management:certificates.entities.certificate.title',
|
|
87
|
+
titlePlural: '@learning-management:certificates.entities.certificate.plural',
|
|
88
|
+
icon: 'fa-light fa-award',
|
|
89
|
+
},
|
|
90
|
+
learningPath: {
|
|
91
|
+
name: 'LearningPath',
|
|
92
|
+
title: '@learning-management:learning-paths.entities.learning-path.title',
|
|
93
|
+
titlePlural: '@learning-management:learning-paths.entities.learning-path.plural',
|
|
94
|
+
icon: 'fa-light fa-route',
|
|
95
|
+
},
|
|
96
|
+
learningPathCourse: {
|
|
97
|
+
name: 'LearningPathCourse',
|
|
98
|
+
title: '@learning-management:learning-paths.entities.learning-path-course.title',
|
|
99
|
+
titlePlural: '@learning-management:learning-paths.entities.learning-path-course.plural',
|
|
100
|
+
icon: 'fa-light fa-list-ol',
|
|
101
|
+
},
|
|
102
|
+
mandatoryTrainingRule: {
|
|
103
|
+
name: 'MandatoryTrainingRule',
|
|
104
|
+
title: '@learning-management:compliance.entities.mandatory-training-rule.title',
|
|
105
|
+
titlePlural: '@learning-management:compliance.entities.mandatory-training-rule.plural',
|
|
106
|
+
icon: 'fa-light fa-clipboard-check',
|
|
107
|
+
},
|
|
108
|
+
licenseType: {
|
|
109
|
+
name: 'LicenseType',
|
|
110
|
+
title: '@learning-management:licenses.entities.license-type.title',
|
|
111
|
+
titlePlural: '@learning-management:licenses.entities.license-type.plural',
|
|
112
|
+
icon: 'fa-light fa-tags',
|
|
113
|
+
},
|
|
114
|
+
license: {
|
|
115
|
+
name: 'License',
|
|
116
|
+
title: '@learning-management:licenses.entities.license.title',
|
|
117
|
+
titlePlural: '@learning-management:licenses.entities.license.plural',
|
|
118
|
+
icon: 'fa-light fa-id-card',
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
queries: {
|
|
122
|
+
dashboard: {
|
|
123
|
+
trainingDueKpi: `${config.module}:Dashboard:TrainingDueKpi`,
|
|
124
|
+
trainingComplianceGauge: `${config.module}:Dashboard:TrainingComplianceGauge`,
|
|
125
|
+
trainingStatusDonut: `${config.module}:Dashboard:TrainingStatusDonut`,
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
//#endregion
|
|
130
|
+
|
|
131
|
+
//#region ----- Imports -----
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region ----- Local entity catalog -----
|
|
134
|
+
/**
|
|
135
|
+
* Lazy per-entity layout factories. Do not re-export from the contracts barrel
|
|
136
|
+
* so RootConfig imports stay light. Server seed and client `local-entities`
|
|
137
|
+
* consume this catalog explicitly.
|
|
138
|
+
*/
|
|
139
|
+
const learningManagementLocalEntityCatalog = {
|
|
140
|
+
moduleName: RootConfig.module.name,
|
|
141
|
+
loaders: {
|
|
142
|
+
[RootConfig.entities.attendance.name]: () => import('./acorex-platform-module-learning-management-client-contracts-entity-catalog-attendance.entity-Ck3M7119.mjs').then((m) => m.factoryAttendance()),
|
|
143
|
+
[RootConfig.entities.certificate.name]: () => import('./acorex-platform-module-learning-management-client-contracts-entity-catalog-certificate.entity-CpFZWjQD.mjs').then((m) => m.factoryCertificate()),
|
|
144
|
+
[RootConfig.entities.certificateDefinition.name]: () => import('./acorex-platform-module-learning-management-client-contracts-entity-catalog-certificate-definition.entity-BWLX4Ntr.mjs').then((m) => m.factoryCertificateDefinition()),
|
|
145
|
+
[RootConfig.entities.certificateType.name]: () => import('./acorex-platform-module-learning-management-client-contracts-entity-catalog-certificate-type.entity-DP1VM7Wz.mjs').then((m) => m.factoryCertificateType()),
|
|
146
|
+
[RootConfig.entities.course.name]: () => import('./acorex-platform-module-learning-management-client-contracts-entity-catalog-course.entity-DGV0GXOx.mjs').then((m) => m.factoryCourse()),
|
|
147
|
+
[RootConfig.entities.courseType.name]: () => import('./acorex-platform-module-learning-management-client-contracts-entity-catalog-course-type.entity-COvPpeuP.mjs').then((m) => m.factoryCourseType()),
|
|
148
|
+
[RootConfig.entities.enrollment.name]: () => import('./acorex-platform-module-learning-management-client-contracts-entity-catalog-enrollment.entity-BjMAdjP4.mjs').then((m) => m.factoryEnrollment()),
|
|
149
|
+
[RootConfig.entities.learningPath.name]: () => import('./acorex-platform-module-learning-management-client-contracts-entity-catalog-learning-path.entity-BvwGprqj.mjs').then((m) => m.factoryLearningPath()),
|
|
150
|
+
[RootConfig.entities.learningPathCourse.name]: () => import('./acorex-platform-module-learning-management-client-contracts-entity-catalog-learning-path-course.entity-CnigiF4h.mjs').then((m) => m.factoryLearningPathCourse()),
|
|
151
|
+
[RootConfig.entities.license.name]: () => import('./acorex-platform-module-learning-management-client-contracts-entity-catalog-license.entity-Io-OsU9-.mjs').then((m) => m.factoryLicense()),
|
|
152
|
+
[RootConfig.entities.licenseType.name]: () => import('./acorex-platform-module-learning-management-client-contracts-entity-catalog-license-type.entity-CIx_yEsa.mjs').then((m) => m.factoryLicenseType()),
|
|
153
|
+
[RootConfig.entities.mandatoryTrainingRule.name]: () => import('./acorex-platform-module-learning-management-client-contracts-entity-catalog-mandatory-training-rule.entity-C1K_lJO-.mjs').then((m) => m.factoryMandatoryTrainingRule()),
|
|
154
|
+
[RootConfig.entities.skill.name]: () => import('./acorex-platform-module-learning-management-client-contracts-entity-catalog-skill.entity-BssD-nXO.mjs').then((m) => m.factorySkill()),
|
|
155
|
+
[RootConfig.entities.skillLevel.name]: () => import('./acorex-platform-module-learning-management-client-contracts-entity-catalog-skill-level.entity-CwnxHQp0.mjs').then((m) => m.factorySkillLevel()),
|
|
156
|
+
[RootConfig.entities.training.name]: () => import('./acorex-platform-module-learning-management-client-contracts-entity-catalog-training.entity-CFDPUTEF.mjs').then((m) => m.factoryTraining()),
|
|
157
|
+
[RootConfig.entities.trainingDefinition.name]: () => import('./acorex-platform-module-learning-management-client-contracts-entity-catalog-training-definition.entity-DEeDkZCy.mjs').then((m) => m.factoryTrainingDefinition()),
|
|
158
|
+
[RootConfig.entities.trainingType.name]: () => import('./acorex-platform-module-learning-management-client-contracts-entity-catalog-training-type.entity-BrWqwqm6.mjs').then((m) => m.factoryTrainingType()),
|
|
159
|
+
},
|
|
160
|
+
};
|
|
161
|
+
//#endregion
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Generated bundle index. Do not edit.
|
|
165
|
+
*/
|
|
166
|
+
|
|
167
|
+
export { RootConfig as R, learningManagementLocalEntityCatalog as l };
|
|
168
|
+
//# sourceMappingURL=acorex-platform-module-learning-management-client-contracts-entity-catalog-acorex-platform-module-learning-management-client-contracts-entity-catalog-ClNS17tj.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-learning-management-client-contracts-entity-catalog-acorex-platform-module-learning-management-client-contracts-entity-catalog-ClNS17tj.mjs","sources":["../../../../libs/modules/learning-management/contracts/src/root-config.ts","../../../../libs/modules/learning-management/contracts/src/entity-catalog.ts","../../../../libs/modules/learning-management/contracts/src/acorex-platform-module-learning-management-client-contracts-entity-catalog.ts"],"sourcesContent":["//#region ---- Root Configuration ----\n\nconst config = { i18n: 'learning-management', module: 'LearningManagement' } as const;\n\nexport const RootConfig = {\n config,\n module: {\n module: 'learning-management',\n name: 'LearningManagement',\n title: '@learning-management:module.title',\n icon: 'fa-light fa-graduation-cap',\n },\n entities: {\n skillCategory: {\n name: 'SkillCategory',\n title: '@learning-management:skills.entities.skill-category.title',\n titlePlural: '@learning-management:skills.entities.skill-category.plural',\n icon: 'fa-light fa-layer-group',\n },\n skill: {\n name: 'Skill',\n title: '@learning-management:skills.entities.skill.title',\n titlePlural: '@learning-management:skills.entities.skill.plural',\n icon: 'fa-light fa-lightbulb',\n },\n skillLevel: {\n name: 'SkillLevel',\n title: '@learning-management:skills.entities.skill-level.title',\n titlePlural: '@learning-management:skills.entities.skill-level.plural',\n icon: 'fa-light fa-stairs',\n },\n courseType: {\n name: 'CourseType',\n title: '@learning-management:courses.entities.course-type.title',\n titlePlural: '@learning-management:courses.entities.course-type.plural',\n icon: 'fa-light fa-diagram-project',\n },\n trainingDefinition: {\n name: 'TrainingDefinition',\n title: '@learning-management:trainings.entities.training-definition.title',\n titlePlural: '@learning-management:trainings.entities.training-definition.plural',\n icon: 'fa-light fa-clipboard-list-check',\n },\n course: {\n name: 'Course',\n title: '@learning-management:courses.entities.course.title',\n titlePlural: '@learning-management:courses.entities.course.plural',\n icon: 'fa-light fa-book-open',\n },\n trainingType: {\n name: 'TrainingType',\n title: '@learning-management:trainings.entities.training-type.title',\n titlePlural: '@learning-management:trainings.entities.training-type.plural',\n icon: 'fa-light fa-clipboard-list',\n },\n training: {\n name: 'Training',\n title: '@learning-management:trainings.entities.training.title',\n titlePlural: '@learning-management:trainings.entities.training.plural',\n icon: 'fa-light fa-chalkboard-teacher',\n },\n enrollment: {\n name: 'Enrollment',\n title: '@learning-management:enrollments.entities.enrollment.title',\n titlePlural: '@learning-management:enrollments.entities.enrollment.plural',\n icon: 'fa-light fa-user-plus',\n },\n attendance: {\n name: 'Attendance',\n title: '@learning-management:enrollments.entities.attendance.title',\n titlePlural: '@learning-management:enrollments.entities.attendance.plural',\n icon: 'fa-light fa-calendar-check',\n },\n certificateType: {\n name: 'CertificateType',\n title: '@learning-management:certificates.entities.certificate-type.title',\n titlePlural: '@learning-management:certificates.entities.certificate-type.plural',\n icon: 'fa-light fa-stamp',\n },\n certificateDefinition: {\n name: 'CertificateDefinition',\n title: '@learning-management:certificates.entities.certificate-definition.title',\n titlePlural: '@learning-management:certificates.entities.certificate-definition.plural',\n icon: 'fa-light fa-scroll',\n },\n certificate: {\n name: 'Certificate',\n title: '@learning-management:certificates.entities.certificate.title',\n titlePlural: '@learning-management:certificates.entities.certificate.plural',\n icon: 'fa-light fa-award',\n },\n learningPath: {\n name: 'LearningPath',\n title: '@learning-management:learning-paths.entities.learning-path.title',\n titlePlural: '@learning-management:learning-paths.entities.learning-path.plural',\n icon: 'fa-light fa-route',\n },\n learningPathCourse: {\n name: 'LearningPathCourse',\n title: '@learning-management:learning-paths.entities.learning-path-course.title',\n titlePlural: '@learning-management:learning-paths.entities.learning-path-course.plural',\n icon: 'fa-light fa-list-ol',\n },\n mandatoryTrainingRule: {\n name: 'MandatoryTrainingRule',\n title: '@learning-management:compliance.entities.mandatory-training-rule.title',\n titlePlural: '@learning-management:compliance.entities.mandatory-training-rule.plural',\n icon: 'fa-light fa-clipboard-check',\n },\n licenseType: {\n name: 'LicenseType',\n title: '@learning-management:licenses.entities.license-type.title',\n titlePlural: '@learning-management:licenses.entities.license-type.plural',\n icon: 'fa-light fa-tags',\n },\n license: {\n name: 'License',\n title: '@learning-management:licenses.entities.license.title',\n titlePlural: '@learning-management:licenses.entities.license.plural',\n icon: 'fa-light fa-id-card',\n },\n },\n queries: {\n dashboard: {\n trainingDueKpi: `${config.module}:Dashboard:TrainingDueKpi`,\n trainingComplianceGauge: `${config.module}:Dashboard:TrainingComplianceGauge`,\n trainingStatusDonut: `${config.module}:Dashboard:TrainingStatusDonut`,\n },\n },\n} as const;\n\n//#endregion\n\n\n","//#region ----- Imports -----\n\nimport type { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ----- Local entity catalog -----\n\n/**\n * Lazy per-entity layout factories. Do not re-export from the contracts barrel\n * so RootConfig imports stay light. Server seed and client `local-entities`\n * consume this catalog explicitly.\n */\nexport const learningManagementLocalEntityCatalog: AXPLocalEntityCatalog = {\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.attendance.name]: () =>\n import('./entities/attendance/attendance.entity.js').then((m) => m.factoryAttendance()),\n [RootConfig.entities.certificate.name]: () =>\n import('./entities/certificate/certificate.entity.js').then((m) => m.factoryCertificate()),\n [RootConfig.entities.certificateDefinition.name]: () =>\n import('./entities/certificate-definition/certificate-definition.entity.js').then((m) => m.factoryCertificateDefinition()),\n [RootConfig.entities.certificateType.name]: () =>\n import('./entities/certificate-type/certificate-type.entity.js').then((m) => m.factoryCertificateType()),\n [RootConfig.entities.course.name]: () =>\n import('./entities/course/course.entity.js').then((m) => m.factoryCourse()),\n [RootConfig.entities.courseType.name]: () =>\n import('./entities/course-type/course-type.entity.js').then((m) => m.factoryCourseType()),\n [RootConfig.entities.enrollment.name]: () =>\n import('./entities/enrollment/enrollment.entity.js').then((m) => m.factoryEnrollment()),\n [RootConfig.entities.learningPath.name]: () =>\n import('./entities/learning-path/learning-path.entity.js').then((m) => m.factoryLearningPath()),\n [RootConfig.entities.learningPathCourse.name]: () =>\n import('./entities/learning-path-course/learning-path-course.entity.js').then((m) => m.factoryLearningPathCourse()),\n [RootConfig.entities.license.name]: () =>\n import('./entities/license/license.entity.js').then((m) => m.factoryLicense()),\n [RootConfig.entities.licenseType.name]: () =>\n import('./entities/license-type/license-type.entity.js').then((m) => m.factoryLicenseType()),\n [RootConfig.entities.mandatoryTrainingRule.name]: () =>\n import('./entities/mandatory-training-rule/mandatory-training-rule.entity.js').then((m) => m.factoryMandatoryTrainingRule()),\n [RootConfig.entities.skill.name]: () =>\n import('./entities/skill/skill.entity.js').then((m) => m.factorySkill()),\n [RootConfig.entities.skillLevel.name]: () =>\n import('./entities/skill-level/skill-level.entity.js').then((m) => m.factorySkillLevel()),\n [RootConfig.entities.training.name]: () =>\n import('./entities/training/training.entity.js').then((m) => m.factoryTraining()),\n [RootConfig.entities.trainingDefinition.name]: () =>\n import('./entities/training-definition/training-definition.entity.js').then((m) => m.factoryTrainingDefinition()),\n [RootConfig.entities.trainingType.name]: () =>\n import('./entities/training-type/training-type.entity.js').then((m) => m.factoryTrainingType()),\n },\n};\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-catalog';\n"],"names":[],"mappings":"AAAA;AAEA,MAAM,MAAM,GAAG,EAAE,IAAI,EAAE,qBAAqB,EAAE,MAAM,EAAE,oBAAoB,EAAW;AAE9E,MAAM,UAAU,GAAG;IACtB,MAAM;AACN,IAAA,MAAM,EAAE;AACJ,QAAA,MAAM,EAAE,qBAAqB;AAC7B,QAAA,IAAI,EAAE,oBAAoB;AAC1B,QAAA,KAA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YAAY,CAAC,IAAI,GAAG,MACvC,OAAO,gHAAkD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,mBAAmB,EAAE,CAAC;AAClG,KAAA;;AAGH;;ACvDA;;AAEG;;"}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-learning-management-client-contracts-entity-catalog-acorex-platform-module-learning-management-client-contracts-entity-catalog-ClNS17tj.mjs';
|
|
4
|
+
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region ---- Entity Factory ----
|
|
7
|
+
async function factoryAttendance() {
|
|
8
|
+
const entityDef = {
|
|
9
|
+
module: RootConfig.module.name,
|
|
10
|
+
name: RootConfig.entities.attendance.name,
|
|
11
|
+
title: RootConfig.entities.attendance.title,
|
|
12
|
+
icon: RootConfig.entities.attendance.icon,
|
|
13
|
+
plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }],
|
|
14
|
+
formats: {
|
|
15
|
+
individual: RootConfig.entities.attendance.title,
|
|
16
|
+
plural: RootConfig.entities.attendance.titlePlural,
|
|
17
|
+
searchResult: {
|
|
18
|
+
title: '{{ sessionDate | date:"mediumDate" }}',
|
|
19
|
+
description: '{{ status }}',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
groups: [{ id: 'basic-info', title: '@learning-management:enrollments.entities.attendance.groups.basic-info' }],
|
|
23
|
+
properties: [
|
|
24
|
+
{
|
|
25
|
+
name: 'id',
|
|
26
|
+
title: 'ID',
|
|
27
|
+
groupId: 'basic-info',
|
|
28
|
+
schema: {
|
|
29
|
+
dataType: 'uuid',
|
|
30
|
+
visible: false,
|
|
31
|
+
nullable: false,
|
|
32
|
+
readonly: true,
|
|
33
|
+
unique: { enabled: true },
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'enrollmentId',
|
|
38
|
+
title: '@learning-management:enrollments.entities.attendance.fields.enrollment-id.title',
|
|
39
|
+
groupId: 'basic-info',
|
|
40
|
+
options: {
|
|
41
|
+
sort: { enabled: true },
|
|
42
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
43
|
+
},
|
|
44
|
+
schema: {
|
|
45
|
+
dataType: 'string',
|
|
46
|
+
interface: {
|
|
47
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
48
|
+
options: {
|
|
49
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.enrollment.name}`,
|
|
50
|
+
expose: [
|
|
51
|
+
{ source: 'id', target: 'enrollment.id' },
|
|
52
|
+
{ source: 'employeeId', target: 'enrollment.employeeId' },
|
|
53
|
+
{ source: 'training.title', target: 'enrollment.trainingTitle' },
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
validations: [{ rule: 'required' }],
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'sessionDate',
|
|
62
|
+
title: '@learning-management:enrollments.entities.attendance.fields.session-date.title',
|
|
63
|
+
groupId: 'basic-info',
|
|
64
|
+
options: {
|
|
65
|
+
sort: { enabled: true },
|
|
66
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
67
|
+
},
|
|
68
|
+
schema: {
|
|
69
|
+
dataType: 'date',
|
|
70
|
+
interface: {
|
|
71
|
+
type: AXPWidgetsList.Editors.DateTimeBox,
|
|
72
|
+
options: {
|
|
73
|
+
displayFormat: 'date',
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
validations: [{ rule: 'required' }],
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'status',
|
|
81
|
+
title: '@learning-management:enrollments.entities.attendance.fields.status.title',
|
|
82
|
+
groupId: 'basic-info',
|
|
83
|
+
options: {
|
|
84
|
+
sort: { enabled: true },
|
|
85
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
86
|
+
},
|
|
87
|
+
schema: {
|
|
88
|
+
dataType: 'string',
|
|
89
|
+
defaultValue: 'Present',
|
|
90
|
+
interface: {
|
|
91
|
+
type: AXPWidgetsList.Editors.SelectBox,
|
|
92
|
+
options: {
|
|
93
|
+
valueField: 'id',
|
|
94
|
+
dataSource: [
|
|
95
|
+
{
|
|
96
|
+
id: 'Present',
|
|
97
|
+
title: '@learning-management:enrollments.entities.attendance.fields.status.options.present',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id: 'Absent',
|
|
101
|
+
title: '@learning-management:enrollments.entities.attendance.fields.status.options.absent',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
id: 'Late',
|
|
105
|
+
title: '@learning-management:enrollments.entities.attendance.fields.status.options.late',
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
validations: [{ rule: 'required' }],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'notes',
|
|
115
|
+
title: '@learning-management:enrollments.entities.attendance.fields.notes.title',
|
|
116
|
+
groupId: 'basic-info',
|
|
117
|
+
schema: {
|
|
118
|
+
dataType: 'string',
|
|
119
|
+
interface: {
|
|
120
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
121
|
+
options: {
|
|
122
|
+
rows: 3,
|
|
123
|
+
placeholder: '@learning-management:enrollments.entities.attendance.fields.notes.placeholder',
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
columns: [
|
|
130
|
+
{ name: 'sessionDate' },
|
|
131
|
+
{ name: 'status' },
|
|
132
|
+
{ name: 'enrollmentId', options: { dataPath: 'enrollment.employeeId' } },
|
|
133
|
+
],
|
|
134
|
+
interfaces: {
|
|
135
|
+
master: {
|
|
136
|
+
create: {
|
|
137
|
+
sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],
|
|
138
|
+
properties: [
|
|
139
|
+
{ name: 'enrollmentId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
140
|
+
{ name: 'sessionDate', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },
|
|
141
|
+
{ name: 'status', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
|
|
142
|
+
{ name: 'notes', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
update: {
|
|
146
|
+
sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],
|
|
147
|
+
properties: [
|
|
148
|
+
{ name: 'enrollmentId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
149
|
+
{ name: 'sessionDate', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },
|
|
150
|
+
{ name: 'status', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
|
|
151
|
+
{ name: 'notes', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
|
|
152
|
+
],
|
|
153
|
+
},
|
|
154
|
+
single: {
|
|
155
|
+
title: '{{ sessionDate | date:"mediumDate" }}',
|
|
156
|
+
sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],
|
|
157
|
+
properties: [
|
|
158
|
+
{ name: 'enrollmentId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
159
|
+
{ name: 'sessionDate', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },
|
|
160
|
+
{ name: 'status', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
|
|
161
|
+
{ name: 'notes', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
|
|
162
|
+
],
|
|
163
|
+
actions: [...entityMasterRecordActions()],
|
|
164
|
+
},
|
|
165
|
+
list: {
|
|
166
|
+
actions: [...entityMasterCrudActions()],
|
|
167
|
+
views: [createAllQueryView({ sorts: [{ name: 'sessionDate', dir: 'desc' }] })],
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
};
|
|
172
|
+
return entityDef;
|
|
173
|
+
}
|
|
174
|
+
//#endregion
|
|
175
|
+
|
|
176
|
+
export { factoryAttendance };
|
|
177
|
+
//# sourceMappingURL=acorex-platform-module-learning-management-client-contracts-entity-catalog-attendance.entity-Ck3M7119.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-learning-management-client-contracts-entity-catalog-attendance.entity-Ck3M7119.mjs","sources":["../../../../libs/modules/learning-management/contracts/src/entities/attendance/attendance.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function factoryAttendance(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.attendance.name,\n title: RootConfig.entities.attendance.title,\n icon: RootConfig.entities.attendance.icon,\n plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }],\n formats: {\n individual: RootConfig.entities.attendance.title,\n plural: RootConfig.entities.attendance.titlePlural,\n searchResult: {\n title: '{{ sessionDate | date:\"mediumDate\" }}',\n description: '{{ status }}',\n },\n },\n groups: [{ id: 'basic-info', title: '@learning-management:enrollments.entities.attendance.groups.basic-info' }],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'enrollmentId',\n title: '@learning-management:enrollments.entities.attendance.fields.enrollment-id.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.enrollment.name}`,\n expose: [\n { source: 'id', target: 'enrollment.id' },\n { source: 'employeeId', target: 'enrollment.employeeId' },\n { source: 'training.title', target: 'enrollment.trainingTitle' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'sessionDate',\n title: '@learning-management:enrollments.entities.attendance.fields.session-date.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'date',\n interface: {\n type: AXPWidgetsList.Editors.DateTimeBox,\n options: {\n displayFormat: 'date',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'status',\n title: '@learning-management:enrollments.entities.attendance.fields.status.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n defaultValue: 'Present',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'id',\n dataSource: [\n {\n id: 'Present',\n title: '@learning-management:enrollments.entities.attendance.fields.status.options.present',\n },\n {\n id: 'Absent',\n title: '@learning-management:enrollments.entities.attendance.fields.status.options.absent',\n },\n {\n id: 'Late',\n title: '@learning-management:enrollments.entities.attendance.fields.status.options.late',\n },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'notes',\n title: '@learning-management:enrollments.entities.attendance.fields.notes.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n placeholder: '@learning-management:enrollments.entities.attendance.fields.notes.placeholder',\n },\n },\n },\n },\n ],\n columns: [\n { name: 'sessionDate' },\n { name: 'status' },\n { name: 'enrollmentId', options: { dataPath: 'enrollment.employeeId' } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n { name: 'enrollmentId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'sessionDate', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },\n { name: 'status', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },\n { name: 'notes', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n { name: 'enrollmentId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'sessionDate', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },\n { name: 'status', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },\n { name: 'notes', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n ],\n },\n single: {\n title: '{{ sessionDate | date:\"mediumDate\" }}',\n sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n { name: 'enrollmentId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'sessionDate', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },\n { name: 'status', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },\n { name: 'notes', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'sessionDate', dir: 'desc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,iBAAiB,GAAA;AACrC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI;AACzC,QAAA,KAA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AE;wBACV,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBACjF,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBAChF,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBAC3E,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAC5E,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AAC/E,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-learning-management-client-contracts-entity-catalog-acorex-platform-module-learning-management-client-contracts-entity-catalog-ClNS17tj.mjs';
|
|
4
|
+
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region ---- Entity Factory ----
|
|
7
|
+
async function factoryCertificateDefinition() {
|
|
8
|
+
const entityDef = {
|
|
9
|
+
module: RootConfig.module.name,
|
|
10
|
+
name: RootConfig.entities.certificateDefinition.name,
|
|
11
|
+
title: RootConfig.entities.certificateDefinition.title,
|
|
12
|
+
icon: RootConfig.entities.certificateDefinition.icon,
|
|
13
|
+
plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }, { name: 'clone' }, { name: 'archive' }, { name: 'category' }],
|
|
14
|
+
formats: {
|
|
15
|
+
individual: RootConfig.entities.certificateDefinition.title,
|
|
16
|
+
plural: RootConfig.entities.certificateDefinition.titlePlural,
|
|
17
|
+
searchResult: {
|
|
18
|
+
title: '{{ title }}',
|
|
19
|
+
description: '{{ certificateType.title }}',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
groups: [
|
|
23
|
+
{ id: 'basic-info', title: '@general:terms.interface.basic-info' },
|
|
24
|
+
{
|
|
25
|
+
id: 'configuration',
|
|
26
|
+
title: '@learning-management:certificates.entities.certificate-definition.groups.configuration',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
properties: [
|
|
30
|
+
{
|
|
31
|
+
name: 'id',
|
|
32
|
+
title: 'ID',
|
|
33
|
+
groupId: 'basic-info',
|
|
34
|
+
schema: {
|
|
35
|
+
dataType: 'uuid',
|
|
36
|
+
visible: false,
|
|
37
|
+
nullable: false,
|
|
38
|
+
readonly: true,
|
|
39
|
+
unique: { enabled: true },
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'title',
|
|
44
|
+
title: '@learning-management:certificates.entities.certificate-definition.fields.title.title',
|
|
45
|
+
groupId: 'basic-info',
|
|
46
|
+
options: {
|
|
47
|
+
sort: { enabled: true },
|
|
48
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
49
|
+
},
|
|
50
|
+
schema: {
|
|
51
|
+
dataType: 'string',
|
|
52
|
+
interface: {
|
|
53
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
54
|
+
options: {
|
|
55
|
+
placeholder: '@learning-management:certificates.entities.certificate-definition.fields.title.placeholder',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
validations: [{ rule: 'required' }],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'description',
|
|
63
|
+
title: '@learning-management:certificates.entities.certificate-definition.fields.description.title',
|
|
64
|
+
groupId: 'basic-info',
|
|
65
|
+
schema: {
|
|
66
|
+
dataType: 'string',
|
|
67
|
+
interface: {
|
|
68
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
69
|
+
options: {
|
|
70
|
+
rows: 3,
|
|
71
|
+
placeholder: '@learning-management:certificates.entities.certificate-definition.fields.description.placeholder',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'certificateTypeId',
|
|
78
|
+
title: '@learning-management:certificates.entities.certificate-definition.fields.certificate-type-id.title',
|
|
79
|
+
groupId: 'basic-info',
|
|
80
|
+
options: {
|
|
81
|
+
sort: { enabled: true },
|
|
82
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
83
|
+
},
|
|
84
|
+
schema: {
|
|
85
|
+
dataType: 'string',
|
|
86
|
+
interface: {
|
|
87
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
88
|
+
options: {
|
|
89
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.certificateType.name}`,
|
|
90
|
+
look: 'select',
|
|
91
|
+
expose: [
|
|
92
|
+
{ source: 'id', target: 'certificateType.id' },
|
|
93
|
+
{ source: 'title', target: 'certificateType.title' },
|
|
94
|
+
],
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
validations: [{ rule: 'required' }],
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'courseId',
|
|
102
|
+
title: '@learning-management:certificates.entities.certificate-definition.fields.course-id.title',
|
|
103
|
+
groupId: 'configuration',
|
|
104
|
+
schema: {
|
|
105
|
+
dataType: 'string',
|
|
106
|
+
interface: {
|
|
107
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
108
|
+
options: {
|
|
109
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.course.name}`,
|
|
110
|
+
look: 'select',
|
|
111
|
+
expose: [
|
|
112
|
+
{ source: 'id', target: 'course.id' },
|
|
113
|
+
{ source: 'title', target: 'course.title' },
|
|
114
|
+
],
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: 'validityDays',
|
|
121
|
+
title: '@learning-management:certificates.entities.certificate-definition.fields.validity-days.title',
|
|
122
|
+
groupId: 'configuration',
|
|
123
|
+
schema: {
|
|
124
|
+
dataType: 'number',
|
|
125
|
+
interface: {
|
|
126
|
+
type: AXPWidgetsList.Editors.NumberBox,
|
|
127
|
+
options: {
|
|
128
|
+
minValue: 0,
|
|
129
|
+
placeholder: '@learning-management:certificates.entities.certificate-definition.fields.validity-days.placeholder',
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: 'templateId',
|
|
136
|
+
title: '@learning-management:certificates.entities.certificate-definition.fields.template-id.title',
|
|
137
|
+
groupId: 'configuration',
|
|
138
|
+
schema: {
|
|
139
|
+
dataType: 'string',
|
|
140
|
+
interface: {
|
|
141
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
142
|
+
options: {
|
|
143
|
+
entity: 'DocumentManagement.DocumentTemplate',
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: 'isActive',
|
|
150
|
+
title: '@learning-management:certificates.entities.certificate-definition.fields.is-active.title',
|
|
151
|
+
groupId: 'configuration',
|
|
152
|
+
schema: {
|
|
153
|
+
dataType: 'boolean',
|
|
154
|
+
defaultValue: true,
|
|
155
|
+
interface: {
|
|
156
|
+
type: AXPWidgetsList.Editors.ToggleSwitch,
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
columns: [
|
|
162
|
+
{ name: 'title' },
|
|
163
|
+
{ name: 'certificateTypeId', options: { dataPath: 'certificateType.title' } },
|
|
164
|
+
{ name: 'courseId', options: { dataPath: 'course.title' } },
|
|
165
|
+
{ name: 'isActive' },
|
|
166
|
+
],
|
|
167
|
+
interfaces: {
|
|
168
|
+
master: {
|
|
169
|
+
create: {
|
|
170
|
+
sections: [
|
|
171
|
+
{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
172
|
+
{ id: 'configuration', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
173
|
+
],
|
|
174
|
+
properties: [
|
|
175
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
176
|
+
{ name: 'certificateTypeId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
177
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
178
|
+
{ name: 'courseId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
179
|
+
{ name: 'validityDays', layout: { positions: { lg: { colSpan: 3, order: 5 } } } },
|
|
180
|
+
{ name: 'templateId', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
|
|
181
|
+
{ name: 'isActive', layout: { positions: { lg: { colSpan: 3, order: 7 } } } },
|
|
182
|
+
],
|
|
183
|
+
},
|
|
184
|
+
update: {
|
|
185
|
+
sections: [
|
|
186
|
+
{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
187
|
+
{ id: 'configuration', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
188
|
+
],
|
|
189
|
+
properties: [
|
|
190
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
191
|
+
{ name: 'certificateTypeId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
192
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
193
|
+
{ name: 'courseId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
194
|
+
{ name: 'validityDays', layout: { positions: { lg: { colSpan: 3, order: 5 } } } },
|
|
195
|
+
{ name: 'templateId', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
|
|
196
|
+
{ name: 'isActive', layout: { positions: { lg: { colSpan: 3, order: 7 } } } },
|
|
197
|
+
],
|
|
198
|
+
},
|
|
199
|
+
single: {
|
|
200
|
+
title: '{{ title }}',
|
|
201
|
+
sections: [
|
|
202
|
+
{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
203
|
+
{ id: 'configuration', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
204
|
+
],
|
|
205
|
+
properties: [
|
|
206
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
207
|
+
{ name: 'certificateTypeId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
208
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
209
|
+
{ name: 'courseId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
210
|
+
{ name: 'validityDays', layout: { positions: { lg: { colSpan: 3, order: 5 } } } },
|
|
211
|
+
{ name: 'templateId', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
|
|
212
|
+
{ name: 'isActive', layout: { positions: { lg: { colSpan: 3, order: 7 } } } },
|
|
213
|
+
],
|
|
214
|
+
actions: [...entityMasterRecordActions()],
|
|
215
|
+
},
|
|
216
|
+
list: {
|
|
217
|
+
actions: [...entityMasterCrudActions()],
|
|
218
|
+
views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
};
|
|
223
|
+
return entityDef;
|
|
224
|
+
}
|
|
225
|
+
//#endregion
|
|
226
|
+
|
|
227
|
+
export { factoryCertificateDefinition };
|
|
228
|
+
//# sourceMappingURL=acorex-platform-module-learning-management-client-contracts-entity-catalog-certificate-definition.entity-BWLX4Ntr.mjs.map
|