@acorex-platform/module-learning-management-client 0.0.30 → 0.0.33

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.
Files changed (97) hide show
  1. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-attendance.mjs +310 -0
  2. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-attendance.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-certificate-definition.mjs +361 -0
  4. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-certificate-definition.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-certificate-type.mjs +315 -0
  6. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-certificate-type.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-certificate.mjs +419 -0
  8. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-certificate.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-course-type.mjs +303 -0
  10. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-course-type.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-course.mjs +425 -0
  12. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-course.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-enrollment.mjs +351 -0
  14. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-enrollment.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-learning-path-course.mjs +275 -0
  16. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-learning-path-course.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-learning-path.mjs +312 -0
  18. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-learning-path.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-license-type.mjs +268 -0
  20. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-license-type.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-license.mjs +455 -0
  22. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-license.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-mandatory-training-rule.mjs +307 -0
  24. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-mandatory-training-rule.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-skill-level.mjs +269 -0
  26. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-skill-level.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-skill.mjs +312 -0
  28. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-skill.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-training-definition.mjs +385 -0
  30. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-training-definition.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-training-type.mjs +268 -0
  32. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-training-type.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-training.mjs +533 -0
  34. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entities-training.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-acorex-platform-module-learning-management-client-contracts-entity-catalog-D6aoPKI0.mjs +168 -0
  36. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-acorex-platform-module-learning-management-client-contracts-entity-catalog-D6aoPKI0.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-attendance.entity-DZE6j1Hi.mjs +177 -0
  38. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-attendance.entity-DZE6j1Hi.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-certificate-definition.entity-DxhgZoxi.mjs +228 -0
  40. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-certificate-definition.entity-DxhgZoxi.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-certificate-type.entity-CiLEVy60.mjs +182 -0
  42. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-certificate-type.entity-CiLEVy60.mjs.map +1 -0
  43. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-certificate.entity-BKYQ4DdM.mjs +286 -0
  44. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-certificate.entity-BKYQ4DdM.mjs.map +1 -0
  45. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-course-type.entity-DFZCsg01.mjs +170 -0
  46. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-course-type.entity-DFZCsg01.mjs.map +1 -0
  47. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-course.entity-CeZmDTkI.mjs +292 -0
  48. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-course.entity-CeZmDTkI.mjs.map +1 -0
  49. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-enrollment.entity-C0CC-Azv.mjs +218 -0
  50. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-enrollment.entity-C0CC-Azv.mjs.map +1 -0
  51. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-learning-path-course.entity-DSapNwgY.mjs +142 -0
  52. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-learning-path-course.entity-DSapNwgY.mjs.map +1 -0
  53. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-learning-path.entity-tMIEObH2.mjs +179 -0
  54. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-learning-path.entity-tMIEObH2.mjs.map +1 -0
  55. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-license-type.entity-BuYZmsU9.mjs +135 -0
  56. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-license-type.entity-BuYZmsU9.mjs.map +1 -0
  57. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-license.entity-QWIskVC5.mjs +322 -0
  58. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-license.entity-QWIskVC5.mjs.map +1 -0
  59. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-mandatory-training-rule.entity-DhagF6ds.mjs +174 -0
  60. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-mandatory-training-rule.entity-DhagF6ds.mjs.map +1 -0
  61. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-skill-level.entity-BAPpLmG4.mjs +136 -0
  62. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-skill-level.entity-BAPpLmG4.mjs.map +1 -0
  63. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-skill.entity-dri0gz1n.mjs +179 -0
  64. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-skill.entity-dri0gz1n.mjs.map +1 -0
  65. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-training-definition.entity-DTEftNxT.mjs +252 -0
  66. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-training-definition.entity-DTEftNxT.mjs.map +1 -0
  67. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-training-type.entity-DOAeiXIb.mjs +135 -0
  68. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-training-type.entity-DOAeiXIb.mjs.map +1 -0
  69. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-training.entity-DrL1z0Za.mjs +400 -0
  70. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog-training.entity-DrL1z0Za.mjs.map +1 -0
  71. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog.mjs +2 -0
  72. package/fesm2022/acorex-platform-module-learning-management-client-contracts-entity-catalog.mjs.map +1 -0
  73. package/fesm2022/acorex-platform-module-learning-management-client-local-entities.mjs +45 -0
  74. package/fesm2022/acorex-platform-module-learning-management-client-local-entities.mjs.map +1 -0
  75. package/fesm2022/acorex-platform-module-learning-management-client.mjs +69 -3
  76. package/fesm2022/acorex-platform-module-learning-management-client.mjs.map +1 -1
  77. package/package.json +77 -1
  78. package/types/acorex-platform-module-learning-management-client-contracts-entities-attendance.d.ts +5 -0
  79. package/types/acorex-platform-module-learning-management-client-contracts-entities-certificate-definition.d.ts +5 -0
  80. package/types/acorex-platform-module-learning-management-client-contracts-entities-certificate-type.d.ts +5 -0
  81. package/types/acorex-platform-module-learning-management-client-contracts-entities-certificate.d.ts +5 -0
  82. package/types/acorex-platform-module-learning-management-client-contracts-entities-course-type.d.ts +5 -0
  83. package/types/acorex-platform-module-learning-management-client-contracts-entities-course.d.ts +5 -0
  84. package/types/acorex-platform-module-learning-management-client-contracts-entities-enrollment.d.ts +5 -0
  85. package/types/acorex-platform-module-learning-management-client-contracts-entities-learning-path-course.d.ts +5 -0
  86. package/types/acorex-platform-module-learning-management-client-contracts-entities-learning-path.d.ts +5 -0
  87. package/types/acorex-platform-module-learning-management-client-contracts-entities-license-type.d.ts +5 -0
  88. package/types/acorex-platform-module-learning-management-client-contracts-entities-license.d.ts +5 -0
  89. package/types/acorex-platform-module-learning-management-client-contracts-entities-mandatory-training-rule.d.ts +5 -0
  90. package/types/acorex-platform-module-learning-management-client-contracts-entities-skill-level.d.ts +5 -0
  91. package/types/acorex-platform-module-learning-management-client-contracts-entities-skill.d.ts +5 -0
  92. package/types/acorex-platform-module-learning-management-client-contracts-entities-training-definition.d.ts +5 -0
  93. package/types/acorex-platform-module-learning-management-client-contracts-entities-training-type.d.ts +5 -0
  94. package/types/acorex-platform-module-learning-management-client-contracts-entities-training.d.ts +5 -0
  95. package/types/acorex-platform-module-learning-management-client-contracts-entity-catalog.d.ts +10 -0
  96. package/types/acorex-platform-module-learning-management-client-local-entities.d.ts +12 -0
  97. package/types/acorex-platform-module-learning-management-client.d.ts +8 -2
