@acorex-platform/module-organization-management-client 0.0.32 → 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 (74) hide show
  1. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-business-unit-type.mjs +318 -0
  2. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-business-unit-type.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-business-unit.mjs +516 -0
  4. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-business-unit.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-chart.mjs +314 -0
  6. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-chart.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-company.mjs +250 -0
  8. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-company.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-job-definition.mjs +439 -0
  10. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-job-definition.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-job-level.mjs +385 -0
  12. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-job-level.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-position.mjs +657 -0
  14. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-position.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-responsibility-level.mjs +248 -0
  16. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-responsibility-level.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-responsibility.mjs +317 -0
  18. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-responsibility.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-business-unit.mjs +413 -0
  20. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-business-unit.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-member-role.mjs +220 -0
  22. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-member-role.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-member.mjs +366 -0
  24. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team-member.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team.mjs +421 -0
  26. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entities-team.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-acorex-platform-module-organization-management-client-contracts-entity-catalog-xL4H41ft.mjs +146 -0
  28. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-acorex-platform-module-organization-management-client-contracts-entity-catalog-xL4H41ft.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit-type.entity-BE6ZOUYI.mjs +203 -0
  30. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit-type.entity-BE6ZOUYI.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit.entity-CzApxGMJ.mjs +401 -0
  32. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-business-unit.entity-CzApxGMJ.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-chart.entity-BWocZ2iP.mjs +199 -0
  34. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-chart.entity-BWocZ2iP.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-company.entity-tU-53b9G.mjs +135 -0
  36. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-company.entity-tU-53b9G.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-job-definition.entity-sOUJWK_4.mjs +324 -0
  38. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-job-definition.entity-sOUJWK_4.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-job-level.entity-C866Av4K.mjs +270 -0
  40. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-job-level.entity-C866Av4K.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-position.entity-DI5SQJdb.mjs +542 -0
  42. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-position.entity-DI5SQJdb.mjs.map +1 -0
  43. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility-level.entity-DHyK2SPK.mjs +133 -0
  44. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility-level.entity-DHyK2SPK.mjs.map +1 -0
  45. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility.entity-B3UAoNc6.mjs +202 -0
  46. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-responsibility.entity-B3UAoNc6.mjs.map +1 -0
  47. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-business-unit.entity-CCSV3xtX.mjs +298 -0
  48. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-business-unit.entity-CCSV3xtX.mjs.map +1 -0
  49. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member-role.entity-vnO44D26.mjs +105 -0
  50. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member-role.entity-vnO44D26.mjs.map +1 -0
  51. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member.entity-j7Zu11Fo.mjs +251 -0
  52. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team-member.entity-j7Zu11Fo.mjs.map +1 -0
  53. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team.entity-BBdUYFU0.mjs +306 -0
  54. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog-team.entity-BBdUYFU0.mjs.map +1 -0
  55. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog.mjs +2 -0
  56. package/fesm2022/acorex-platform-module-organization-management-client-contracts-entity-catalog.mjs.map +1 -0
  57. package/fesm2022/acorex-platform-module-organization-management-client-local-entities.mjs +41 -0
  58. package/fesm2022/acorex-platform-module-organization-management-client-local-entities.mjs.map +1 -0
  59. package/package.json +62 -2
  60. package/types/acorex-platform-module-organization-management-client-contracts-entities-business-unit-type.d.ts +5 -0
  61. package/types/acorex-platform-module-organization-management-client-contracts-entities-business-unit.d.ts +5 -0
  62. package/types/acorex-platform-module-organization-management-client-contracts-entities-chart.d.ts +5 -0
  63. package/types/acorex-platform-module-organization-management-client-contracts-entities-company.d.ts +5 -0
  64. package/types/acorex-platform-module-organization-management-client-contracts-entities-job-definition.d.ts +5 -0
  65. package/types/acorex-platform-module-organization-management-client-contracts-entities-job-level.d.ts +5 -0
  66. package/types/acorex-platform-module-organization-management-client-contracts-entities-position.d.ts +5 -0
  67. package/types/acorex-platform-module-organization-management-client-contracts-entities-responsibility-level.d.ts +5 -0
  68. package/types/acorex-platform-module-organization-management-client-contracts-entities-responsibility.d.ts +5 -0
  69. package/types/acorex-platform-module-organization-management-client-contracts-entities-team-business-unit.d.ts +5 -0
  70. package/types/acorex-platform-module-organization-management-client-contracts-entities-team-member-role.d.ts +5 -0
  71. package/types/acorex-platform-module-organization-management-client-contracts-entities-team-member.d.ts +5 -0
  72. package/types/acorex-platform-module-organization-management-client-contracts-entities-team.d.ts +5 -0
  73. package/types/acorex-platform-module-organization-management-client-contracts-entity-catalog.d.ts +10 -0
  74. package/types/acorex-platform-module-organization-management-client-local-entities.d.ts +12 -0
