@acorex-platform/module-task-management-client 1.0.2 → 2.0.0-beta.1

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