@@ -0,0 +1,218 @@
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-D6aoPKI0.mjs';
4
+
5
+ //#endregion
6
+ //#region ---- Entity Factory ----
7
+ async function factoryEnrollment() {
8
+ const entityDef = {
9
+ module: RootConfig.module.name,
10
+ name: RootConfig.entities.enrollment.name,
11
+ title: RootConfig.entities.enrollment.title,
12
+ icon: RootConfig.entities.enrollment.icon,
13
+ plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }, { name: 'attachments' }],
14
+ formats: {
15
+ individual: RootConfig.entities.enrollment.title,
16
+ plural: RootConfig.entities.enrollment.titlePlural,
17
+ searchResult: {
18
+ title: '{{ context.eval("employee.displayName") }}',
19
+ description: '{{ context.eval("training.title", { pipes: ["translate"] }) + " - " + context.eval("status") }}',
20
+ },
21
+ },
22
+ relatedEntities: [
23
+ {
24
+ entity: `${RootConfig.module.name}.${RootConfig.entities.attendance.name}`,
25
+ title: RootConfig.entities.attendance.titlePlural,
26
+ columns: ['sessionDate', 'status'],
27
+ conditions: [
28
+ {
29
+ name: 'enrollmentId',
30
+ operator: { type: 'equal' },
31
+ value: '{{ context.eval("id") }}',
32
+ },
33
+ ],
34
+ },
35
+ ],
36
+ groups: [
37
+ { id: 'basic-info', title: '@learning-management:enrollments.entities.enrollment.groups.basic-info' },
38
+ { id: 'workflow', title: '@learning-management:enrollments.entities.enrollment.groups.workflow' },
39
+ ],
40
+ properties: [
41
+ {
42
+ name: 'id',
43
+ title: 'ID',
44
+ groupId: 'basic-info',
45
+ schema: {
46
+ dataType: 'uuid',
47
+ visible: false,
48
+ nullable: false,
49
+ readonly: true,
50
+ unique: { enabled: true },
51
+ },
52
+ },
53
+ {
54
+ name: 'employeeId',
55
+ title: '@learning-management:enrollments.entities.enrollment.fields.employee-id.title',
56
+ groupId: 'basic-info',
57
+ options: {
58
+ sort: { enabled: true },
59
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
60
+ },
61
+ schema: {
62
+ dataType: 'string',
63
+ interface: {
64
+ type: AXPWidgetsList.Editors.LookupBox,
65
+ options: {
66
+ entity: 'HumanCapitalManagement.Employee',
67
+ expose: [
68
+ { source: 'id', target: 'employee.id' },
69
+ { source: 'person.fullName', target: 'employee.displayName' },
70
+ ],
71
+ },
72
+ },
73
+ },
74
+ validations: [{ rule: 'required' }],
75
+ },
76
+ {
77
+ name: 'trainingId',
78
+ title: '@learning-management:enrollments.entities.enrollment.fields.training-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.training.name}`,
90
+ expose: [
91
+ { source: 'id', target: 'training.id' },
92
+ { source: 'course.title', target: 'training.title' },
93
+ ],
94
+ },
95
+ },
96
+ },
97
+ validations: [{ rule: 'required' }],
98
+ },
99
+ {
100
+ name: 'status',
101
+ title: '@learning-management:enrollments.entities.enrollment.fields.status.title',
102
+ groupId: 'basic-info',
103
+ options: {
104
+ sort: { enabled: true },
105
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
106
+ },
107
+ schema: {
108
+ dataType: 'string',
109
+ defaultValue: 'Requested',
110
+ interface: {
111
+ type: AXPWidgetsList.Editors.SelectBox,
112
+ options: {
113
+ valueField: 'id',
114
+ dataSource: [
115
+ {
116
+ id: 'Requested',
117
+ title: '@learning-management:enrollments.entities.enrollment.fields.status.options.requested',
118
+ },
119
+ {
120
+ id: 'Approved',
121
+ title: '@learning-management:enrollments.entities.enrollment.fields.status.options.approved',
122
+ },
123
+ {
124
+ id: 'Enrolled',
125
+ title: '@learning-management:enrollments.entities.enrollment.fields.status.options.enrolled',
126
+ },
127
+ {
128
+ id: 'Completed',
129
+ title: '@learning-management:enrollments.entities.enrollment.fields.status.options.completed',
130
+ },
131
+ {
132
+ id: 'Failed',
133
+ title: '@learning-management:enrollments.entities.enrollment.fields.status.options.failed',
134
+ },
135
+ {
136
+ id: 'Cancelled',
137
+ title: '@learning-management:enrollments.entities.enrollment.fields.status.options.cancelled',
138
+ },
139
+ ],
140
+ },
141
+ },
142
+ },
143
+ validations: [{ rule: 'required' }],
144
+ },
145
+ {
146
+ name: 'notes',
147
+ title: '@learning-management:enrollments.entities.enrollment.fields.notes.title',
148
+ groupId: 'workflow',
149
+ schema: {
150
+ dataType: 'string',
151
+ interface: {
152
+ type: AXPWidgetsList.Editors.LargeTextBox,
153
+ options: {
154
+ rows: 3,
155
+ placeholder: '@learning-management:enrollments.entities.enrollment.fields.notes.placeholder',
156
+ },
157
+ },
158
+ },
159
+ },
160
+ ],
161
+ columns: [
162
+ { name: 'employeeId', options: { dataPath: 'employee.displayName' } },
163
+ { name: 'trainingId', options: { dataPath: 'training.title' } },
164
+ { name: 'status' },
165
+ ],
166
+ interfaces: {
167
+ master: {
168
+ create: {
169
+ sections: [
170
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
171
+ { id: 'workflow', layout: { positions: { lg: { colSpan: 12 } } } },
172
+ ],
173
+ properties: [
174
+ { name: 'employeeId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
175
+ { name: 'trainingId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
176
+ { name: 'status', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
177
+ { name: 'notes', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
178
+ ],
179
+ },
180
+ update: {
181
+ sections: [
182
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
183
+ { id: 'workflow', layout: { positions: { lg: { colSpan: 12 } } } },
184
+ ],
185
+ properties: [
186
+ { name: 'employeeId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
187
+ { name: 'trainingId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
188
+ { name: 'status', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
189
+ { name: 'notes', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
190
+ ],
191
+ },
192
+ single: {
193
+ title: '{{ context.eval("employee.displayName") }}',
194
+ sections: [
195
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
196
+ { id: 'workflow', layout: { positions: { lg: { colSpan: 12 } } } },
197
+ ],
198
+ properties: [
199
+ { name: 'employeeId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
200
+ { name: 'trainingId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
201
+ { name: 'status', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
202
+ { name: 'notes', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
203
+ ],
204
+ actions: [...entityMasterRecordActions()],
205
+ },
206
+ list: {
207
+ actions: [...entityMasterCrudActions()],
208
+ views: [createAllQueryView({ sorts: [{ name: 'createdAt', dir: 'desc' }] })],
209
+ },
210
+ },
211
+ },
212
+ };
213
+ return entityDef;
214
+ }
215
+ //#endregion
216
+
217
+ export { factoryEnrollment };
218
+ //# sourceMappingURL=acorex-platform-module-learning-management-client-contracts-entity-catalog-enrollment.entity-C0CC-Azv.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-learning-management-client-contracts-entity-catalog-enrollment.entity-C0CC-Azv.mjs","sources":["../../../../libs/modules/learning-management/contracts/src/entities/enrollment/enrollment.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 factoryEnrollment(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.enrollment.name,\n title: RootConfig.entities.enrollment.title,\n icon: RootConfig.entities.enrollment.icon,\n plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }, { name: 'attachments' }],\n formats: {\n individual: RootConfig.entities.enrollment.title,\n plural: RootConfig.entities.enrollment.titlePlural,\n searchResult: {\n title: '{{ context.eval(\"employee.displayName\") }}',\n description: '{{ context.eval(\"training.title\", { pipes: [\"translate\"] }) + \" - \" + context.eval(\"status\") }}',\n },\n },\n relatedEntities: [\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.attendance.name}`,\n title: RootConfig.entities.attendance.titlePlural,\n columns: ['sessionDate', 'status'],\n conditions: [\n {\n name: 'enrollmentId',\n operator: { type: 'equal' },\n value: '{{ context.eval(\"id\") }}',\n },\n ],\n },\n ],\n groups: [\n { id: 'basic-info', title: '@learning-management:enrollments.entities.enrollment.groups.basic-info' },\n { id: 'workflow', title: '@learning-management:enrollments.entities.enrollment.groups.workflow' },\n ],\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: 'employeeId',\n title: '@learning-management:enrollments.entities.enrollment.fields.employee-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: 'HumanCapitalManagement.Employee',\n expose: [\n { source: 'id', target: 'employee.id' },\n { source: 'person.fullName', target: 'employee.displayName' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'trainingId',\n title: '@learning-management:enrollments.entities.enrollment.fields.training-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.training.name}`,\n expose: [\n { source: 'id', target: 'training.id' },\n { source: 'course.title', target: 'training.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'status',\n title: '@learning-management:enrollments.entities.enrollment.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: 'Requested',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'id',\n dataSource: [\n {\n id: 'Requested',\n title: '@learning-management:enrollments.entities.enrollment.fields.status.options.requested',\n },\n {\n id: 'Approved',\n title: '@learning-management:enrollments.entities.enrollment.fields.status.options.approved',\n },\n {\n id: 'Enrolled',\n title: '@learning-management:enrollments.entities.enrollment.fields.status.options.enrolled',\n },\n {\n id: 'Completed',\n title: '@learning-management:enrollments.entities.enrollment.fields.status.options.completed',\n },\n {\n id: 'Failed',\n title: '@learning-management:enrollments.entities.enrollment.fields.status.options.failed',\n },\n {\n id: 'Cancelled',\n title: '@learning-management:enrollments.entities.enrollment.fields.status.options.cancelled',\n },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'notes',\n title: '@learning-management:enrollments.entities.enrollment.fields.notes.title',\n groupId: 'workflow',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n placeholder: '@learning-management:enrollments.entities.enrollment.fields.notes.placeholder',\n },\n },\n },\n },\n ],\n columns: [\n { name: 'employeeId', options: { dataPath: 'employee.displayName' } },\n { name: 'trainingId', options: { dataPath: 'training.title' } },\n { name: 'status' },\n ],\n interfaces: {\n master: {\n create: {\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'workflow', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'employeeId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'trainingId', layout: { positions: { lg: { colSpan: 6, 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: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'workflow', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'employeeId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'trainingId', layout: { positions: { lg: { colSpan: 6, 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: '{{ context.eval(\"employee.displayName\") }}',\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'workflow', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'employeeId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'trainingId', layout: { positions: { lg: { colSpan: 6, 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: 'createdAt', dir: 'desc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AA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AI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AAC7E,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
@@ -0,0 +1,142 @@
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-D6aoPKI0.mjs';
4
+
5
+ //#endregion
6
+ //#region ---- Entity Factory ----
7
+ async function factoryLearningPathCourse() {
8
+ const entityDef = {
9
+ module: RootConfig.module.name,
10
+ name: RootConfig.entities.learningPathCourse.name,
11
+ title: RootConfig.entities.learningPathCourse.title,
12
+ icon: RootConfig.entities.learningPathCourse.icon,
13
+ plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }],
14
+ formats: {
15
+ individual: RootConfig.entities.learningPathCourse.title,
16
+ plural: RootConfig.entities.learningPathCourse.titlePlural,
17
+ searchResult: {
18
+ title: '{{ course.title }}',
19
+ description: '{{ orderIndex }}',
20
+ },
21
+ },
22
+ groups: [
23
+ {
24
+ id: 'basic-info',
25
+ title: '@learning-management:learning-paths.entities.learning-path-course.groups.basic-info',
26
+ },
27
+ ],
28
+ properties: [
29
+ {
30
+ name: 'id',
31
+ title: 'ID',
32
+ groupId: 'basic-info',
33
+ schema: {
34
+ dataType: 'uuid',
35
+ visible: false,
36
+ nullable: false,
37
+ readonly: true,
38
+ unique: { enabled: true },
39
+ },
40
+ },
41
+ {
42
+ name: 'learningPathId',
43
+ title: '@learning-management:learning-paths.entities.learning-path-course.fields.learning-path-id.title',
44
+ groupId: 'basic-info',
45
+ schema: {
46
+ dataType: 'string',
47
+ interface: {
48
+ type: AXPWidgetsList.Editors.LookupBox,
49
+ options: {
50
+ entity: `${RootConfig.module.name}.${RootConfig.entities.learningPath.name}`,
51
+ look: 'select',
52
+ },
53
+ },
54
+ },
55
+ validations: [{ rule: 'required' }],
56
+ },
57
+ {
58
+ name: 'courseId',
59
+ title: '@learning-management:learning-paths.entities.learning-path-course.fields.course-id.title',
60
+ groupId: 'basic-info',
61
+ options: {
62
+ sort: { enabled: true },
63
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
64
+ },
65
+ schema: {
66
+ dataType: 'string',
67
+ interface: {
68
+ type: AXPWidgetsList.Editors.LookupBox,
69
+ options: {
70
+ entity: `${RootConfig.module.name}.${RootConfig.entities.course.name}`,
71
+ expose: [
72
+ { source: 'id', target: 'course.id' },
73
+ { source: 'title', target: 'course.title' },
74
+ ],
75
+ },
76
+ },
77
+ },
78
+ validations: [{ rule: 'required' }],
79
+ },
80
+ {
81
+ name: 'orderIndex',
82
+ title: '@learning-management:learning-paths.entities.learning-path-course.fields.order-index.title',
83
+ groupId: 'basic-info',
84
+ options: {
85
+ sort: { enabled: true },
86
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
87
+ },
88
+ schema: {
89
+ dataType: 'number',
90
+ interface: {
91
+ type: AXPWidgetsList.Editors.NumberBox,
92
+ options: {
93
+ minValue: 1,
94
+ step: 1,
95
+ },
96
+ },
97
+ },
98
+ validations: [{ rule: 'required' }],
99
+ },
100
+ ],
101
+ columns: [{ name: 'orderIndex' }, { name: 'courseId', options: { dataPath: 'course.title' } }],
102
+ interfaces: {
103
+ master: {
104
+ create: {
105
+ sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],
106
+ properties: [
107
+ { name: 'learningPathId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
108
+ { name: 'courseId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
109
+ { name: 'orderIndex', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
110
+ ],
111
+ },
112
+ update: {
113
+ sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],
114
+ properties: [
115
+ { name: 'learningPathId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
116
+ { name: 'courseId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
117
+ { name: 'orderIndex', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
118
+ ],
119
+ },
120
+ single: {
121
+ title: '{{ course.title }}',
122
+ sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],
123
+ properties: [
124
+ { name: 'learningPathId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
125
+ { name: 'courseId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
126
+ { name: 'orderIndex', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
127
+ ],
128
+ actions: [...entityMasterRecordActions()],
129
+ },
130
+ list: {
131
+ actions: [...entityMasterCrudActions()],
132
+ views: [createAllQueryView({ sorts: [{ name: 'orderIndex', dir: 'asc' }] })],
133
+ },
134
+ },
135
+ },
136
+ };
137
+ return entityDef;
138
+ }
139
+ //#endregion
140
+
141
+ export { factoryLearningPathCourse };
142
+ //# sourceMappingURL=acorex-platform-module-learning-management-client-contracts-entity-catalog-learning-path-course.entity-DSapNwgY.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-learning-management-client-contracts-entity-catalog-learning-path-course.entity-DSapNwgY.mjs","sources":["../../../../libs/modules/learning-management/contracts/src/entities/learning-path-course/learning-path-course.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 factoryLearningPathCourse(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.learningPathCourse.name,\n title: RootConfig.entities.learningPathCourse.title,\n icon: RootConfig.entities.learningPathCourse.icon,\n plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }],\n formats: {\n individual: RootConfig.entities.learningPathCourse.title,\n plural: RootConfig.entities.learningPathCourse.titlePlural,\n searchResult: {\n title: '{{ course.title }}',\n description: '{{ orderIndex }}',\n },\n },\n groups: [\n {\n id: 'basic-info',\n title: '@learning-management:learning-paths.entities.learning-path-course.groups.basic-info',\n },\n ],\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: 'learningPathId',\n title: '@learning-management:learning-paths.entities.learning-path-course.fields.learning-path-id.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.learningPath.name}`,\n look: 'select',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'courseId',\n title: '@learning-management:learning-paths.entities.learning-path-course.fields.course-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.course.name}`,\n expose: [\n { source: 'id', target: 'course.id' },\n { source: 'title', target: 'course.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'orderIndex',\n title: '@learning-management:learning-paths.entities.learning-path-course.fields.order-index.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 1,\n step: 1,\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n ],\n columns: [{ name: 'orderIndex' }, { name: 'courseId', options: { dataPath: 'course.title' } }],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n { name: 'learningPathId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'courseId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'orderIndex', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n { name: 'learningPathId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'courseId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'orderIndex', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },\n ],\n },\n single: {\n title: '{{ course.title }}',\n sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n { name: 'learningPathId', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'courseId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'orderIndex', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'orderIndex', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,yBAAyB,GAAA;AAC7C,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI;AACjD,QAAA,KAAK,EAAE,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E,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AAChF,oBAAA,UAAU,EAAE;wBACV,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBACnF,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBAC7E,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAChF,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,YAAY,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AAC7E,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
@@ -0,0 +1,179 @@
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-D6aoPKI0.mjs';
4
+
5
+ //#endregion
6
+ //#region ---- Entity Factory ----
7
+ async function factoryLearningPath() {
8
+ const entityDef = {
9
+ module: RootConfig.module.name,
10
+ name: RootConfig.entities.learningPath.name,
11
+ title: RootConfig.entities.learningPath.title,
12
+ icon: RootConfig.entities.learningPath.icon,
13
+ plugins: [
14
+ { name: 'history' },
15
+ { name: 'lock' },
16
+ { name: 'compare' },
17
+ { name: 'clone' },
18
+ { name: 'tags' },
19
+ { name: 'attachments' },
20
+ ],
21
+ formats: {
22
+ individual: RootConfig.entities.learningPath.title,
23
+ plural: RootConfig.entities.learningPath.titlePlural,
24
+ searchResult: {
25
+ title: '{{ title }}',
26
+ description: '{{ isActive ? "@general:states.active" : "@general:states.inactive" }}',
27
+ },
28
+ },
29
+ relatedEntities: [
30
+ {
31
+ entity: `${RootConfig.module.name}.${RootConfig.entities.learningPathCourse.name}`,
32
+ title: RootConfig.entities.learningPathCourse.titlePlural,
33
+ columns: ['orderIndex', 'courseId'],
34
+ conditions: [
35
+ {
36
+ name: 'learningPathId',
37
+ operator: { type: 'equal' },
38
+ value: '{{ context.eval("id") }}',
39
+ },
40
+ ],
41
+ },
42
+ ],
43
+ groups: [
44
+ { id: 'basic-info', title: '@learning-management:learning-paths.entities.learning-path.groups.basic-info' },
45
+ { id: 'settings', title: '@learning-management:learning-paths.entities.learning-path.groups.settings' },
46
+ ],
47
+ properties: [
48
+ {
49
+ name: 'id',
50
+ title: 'ID',
51
+ groupId: 'basic-info',
52
+ schema: {
53
+ dataType: 'uuid',
54
+ visible: false,
55
+ nullable: false,
56
+ readonly: true,
57
+ unique: { enabled: true },
58
+ },
59
+ },
60
+ {
61
+ name: 'code',
62
+ title: '@learning-management:learning-paths.entities.learning-path.fields.code.title',
63
+ groupId: 'basic-info',
64
+ options: {
65
+ sort: { enabled: true },
66
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
67
+ },
68
+ schema: {
69
+ dataType: 'string',
70
+ interface: {
71
+ type: AXPWidgetsList.Editors.TextBox,
72
+ options: {
73
+ placeholder: '@learning-management:learning-paths.entities.learning-path.fields.code.placeholder',
74
+ },
75
+ },
76
+ },
77
+ validations: [{ rule: 'required' }],
78
+ },
79
+ {
80
+ name: 'title',
81
+ title: '@learning-management:learning-paths.entities.learning-path.fields.title.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
+ interface: {
90
+ type: AXPWidgetsList.Editors.TextBox,
91
+ options: {
92
+ placeholder: '@learning-management:learning-paths.entities.learning-path.fields.title.placeholder',
93
+ },
94
+ },
95
+ },
96
+ validations: [{ rule: 'required' }],
97
+ },
98
+ {
99
+ name: 'description',
100
+ title: '@learning-management:learning-paths.entities.learning-path.fields.description.title',
101
+ groupId: 'basic-info',
102
+ schema: {
103
+ dataType: 'string',
104
+ interface: {
105
+ type: AXPWidgetsList.Editors.LargeTextBox,
106
+ options: {
107
+ rows: 4,
108
+ placeholder: '@learning-management:learning-paths.entities.learning-path.fields.description.placeholder',
109
+ },
110
+ },
111
+ },
112
+ },
113
+ {
114
+ name: 'isActive',
115
+ title: '@learning-management:learning-paths.entities.learning-path.fields.is-active.title',
116
+ groupId: 'settings',
117
+ schema: {
118
+ dataType: 'boolean',
119
+ defaultValue: true,
120
+ interface: {
121
+ type: AXPWidgetsList.Editors.ToggleSwitch,
122
+ },
123
+ },
124
+ },
125
+ ],
126
+ columns: [{ name: 'code' }, { name: 'title' }, { name: 'isActive' }, { name: 'description' }],
127
+ interfaces: {
128
+ master: {
129
+ create: {
130
+ sections: [
131
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
132
+ { id: 'settings', layout: { positions: { lg: { colSpan: 12 } } } },
133
+ ],
134
+ properties: [
135
+ { name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
136
+ { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },
137
+ { name: 'isActive', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
138
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
139
+ ],
140
+ },
141
+ update: {
142
+ sections: [
143
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
144
+ { id: 'settings', layout: { positions: { lg: { colSpan: 12 } } } },
145
+ ],
146
+ properties: [
147
+ { name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
148
+ { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },
149
+ { name: 'isActive', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
150
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
151
+ ],
152
+ },
153
+ single: {
154
+ title: '{{ title }}',
155
+ sections: [
156
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
157
+ { id: 'settings', layout: { positions: { lg: { colSpan: 12 } } } },
158
+ ],
159
+ properties: [
160
+ { name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
161
+ { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },
162
+ { name: 'isActive', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
163
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
164
+ ],
165
+ actions: [...entityMasterRecordActions()],
166
+ },
167
+ list: {
168
+ actions: [...entityMasterCrudActions()],
169
+ views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],
170
+ },
171
+ },
172
+ },
173
+ };
174
+ return entityDef;
175
+ }
176
+ //#endregion
177
+
178
+ export { factoryLearningPath };
179
+ //# sourceMappingURL=acorex-platform-module-learning-management-client-contracts-entity-catalog-learning-path.entity-tMIEObH2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-learning-management-client-contracts-entity-catalog-learning-path.entity-tMIEObH2.mjs","sources":["../../../../libs/modules/learning-management/contracts/src/entities/learning-path/learning-path.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 factoryLearningPath(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.learningPath.name,\n title: RootConfig.entities.learningPath.title,\n icon: RootConfig.entities.learningPath.icon,\n plugins: [\n { name: 'history' },\n { name: 'lock' },\n { name: 'compare' },\n { name: 'clone' },\n { name: 'tags' },\n { name: 'attachments' },\n ],\n formats: {\n individual: RootConfig.entities.learningPath.title,\n plural: RootConfig.entities.learningPath.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ isActive ? \"@general:states.active\" : \"@general:states.inactive\" }}',\n },\n },\n relatedEntities: [\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.learningPathCourse.name}`,\n title: RootConfig.entities.learningPathCourse.titlePlural,\n columns: ['orderIndex', 'courseId'],\n conditions: [\n {\n name: 'learningPathId',\n operator: { type: 'equal' },\n value: '{{ context.eval(\"id\") }}',\n },\n ],\n },\n ],\n groups: [\n { id: 'basic-info', title: '@learning-management:learning-paths.entities.learning-path.groups.basic-info' },\n { id: 'settings', title: '@learning-management:learning-paths.entities.learning-path.groups.settings' },\n ],\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: 'code',\n title: '@learning-management:learning-paths.entities.learning-path.fields.code.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.TextBox,\n options: {\n placeholder: '@learning-management:learning-paths.entities.learning-path.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@learning-management:learning-paths.entities.learning-path.fields.title.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.TextBox,\n options: {\n placeholder: '@learning-management:learning-paths.entities.learning-path.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@learning-management:learning-paths.entities.learning-path.fields.description.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 4,\n placeholder: '@learning-management:learning-paths.entities.learning-path.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'isActive',\n title: '@learning-management:learning-paths.entities.learning-path.fields.is-active.title',\n groupId: 'settings',\n schema: {\n dataType: 'boolean',\n defaultValue: true,\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n },\n },\n },\n ],\n columns: [{ name: 'code' }, { name: 'title' }, { name: 'isActive' }, { name: 'description' }],\n interfaces: {\n master: {\n create: {\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'settings', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },\n { name: 'isActive', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n ],\n },\n update: {\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'settings', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },\n { name: 'isActive', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'settings', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },\n { name: 'isActive', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'code', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,mBAAmB,GAAA;AACvC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI;AAC3C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK;AAC7C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI;AAC3C,QAAA,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,SAAS,EAAE;YACnB,EAAE,IAAI,EAAE,MAAM,EAAE;YAChB,EAAE,IAAI,EAAE,SAAS,EAAE;YACnB,EAAE,IAAI,EAAE,OAAO,EAAE;YACjB,EAAE,IAAI,EAAE,MAAM,EAAE;YAChB,EAAE,IAAI,EAAE,aAAa,EAAE;AACxB,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK;AAClD,YAAA,MAAM,EAAE,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