@@ -0,0 +1,324 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterDeleteAction } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-organization-management-client-contracts-entity-catalog-acorex-platform-module-organization-management-client-contracts-entity-catalog-xL4H41ft.mjs';
4
+
5
+ /** Page tab for editing job-definition responsibilities matrix. Registered via {@link AXP_PAGE_COMPONENT_PROVIDER}. */
6
+ const JOB_DEFINITION_RESPONSIBILITIES_PAGE_COMPONENT_KEY = 'job-definition-responsibilities-page';
7
+
8
+ /** Page tab for editing job-definition skills matrix. Registered via {@link AXP_PAGE_COMPONENT_PROVIDER}. */
9
+ const JOB_DEFINITION_SKILLS_PAGE_COMPONENT_KEY = 'job-definition-skills-page';
10
+
11
+ async function factoryJobDefinition() {
12
+ const entityDef = {
13
+ module: RootConfig.module.name,
14
+ name: RootConfig.entities.jobDefinition.name,
15
+ plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }, { name: 'clone' }, { name: 'category' }],
16
+ title: RootConfig.entities.jobDefinition.title,
17
+ icon: RootConfig.entities.jobDefinition.icon,
18
+ formats: {
19
+ individual: '@organization-management:job-definitions.entities.job-definition.title',
20
+ plural: '@organization-management:job-definitions.entities.job-definition.plural',
21
+ searchResult: {
22
+ title: '{{ title }}',
23
+ description: RootConfig.module.title,
24
+ },
25
+ },
26
+ pages: [
27
+ {
28
+ componentKey: JOB_DEFINITION_RESPONSIBILITIES_PAGE_COMPONENT_KEY,
29
+ field: 'responsibilities',
30
+ title: '@organization-management:job-definitions.entities.job-definition.fields.responsibilities.title',
31
+ icon: 'fa-light fa-table',
32
+ layout: { order: 1, position: 'after' },
33
+ },
34
+ {
35
+ componentKey: JOB_DEFINITION_SKILLS_PAGE_COMPONENT_KEY,
36
+ field: 'skillRequirements',
37
+ title: '@organization-management:job-definitions.entities.job-definition.fields.skills.title',
38
+ icon: 'fa-light fa-layer-group',
39
+ layout: { order: 2, position: 'after' },
40
+ },
41
+ ],
42
+ groups: [
43
+ {
44
+ id: 'basic-info',
45
+ title: `@general:terms.interface.basic-info`,
46
+ },
47
+ {
48
+ id: 'responsibilities',
49
+ title: '@organization-management:job-definitions.entities.job-definition.groups.responsibilities',
50
+ },
51
+ {
52
+ id: 'skills',
53
+ title: '@organization-management:job-definitions.entities.job-definition.groups.skills',
54
+ },
55
+ ],
56
+ properties: [
57
+ {
58
+ name: 'id',
59
+ title: 'ID',
60
+ groupId: 'basic-info',
61
+ schema: {
62
+ dataType: 'uuid',
63
+ visible: false,
64
+ nullable: false,
65
+ readonly: true,
66
+ unique: {
67
+ enabled: true,
68
+ },
69
+ },
70
+ },
71
+ {
72
+ name: 'title',
73
+ title: `@general:terms.common.title`,
74
+ groupId: 'basic-info',
75
+ schema: {
76
+ dataType: 'string',
77
+ interface: {
78
+ type: AXPWidgetsList.Editors.TextBox,
79
+ },
80
+ },
81
+ options: {
82
+ sort: {
83
+ enabled: true,
84
+ },
85
+ filter: {
86
+ advance: {
87
+ enabled: true,
88
+ },
89
+ inline: {
90
+ enabled: true,
91
+ },
92
+ },
93
+ },
94
+ validations: [
95
+ {
96
+ rule: 'required',
97
+ },
98
+ ],
99
+ },
100
+ {
101
+ name: 'jobLevelIds',
102
+ title: '@organization-management:job-definitions.entities.job-definition.fields.job-levels.title',
103
+ groupId: 'basic-info',
104
+ schema: {
105
+ dataType: 'array',
106
+ interface: {
107
+ type: AXPWidgetsList.Editors.LookupBox,
108
+ options: {
109
+ entity: `${RootConfig.module.name}.${RootConfig.entities.jobLevel.name}`,
110
+ textField: 'title',
111
+ valueField: 'id',
112
+ multiple: true,
113
+ look: 'select',
114
+ expose: [
115
+ { source: 'id', target: 'jobLevelsList.{id}' },
116
+ { source: 'title', target: 'jobLevelsList.{title}' },
117
+ ],
118
+ },
119
+ },
120
+ },
121
+ options: {
122
+ sort: {
123
+ enabled: true,
124
+ },
125
+ filter: {
126
+ advance: {
127
+ enabled: true,
128
+ },
129
+ inline: {
130
+ enabled: true,
131
+ },
132
+ },
133
+ },
134
+ validations: [
135
+ {
136
+ rule: 'required',
137
+ },
138
+ ],
139
+ },
140
+ {
141
+ name: 'responsibilities',
142
+ title: '@organization-management:job-definitions.entities.job-definition.fields.responsibilities.title',
143
+ groupId: 'responsibilities',
144
+ schema: {
145
+ dataType: 'object',
146
+ interface: {
147
+ type: AXPWidgetsList.Editors.ResponsibilitiesMatrix,
148
+ options: {
149
+ titles: '{{ context.eval("jobLevelsList") }}',
150
+ },
151
+ },
152
+ },
153
+ },
154
+ {
155
+ name: 'skillRequirements',
156
+ title: '@organization-management:job-definitions.entities.job-definition.fields.skills.title',
157
+ groupId: 'skills',
158
+ schema: {
159
+ dataType: 'object',
160
+ interface: {
161
+ type: AXPWidgetsList.Editors.SkillMatrix,
162
+ options: {
163
+ titles: '{{ context.eval("jobLevelsList") }}',
164
+ },
165
+ },
166
+ },
167
+ },
168
+ {
169
+ name: 'description',
170
+ title: `@general:terms.common.description`,
171
+ groupId: 'basic-info',
172
+ schema: {
173
+ dataType: 'string',
174
+ interface: {
175
+ type: AXPWidgetsList.Editors.LargeTextBox,
176
+ },
177
+ },
178
+ },
179
+ ],
180
+ columns: [
181
+ { name: 'title' },
182
+ { name: 'description' },
183
+ { name: 'jobLevelIds', options: { dataPath: 'jobLevelsList' } },
184
+ ],
185
+ interfaces: {
186
+ master: {
187
+ create: {
188
+ sections: [
189
+ {
190
+ id: 'basic-info',
191
+ },
192
+ ],
193
+ properties: [
194
+ {
195
+ name: 'title',
196
+ layout: {
197
+ positions: {
198
+ lg: {
199
+ colSpan: 12,
200
+ },
201
+ },
202
+ },
203
+ },
204
+ {
205
+ name: 'jobLevelIds',
206
+ layout: {
207
+ positions: {
208
+ lg: {
209
+ colSpan: 12,
210
+ },
211
+ },
212
+ },
213
+ },
214
+ {
215
+ name: 'description',
216
+ layout: {
217
+ positions: {
218
+ lg: {
219
+ colSpan: 12,
220
+ },
221
+ },
222
+ },
223
+ },
224
+ ],
225
+ },
226
+ update: {
227
+ sections: [
228
+ {
229
+ id: 'basic-info',
230
+ },
231
+ ],
232
+ properties: [
233
+ {
234
+ name: 'title',
235
+ layout: {
236
+ positions: {
237
+ lg: {
238
+ colSpan: 12,
239
+ },
240
+ },
241
+ },
242
+ },
243
+ {
244
+ name: 'jobLevelIds',
245
+ layout: {
246
+ positions: {
247
+ lg: {
248
+ colSpan: 12,
249
+ },
250
+ },
251
+ },
252
+ },
253
+ {
254
+ name: 'description',
255
+ layout: {
256
+ positions: {
257
+ lg: {
258
+ colSpan: 12,
259
+ },
260
+ },
261
+ },
262
+ },
263
+ ],
264
+ },
265
+ single: {
266
+ title: '{{title}}',
267
+ sections: [
268
+ {
269
+ id: 'basic-info',
270
+ layout: {
271
+ positions: {
272
+ lg: {
273
+ colSpan: 12,
274
+ },
275
+ },
276
+ },
277
+ },
278
+ ],
279
+ properties: [
280
+ {
281
+ name: 'title',
282
+ layout: {
283
+ positions: {
284
+ lg: {
285
+ colSpan: 12,
286
+ },
287
+ },
288
+ },
289
+ },
290
+ {
291
+ name: 'jobLevelIds',
292
+ layout: {
293
+ positions: {
294
+ lg: {
295
+ colSpan: 12,
296
+ },
297
+ },
298
+ },
299
+ },
300
+ {
301
+ name: 'description',
302
+ layout: {
303
+ positions: {
304
+ lg: {
305
+ colSpan: 12,
306
+ },
307
+ },
308
+ },
309
+ },
310
+ ],
311
+ actions: [entityMasterDeleteAction()],
312
+ },
313
+ list: {
314
+ actions: [...entityMasterCrudActions()],
315
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
316
+ },
317
+ },
318
+ },
319
+ };
320
+ return entityDef;
321
+ }
322
+
323
+ export { factoryJobDefinition };
324
+ //# sourceMappingURL=acorex-platform-module-organization-management-client-contracts-entity-catalog-job-definition.entity-sOUJWK_4.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-organization-management-client-contracts-entity-catalog-job-definition.entity-sOUJWK_4.mjs","sources":["../../../../libs/modules/organization-management/contracts/src/JOB_DEFINITION_RESPONSIBILITIES_PAGE_COMPONENT_KEY.ts","../../../../libs/modules/organization-management/contracts/src/JOB_DEFINITION_SKILLS_PAGE_COMPONENT_KEY.ts","../../../../libs/modules/organization-management/contracts/src/entities/job-definition/job-definition.entity.ts"],"sourcesContent":["/** Page tab for editing job-definition responsibilities matrix. Registered via {@link AXP_PAGE_COMPONENT_PROVIDER}. */\nexport const JOB_DEFINITION_RESPONSIBILITIES_PAGE_COMPONENT_KEY = 'job-definition-responsibilities-page';\n","/** Page tab for editing job-definition skills matrix. Registered via {@link AXP_PAGE_COMPONENT_PROVIDER}. */\nexport const JOB_DEFINITION_SKILLS_PAGE_COMPONENT_KEY = 'job-definition-skills-page';\n","import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterDeleteAction } from '@acorex-platform/framework-shared/entity';\nimport { JOB_DEFINITION_RESPONSIBILITIES_PAGE_COMPONENT_KEY } from '../../JOB_DEFINITION_RESPONSIBILITIES_PAGE_COMPONENT_KEY';\nimport { JOB_DEFINITION_SKILLS_PAGE_COMPONENT_KEY } from '../../JOB_DEFINITION_SKILLS_PAGE_COMPONENT_KEY';\nimport { RootConfig } from '../../root-config';\n\nexport async function factoryJobDefinition(): Promise<AXPEntity | null> {\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.jobDefinition.name,\n plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }, { name: 'clone' }, { name: 'category' }],\n title: RootConfig.entities.jobDefinition.title,\n icon: RootConfig.entities.jobDefinition.icon,\n formats: {\n individual: '@organization-management:job-definitions.entities.job-definition.title',\n plural: '@organization-management:job-definitions.entities.job-definition.plural',\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n pages: [\n {\n componentKey: JOB_DEFINITION_RESPONSIBILITIES_PAGE_COMPONENT_KEY,\n field: 'responsibilities',\n title: '@organization-management:job-definitions.entities.job-definition.fields.responsibilities.title',\n icon: 'fa-light fa-table',\n layout: { order: 1, position: 'after' },\n },\n {\n componentKey: JOB_DEFINITION_SKILLS_PAGE_COMPONENT_KEY,\n field: 'skillRequirements',\n title: '@organization-management:job-definitions.entities.job-definition.fields.skills.title',\n icon: 'fa-light fa-layer-group',\n layout: { order: 2, position: 'after' },\n },\n ],\n groups: [\n {\n id: 'basic-info',\n title: `@general:terms.interface.basic-info`,\n },\n {\n id: 'responsibilities',\n title: '@organization-management:job-definitions.entities.job-definition.groups.responsibilities',\n },\n {\n id: 'skills',\n title: '@organization-management:job-definitions.entities.job-definition.groups.skills',\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: {\n enabled: true,\n },\n },\n },\n {\n name: 'title',\n title: `@general:terms.common.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n },\n },\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n inline: {\n enabled: true,\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'jobLevelIds',\n title: '@organization-management:job-definitions.entities.job-definition.fields.job-levels.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'array',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.jobLevel.name}`,\n textField: 'title',\n valueField: 'id',\n multiple: true,\n look: 'select',\n expose: [\n { source: 'id', target: 'jobLevelsList.{id}' },\n { source: 'title', target: 'jobLevelsList.{title}' },\n ],\n },\n },\n },\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n inline: {\n enabled: true,\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'responsibilities',\n title: '@organization-management:job-definitions.entities.job-definition.fields.responsibilities.title',\n groupId: 'responsibilities',\n schema: {\n dataType: 'object',\n interface: {\n type: AXPWidgetsList.Editors.ResponsibilitiesMatrix,\n options: {\n titles: '{{ context.eval(\"jobLevelsList\") }}',\n },\n },\n },\n },\n {\n name: 'skillRequirements',\n title: '@organization-management:job-definitions.entities.job-definition.fields.skills.title',\n groupId: 'skills',\n schema: {\n dataType: 'object',\n interface: {\n type: AXPWidgetsList.Editors.SkillMatrix,\n options: {\n titles: '{{ context.eval(\"jobLevelsList\") }}',\n },\n },\n },\n },\n {\n name: 'description',\n title: `@general:terms.common.description`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n },\n },\n },\n ],\n columns: [\n { name: 'title' },\n { name: 'description' },\n { name: 'jobLevelIds', options: { dataPath: 'jobLevelsList' } },\n ],\n\n interfaces: {\n master: {\n create: {\n sections: [\n {\n id: 'basic-info',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n {\n name: 'jobLevelIds',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n {\n name: 'description',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n },\n update: {\n sections: [\n {\n id: 'basic-info',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n {\n name: 'jobLevelIds',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n {\n name: 'description',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [\n {\n id: 'basic-info',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n {\n name: 'jobLevelIds',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n {\n name: 'description',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n actions: [entityMasterDeleteAction()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n"],"names":[],"mappings":";;;;AAAA;AACO,MAAM,kDAAkD,GAAG,sCAAsC;;ACDxG;AACO,MAAM,wCAAwC,GAAG,4BAA4B;;ACK7E,eAAe,oBAAoB,GAAA;AAExC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI;AAC5C,QAAA,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;AAC9G,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK;AAC9C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI;AAC5C,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,wEAAwE;AACpF,YAAA,MAAM,EAAE,yEAAyE;AACjF,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,aAAa;AACpB,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK;AACrC,aAAA;AACF,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA;AACE,gBAAA,YAAY,EAAE,kDAAkD;AAChE,gBAAA,KAAK,EAAE,kBAAkB;AACzB,gBAAA,KAAK,EAAE,gGAAgG;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E;AACT,oCAAA,EAAE,EAAE;AACF,wCAAA,OAAO,EAAE,EAAE;AACZ,qCAAA;AACF,iCAAA;AACF,6BAAA;AACF,yBAAA;AACD,wBAAA;AACE,4BAAA,IAAI,EAAE,aAAa;AACnB,4BAAA,MAAM,EAAE;AACN,gCAAA,SAAS,EAAE;AACT,oCAAA,EAAE,EAAE;AACF,wCAAA,OAAO,EAAE,EAAE;AACZ,qCAAA;AACF,iCAAA;AACF,6BAAA;AACF,yBAAA;AACF,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,wBAAwB,EAAE,CAAC;AACtC,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,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACxE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;;;"}
@@ -0,0 +1,270 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterDeleteAction } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-organization-management-client-contracts-entity-catalog-acorex-platform-module-organization-management-client-contracts-entity-catalog-xL4H41ft.mjs';
4
+
5
+ async function factoryJobLevel() {
6
+ const entityDef = {
7
+ module: RootConfig.module.name,
8
+ name: RootConfig.entities.jobLevel.name,
9
+ plugins: [
10
+ { name: 'history' },
11
+ { name: 'lock' },
12
+ { name: 'compare' },
13
+ ],
14
+ title: RootConfig.entities.jobLevel.title,
15
+ icon: RootConfig.entities.jobLevel.icon,
16
+ formats: {
17
+ individual: '@organization-management:job-levels.entities.job-level.title',
18
+ plural: '@organization-management:job-levels.entities.job-level.plural',
19
+ searchResult: {
20
+ title: '{{ title }}',
21
+ description: RootConfig.module.title,
22
+ },
23
+ },
24
+ relatedEntities: [],
25
+ groups: [
26
+ {
27
+ id: 'basic-info',
28
+ title: `@general:terms.interface.basic-info`,
29
+ },
30
+ ],
31
+ properties: [
32
+ {
33
+ name: 'id',
34
+ title: 'ID',
35
+ schema: {
36
+ dataType: 'uuid',
37
+ visible: false,
38
+ nullable: false,
39
+ readonly: true,
40
+ unique: {
41
+ enabled: true,
42
+ },
43
+ },
44
+ },
45
+ {
46
+ name: 'title',
47
+ title: `@general:terms.common.title`,
48
+ groupId: 'basic-info',
49
+ options: {
50
+ sort: {
51
+ enabled: true,
52
+ },
53
+ filter: {
54
+ advance: {
55
+ enabled: true,
56
+ },
57
+ inline: {
58
+ enabled: true,
59
+ },
60
+ },
61
+ },
62
+ schema: {
63
+ dataType: 'string',
64
+ interface: {
65
+ type: AXPWidgetsList.Editors.TextBox,
66
+ },
67
+ },
68
+ validations: [
69
+ {
70
+ rule: 'required',
71
+ },
72
+ ],
73
+ },
74
+ {
75
+ name: 'description',
76
+ title: `@general:terms.common.description`,
77
+ groupId: 'basic-info',
78
+ schema: {
79
+ dataType: 'string',
80
+ interface: {
81
+ type: AXPWidgetsList.Editors.LargeTextBox,
82
+ },
83
+ },
84
+ },
85
+ {
86
+ name: 'level',
87
+ title: '@organization-management:job-levels.entities.job-level.fields.level.title',
88
+ groupId: 'basic-info',
89
+ options: {
90
+ sort: {
91
+ enabled: true,
92
+ },
93
+ filter: {
94
+ advance: {
95
+ enabled: true,
96
+ },
97
+ inline: {
98
+ enabled: true,
99
+ },
100
+ },
101
+ },
102
+ schema: {
103
+ dataType: 'number',
104
+ interface: {
105
+ type: AXPWidgetsList.Editors.NumberBox,
106
+ options: {
107
+ minValue: 0,
108
+ },
109
+ },
110
+ },
111
+ },
112
+ ],
113
+ columns: [{ name: 'title' }, { name: 'description' }, { name: 'level' }],
114
+ interfaces: {
115
+ master: {
116
+ create: {
117
+ sections: [
118
+ {
119
+ id: 'basic-info',
120
+ },
121
+ ],
122
+ properties: [
123
+ {
124
+ name: 'title',
125
+ layout: {
126
+ order: 1,
127
+ positions: {
128
+ sm: { colSpan: 12, order: 1 },
129
+ md: { colSpan: 8, order: 1 },
130
+ lg: { colSpan: 8, order: 1 },
131
+ },
132
+ },
133
+ },
134
+ {
135
+ name: 'level',
136
+ layout: {
137
+ order: 2,
138
+ positions: {
139
+ sm: { colSpan: 12, order: 2 },
140
+ md: { colSpan: 4, order: 2 },
141
+ lg: { colSpan: 4, order: 2 },
142
+ },
143
+ },
144
+ },
145
+ {
146
+ name: 'description',
147
+ layout: {
148
+ positions: {
149
+ lg: {
150
+ colSpan: 12,
151
+ order: 3,
152
+ },
153
+ },
154
+ },
155
+ },
156
+ ],
157
+ },
158
+ update: {
159
+ sections: [
160
+ {
161
+ id: 'basic-info',
162
+ },
163
+ ],
164
+ properties: [
165
+ {
166
+ name: 'title',
167
+ layout: {
168
+ order: 1,
169
+ positions: {
170
+ sm: { colSpan: 12, order: 1 },
171
+ md: { colSpan: 8, order: 1 },
172
+ lg: { colSpan: 8, order: 1 },
173
+ },
174
+ },
175
+ },
176
+ {
177
+ name: 'level',
178
+ layout: {
179
+ order: 2,
180
+ positions: {
181
+ sm: { colSpan: 12, order: 2 },
182
+ md: { colSpan: 4, order: 2 },
183
+ lg: { colSpan: 4, order: 2 },
184
+ },
185
+ },
186
+ },
187
+ {
188
+ name: 'description',
189
+ layout: {
190
+ positions: {
191
+ lg: {
192
+ colSpan: 12,
193
+ order: 3,
194
+ },
195
+ },
196
+ },
197
+ },
198
+ ],
199
+ },
200
+ single: {
201
+ title: '{{title}}',
202
+ sections: [
203
+ {
204
+ id: 'basic-info',
205
+ layout: {
206
+ positions: {
207
+ lg: {
208
+ colSpan: 12,
209
+ },
210
+ },
211
+ },
212
+ },
213
+ ],
214
+ properties: [
215
+ {
216
+ name: 'title',
217
+ layout: {
218
+ order: 1,
219
+ positions: {
220
+ sm: { colSpan: 12, order: 1 },
221
+ md: { colSpan: 8, order: 1 },
222
+ lg: { colSpan: 8, order: 1 },
223
+ },
224
+ },
225
+ },
226
+ {
227
+ name: 'level',
228
+ layout: {
229
+ order: 2,
230
+ positions: {
231
+ sm: { colSpan: 12, order: 2 },
232
+ md: { colSpan: 4, order: 2 },
233
+ lg: { colSpan: 4, order: 2 },
234
+ },
235
+ },
236
+ },
237
+ {
238
+ name: 'description',
239
+ layout: {
240
+ positions: {
241
+ lg: {
242
+ colSpan: 12,
243
+ order: 3,
244
+ },
245
+ },
246
+ },
247
+ },
248
+ ],
249
+ actions: [
250
+ entityMasterDeleteAction()
251
+ ],
252
+ },
253
+ list: {
254
+ actions: [
255
+ ...entityMasterCrudActions()
256
+ ],
257
+ views: [
258
+ createAllQueryView({
259
+ sorts: [{ name: 'level', dir: 'asc' }],
260
+ }),
261
+ ],
262
+ },
263
+ },
264
+ },
265
+ };
266
+ return entityDef;
267
+ }
268
+
269
+ export { factoryJobLevel };
270
+ //# sourceMappingURL=acorex-platform-module-organization-management-client-contracts-entity-catalog-job-level.entity-C866Av4K.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-organization-management-client-contracts-entity-catalog-job-level.entity-C866Av4K.mjs","sources":["../../../../libs/modules/organization-management/contracts/src/entities/job-level/job-level.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterDeleteAction } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function factoryJobLevel(): Promise<AXPEntity | null> {\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.jobLevel.name,\n plugins: [\n { name: 'history' },\n { name: 'lock' },\n { name: 'compare' },\n ],\n title: RootConfig.entities.jobLevel.title,\n icon: RootConfig.entities.jobLevel.icon,\n formats: {\n individual: '@organization-management:job-levels.entities.job-level.title',\n plural: '@organization-management:job-levels.entities.job-level.plural',\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [\n {\n id: 'basic-info',\n title: `@general:terms.interface.basic-info`,\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: {\n enabled: true,\n },\n },\n },\n {\n name: 'title',\n title: `@general:terms.common.title`,\n groupId: 'basic-info',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n inline: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'description',\n title: `@general:terms.common.description`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n },\n },\n },\n {\n name: 'level',\n title: '@organization-management:job-levels.entities.job-level.fields.level.title',\n groupId: 'basic-info',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n inline: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 0,\n },\n },\n },\n },\n ],\n columns: [{ name: 'title' }, { name: 'description' }, { name: 'level' }],\n\n interfaces: {\n master: {\n create: {\n sections: [\n {\n id: 'basic-info',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n order: 1,\n positions: {\n sm: { colSpan: 12, order: 1 },\n md: { colSpan: 8, order: 1 },\n lg: { colSpan: 8, order: 1 },\n },\n },\n },\n {\n name: 'level',\n layout: {\n order: 2,\n positions: {\n sm: { colSpan: 12, order: 2 },\n md: { colSpan: 4, order: 2 },\n lg: { colSpan: 4, order: 2 },\n },\n },\n },\n {\n name: 'description',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n order: 3,\n },\n },\n },\n },\n ],\n },\n update: {\n sections: [\n {\n id: 'basic-info',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n order: 1,\n positions: {\n sm: { colSpan: 12, order: 1 },\n md: { colSpan: 8, order: 1 },\n lg: { colSpan: 8, order: 1 },\n },\n },\n },\n {\n name: 'level',\n layout: {\n order: 2,\n positions: {\n sm: { colSpan: 12, order: 2 },\n md: { colSpan: 4, order: 2 },\n lg: { colSpan: 4, order: 2 },\n },\n },\n },\n {\n name: 'description',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n order: 3,\n },\n },\n },\n },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [\n {\n id: 'basic-info',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n order: 1,\n positions: {\n sm: { colSpan: 12, order: 1 },\n md: { colSpan: 8, order: 1 },\n lg: { colSpan: 8, order: 1 },\n },\n },\n },\n {\n name: 'level',\n layout: {\n order: 2,\n positions: {\n sm: { colSpan: 12, order: 2 },\n md: { colSpan: 4, order: 2 },\n lg: { colSpan: 4, order: 2 },\n },\n },\n },\n {\n name: 'description',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n order: 3,\n },\n },\n },\n },\n ],\n actions: [\n entityMasterDeleteAction()\n ],\n },\n list: {\n actions: [\n ...entityMasterCrudActions()\n ],\n views: [\n createAllQueryView({\n sorts: [{ name: 'level', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n"],"names":[],"mappings":";;;;AAIO,eAAe,eAAe,GAAA;AAEnC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI;AACvC,QAAA,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,SAAS,EAAE;YACnB,EAAE,IAAI,EAAE,MAAM,EAAE;YAChB,EAAE,IAAI,EAA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