@acorex-platform/module-task-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 (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,643 @@
1
+ import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, AXPEntityCommandScope, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'task-management',
6
+ module: 'TaskManagement',
7
+ };
8
+ /** Dashboard widget type ids for task-management-hosted widgets (`{module}:Widget:Dashboard:{Segment}`). */
9
+ const dashboardWidgetId = (segment) => `${config.module}:Widget:Dashboard:${segment}`;
10
+ const RootConfig = {
11
+ config,
12
+ module: {
13
+ name: config.module,
14
+ title: `@${config.i18n}:module.title`,
15
+ icon: 'fa-light fa-tasks',
16
+ },
17
+ entities: {
18
+ taskType: {
19
+ name: 'TaskType',
20
+ title: `@${config.i18n}:task-type.individual-title`,
21
+ titlePlural: `@${config.i18n}:task-type.plural-title`,
22
+ icon: 'fa-light fa-cog',
23
+ },
24
+ taskTypeCategory: {
25
+ name: 'TaskTypeCategory',
26
+ title: `@${config.i18n}:task-type-categories.title`,
27
+ titlePlural: `@${config.i18n}:task-type-categories.plural`,
28
+ icon: 'fa-light fa-layer-group',
29
+ },
30
+ taskStatus: {
31
+ name: 'TaskStatus',
32
+ title: `@${config.i18n}:task-status.individual-title`,
33
+ titlePlural: `@${config.i18n}:task-status.plural-title`,
34
+ icon: 'fa-light fa-flag',
35
+ },
36
+ task: {
37
+ name: 'Task',
38
+ title: `@${config.i18n}:task.individual-title`,
39
+ titlePlural: `@${config.i18n}:task.plural-title`,
40
+ icon: 'fa-light fa-clipboard-check',
41
+ },
42
+ taskChecklistItem: {
43
+ name: 'TaskChecklistItem',
44
+ title: `@${config.i18n}:checklist-item.individual-title`,
45
+ titlePlural: `@${config.i18n}:checklist-item.plural-title`,
46
+ icon: 'fa-light fa-list-check',
47
+ },
48
+ taskAssignment: {
49
+ name: 'TaskAssignment',
50
+ title: `@${config.i18n}:task-assignment.individual-title`,
51
+ titlePlural: `@${config.i18n}:task-assignment.plural-title`,
52
+ icon: 'fa-light fa-user-check',
53
+ },
54
+ timeLog: {
55
+ name: 'TimeLog',
56
+ title: `@${config.i18n}:time-log.individual-title`,
57
+ titlePlural: `@${config.i18n}:time-log.plural-title`,
58
+ icon: 'fa-light fa-clock',
59
+ },
60
+ taskDependency: {
61
+ name: 'TaskDependency',
62
+ title: `@${config.i18n}:task-dependency.individual-title`,
63
+ titlePlural: `@${config.i18n}:task-dependency.plural-title`,
64
+ icon: 'fa-light fa-link',
65
+ },
66
+ taskContext: {
67
+ name: 'TaskContext',
68
+ title: `@${config.i18n}:task-context.individual-title`,
69
+ titlePlural: `@${config.i18n}:task-context.plural-title`,
70
+ icon: 'fa-light fa-sitemap',
71
+ },
72
+ taskTemplate: {
73
+ name: 'TaskTemplate',
74
+ title: `@${config.i18n}:task-template.individual-title`,
75
+ titlePlural: `@${config.i18n}:task-template.plural-title`,
76
+ icon: 'fa-light fa-copy',
77
+ },
78
+ },
79
+ widgets: {
80
+ taskBoard: dashboardWidgetId('TaskBoard'),
81
+ taskBoardShortcut: dashboardWidgetId('TaskBoardShortcut'),
82
+ },
83
+ queries: {
84
+ dashboard: {
85
+ openTasksKpi: `${config.module}:Dashboard:OpenTasksKpi`,
86
+ overdueTasksKpi: `${config.module}:Dashboard:OverdueTasksKpi`,
87
+ myOpenTasksKpi: `${config.module}:Dashboard:MyOpenTasksKpi`,
88
+ taskStatusDonut: `${config.module}:Dashboard:TaskStatusDonut`,
89
+ },
90
+ },
91
+ };
92
+
93
+ async function taskStatusFactory() {
94
+ const i18n = RootConfig.config.i18n;
95
+ const entityDef = {
96
+ module: RootConfig.module.name,
97
+ name: RootConfig.entities.taskStatus.name,
98
+ title: RootConfig.entities.taskStatus.title,
99
+ icon: RootConfig.entities.taskStatus.icon,
100
+ formats: {
101
+ individual: RootConfig.entities.taskStatus.title,
102
+ plural: RootConfig.entities.taskStatus.titlePlural,
103
+ searchResult: {
104
+ title: '{{ title }}',
105
+ description: '{{ name }}',
106
+ },
107
+ },
108
+ plugins: [
109
+ { name: 'archive' },
110
+ { name: 'color' },
111
+ { name: 'icon' },
112
+ { name: 'clone' },
113
+ { name: 'default' },
114
+ ],
115
+ groups: [
116
+ {
117
+ id: 'basic-info',
118
+ title: '@general:terms.interface.basic-info',
119
+ },
120
+ {
121
+ id: 'configuration',
122
+ title: '@task-management:task-status.configuration',
123
+ },
124
+ {
125
+ id: 'workflow',
126
+ title: '@task-management:task-status.workflow',
127
+ },
128
+ ],
129
+ properties: [
130
+ {
131
+ name: 'taskTypeId',
132
+ title: '@task-management:task-type.individual-title',
133
+ groupId: 'basic-info',
134
+ options: {
135
+ filter: {
136
+ advance: {
137
+ enabled: true,
138
+ },
139
+ inline: {
140
+ enabled: true,
141
+ },
142
+ },
143
+ },
144
+ schema: {
145
+ dataType: 'object',
146
+ interface: {
147
+ type: AXPWidgetsCatalog.lookup,
148
+ options: {
149
+ entity: `${RootConfig.module.name}.${RootConfig.entities.taskType.name}`,
150
+ expose: [
151
+ { source: 'id', target: 'taskType.id' },
152
+ { source: 'title', target: 'taskType.title' },
153
+ ],
154
+ },
155
+ },
156
+ },
157
+ validations: [
158
+ {
159
+ rule: 'required',
160
+ },
161
+ ],
162
+ },
163
+ {
164
+ name: 'name',
165
+ title: '@general:terms.common.name',
166
+ groupId: 'basic-info',
167
+ options: {
168
+ sort: {
169
+ enabled: true,
170
+ },
171
+ filter: {
172
+ advance: {
173
+ enabled: true,
174
+ },
175
+ inline: {
176
+ enabled: true,
177
+ },
178
+ },
179
+ },
180
+ schema: {
181
+ dataType: 'string',
182
+ interface: {
183
+ type: AXPWidgetsCatalog.text,
184
+ },
185
+ },
186
+ validations: [
187
+ {
188
+ rule: 'required',
189
+ },
190
+ ],
191
+ },
192
+ {
193
+ name: 'title',
194
+ title: '@general:terms.common.title',
195
+ groupId: 'basic-info',
196
+ options: {
197
+ sort: {
198
+ enabled: true,
199
+ },
200
+ filter: {
201
+ advance: {
202
+ enabled: true,
203
+ },
204
+ inline: {
205
+ enabled: true,
206
+ },
207
+ },
208
+ },
209
+ schema: {
210
+ dataType: 'string',
211
+ interface: {
212
+ type: AXPWidgetsCatalog.text,
213
+ },
214
+ },
215
+ validations: [
216
+ {
217
+ rule: 'required',
218
+ },
219
+ ],
220
+ },
221
+ {
222
+ name: 'description',
223
+ title: '@general:terms.common.description',
224
+ groupId: 'basic-info',
225
+ options: {
226
+ sort: {
227
+ enabled: false,
228
+ },
229
+ filter: {
230
+ advance: {
231
+ enabled: true,
232
+ },
233
+ inline: {
234
+ enabled: false,
235
+ },
236
+ },
237
+ },
238
+ schema: {
239
+ dataType: 'string',
240
+ interface: {
241
+ type: AXPWidgetsCatalog.largeText,
242
+ options: {
243
+ rows: 3,
244
+ },
245
+ },
246
+ },
247
+ },
248
+ {
249
+ name: 'isFinal',
250
+ title: '@task-management:task-status.is-final',
251
+ groupId: 'configuration',
252
+ options: {
253
+ sort: {
254
+ enabled: true,
255
+ },
256
+ filter: {
257
+ advance: {
258
+ enabled: true,
259
+ },
260
+ inline: {
261
+ enabled: true,
262
+ },
263
+ },
264
+ },
265
+ schema: {
266
+ dataType: 'boolean',
267
+ interface: {
268
+ type: AXPWidgetsCatalog.toggle,
269
+ },
270
+ },
271
+ },
272
+ {
273
+ name: 'order',
274
+ title: '@general:terms.classification.order',
275
+ groupId: 'configuration',
276
+ options: {
277
+ sort: {
278
+ enabled: true,
279
+ },
280
+ filter: {
281
+ advance: {
282
+ enabled: true,
283
+ },
284
+ inline: {
285
+ enabled: false,
286
+ },
287
+ },
288
+ },
289
+ schema: {
290
+ dataType: 'number',
291
+ interface: {
292
+ type: AXPWidgetsCatalog.number,
293
+ options: {
294
+ minValue: 0,
295
+ step: 1,
296
+ },
297
+ },
298
+ },
299
+ validations: [
300
+ {
301
+ rule: 'required',
302
+ },
303
+ ],
304
+ },
305
+ {
306
+ name: 'allowedTransitions',
307
+ title: `@${i18n}:task-status.allowed-transitions`,
308
+ groupId: 'workflow',
309
+ options: {
310
+ sort: {
311
+ enabled: false,
312
+ },
313
+ filter: {
314
+ advance: {
315
+ enabled: false,
316
+ },
317
+ inline: {
318
+ enabled: false,
319
+ },
320
+ },
321
+ },
322
+ schema: {
323
+ dataType: 'array',
324
+ interface: {
325
+ type: AXPWidgetsCatalog.lookup,
326
+ options: {
327
+ entity: `${RootConfig.module.name}.${RootConfig.entities.taskStatus.name}`,
328
+ multiple: true,
329
+ expose: [
330
+ { source: 'id', target: 'allowedTransitions.{id}' },
331
+ { source: 'title', target: 'allowedTransitions.{title}' },
332
+ ],
333
+ },
334
+ },
335
+ },
336
+ },
337
+ ],
338
+ columns: [
339
+ { name: 'title' },
340
+ { name: 'name' },
341
+ { name: 'order' },
342
+ { name: 'isFinal' },
343
+ ],
344
+ interfaces: {
345
+ master: {
346
+ create: {
347
+ sections: [
348
+ {
349
+ id: 'basic-info',
350
+ },
351
+ {
352
+ id: 'configuration',
353
+ },
354
+ {
355
+ id: 'workflow',
356
+ },
357
+ ],
358
+ properties: [
359
+ {
360
+ name: 'title',
361
+ layout: {
362
+ positions: {
363
+ lg: {
364
+ colSpan: 6,
365
+ order: 1,
366
+ },
367
+ },
368
+ },
369
+ },
370
+ {
371
+ name: 'name',
372
+ layout: {
373
+ positions: {
374
+ lg: {
375
+ colSpan: 6,
376
+ order: 2,
377
+ },
378
+ },
379
+ },
380
+ },
381
+ {
382
+ name: 'description',
383
+ layout: {
384
+ positions: {
385
+ lg: {
386
+ colSpan: 12,
387
+ order: 3,
388
+ },
389
+ },
390
+ },
391
+ },
392
+ {
393
+ name: 'order',
394
+ layout: {
395
+ positions: {
396
+ lg: {
397
+ colSpan: 4,
398
+ order: 6,
399
+ },
400
+ },
401
+ },
402
+ },
403
+ {
404
+ name: 'isFinal',
405
+ layout: {
406
+ positions: {
407
+ lg: {
408
+ colSpan: 4,
409
+ order: 8,
410
+ },
411
+ },
412
+ },
413
+ },
414
+ {
415
+ name: 'allowedTransitions',
416
+ layout: {
417
+ positions: {
418
+ lg: {
419
+ colSpan: 12,
420
+ order: 10,
421
+ },
422
+ },
423
+ },
424
+ },
425
+ ],
426
+ },
427
+ update: {
428
+ sections: [
429
+ {
430
+ id: 'basic-info',
431
+ },
432
+ {
433
+ id: 'configuration',
434
+ },
435
+ {
436
+ id: 'workflow',
437
+ },
438
+ ],
439
+ properties: [
440
+ {
441
+ name: 'title',
442
+ layout: {
443
+ positions: {
444
+ lg: {
445
+ colSpan: 6,
446
+ order: 1,
447
+ },
448
+ },
449
+ },
450
+ },
451
+ {
452
+ name: 'name',
453
+ layout: {
454
+ positions: {
455
+ lg: {
456
+ colSpan: 6,
457
+ order: 2,
458
+ },
459
+ },
460
+ },
461
+ },
462
+ {
463
+ name: 'description',
464
+ layout: {
465
+ positions: {
466
+ lg: {
467
+ colSpan: 12,
468
+ order: 3,
469
+ },
470
+ },
471
+ },
472
+ },
473
+ {
474
+ name: 'order',
475
+ layout: {
476
+ positions: {
477
+ lg: {
478
+ colSpan: 4,
479
+ order: 6,
480
+ },
481
+ },
482
+ },
483
+ },
484
+ {
485
+ name: 'isFinal',
486
+ layout: {
487
+ positions: {
488
+ lg: {
489
+ colSpan: 4,
490
+ order: 8,
491
+ },
492
+ },
493
+ },
494
+ },
495
+ {
496
+ name: 'allowedTransitions',
497
+ layout: {
498
+ positions: {
499
+ lg: {
500
+ colSpan: 12,
501
+ order: 10,
502
+ },
503
+ },
504
+ },
505
+ },
506
+ ],
507
+ },
508
+ single: {
509
+ title: '{{title}}',
510
+ sections: [
511
+ {
512
+ id: 'basic-info',
513
+ layout: {
514
+ positions: {
515
+ lg: {
516
+ colSpan: 6,
517
+ },
518
+ },
519
+ },
520
+ },
521
+ {
522
+ id: 'configuration',
523
+ layout: {
524
+ positions: {
525
+ lg: {
526
+ colSpan: 6,
527
+ },
528
+ },
529
+ },
530
+ },
531
+ {
532
+ id: 'workflow',
533
+ layout: {
534
+ positions: {
535
+ lg: {
536
+ colSpan: 12,
537
+ },
538
+ },
539
+ },
540
+ },
541
+ ],
542
+ properties: [
543
+ {
544
+ name: 'title',
545
+ layout: {
546
+ positions: {
547
+ lg: {
548
+ colSpan: 12,
549
+ order: 1,
550
+ },
551
+ },
552
+ },
553
+ },
554
+ {
555
+ name: 'name',
556
+ layout: {
557
+ positions: {
558
+ lg: {
559
+ colSpan: 12,
560
+ order: 2,
561
+ },
562
+ },
563
+ },
564
+ },
565
+ {
566
+ name: 'description',
567
+ layout: {
568
+ positions: {
569
+ lg: {
570
+ colSpan: 12,
571
+ order: 3,
572
+ },
573
+ },
574
+ },
575
+ },
576
+ {
577
+ name: 'order',
578
+ layout: {
579
+ positions: {
580
+ lg: {
581
+ colSpan: 4,
582
+ order: 6,
583
+ },
584
+ },
585
+ },
586
+ },
587
+ {
588
+ name: 'isFinal',
589
+ layout: {
590
+ positions: {
591
+ lg: {
592
+ colSpan: 4,
593
+ order: 8,
594
+ },
595
+ },
596
+ },
597
+ },
598
+ {
599
+ name: 'allowedTransitions',
600
+ layout: {
601
+ positions: {
602
+ lg: {
603
+ colSpan: 12,
604
+ order: 10,
605
+ },
606
+ },
607
+ },
608
+ },
609
+ ],
610
+ actions: [...entityMasterRecordActions()],
611
+ },
612
+ list: {
613
+ actions: [
614
+ ...entityMasterCrudActions(),
615
+ {
616
+ title: '@general:actions.edit.title',
617
+ command: 'Entity:Edit',
618
+ priority: 'secondary',
619
+ type: 'update',
620
+ scope: AXPEntityCommandScope.Individual,
621
+ },
622
+ ],
623
+ views: [
624
+ createAllQueryView({
625
+ sorts: [
626
+ { name: 'order', dir: 'asc' },
627
+ { name: 'title', dir: 'asc' },
628
+ ],
629
+ }),
630
+ ],
631
+ },
632
+ },
633
+ },
634
+ };
635
+ return entityDef;
636
+ }
637
+
638
+ /**
639
+ * Generated bundle index. Do not edit.
640
+ */
641
+
642
+ export { taskStatusFactory };
643
+ //# sourceMappingURL=acorex-platform-module-task-management-client-contracts-entities-task-status.mjs.map