@acorex-platform/module-task-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 (54) hide show
  1. package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-task-assignment.mjs +412 -0
  2. package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-task-assignment.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-task-checklist-item.mjs +579 -0
  4. package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-task-checklist-item.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-task-context.mjs +338 -0
  6. package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-task-context.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-task-dependency.mjs +359 -0
  8. package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-task-dependency.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-task-status.mjs +643 -0
  10. package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-task-status.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-task-template.mjs +472 -0
  12. package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-task-template.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-task-type.mjs +441 -0
  14. package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-task-type.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-task.mjs +1350 -0
  16. package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-task.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-time-log.mjs +483 -0
  18. package/fesm2022/acorex-platform-module-task-management-client-contracts-entities-time-log.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-acorex-platform-module-task-management-client-contracts-entity-catalog-GX2wPn-u.mjs +119 -0
  20. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-acorex-platform-module-task-management-client-contracts-entity-catalog-GX2wPn-u.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task-assignment.entity-CMWY9zvO.mjs +320 -0
  22. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task-assignment.entity-CMWY9zvO.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task-checklist-item.entity-BqoXCi5u.mjs +487 -0
  24. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task-checklist-item.entity-BqoXCi5u.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task-context.entity-Z7sdha1F.mjs +246 -0
  26. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task-context.entity-Z7sdha1F.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task-dependency.entity-DU5Rni7a.mjs +267 -0
  28. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task-dependency.entity-DU5Rni7a.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task-status.entity-BOu_6LGU.mjs +551 -0
  30. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task-status.entity-BOu_6LGU.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task-template.entity-AwtetTi1.mjs +380 -0
  32. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task-template.entity-AwtetTi1.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task-type.entity-DFo3o-6O.mjs +349 -0
  34. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task-type.entity-DFo3o-6O.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task.entity-BmXrWwib.mjs +1258 -0
  36. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-task.entity-BmXrWwib.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-time-log.entity-BmMphgI1.mjs +391 -0
  38. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog-time-log.entity-BmMphgI1.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog.mjs +2 -0
  40. package/fesm2022/acorex-platform-module-task-management-client-contracts-entity-catalog.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-module-task-management-client-local-entities.mjs +37 -0
  42. package/fesm2022/acorex-platform-module-task-management-client-local-entities.mjs.map +1 -0
  43. package/package.json +47 -3
  44. package/types/acorex-platform-module-task-management-client-contracts-entities-task-assignment.d.ts +5 -0
  45. package/types/acorex-platform-module-task-management-client-contracts-entities-task-checklist-item.d.ts +5 -0
  46. package/types/acorex-platform-module-task-management-client-contracts-entities-task-context.d.ts +5 -0
  47. package/types/acorex-platform-module-task-management-client-contracts-entities-task-dependency.d.ts +5 -0
  48. package/types/acorex-platform-module-task-management-client-contracts-entities-task-status.d.ts +5 -0
  49. package/types/acorex-platform-module-task-management-client-contracts-entities-task-template.d.ts +5 -0
  50. package/types/acorex-platform-module-task-management-client-contracts-entities-task-type.d.ts +5 -0
  51. package/types/acorex-platform-module-task-management-client-contracts-entities-task.d.ts +5 -0
  52. package/types/acorex-platform-module-task-management-client-contracts-entities-time-log.d.ts +5 -0
  53. package/types/acorex-platform-module-task-management-client-contracts-entity-catalog.d.ts +10 -0
  54. package/types/acorex-platform-module-task-management-client-local-entities.d.ts +12 -0
