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