@@ -0,0 +1,1258 @@
1
+ import { AXPWidgetsList, AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, AXPEntityCommandScope, entityDetailsCrudActions, entityDetailsSimpleCondition } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-task-management-client-contracts-entity-catalog-acorex-platform-module-task-management-client-contracts-entity-catalog-GX2wPn-u.mjs';
4
+
5
+ async function taskFactory() {
6
+ const i18n = RootConfig.config.i18n;
7
+ const entityDef = {
8
+ module: RootConfig.module.name,
9
+ name: RootConfig.entities.task.name,
10
+ title: RootConfig.entities.task.title,
11
+ icon: RootConfig.entities.task.icon,
12
+ formats: {
13
+ individual: RootConfig.entities.task.title,
14
+ plural: RootConfig.entities.task.titlePlural,
15
+ searchResult: {
16
+ title: '{{ title }}',
17
+ description: '{{ description }}',
18
+ },
19
+ },
20
+ plugins: [
21
+ { name: 'history' },
22
+ { name: 'lock' },
23
+ { name: 'attachments', options: { accept: '.jpg,.jpeg,.png,.pdf', multiple: true, fileEditable: true } },
24
+ { name: 'archive' },
25
+ {
26
+ name: 'workflow-run',
27
+ options: {
28
+ list: {
29
+ mode: 'workflow-run',
30
+ },
31
+ },
32
+ },
33
+ {
34
+ name: 'meta-data-form',
35
+ options: {
36
+ path: 'taskTypeId',
37
+ display: 'section',
38
+ },
39
+ },
40
+ ],
41
+ relatedEntities: [
42
+ {
43
+ entity: `${RootConfig.module.name}.${RootConfig.entities.taskChecklistItem.name}`,
44
+ title: RootConfig.entities.taskChecklistItem.titlePlural,
45
+ columns: ['title', 'isCompleted', 'completedBy', 'dueDate', 'assignedTo'],
46
+ conditions: [entityDetailsSimpleCondition('taskId')],
47
+ actions: [...entityDetailsCrudActions('taskId')],
48
+ },
49
+ {
50
+ entity: `${RootConfig.module.name}.${RootConfig.entities.taskAssignment.name}`,
51
+ title: RootConfig.entities.taskAssignment.titlePlural,
52
+ columns: ['userId', 'role', 'assignedBy', 'assignedAt', 'isActive'],
53
+ conditions: [entityDetailsSimpleCondition('taskId')],
54
+ actions: [...entityDetailsCrudActions('taskId')],
55
+ },
56
+ {
57
+ entity: `${RootConfig.module.name}.${RootConfig.entities.timeLog.name}`,
58
+ layout: { type: 'page-list' },
59
+ title: RootConfig.entities.timeLog.titlePlural,
60
+ columns: ['userId', 'startTime', 'duration', 'description', 'isApproved'],
61
+ conditions: [entityDetailsSimpleCondition('taskId')],
62
+ actions: [...entityDetailsCrudActions('taskId')],
63
+ },
64
+ {
65
+ entity: `${RootConfig.module.name}.${RootConfig.entities.taskDependency.name}`,
66
+ layout: { type: 'page-list' },
67
+ title: RootConfig.entities.taskDependency.titlePlural,
68
+ columns: ['dependsOnTaskId', 'dependencyType', 'lagDays', 'isActive'],
69
+ conditions: [entityDetailsSimpleCondition('taskId')],
70
+ actions: [...entityDetailsCrudActions('taskId')],
71
+ },
72
+ // {
73
+ // entity: `${RootConfig.module.name}.${RootConfig.entities.taskContext.name}`,
74
+ // title: RootConfig.entities.taskContext.titlePlural,
75
+ // columns: ['contextType', 'contextTitle', 'isPrimary'],
76
+ // conditions: [entityDetailsSimpleCondition('taskId')],
77
+ // actions: [...entityDetailsCrudActions('taskId')],
78
+ // },
79
+ ],
80
+ groups: [
81
+ {
82
+ id: 'basic-info',
83
+ title: '@general:terms.interface.basic-info',
84
+ },
85
+ {
86
+ id: 'scheduling',
87
+ title: '@task-management:task.scheduling',
88
+ },
89
+ {
90
+ id: 'classification',
91
+ title: '@task-management:task.classification',
92
+ },
93
+ {
94
+ id: 'tracking',
95
+ title: '@task-management:task.tracking',
96
+ },
97
+ {
98
+ id: 'context',
99
+ title: '@task-management:task.context',
100
+ },
101
+ ],
102
+ properties: [
103
+ {
104
+ name: 'title',
105
+ title: '@general:terms.common.title',
106
+ groupId: 'basic-info',
107
+ options: {
108
+ sort: {
109
+ enabled: true,
110
+ },
111
+ filter: {
112
+ advance: {
113
+ enabled: true,
114
+ },
115
+ inline: {
116
+ enabled: true,
117
+ },
118
+ },
119
+ },
120
+ schema: {
121
+ dataType: 'string',
122
+ interface: {
123
+ type: AXPWidgetsCatalog.text,
124
+ },
125
+ },
126
+ validations: [
127
+ {
128
+ rule: 'required',
129
+ },
130
+ ],
131
+ },
132
+ {
133
+ name: 'description',
134
+ title: '@general:terms.common.description',
135
+ groupId: 'basic-info',
136
+ options: {
137
+ sort: {
138
+ enabled: false,
139
+ },
140
+ filter: {
141
+ advance: {
142
+ enabled: true,
143
+ },
144
+ inline: {
145
+ enabled: false,
146
+ },
147
+ },
148
+ },
149
+ schema: {
150
+ dataType: 'string',
151
+ interface: {
152
+ type: AXPWidgetsCatalog.largeText,
153
+ options: {
154
+ rows: 4,
155
+ },
156
+ },
157
+ },
158
+ },
159
+ {
160
+ name: 'taskTypeId',
161
+ title: '@task-management:task-type.individual-title',
162
+ groupId: 'classification',
163
+ options: {
164
+ sort: {
165
+ enabled: true,
166
+ },
167
+ filter: {
168
+ advance: {
169
+ enabled: true,
170
+ },
171
+ inline: {
172
+ enabled: true,
173
+ },
174
+ },
175
+ },
176
+ schema: {
177
+ dataType: 'object',
178
+ interface: {
179
+ type: AXPWidgetsCatalog.lookup,
180
+ options: {
181
+ entity: `${RootConfig.module.name}.${RootConfig.entities.taskType.name}`,
182
+ look: 'select',
183
+ expose: [
184
+ { source: 'id', target: 'taskType.id' },
185
+ { source: 'title', target: 'taskType.title' },
186
+ ],
187
+ },
188
+ },
189
+ },
190
+ validations: [
191
+ {
192
+ rule: 'required',
193
+ },
194
+ ],
195
+ },
196
+ {
197
+ name: 'statusId',
198
+ title: '@general:terms.status.title',
199
+ groupId: 'classification',
200
+ options: {
201
+ sort: {
202
+ enabled: true,
203
+ },
204
+ filter: {
205
+ advance: {
206
+ enabled: true,
207
+ },
208
+ inline: {
209
+ enabled: true,
210
+ },
211
+ },
212
+ },
213
+ schema: {
214
+ dataType: 'object',
215
+ interface: {
216
+ type: AXPWidgetsCatalog.lookup,
217
+ options: {
218
+ entity: `${RootConfig.module.name}.${RootConfig.entities.taskStatus.name}`,
219
+ look: 'select',
220
+ expose: [
221
+ { source: 'id', target: 'status.id' },
222
+ { source: 'name', target: 'status.name' },
223
+ { source: 'title', target: 'status.title' },
224
+ { source: 'color', target: 'status.color' },
225
+ { source: 'icon', target: 'status.icon' },
226
+ ],
227
+ },
228
+ },
229
+ },
230
+ validations: [
231
+ {
232
+ rule: 'required',
233
+ },
234
+ ],
235
+ },
236
+ {
237
+ name: 'assigneeId',
238
+ title: '@task-management:task-board.filter.assignee',
239
+ groupId: 'classification',
240
+ options: {
241
+ sort: {
242
+ enabled: true,
243
+ },
244
+ filter: {
245
+ advance: {
246
+ enabled: true,
247
+ },
248
+ inline: {
249
+ enabled: true,
250
+ },
251
+ },
252
+ },
253
+ schema: {
254
+ dataType: 'object',
255
+ interface: {
256
+ type: AXPWidgetsCatalog.lookup,
257
+ options: {
258
+ entity: 'SecurityManagement.User',
259
+ look: 'select',
260
+ textField: 'displayName',
261
+ expose: [
262
+ { source: 'id', target: 'assignee.id' },
263
+ { source: 'displayName', target: 'assignee.displayName' },
264
+ ],
265
+ },
266
+ },
267
+ },
268
+ },
269
+ {
270
+ name: 'priority',
271
+ title: '@general:terms.classification.priority',
272
+ groupId: 'classification',
273
+ options: {
274
+ sort: {
275
+ enabled: true,
276
+ },
277
+ filter: {
278
+ advance: {
279
+ enabled: true,
280
+ },
281
+ inline: {
282
+ enabled: true,
283
+ },
284
+ },
285
+ },
286
+ schema: {
287
+ dataType: 'string',
288
+ interface: {
289
+ type: AXPWidgetsCatalog.select,
290
+ options: {
291
+ valueField: 'id',
292
+ textField: 'title',
293
+ dataSource: [
294
+ { title: 'Low', id: 'low' },
295
+ { title: 'Medium', id: 'medium' },
296
+ { title: 'High', id: 'high' },
297
+ { title: 'Critical', id: 'critical' },
298
+ ],
299
+ direction: 'horizontal',
300
+ multiple: false,
301
+ },
302
+ },
303
+ },
304
+ validations: [
305
+ {
306
+ rule: 'required',
307
+ },
308
+ ],
309
+ },
310
+ {
311
+ name: 'dueDate',
312
+ title: '@task-management:task.due-date',
313
+ groupId: 'scheduling',
314
+ options: {
315
+ sort: {
316
+ enabled: true,
317
+ },
318
+ filter: {
319
+ advance: {
320
+ enabled: true,
321
+ },
322
+ inline: {
323
+ enabled: true,
324
+ },
325
+ },
326
+ },
327
+ schema: {
328
+ dataType: 'date',
329
+ interface: {
330
+ type: AXPWidgetsCatalog.dateTime,
331
+ options: {
332
+ showTime: false,
333
+ },
334
+ },
335
+ },
336
+ },
337
+ {
338
+ name: 'startDate',
339
+ title: '@task-management:task.start-date',
340
+ groupId: 'scheduling',
341
+ options: {
342
+ sort: {
343
+ enabled: true,
344
+ },
345
+ filter: {
346
+ advance: {
347
+ enabled: true,
348
+ },
349
+ inline: {
350
+ enabled: true,
351
+ },
352
+ },
353
+ },
354
+ schema: {
355
+ dataType: 'date',
356
+ interface: {
357
+ type: AXPWidgetsCatalog.dateTime,
358
+ options: {
359
+ showTime: false,
360
+ },
361
+ },
362
+ },
363
+ },
364
+ {
365
+ name: 'completedDate',
366
+ title: '@task-management:task.completed-date',
367
+ groupId: 'scheduling',
368
+ options: {
369
+ sort: {
370
+ enabled: true,
371
+ },
372
+ filter: {
373
+ advance: {
374
+ enabled: true,
375
+ },
376
+ inline: {
377
+ enabled: false,
378
+ },
379
+ },
380
+ },
381
+ schema: {
382
+ dataType: 'date',
383
+ interface: {
384
+ type: AXPWidgetsCatalog.dateTime,
385
+ options: {
386
+ showTime: true,
387
+ },
388
+ },
389
+ },
390
+ },
391
+ {
392
+ name: 'estimatedHours',
393
+ title: '@task-management:task.estimated-hours',
394
+ groupId: 'tracking',
395
+ options: {
396
+ sort: {
397
+ enabled: true,
398
+ },
399
+ filter: {
400
+ advance: {
401
+ enabled: true,
402
+ },
403
+ inline: {
404
+ enabled: false,
405
+ },
406
+ },
407
+ },
408
+ schema: {
409
+ dataType: 'number',
410
+ interface: {
411
+ type: AXPWidgetsCatalog.number,
412
+ options: {
413
+ minValue: 0,
414
+ step: 0.5,
415
+ format: '#.## hours',
416
+ },
417
+ },
418
+ },
419
+ },
420
+ {
421
+ name: 'actualHours',
422
+ title: '@task-management:task.actual-hours',
423
+ groupId: 'tracking',
424
+ options: {
425
+ sort: {
426
+ enabled: true,
427
+ },
428
+ filter: {
429
+ advance: {
430
+ enabled: true,
431
+ },
432
+ inline: {
433
+ enabled: false,
434
+ },
435
+ },
436
+ },
437
+ schema: {
438
+ dataType: 'number',
439
+ interface: {
440
+ type: AXPWidgetsCatalog.number,
441
+ options: {
442
+ minValue: 0,
443
+ step: 0.5,
444
+ format: '#.## hours',
445
+ },
446
+ },
447
+ },
448
+ },
449
+ {
450
+ name: 'progress',
451
+ title: '@general:terms.organizations.progress',
452
+ groupId: 'tracking',
453
+ options: {
454
+ sort: {
455
+ enabled: true,
456
+ },
457
+ filter: {
458
+ advance: {
459
+ enabled: true,
460
+ },
461
+ inline: {
462
+ enabled: true,
463
+ },
464
+ },
465
+ },
466
+ schema: {
467
+ dataType: 'number',
468
+ interface: {
469
+ type: AXPWidgetsCatalog.progressBar,
470
+ options: {
471
+ total: 100,
472
+ maxValue: 100,
473
+ showText: true,
474
+ textFormat: 'percentage',
475
+ },
476
+ },
477
+ },
478
+ },
479
+ {
480
+ name: 'parentTaskId',
481
+ title: '@task-management:task.parent-task',
482
+ groupId: 'context',
483
+ options: {
484
+ sort: {
485
+ enabled: false,
486
+ },
487
+ filter: {
488
+ advance: {
489
+ enabled: true,
490
+ },
491
+ inline: {
492
+ enabled: false,
493
+ },
494
+ },
495
+ },
496
+ schema: {
497
+ dataType: 'object',
498
+ interface: {
499
+ type: AXPWidgetsCatalog.lookup,
500
+ options: {
501
+ entity: `${RootConfig.module.name}.${RootConfig.entities.task.name}`,
502
+ expose: [
503
+ { source: 'id', target: 'parentTask.id' },
504
+ { source: 'title', target: 'parentTask.title' },
505
+ ],
506
+ },
507
+ },
508
+ },
509
+ },
510
+ {
511
+ name: 'order',
512
+ title: '@general:terms.classification.order',
513
+ groupId: 'tracking',
514
+ options: {
515
+ sort: {
516
+ enabled: true,
517
+ },
518
+ filter: {
519
+ advance: {
520
+ enabled: false,
521
+ },
522
+ inline: {
523
+ enabled: false,
524
+ },
525
+ },
526
+ },
527
+ schema: {
528
+ dataType: 'number',
529
+ interface: {
530
+ type: AXPWidgetsCatalog.number,
531
+ options: {
532
+ minValue: 0,
533
+ step: 1,
534
+ },
535
+ },
536
+ },
537
+ },
538
+ {
539
+ name: 'subjectRef.id',
540
+ title: '@task-management:task.subject',
541
+ groupId: 'context',
542
+ options: {
543
+ sort: { enabled: true },
544
+ filter: {
545
+ advance: { enabled: true },
546
+ inline: { enabled: true },
547
+ },
548
+ },
549
+ schema: {
550
+ dataType: 'string',
551
+ interface: {
552
+ type: AXPWidgetsCatalog.lookup,
553
+ options: {
554
+ entity: "{{ context.eval('subjectRef.type') }}",
555
+ valueField: 'id',
556
+ expose: [
557
+ { source: 'id', target: 'subjectRef.id' },
558
+ { source: 'title', target: 'subjectRef.title' },
559
+ ],
560
+ },
561
+ },
562
+ },
563
+ },
564
+ {
565
+ name: 'subjectRef.type',
566
+ title: '@task-management:task.subject-type',
567
+ groupId: 'context',
568
+ schema: {
569
+ dataType: 'string',
570
+ visible: false,
571
+ interface: { type: AXPWidgetsCatalog.text },
572
+ },
573
+ },
574
+ {
575
+ name: 'formTemplateId',
576
+ title: '@task-management:task.form-template',
577
+ groupId: 'context',
578
+ options: {
579
+ sort: {
580
+ enabled: false,
581
+ },
582
+ filter: {
583
+ advance: {
584
+ enabled: false,
585
+ },
586
+ inline: {
587
+ enabled: false,
588
+ },
589
+ },
590
+ },
591
+ schema: {
592
+ dataType: 'object',
593
+ interface: {
594
+ type: AXPWidgetsCatalog.lookup,
595
+ options: {
596
+ entity: 'FormTemplateManagement.Template',
597
+ textField: "title",
598
+ expose: [
599
+ { source: 'id', target: 'formTemplate.id' },
600
+ { source: 'title', target: 'formTemplate.title' },
601
+ ],
602
+ filter: {
603
+ logic: 'and',
604
+ filters: [
605
+ {
606
+ field: 'typeId',
607
+ operator: {
608
+ type: 'equal',
609
+ },
610
+ value: 10,
611
+ },
612
+ ],
613
+ },
614
+ },
615
+ },
616
+ },
617
+ },
618
+ ],
619
+ columns: [
620
+ { name: 'title' },
621
+ { name: 'taskTypeId', options: { dataPath: 'taskType.title' } },
622
+ {
623
+ name: 'statusId',
624
+ title: '@general:terms.status.title',
625
+ showAs: {
626
+ type: AXPWidgetsList.Advanced.Status,
627
+ options: { readonly: true },
628
+ },
629
+ options: { dataPath: 'status', width: '140px' },
630
+ },
631
+ { name: 'assigneeId', options: { dataPath: 'assignee.displayName', width: '160px' } },
632
+ { name: 'priority' },
633
+ { name: 'dueDate' },
634
+ {
635
+ name: 'progress',
636
+ showAs: { type: AXPWidgetsCatalog.progressBar },
637
+ options: { width: '140px' },
638
+ },
639
+ { name: 'estimatedHours' },
640
+ { name: 'actualHours' },
641
+ ],
642
+ interfaces: {
643
+ master: {
644
+ create: {
645
+ sections: [
646
+ {
647
+ id: 'basic-info',
648
+ },
649
+ {
650
+ id: 'classification',
651
+ },
652
+ {
653
+ id: 'scheduling',
654
+ },
655
+ {
656
+ id: 'tracking',
657
+ },
658
+ {
659
+ id: 'context',
660
+ },
661
+ ],
662
+ properties: [
663
+ {
664
+ name: 'title',
665
+ layout: {
666
+ positions: {
667
+ sm: {
668
+ colSpan: 12,
669
+ },
670
+ },
671
+ },
672
+ },
673
+ {
674
+ name: 'description',
675
+ layout: {
676
+ positions: {
677
+ sm: {
678
+ colSpan: 12,
679
+ },
680
+ },
681
+ },
682
+ },
683
+ {
684
+ name: 'taskTypeId',
685
+ layout: {
686
+ positions: {
687
+ sm: {
688
+ colSpan: 12,
689
+ },
690
+ md: {
691
+ colSpan: 6,
692
+ },
693
+ },
694
+ },
695
+ },
696
+ {
697
+ name: 'statusId',
698
+ layout: {
699
+ positions: {
700
+ sm: {
701
+ colSpan: 12,
702
+ },
703
+ md: {
704
+ colSpan: 6,
705
+ },
706
+ },
707
+ },
708
+ },
709
+ {
710
+ name: 'assigneeId',
711
+ layout: {
712
+ positions: {
713
+ sm: {
714
+ colSpan: 12,
715
+ },
716
+ md: {
717
+ colSpan: 6,
718
+ },
719
+ },
720
+ },
721
+ },
722
+ {
723
+ name: 'priority',
724
+ layout: {
725
+ positions: {
726
+ sm: {
727
+ colSpan: 12,
728
+ },
729
+ md: {
730
+ colSpan: 6,
731
+ },
732
+ },
733
+ },
734
+ },
735
+ {
736
+ name: 'startDate',
737
+ layout: {
738
+ positions: {
739
+ sm: {
740
+ colSpan: 12,
741
+ },
742
+ md: {
743
+ colSpan: 6,
744
+ },
745
+ },
746
+ },
747
+ },
748
+ {
749
+ name: 'dueDate',
750
+ layout: {
751
+ positions: {
752
+ sm: {
753
+ colSpan: 12,
754
+ },
755
+ md: {
756
+ colSpan: 6,
757
+ },
758
+ },
759
+ },
760
+ },
761
+ {
762
+ name: 'estimatedHours',
763
+ layout: {
764
+ positions: {
765
+ sm: {
766
+ colSpan: 12,
767
+ },
768
+ md: {
769
+ colSpan: 4,
770
+ },
771
+ },
772
+ },
773
+ },
774
+ {
775
+ name: 'progress',
776
+ layout: {
777
+ positions: {
778
+ sm: {
779
+ colSpan: 12,
780
+ },
781
+ md: {
782
+ colSpan: 4,
783
+ },
784
+ },
785
+ },
786
+ },
787
+ {
788
+ name: 'order',
789
+ layout: {
790
+ positions: {
791
+ sm: {
792
+ colSpan: 12,
793
+ },
794
+ md: {
795
+ colSpan: 4,
796
+ },
797
+ },
798
+ },
799
+ },
800
+ {
801
+ name: 'subjectRef.id',
802
+ layout: {
803
+ positions: {
804
+ sm: {
805
+ colSpan: 12,
806
+ },
807
+ md: {
808
+ colSpan: 6,
809
+ },
810
+ },
811
+ },
812
+ },
813
+ {
814
+ name: 'parentTaskId',
815
+ layout: {
816
+ positions: {
817
+ sm: {
818
+ colSpan: 12,
819
+ },
820
+ },
821
+ },
822
+ },
823
+ ],
824
+ },
825
+ update: {
826
+ sections: [
827
+ {
828
+ id: 'basic-info',
829
+ },
830
+ {
831
+ id: 'classification',
832
+ },
833
+ {
834
+ id: 'scheduling',
835
+ },
836
+ {
837
+ id: 'tracking',
838
+ },
839
+ {
840
+ id: 'context',
841
+ },
842
+ ],
843
+ properties: [
844
+ {
845
+ name: 'title',
846
+ layout: {
847
+ positions: {
848
+ sm: {
849
+ colSpan: 12,
850
+ },
851
+ },
852
+ },
853
+ },
854
+ {
855
+ name: 'description',
856
+ layout: {
857
+ positions: {
858
+ sm: {
859
+ colSpan: 12,
860
+ },
861
+ },
862
+ },
863
+ },
864
+ {
865
+ name: 'taskTypeId',
866
+ layout: {
867
+ positions: {
868
+ sm: {
869
+ colSpan: 12,
870
+ },
871
+ md: {
872
+ colSpan: 6,
873
+ },
874
+ },
875
+ },
876
+ },
877
+ {
878
+ name: 'statusId',
879
+ layout: {
880
+ positions: {
881
+ sm: {
882
+ colSpan: 12,
883
+ },
884
+ md: {
885
+ colSpan: 6,
886
+ },
887
+ },
888
+ },
889
+ },
890
+ {
891
+ name: 'assigneeId',
892
+ layout: {
893
+ positions: {
894
+ sm: {
895
+ colSpan: 12,
896
+ },
897
+ md: {
898
+ colSpan: 6,
899
+ },
900
+ },
901
+ },
902
+ },
903
+ {
904
+ name: 'priority',
905
+ layout: {
906
+ positions: {
907
+ sm: {
908
+ colSpan: 12,
909
+ },
910
+ md: {
911
+ colSpan: 6,
912
+ },
913
+ },
914
+ },
915
+ },
916
+ {
917
+ name: 'startDate',
918
+ layout: {
919
+ positions: {
920
+ sm: {
921
+ colSpan: 12,
922
+ },
923
+ md: {
924
+ colSpan: 6,
925
+ },
926
+ },
927
+ },
928
+ },
929
+ {
930
+ name: 'dueDate',
931
+ layout: {
932
+ positions: {
933
+ sm: {
934
+ colSpan: 12,
935
+ },
936
+ md: {
937
+ colSpan: 6,
938
+ },
939
+ },
940
+ },
941
+ },
942
+ {
943
+ name: 'estimatedHours',
944
+ layout: {
945
+ positions: {
946
+ sm: {
947
+ colSpan: 12,
948
+ },
949
+ md: {
950
+ colSpan: 4,
951
+ },
952
+ },
953
+ },
954
+ },
955
+ {
956
+ name: 'actualHours',
957
+ layout: {
958
+ positions: {
959
+ sm: {
960
+ colSpan: 12,
961
+ },
962
+ md: {
963
+ colSpan: 4,
964
+ },
965
+ },
966
+ },
967
+ },
968
+ {
969
+ name: 'progress',
970
+ layout: {
971
+ positions: {
972
+ sm: {
973
+ colSpan: 12,
974
+ },
975
+ md: {
976
+ colSpan: 4,
977
+ },
978
+ },
979
+ },
980
+ },
981
+ {
982
+ name: 'subjectRef.id',
983
+ layout: {
984
+ positions: {
985
+ sm: {
986
+ colSpan: 12,
987
+ },
988
+ md: {
989
+ colSpan: 6,
990
+ },
991
+ },
992
+ },
993
+ },
994
+ {
995
+ name: 'parentTaskId',
996
+ layout: {
997
+ positions: {
998
+ sm: {
999
+ colSpan: 12,
1000
+ },
1001
+ md: {
1002
+ colSpan: 6,
1003
+ },
1004
+ },
1005
+ },
1006
+ },
1007
+ ],
1008
+ },
1009
+ single: {
1010
+ title: '{{title}}',
1011
+ sections: [
1012
+ {
1013
+ id: 'basic-info',
1014
+ layout: {
1015
+ positions: {
1016
+ lg: {
1017
+ colSpan: 12,
1018
+ },
1019
+ },
1020
+ },
1021
+ },
1022
+ {
1023
+ id: 'classification',
1024
+ layout: {
1025
+ positions: {
1026
+ lg: {
1027
+ colSpan: 6,
1028
+ },
1029
+ },
1030
+ },
1031
+ },
1032
+ {
1033
+ id: 'scheduling',
1034
+ layout: {
1035
+ positions: {
1036
+ lg: {
1037
+ colSpan: 6,
1038
+ },
1039
+ },
1040
+ },
1041
+ },
1042
+ {
1043
+ id: 'tracking',
1044
+ layout: {
1045
+ positions: {
1046
+ lg: {
1047
+ colSpan: 6,
1048
+ },
1049
+ },
1050
+ },
1051
+ },
1052
+ {
1053
+ id: 'context',
1054
+ layout: {
1055
+ positions: {
1056
+ lg: {
1057
+ colSpan: 6,
1058
+ },
1059
+ },
1060
+ },
1061
+ },
1062
+ ],
1063
+ properties: [
1064
+ {
1065
+ name: 'title',
1066
+ layout: {
1067
+ positions: {
1068
+ lg: {
1069
+ colSpan: 12,
1070
+ order: 1,
1071
+ },
1072
+ },
1073
+ },
1074
+ },
1075
+ {
1076
+ name: 'description',
1077
+ layout: {
1078
+ positions: {
1079
+ lg: {
1080
+ colSpan: 12,
1081
+ order: 2,
1082
+ },
1083
+ },
1084
+ },
1085
+ },
1086
+ {
1087
+ name: 'taskTypeId',
1088
+ layout: {
1089
+ positions: {
1090
+ lg: {
1091
+ colSpan: 6,
1092
+ order: 3,
1093
+ },
1094
+ },
1095
+ },
1096
+ },
1097
+ {
1098
+ name: 'statusId',
1099
+ layout: {
1100
+ positions: {
1101
+ lg: {
1102
+ colSpan: 6,
1103
+ order: 4,
1104
+ },
1105
+ },
1106
+ },
1107
+ },
1108
+ {
1109
+ name: 'assigneeId',
1110
+ layout: {
1111
+ positions: {
1112
+ lg: {
1113
+ colSpan: 6,
1114
+ order: 5,
1115
+ },
1116
+ },
1117
+ },
1118
+ },
1119
+ {
1120
+ name: 'priority',
1121
+ layout: {
1122
+ positions: {
1123
+ lg: {
1124
+ colSpan: 6,
1125
+ order: 6,
1126
+ },
1127
+ },
1128
+ },
1129
+ },
1130
+ {
1131
+ name: 'startDate',
1132
+ layout: {
1133
+ positions: {
1134
+ lg: {
1135
+ colSpan: 6,
1136
+ order: 7,
1137
+ },
1138
+ },
1139
+ },
1140
+ },
1141
+ {
1142
+ name: 'dueDate',
1143
+ layout: {
1144
+ positions: {
1145
+ lg: {
1146
+ colSpan: 6,
1147
+ order: 8,
1148
+ },
1149
+ },
1150
+ },
1151
+ },
1152
+ {
1153
+ name: 'completedDate',
1154
+ layout: {
1155
+ positions: {
1156
+ lg: {
1157
+ colSpan: 6,
1158
+ order: 9,
1159
+ },
1160
+ },
1161
+ },
1162
+ },
1163
+ {
1164
+ name: 'estimatedHours',
1165
+ layout: {
1166
+ positions: {
1167
+ lg: {
1168
+ colSpan: 4,
1169
+ order: 10,
1170
+ },
1171
+ },
1172
+ },
1173
+ },
1174
+ {
1175
+ name: 'actualHours',
1176
+ layout: {
1177
+ positions: {
1178
+ lg: {
1179
+ colSpan: 4,
1180
+ order: 11,
1181
+ },
1182
+ },
1183
+ },
1184
+ },
1185
+ {
1186
+ name: 'progress',
1187
+ layout: {
1188
+ positions: {
1189
+ lg: {
1190
+ colSpan: 4,
1191
+ order: 12,
1192
+ },
1193
+ },
1194
+ },
1195
+ },
1196
+ {
1197
+ name: 'subjectRef.id',
1198
+ layout: {
1199
+ positions: {
1200
+ lg: {
1201
+ colSpan: 6,
1202
+ order: 13,
1203
+ },
1204
+ },
1205
+ },
1206
+ },
1207
+ {
1208
+ name: 'formTemplateId',
1209
+ layout: {
1210
+ positions: {
1211
+ lg: {
1212
+ colSpan: 6,
1213
+ order: 13,
1214
+ },
1215
+ },
1216
+ },
1217
+ },
1218
+ {
1219
+ name: 'parentTaskId',
1220
+ layout: {
1221
+ positions: {
1222
+ lg: {
1223
+ colSpan: 6,
1224
+ order: 15,
1225
+ },
1226
+ },
1227
+ },
1228
+ },
1229
+ ],
1230
+ actions: [
1231
+ {
1232
+ title: '@general:actions.delete.title',
1233
+ command: 'Entity:Remove',
1234
+ priority: 'secondary',
1235
+ type: 'delete',
1236
+ scope: AXPEntityCommandScope.Individual,
1237
+ },
1238
+ ],
1239
+ },
1240
+ list: {
1241
+ actions: [...entityMasterCrudActions()],
1242
+ views: [
1243
+ createAllQueryView({
1244
+ sorts: [
1245
+ { name: 'dueDate', dir: 'asc' },
1246
+ { name: 'priority', dir: 'desc' },
1247
+ ],
1248
+ }),
1249
+ ],
1250
+ },
1251
+ },
1252
+ },
1253
+ };
1254
+ return entityDef;
1255
+ }
1256
+
1257
+ export { taskFactory };
1258
+ //# sourceMappingURL=acorex-platform-module-task-management-client-contracts-entity-catalog-task.entity-BmXrWwib.mjs.map