@acorex-platform/module-software-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 (70) hide show
  1. package/fesm2022/{acorex-platform-module-software-management-client-accept-software-suggestion.command-DVcM5TTv.mjs → acorex-platform-module-software-management-client-accept-software-suggestion.command-BzPDjIw0.mjs} +7 -6
  2. package/fesm2022/acorex-platform-module-software-management-client-accept-software-suggestion.command-BzPDjIw0.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-software-management-client-behavior-specification.commands-4rkD2uP9.mjs +212 -0
  4. package/fesm2022/acorex-platform-module-software-management-client-behavior-specification.commands-4rkD2uP9.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-software-management-client-behavior-task.activities-WmCC3-3L.mjs +79 -0
  6. package/fesm2022/acorex-platform-module-software-management-client-behavior-task.activities-WmCC3-3L.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-software-management-client-complete-software-phase.activity-C61GUc78.mjs +512 -0
  8. package/fesm2022/acorex-platform-module-software-management-client-complete-software-phase.activity-C61GUc78.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-software-management-client-contracts-acceptance-criterion.entity-CHEusZ4z.mjs +62 -0
  10. package/fesm2022/acorex-platform-module-software-management-client-contracts-acceptance-criterion.entity-CHEusZ4z.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-software-management-client-contracts-business-rule.entity-Cew1yY4A.mjs +76 -0
  12. package/fesm2022/acorex-platform-module-software-management-client-contracts-business-rule.entity-Cew1yY4A.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-software-management-client-contracts-design-decision.entity-BDRnAUj9.mjs +94 -0
  14. package/fesm2022/acorex-platform-module-software-management-client-contracts-design-decision.entity-BDRnAUj9.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-software-management-client-contracts-discovery-item.entity-Ah5hlc5n.mjs +71 -0
  16. package/fesm2022/acorex-platform-module-software-management-client-contracts-discovery-item.entity-Ah5hlc5n.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-software-management-client-contracts-feature.entity-D9es0yAv.mjs +49 -0
  18. package/fesm2022/acorex-platform-module-software-management-client-contracts-feature.entity-D9es0yAv.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-software-management-client-contracts-module.entity-E9XKlo1v.mjs +26 -0
  20. package/fesm2022/acorex-platform-module-software-management-client-contracts-module.entity-E9XKlo1v.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-software-management-client-contracts-requirement.entity-DKr-En_J.mjs +86 -0
  22. package/fesm2022/acorex-platform-module-software-management-client-contracts-requirement.entity-DKr-En_J.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-software-management-client-contracts-scope-item.entity-D25tkUvi.mjs +73 -0
  24. package/fesm2022/acorex-platform-module-software-management-client-contracts-scope-item.entity-D25tkUvi.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-software-management-client-contracts-software-entity.util-sRHl21Jh.mjs +281 -0
  26. package/fesm2022/acorex-platform-module-software-management-client-contracts-software-entity.util-sRHl21Jh.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-software-management-client-contracts-software.entity-DfeM7KfF.mjs +751 -0
  28. package/fesm2022/acorex-platform-module-software-management-client-contracts-software.entity-DfeM7KfF.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-software-management-client-contracts-use-case.entity-dPBFz-xN.mjs +92 -0
  30. package/fesm2022/acorex-platform-module-software-management-client-contracts-use-case.entity-dPBFz-xN.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-software-management-client-contracts.mjs +2709 -156
  32. package/fesm2022/acorex-platform-module-software-management-client-contracts.mjs.map +1 -1
  33. package/fesm2022/acorex-platform-module-software-management-client-delivery-plan.commands-ccrjppbE.mjs +212 -0
  34. package/fesm2022/acorex-platform-module-software-management-client-delivery-plan.commands-ccrjppbE.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-software-management-client-delivery-task.activities-L955X3RX.mjs +216 -0
  36. package/fesm2022/acorex-platform-module-software-management-client-delivery-task.activities-L955X3RX.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-software-management-client-design-document.commands-BDE3x0KG.mjs +212 -0
  38. package/fesm2022/acorex-platform-module-software-management-client-design-document.commands-BDE3x0KG.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-software-management-client-design-task.activities-Cra2LNal.mjs +79 -0
  40. package/fesm2022/acorex-platform-module-software-management-client-design-task.activities-Cra2LNal.mjs.map +1 -0
  41. package/fesm2022/{acorex-platform-module-software-management-client-discovery-kickoff.commands-gB0_htfF.mjs → acorex-platform-module-software-management-client-discovery-kickoff.commands-BZxzDJs9.mjs} +4 -2
  42. package/fesm2022/{acorex-platform-module-software-management-client-discovery-kickoff.commands-gB0_htfF.mjs.map → acorex-platform-module-software-management-client-discovery-kickoff.commands-BZxzDJs9.mjs.map} +1 -1
  43. package/fesm2022/{acorex-platform-module-software-management-client-discovery-report.commands-D2ricLpq.mjs → acorex-platform-module-software-management-client-discovery-report.commands-C9GKrnHs.mjs} +3 -2
  44. package/fesm2022/acorex-platform-module-software-management-client-discovery-report.commands-C9GKrnHs.mjs.map +1 -0
  45. package/fesm2022/acorex-platform-module-software-management-client-discovery-task.activities-PIJEUza7.mjs +228 -0
  46. package/fesm2022/acorex-platform-module-software-management-client-discovery-task.activities-PIJEUza7.mjs.map +1 -0
  47. package/fesm2022/{acorex-platform-module-software-management-client-introduction-exit-message.util-DShFM8MY.mjs → acorex-platform-module-software-management-client-introduction-exit-message.util-cYtN92HY.mjs} +1 -1
  48. package/fesm2022/{acorex-platform-module-software-management-client-introduction-exit-message.util-DShFM8MY.mjs.map → acorex-platform-module-software-management-client-introduction-exit-message.util-cYtN92HY.mjs.map} +1 -1
  49. package/fesm2022/{acorex-platform-module-software-management-client-introduction-task.activities-BOsJbeJe.mjs → acorex-platform-module-software-management-client-introduction-task.activities-DQPpsJaH.mjs} +78 -3
  50. package/fesm2022/acorex-platform-module-software-management-client-introduction-task.activities-DQPpsJaH.mjs.map +1 -0
  51. package/fesm2022/acorex-platform-module-software-management-client-scope-document.commands-oLGsbLoA.mjs +212 -0
  52. package/fesm2022/acorex-platform-module-software-management-client-scope-document.commands-oLGsbLoA.mjs.map +1 -0
  53. package/fesm2022/acorex-platform-module-software-management-client-scope-task.activities-BCSPq0eO.mjs +79 -0
  54. package/fesm2022/acorex-platform-module-software-management-client-scope-task.activities-BCSPq0eO.mjs.map +1 -0
  55. package/fesm2022/{acorex-platform-module-software-management-client-software-command.util-BsoKQCX5.mjs → acorex-platform-module-software-management-client-software-command.util-CvlYk7tC.mjs} +1 -1
  56. package/fesm2022/{acorex-platform-module-software-management-client-software-command.util-BsoKQCX5.mjs.map → acorex-platform-module-software-management-client-software-command.util-CvlYk7tC.mjs.map} +1 -1
  57. package/fesm2022/{acorex-platform-module-software-management-client-start-software-definition-flow.command-B0YCgv2V.mjs → acorex-platform-module-software-management-client-start-software-definition-flow.command-BfxtMIGb.mjs} +2 -2
  58. package/fesm2022/{acorex-platform-module-software-management-client-start-software-definition-flow.command-B0YCgv2V.mjs.map → acorex-platform-module-software-management-client-start-software-definition-flow.command-BfxtMIGb.mjs.map} +1 -1
  59. package/fesm2022/acorex-platform-module-software-management-client.mjs +400 -32
  60. package/fesm2022/acorex-platform-module-software-management-client.mjs.map +1 -1
  61. package/i18n/en-AU/software-management.json +473 -24
  62. package/i18n/en-US/software-management.json +473 -24
  63. package/i18n/fa-IR/software-management.json +474 -25
  64. package/package.json +1 -1
  65. package/types/acorex-platform-module-software-management-client-contracts.d.ts +640 -11
  66. package/fesm2022/acorex-platform-module-software-management-client-accept-software-suggestion.command-DVcM5TTv.mjs.map +0 -1
  67. package/fesm2022/acorex-platform-module-software-management-client-complete-software-phase.activity-C56HhK20.mjs +0 -182
  68. package/fesm2022/acorex-platform-module-software-management-client-complete-software-phase.activity-C56HhK20.mjs.map +0 -1
  69. package/fesm2022/acorex-platform-module-software-management-client-discovery-report.commands-D2ricLpq.mjs.map +0 -1
  70. package/fesm2022/acorex-platform-module-software-management-client-introduction-task.activities-BOsJbeJe.mjs.map +0 -1
@@ -0,0 +1,751 @@
1
+ import { AXPWidgetsList, AXPSystemActionType } from '@acorex-platform/framework-shared/core';
2
+ import { AXPEntityCommandScope, createAllQueryView, entityMasterCrudActions, entityDetailsCrudActions } from '@acorex-platform/framework-shared/entity';
3
+ import { DELIVERY_PLAN_FIELDS, RootConfig, DISCOVERY_DECISIONS, SOFTWARE_PHASES, AXPSoftwareManagementCommandKeys, DISCOVERY_KICKOFF_DOCUMENT_TYPE_NAME, DISCOVERY_REPORT_DOCUMENT_TYPE_NAME, SCOPE_DOCUMENT_TYPE_NAME, BEHAVIOR_DOCUMENT_TYPE_NAME, DESIGN_DOCUMENT_TYPE_NAME, DELIVERY_DOCUMENT_TYPE_NAME } from './acorex-platform-module-software-management-client-contracts.mjs';
4
+ import { s as softwareI18n, l as listSortAndFilter, a as softwareTextProperty, b as softwareSelectProperty, c as softwareLookupProperty, d as softwareProvenanceProperties, e as softwareChildRelated, f as softwareAcceptSuggestionAction } from './acorex-platform-module-software-management-client-contracts-software-entity.util-sRHl21Jh.mjs';
5
+
6
+ //#region ---- Imports ----
7
+ //#endregion
8
+ //#region ---- Constants ----
9
+ const CREATE_FIELDS = ['title', 'idea', 'initialProblem', 'goal', 'ownerId'];
10
+ const UPDATE_FIELDS = [
11
+ 'title',
12
+ 'idea',
13
+ 'originalIdea',
14
+ 'initialProblem',
15
+ 'goal',
16
+ 'ownerId',
17
+ 'potentialUsers',
18
+ 'openQuestions',
19
+ 'discoveryDecision',
20
+ 'discoveryRationale',
21
+ ...DELIVERY_PLAN_FIELDS,
22
+ 'projectId',
23
+ 'sourceNote',
24
+ ];
25
+ const SINGLE_FIELDS = [
26
+ 'title',
27
+ 'idea',
28
+ 'originalIdea',
29
+ 'initialProblem',
30
+ 'goal',
31
+ 'ownerId',
32
+ 'potentialUsers',
33
+ 'openQuestions',
34
+ 'code',
35
+ 'currentPhase',
36
+ 'kickoffDocumentId',
37
+ 'kickoffApprovedVersionId',
38
+ 'discoveryReportDocumentId',
39
+ 'discoveryApprovedVersionId',
40
+ 'discoveryDecision',
41
+ 'discoveryRationale',
42
+ 'scopeDocumentId',
43
+ 'scopeApprovedVersionId',
44
+ 'behaviorDocumentId',
45
+ 'behaviorApprovedVersionId',
46
+ 'designDocumentId',
47
+ 'designApprovedVersionId',
48
+ 'deliveryDocumentId',
49
+ 'deliveryApprovedVersionId',
50
+ ...DELIVERY_PLAN_FIELDS,
51
+ 'introductionCompletedAt',
52
+ 'definitionCompletedAt',
53
+ 'projectId',
54
+ 'origin',
55
+ 'proposedBy',
56
+ 'acceptedAt',
57
+ 'needsReview',
58
+ 'reviewReason',
59
+ 'sourceNote',
60
+ ];
61
+ const AFTER_INTRODUCTION_VISIBLE = '{{ !!context.eval("introductionCompletedAt") }}';
62
+ const DISCOVERY_VISIBLE = '{{ context.eval("currentPhase") === "discovery" || !!context.eval("discoveryReportDocumentId") }}';
63
+ const DEFINITION_STARTED = '{{ !!context.eval("workflowInfo.instanceId") }}';
64
+ const INTRODUCTION_PHASE_NOT_READY = '{{ !!context.eval("definitionCompletedAt") || ((context.eval("currentPhase") || "introduction") === "introduction" && !context.eval("kickoffApprovedVersionId")) }}';
65
+ //#endregion
66
+ //#region ---- Helpers ----
67
+ function softwareFormPropertyLayouts(names) {
68
+ return names.map((name, index) => ({
69
+ name,
70
+ layout: { positions: { lg: { colSpan: 12, order: index + 1 } } },
71
+ }));
72
+ }
73
+ //#endregion
74
+ //#region ---- Entity factory ----
75
+ async function softwareFactory() {
76
+ const meta = RootConfig.entities.software;
77
+ const i18n = softwareI18n('software');
78
+ const groups = [
79
+ {
80
+ id: 'introduction',
81
+ title: `@${i18n}.groups.introduction`,
82
+ description: `@${i18n}.guides.introduction`,
83
+ },
84
+ { id: 'delivery', title: `@${i18n}.groups.delivery` },
85
+ { id: 'progress', title: `@${i18n}.groups.progress` },
86
+ { id: 'provenance', title: `@${i18n}.groups.provenance` },
87
+ ];
88
+ const properties = [
89
+ softwareTextProperty({
90
+ name: 'title',
91
+ title: `@${i18n}.fields.title.title`,
92
+ groupId: 'introduction',
93
+ required: true,
94
+ }),
95
+ softwareTextProperty({
96
+ name: 'idea',
97
+ title: `@${i18n}.fields.idea.title`,
98
+ description: `@${i18n}.fields.idea.description`,
99
+ groupId: 'introduction',
100
+ required: true,
101
+ large: true,
102
+ }),
103
+ softwareTextProperty({
104
+ name: 'originalIdea',
105
+ title: `@${i18n}.fields.original-idea.title`,
106
+ description: `@${i18n}.fields.original-idea.description`,
107
+ groupId: 'introduction',
108
+ large: true,
109
+ readonly: true,
110
+ }),
111
+ softwareTextProperty({
112
+ name: 'initialProblem',
113
+ title: `@${i18n}.fields.initial-problem.title`,
114
+ description: `@${i18n}.fields.initial-problem.description`,
115
+ groupId: 'introduction',
116
+ large: true,
117
+ }),
118
+ softwareTextProperty({
119
+ name: 'goal',
120
+ title: `@${i18n}.fields.goal.title`,
121
+ description: `@${i18n}.fields.goal.description`,
122
+ groupId: 'introduction',
123
+ large: true,
124
+ }),
125
+ softwareTextProperty({
126
+ name: 'potentialUsers',
127
+ title: `@${i18n}.fields.potential-users.title`,
128
+ description: `@${i18n}.fields.potential-users.description`,
129
+ groupId: 'introduction',
130
+ large: true,
131
+ }),
132
+ softwareTextProperty({
133
+ name: 'openQuestions',
134
+ title: `@${i18n}.fields.open-questions.title`,
135
+ description: `@${i18n}.fields.open-questions.description`,
136
+ groupId: 'introduction',
137
+ large: true,
138
+ }),
139
+ {
140
+ name: 'ownerId',
141
+ title: `@${i18n}.fields.owner.title`,
142
+ description: `@${i18n}.fields.owner.description`,
143
+ groupId: 'introduction',
144
+ schema: {
145
+ dataType: 'string',
146
+ interface: {
147
+ type: AXPWidgetsList.Editors.LookupBox,
148
+ options: {
149
+ look: 'select',
150
+ entity: 'SecurityManagement.User',
151
+ textField: 'displayName',
152
+ valueField: 'id',
153
+ columns: ['displayName', 'username'],
154
+ expose: [
155
+ { source: 'id', target: 'owner.id' },
156
+ { source: 'displayName', target: 'owner.displayName' },
157
+ ],
158
+ },
159
+ },
160
+ },
161
+ options: listSortAndFilter,
162
+ },
163
+ {
164
+ name: 'code',
165
+ title: `@${i18n}.fields.code.title`,
166
+ groupId: 'progress',
167
+ schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsList.Editors.TextBox } },
168
+ options: listSortAndFilter,
169
+ },
170
+ softwareTextProperty({
171
+ name: 'kickoffDocumentId', reference: true,
172
+ title: `@${i18n}.fields.kickoff-document.title`,
173
+ description: `@${i18n}.fields.kickoff-document.description`,
174
+ groupId: 'progress',
175
+ readonly: true,
176
+ }),
177
+ softwareTextProperty({
178
+ name: 'kickoffApprovedVersionId', reference: true,
179
+ title: `@${i18n}.fields.kickoff-approved-version.title`,
180
+ description: `@${i18n}.fields.kickoff-approved-version.description`,
181
+ groupId: 'progress',
182
+ readonly: true,
183
+ }),
184
+ softwareSelectProperty({
185
+ name: 'discoveryDecision',
186
+ title: `@${i18n}.fields.discovery-decision.title`,
187
+ description: `@${i18n}.fields.discovery-decision.description`,
188
+ groupId: 'progress',
189
+ dataSource: DISCOVERY_DECISIONS.map((value) => ({
190
+ value,
191
+ text: `@${RootConfig.config.i18n}:terms.discovery-decision.${value}`,
192
+ })),
193
+ }),
194
+ softwareTextProperty({
195
+ name: 'discoveryRationale',
196
+ title: `@${i18n}.fields.discovery-rationale.title`,
197
+ description: `@${i18n}.fields.discovery-rationale.description`,
198
+ groupId: 'progress',
199
+ large: true,
200
+ }),
201
+ softwareTextProperty({
202
+ name: 'discoveryReportDocumentId', reference: true,
203
+ title: `@${i18n}.fields.discovery-report.title`,
204
+ description: `@${i18n}.fields.discovery-report.description`,
205
+ groupId: 'progress',
206
+ readonly: true,
207
+ }),
208
+ softwareTextProperty({
209
+ name: 'discoveryApprovedVersionId', reference: true,
210
+ title: `@${i18n}.fields.discovery-approved-version.title`,
211
+ description: `@${i18n}.fields.discovery-approved-version.description`,
212
+ groupId: 'progress',
213
+ readonly: true,
214
+ }),
215
+ softwareTextProperty({
216
+ name: 'scopeDocumentId', reference: true,
217
+ title: `@${i18n}.fields.scope-document.title`,
218
+ description: `@${i18n}.fields.scope-document.description`,
219
+ groupId: 'progress',
220
+ readonly: true,
221
+ }),
222
+ softwareTextProperty({
223
+ name: 'scopeApprovedVersionId', reference: true,
224
+ title: `@${i18n}.fields.scope-approved-version.title`,
225
+ description: `@${i18n}.fields.scope-approved-version.description`,
226
+ groupId: 'progress',
227
+ readonly: true,
228
+ }),
229
+ softwareTextProperty({
230
+ name: 'behaviorDocumentId', reference: true,
231
+ title: `@${i18n}.fields.behavior-document.title`,
232
+ description: `@${i18n}.fields.behavior-document.description`,
233
+ groupId: 'progress',
234
+ readonly: true,
235
+ }),
236
+ softwareTextProperty({
237
+ name: 'behaviorApprovedVersionId', reference: true,
238
+ title: `@${i18n}.fields.behavior-approved-version.title`,
239
+ description: `@${i18n}.fields.behavior-approved-version.description`,
240
+ groupId: 'progress',
241
+ readonly: true,
242
+ }),
243
+ softwareTextProperty({
244
+ name: 'designDocumentId', reference: true,
245
+ title: `@${i18n}.fields.design-document.title`,
246
+ description: `@${i18n}.fields.design-document.description`,
247
+ groupId: 'progress',
248
+ readonly: true,
249
+ }),
250
+ softwareTextProperty({
251
+ name: 'designApprovedVersionId', reference: true,
252
+ title: `@${i18n}.fields.design-approved-version.title`,
253
+ description: `@${i18n}.fields.design-approved-version.description`,
254
+ groupId: 'progress',
255
+ readonly: true,
256
+ }),
257
+ softwareTextProperty({
258
+ name: 'deliveryDocumentId', reference: true,
259
+ title: `@${i18n}.fields.delivery-document.title`,
260
+ description: `@${i18n}.fields.delivery-document.description`,
261
+ groupId: 'progress',
262
+ readonly: true,
263
+ }),
264
+ softwareTextProperty({
265
+ name: 'deliveryApprovedVersionId', reference: true,
266
+ title: `@${i18n}.fields.delivery-approved-version.title`,
267
+ description: `@${i18n}.fields.delivery-approved-version.description`,
268
+ groupId: 'progress',
269
+ readonly: true,
270
+ }),
271
+ softwareTextProperty({
272
+ name: 'deliveryWorkPackages',
273
+ title: `@${i18n}.fields.delivery-work-packages.title`,
274
+ description: `@${i18n}.fields.delivery-work-packages.description`,
275
+ groupId: 'delivery',
276
+ large: true,
277
+ }),
278
+ softwareTextProperty({
279
+ name: 'deliveryMilestones',
280
+ title: `@${i18n}.fields.delivery-milestones.title`,
281
+ description: `@${i18n}.fields.delivery-milestones.description`,
282
+ groupId: 'delivery',
283
+ large: true,
284
+ }),
285
+ softwareTextProperty({
286
+ name: 'deliveryEstimateAssumptions',
287
+ title: `@${i18n}.fields.delivery-estimate-assumptions.title`,
288
+ description: `@${i18n}.fields.delivery-estimate-assumptions.description`,
289
+ groupId: 'delivery',
290
+ large: true,
291
+ }),
292
+ softwareTextProperty({
293
+ name: 'deliveryVerificationCriteria',
294
+ title: `@${i18n}.fields.delivery-verification-criteria.title`,
295
+ description: `@${i18n}.fields.delivery-verification-criteria.description`,
296
+ groupId: 'delivery',
297
+ large: true,
298
+ }),
299
+ softwareTextProperty({
300
+ name: 'deliveryReleaseCriteria',
301
+ title: `@${i18n}.fields.delivery-release-criteria.title`,
302
+ description: `@${i18n}.fields.delivery-release-criteria.description`,
303
+ groupId: 'delivery',
304
+ large: true,
305
+ }),
306
+ softwareTextProperty({
307
+ name: 'deliveryRisks',
308
+ title: `@${i18n}.fields.delivery-risks.title`,
309
+ description: `@${i18n}.fields.delivery-risks.description`,
310
+ groupId: 'delivery',
311
+ large: true,
312
+ }),
313
+ softwareLookupProperty({
314
+ name: 'deliveryTracedRequirementId',
315
+ title: `@${i18n}.fields.delivery-traced-requirement.title`,
316
+ description: `@${i18n}.fields.delivery-traced-requirement.description`,
317
+ groupId: 'delivery',
318
+ entity: RootConfig.entities.requirement.source,
319
+ textField: 'title',
320
+ }),
321
+ softwareLookupProperty({
322
+ name: 'deliveryTracedDesignDecisionId',
323
+ title: `@${i18n}.fields.delivery-traced-design-decision.title`,
324
+ description: `@${i18n}.fields.delivery-traced-design-decision.description`,
325
+ groupId: 'delivery',
326
+ entity: RootConfig.entities.designDecision.source,
327
+ textField: 'title',
328
+ }),
329
+ softwareSelectProperty({
330
+ name: 'currentPhase',
331
+ title: `@${i18n}.fields.current-phase.title`,
332
+ groupId: 'progress',
333
+ defaultValue: 'introduction',
334
+ readonly: true,
335
+ dataSource: SOFTWARE_PHASES.map((value) => ({
336
+ value,
337
+ text: `@${RootConfig.config.i18n}:terms.phase.${value}`,
338
+ })),
339
+ }),
340
+ {
341
+ name: 'introductionCompletedAt',
342
+ title: `@${i18n}.fields.introduction-completed-at.title`,
343
+ groupId: 'progress',
344
+ schema: {
345
+ dataType: 'date',
346
+ readonly: true,
347
+ interface: { type: AXPWidgetsList.Editors.DateTimeBox, options: { format: 'datetime' } },
348
+ },
349
+ },
350
+ {
351
+ name: 'definitionCompletedAt',
352
+ title: `@${i18n}.fields.definition-completed-at.title`,
353
+ groupId: 'progress',
354
+ schema: {
355
+ dataType: 'date',
356
+ readonly: true,
357
+ interface: { type: AXPWidgetsList.Editors.DateTimeBox, options: { format: 'datetime' } },
358
+ },
359
+ },
360
+ softwareLookupProperty({
361
+ name: 'projectId',
362
+ title: `@${i18n}.fields.project.title`,
363
+ groupId: 'delivery',
364
+ entity: 'ProjectManagement.Project',
365
+ textField: 'title',
366
+ exposeTarget: 'project.title',
367
+ visible: AFTER_INTRODUCTION_VISIBLE,
368
+ }),
369
+ ...softwareProvenanceProperties(i18n),
370
+ ];
371
+ return {
372
+ module: RootConfig.module.name,
373
+ name: meta.name,
374
+ title: meta.title,
375
+ icon: meta.icon,
376
+ searchTags: ['software', 'idea', 'product definition', 'نرم‌افزار', 'ایده'],
377
+ plugins: [
378
+ { name: 'comments', options: { display: 'page' } },
379
+ { name: 'history' },
380
+ { name: 'identifier', options: { field: 'code', rule: 'software-code' } },
381
+ {
382
+ name: 'documents',
383
+ options: { documentTypeNames: [DISCOVERY_KICKOFF_DOCUMENT_TYPE_NAME, DISCOVERY_REPORT_DOCUMENT_TYPE_NAME, SCOPE_DOCUMENT_TYPE_NAME, BEHAVIOR_DOCUMENT_TYPE_NAME, DESIGN_DOCUMENT_TYPE_NAME, DELIVERY_DOCUMENT_TYPE_NAME] },
384
+ },
385
+ ],
386
+ formats: {
387
+ individual: meta.title,
388
+ plural: meta.titlePlural,
389
+ searchResult: {
390
+ title: '{{ title }}',
391
+ description: '{{ currentPhase }}',
392
+ },
393
+ },
394
+ groups,
395
+ properties,
396
+ columns: [
397
+ { name: 'title', options: { width: '240px' } },
398
+ { name: 'code', options: { width: '140px' } },
399
+ { name: 'currentPhase', options: { width: '180px' } },
400
+ { name: 'ownerId', options: { width: '180px' } },
401
+ { name: 'needsReview', options: { width: '120px' } },
402
+ ],
403
+ relatedEntities: [
404
+ softwareChildRelated('discoveryItem', ['kind', 'stance', 'title', 'needsReview'], 'softwareId', [
405
+ softwareAcceptSuggestionAction(),
406
+ ]),
407
+ {
408
+ entity: 'AssessmentManagement.AssessmentCase',
409
+ title: `@${i18n}.related.questionnaires`,
410
+ icon: 'fa-light fa-clipboard-list',
411
+ columns: ['title', 'statusId'],
412
+ conditions: [
413
+ { name: 'subjectRef.type', operator: { type: 'equal' }, value: meta.source },
414
+ { name: 'subjectRef.id', operator: { type: 'equal' }, value: '{{ context.eval("id") }}' },
415
+ ],
416
+ actions: entityDetailsCrudActions(),
417
+ layout: { type: 'page-list' },
418
+ },
419
+ softwareChildRelated('scopeItem', ['kind', 'title', 'priority', 'needsReview']),
420
+ softwareChildRelated('requirement', ['scopedId', 'title', 'kind', 'priority']),
421
+ softwareChildRelated('acceptanceCriterion', ['statement', 'needsReview']),
422
+ softwareChildRelated('businessRule', ['title', 'kind', 'needsReview']),
423
+ softwareChildRelated('useCase', ['code', 'title', 'needsReview']),
424
+ softwareChildRelated('module', ['code', 'title']),
425
+ softwareChildRelated('designDecision', ['kind', 'title', 'adrStatus', 'needsReview']),
426
+ {
427
+ entity: 'TaskManagement.Task',
428
+ title: `@${i18n}.related.tasks`,
429
+ icon: 'fa-light fa-list-check',
430
+ columns: ['title', 'statusId'],
431
+ conditions: [
432
+ { name: 'subjectRef.type', operator: { type: 'equal' }, value: meta.source },
433
+ { name: 'subjectRef.id', operator: { type: 'equal' }, value: '{{ context.eval("id") }}' },
434
+ ],
435
+ actions: entityDetailsCrudActions(),
436
+ layout: { type: 'page-list' },
437
+ },
438
+ ],
439
+ interfaces: {
440
+ master: {
441
+ create: {
442
+ sections: [{ id: 'introduction' }],
443
+ properties: softwareFormPropertyLayouts(CREATE_FIELDS),
444
+ },
445
+ update: {
446
+ sections: [
447
+ { id: 'introduction' },
448
+ { id: 'delivery', layout: { visible: AFTER_INTRODUCTION_VISIBLE } },
449
+ { id: 'provenance' },
450
+ ],
451
+ properties: softwareFormPropertyLayouts(UPDATE_FIELDS),
452
+ },
453
+ single: {
454
+ title: '{{ title }}',
455
+ sections: groups.map((group) => ({
456
+ id: group.id,
457
+ layout: {
458
+ positions: { lg: { colSpan: 12 } },
459
+ ...(group.id === 'delivery' ? { visible: AFTER_INTRODUCTION_VISIBLE } : {}),
460
+ },
461
+ })),
462
+ properties: softwareFormPropertyLayouts(SINGLE_FIELDS),
463
+ actions: [
464
+ {
465
+ title: `@${RootConfig.config.i18n}:actions.start-definition.title`,
466
+ command: { name: AXPSoftwareManagementCommandKeys.Software.StartFlow },
467
+ priority: 'primary',
468
+ type: AXPSystemActionType.Start,
469
+ scope: AXPEntityCommandScope.Individual,
470
+ hidden: DEFINITION_STARTED,
471
+ },
472
+ {
473
+ title: `@${RootConfig.config.i18n}:actions.generate-kickoff-sheet.title`,
474
+ command: { name: AXPSoftwareManagementCommandKeys.Software.GenerateKickoffSheet },
475
+ priority: 'primary',
476
+ type: AXPSystemActionType.Create,
477
+ scope: AXPEntityCommandScope.Individual,
478
+ hidden: '{{ !context.eval("workflowInfo.instanceId") }}',
479
+ },
480
+ {
481
+ title: `@${RootConfig.config.i18n}:actions.submit-kickoff-sheet.title`,
482
+ command: { name: AXPSoftwareManagementCommandKeys.Software.SubmitKickoffSheet },
483
+ priority: 'secondary',
484
+ type: AXPSystemActionType.Submit,
485
+ scope: AXPEntityCommandScope.Individual,
486
+ hidden: '{{ !context.eval("kickoffDocumentId") }}',
487
+ },
488
+ {
489
+ title: `@${RootConfig.config.i18n}:actions.open-kickoff-sheet.title`,
490
+ command: { name: AXPSoftwareManagementCommandKeys.Software.OpenKickoffSheet },
491
+ priority: 'secondary',
492
+ type: AXPSystemActionType.View,
493
+ scope: AXPEntityCommandScope.Individual,
494
+ hidden: '{{ !context.eval("kickoffDocumentId") }}',
495
+ },
496
+ {
497
+ title: `@${RootConfig.config.i18n}:actions.view-pinned-kickoff.title`,
498
+ command: { name: AXPSoftwareManagementCommandKeys.Software.ViewPinnedKickoff },
499
+ priority: 'secondary',
500
+ type: AXPSystemActionType.View,
501
+ scope: AXPEntityCommandScope.Individual,
502
+ hidden: '{{ !context.eval("kickoffApprovedVersionId") }}',
503
+ },
504
+ {
505
+ title: `@${RootConfig.config.i18n}:actions.link-discovery-questionnaire.title`,
506
+ command: { name: AXPSoftwareManagementCommandKeys.Software.LinkDiscoveryQuestionnaire },
507
+ priority: 'secondary',
508
+ type: AXPSystemActionType.Create,
509
+ scope: AXPEntityCommandScope.Individual,
510
+ hidden: DISCOVERY_VISIBLE.replace('{{ ', '{{ !(').replace(' }}', ') }}'),
511
+ },
512
+ {
513
+ title: `@${RootConfig.config.i18n}:actions.generate-discovery-report.title`,
514
+ command: { name: AXPSoftwareManagementCommandKeys.Software.GenerateDiscoveryReport },
515
+ priority: 'primary',
516
+ type: AXPSystemActionType.Create,
517
+ scope: AXPEntityCommandScope.Individual,
518
+ hidden: '{{ context.eval("currentPhase") !== "discovery" }}',
519
+ },
520
+ {
521
+ title: `@${RootConfig.config.i18n}:actions.submit-discovery-report.title`,
522
+ command: { name: AXPSoftwareManagementCommandKeys.Software.SubmitDiscoveryReport },
523
+ priority: 'secondary',
524
+ type: AXPSystemActionType.Submit,
525
+ scope: AXPEntityCommandScope.Individual,
526
+ hidden: '{{ !context.eval("discoveryReportDocumentId") }}',
527
+ },
528
+ {
529
+ title: `@${RootConfig.config.i18n}:actions.open-discovery-report.title`,
530
+ command: { name: AXPSoftwareManagementCommandKeys.Software.OpenDiscoveryReport },
531
+ priority: 'secondary',
532
+ type: AXPSystemActionType.View,
533
+ scope: AXPEntityCommandScope.Individual,
534
+ hidden: '{{ !context.eval("discoveryReportDocumentId") }}',
535
+ },
536
+ {
537
+ title: `@${RootConfig.config.i18n}:actions.export-discovery-report-pdf.title`,
538
+ command: { name: AXPSoftwareManagementCommandKeys.Software.ExportDiscoveryReportPdf },
539
+ priority: 'secondary',
540
+ type: AXPSystemActionType.Download,
541
+ scope: AXPEntityCommandScope.Individual,
542
+ hidden: '{{ !context.eval("discoveryApprovedVersionId") }}',
543
+ },
544
+ {
545
+ title: `@${RootConfig.config.i18n}:actions.view-pinned-discovery.title`,
546
+ command: { name: AXPSoftwareManagementCommandKeys.Software.ViewPinnedDiscovery },
547
+ priority: 'secondary',
548
+ type: AXPSystemActionType.View,
549
+ scope: AXPEntityCommandScope.Individual,
550
+ hidden: '{{ !context.eval("discoveryApprovedVersionId") }}',
551
+ },
552
+ {
553
+ title: `@${RootConfig.config.i18n}:actions.generate-scope-document.title`,
554
+ command: { name: AXPSoftwareManagementCommandKeys.Software.GenerateScopeDocument },
555
+ priority: 'primary',
556
+ type: AXPSystemActionType.Create,
557
+ scope: AXPEntityCommandScope.Individual,
558
+ hidden: '{{ context.eval("currentPhase") !== "first-version-scope" }}',
559
+ },
560
+ {
561
+ title: `@${RootConfig.config.i18n}:actions.submit-scope-document.title`,
562
+ command: { name: AXPSoftwareManagementCommandKeys.Software.SubmitScopeDocument },
563
+ priority: 'secondary',
564
+ type: AXPSystemActionType.Submit,
565
+ scope: AXPEntityCommandScope.Individual,
566
+ hidden: '{{ !context.eval("scopeDocumentId") }}',
567
+ },
568
+ {
569
+ title: `@${RootConfig.config.i18n}:actions.open-scope-document.title`,
570
+ command: { name: AXPSoftwareManagementCommandKeys.Software.OpenScopeDocument },
571
+ priority: 'secondary',
572
+ type: AXPSystemActionType.View,
573
+ scope: AXPEntityCommandScope.Individual,
574
+ hidden: '{{ !context.eval("scopeDocumentId") }}',
575
+ },
576
+ {
577
+ title: `@${RootConfig.config.i18n}:actions.export-scope-pdf.title`,
578
+ command: { name: AXPSoftwareManagementCommandKeys.Software.ExportScopePdf },
579
+ priority: 'secondary',
580
+ type: AXPSystemActionType.Download,
581
+ scope: AXPEntityCommandScope.Individual,
582
+ hidden: '{{ !context.eval("scopeApprovedVersionId") }}',
583
+ },
584
+ {
585
+ title: `@${RootConfig.config.i18n}:actions.generate-behavior-document.title`,
586
+ command: { name: AXPSoftwareManagementCommandKeys.Software.GenerateBehaviorDocument },
587
+ priority: 'primary',
588
+ type: AXPSystemActionType.Create,
589
+ scope: AXPEntityCommandScope.Individual,
590
+ hidden: '{{ context.eval("currentPhase") !== "behavior-specification" }}',
591
+ },
592
+ {
593
+ title: `@${RootConfig.config.i18n}:actions.submit-behavior-document.title`,
594
+ command: { name: AXPSoftwareManagementCommandKeys.Software.SubmitBehaviorDocument },
595
+ priority: 'secondary',
596
+ type: AXPSystemActionType.Submit,
597
+ scope: AXPEntityCommandScope.Individual,
598
+ hidden: '{{ !context.eval("behaviorDocumentId") }}',
599
+ },
600
+ {
601
+ title: `@${RootConfig.config.i18n}:actions.open-behavior-document.title`,
602
+ command: { name: AXPSoftwareManagementCommandKeys.Software.OpenBehaviorDocument },
603
+ priority: 'secondary',
604
+ type: AXPSystemActionType.View,
605
+ scope: AXPEntityCommandScope.Individual,
606
+ hidden: '{{ !context.eval("behaviorDocumentId") }}',
607
+ },
608
+ {
609
+ title: `@${RootConfig.config.i18n}:actions.export-behavior-pdf.title`,
610
+ command: { name: AXPSoftwareManagementCommandKeys.Software.ExportBehaviorPdf },
611
+ priority: 'secondary',
612
+ type: AXPSystemActionType.Download,
613
+ scope: AXPEntityCommandScope.Individual,
614
+ hidden: '{{ !context.eval("behaviorApprovedVersionId") }}',
615
+ },
616
+ {
617
+ title: `@${RootConfig.config.i18n}:actions.view-pinned-scope.title`,
618
+ command: { name: AXPSoftwareManagementCommandKeys.Software.ViewPinnedScope },
619
+ priority: 'secondary',
620
+ type: AXPSystemActionType.View,
621
+ scope: AXPEntityCommandScope.Individual,
622
+ hidden: '{{ !context.eval("scopeApprovedVersionId") }}',
623
+ },
624
+ {
625
+ title: `@${RootConfig.config.i18n}:actions.generate-design-document.title`,
626
+ command: { name: AXPSoftwareManagementCommandKeys.Software.GenerateDesignDocument },
627
+ priority: 'primary',
628
+ type: AXPSystemActionType.Create,
629
+ scope: AXPEntityCommandScope.Individual,
630
+ hidden: '{{ context.eval("currentPhase") !== "design" }}',
631
+ },
632
+ {
633
+ title: `@${RootConfig.config.i18n}:actions.submit-design-document.title`,
634
+ command: { name: AXPSoftwareManagementCommandKeys.Software.SubmitDesignDocument },
635
+ priority: 'secondary',
636
+ type: AXPSystemActionType.Submit,
637
+ scope: AXPEntityCommandScope.Individual,
638
+ hidden: '{{ !context.eval("designDocumentId") }}',
639
+ },
640
+ {
641
+ title: `@${RootConfig.config.i18n}:actions.open-design-document.title`,
642
+ command: { name: AXPSoftwareManagementCommandKeys.Software.OpenDesignDocument },
643
+ priority: 'secondary',
644
+ type: AXPSystemActionType.View,
645
+ scope: AXPEntityCommandScope.Individual,
646
+ hidden: '{{ !context.eval("designDocumentId") }}',
647
+ },
648
+ {
649
+ title: `@${RootConfig.config.i18n}:actions.export-design-pdf.title`,
650
+ command: { name: AXPSoftwareManagementCommandKeys.Software.ExportDesignPdf },
651
+ priority: 'secondary',
652
+ type: AXPSystemActionType.Download,
653
+ scope: AXPEntityCommandScope.Individual,
654
+ hidden: '{{ !context.eval("designApprovedVersionId") }}',
655
+ },
656
+ {
657
+ title: `@${RootConfig.config.i18n}:actions.view-pinned-behavior.title`,
658
+ command: { name: AXPSoftwareManagementCommandKeys.Software.ViewPinnedBehavior },
659
+ priority: 'secondary',
660
+ type: AXPSystemActionType.View,
661
+ scope: AXPEntityCommandScope.Individual,
662
+ hidden: '{{ !context.eval("behaviorApprovedVersionId") }}',
663
+ },
664
+ {
665
+ title: `@${RootConfig.config.i18n}:actions.generate-delivery-plan.title`,
666
+ command: { name: AXPSoftwareManagementCommandKeys.Software.GenerateDeliveryPlan },
667
+ priority: 'primary',
668
+ type: AXPSystemActionType.Create,
669
+ scope: AXPEntityCommandScope.Individual,
670
+ hidden: '{{ context.eval("currentPhase") !== "delivery-planning" }}',
671
+ },
672
+ {
673
+ title: `@${RootConfig.config.i18n}:actions.submit-delivery-plan.title`,
674
+ command: { name: AXPSoftwareManagementCommandKeys.Software.SubmitDeliveryPlan },
675
+ priority: 'secondary',
676
+ type: AXPSystemActionType.Submit,
677
+ scope: AXPEntityCommandScope.Individual,
678
+ hidden: '{{ !context.eval("deliveryDocumentId") }}',
679
+ },
680
+ {
681
+ title: `@${RootConfig.config.i18n}:actions.open-delivery-plan.title`,
682
+ command: { name: AXPSoftwareManagementCommandKeys.Software.OpenDeliveryPlan },
683
+ priority: 'secondary',
684
+ type: AXPSystemActionType.View,
685
+ scope: AXPEntityCommandScope.Individual,
686
+ hidden: '{{ !context.eval("deliveryDocumentId") }}',
687
+ },
688
+ {
689
+ title: `@${RootConfig.config.i18n}:actions.export-delivery-pdf.title`,
690
+ command: { name: AXPSoftwareManagementCommandKeys.Software.ExportDeliveryPdf },
691
+ priority: 'secondary',
692
+ type: AXPSystemActionType.Download,
693
+ scope: AXPEntityCommandScope.Individual,
694
+ hidden: '{{ !context.eval("deliveryApprovedVersionId") }}',
695
+ },
696
+ {
697
+ title: `@${RootConfig.config.i18n}:actions.view-pinned-design.title`,
698
+ command: { name: AXPSoftwareManagementCommandKeys.Software.ViewPinnedDesign },
699
+ priority: 'secondary',
700
+ type: AXPSystemActionType.View,
701
+ scope: AXPEntityCommandScope.Individual,
702
+ hidden: '{{ !context.eval("designApprovedVersionId") }}',
703
+ },
704
+ {
705
+ title: `@${RootConfig.config.i18n}:actions.export-kickoff-pdf.title`,
706
+ command: { name: AXPSoftwareManagementCommandKeys.Software.ExportKickoffPdf },
707
+ priority: 'secondary',
708
+ type: AXPSystemActionType.Download,
709
+ scope: AXPEntityCommandScope.Individual,
710
+ hidden: '{{ !context.eval("kickoffApprovedVersionId") }}',
711
+ },
712
+ {
713
+ title: `@${RootConfig.config.i18n}:actions.complete-phase.title`,
714
+ command: { name: AXPSoftwareManagementCommandKeys.WorkflowActivity.CompletePhase },
715
+ priority: 'primary',
716
+ type: AXPSystemActionType.Complete,
717
+ scope: AXPEntityCommandScope.Individual,
718
+ hidden: INTRODUCTION_PHASE_NOT_READY,
719
+ },
720
+ {
721
+ title: `@${RootConfig.config.i18n}:actions.accept-suggestion.title`,
722
+ command: { name: AXPSoftwareManagementCommandKeys.Software.AcceptSuggestion },
723
+ priority: 'secondary',
724
+ type: AXPSystemActionType.Approve,
725
+ scope: AXPEntityCommandScope.Individual,
726
+ hidden: '{{ context.eval("origin") !== "suggestion" }}',
727
+ },
728
+ ],
729
+ },
730
+ list: {
731
+ actions: [
732
+ ...entityMasterCrudActions({ create: true, edit: true, delete: true, view: true }),
733
+ {
734
+ title: `@${RootConfig.config.i18n}:actions.start-definition.title`,
735
+ command: { name: AXPSoftwareManagementCommandKeys.Software.StartFlow },
736
+ priority: 'secondary',
737
+ type: AXPSystemActionType.Start,
738
+ scope: AXPEntityCommandScope.Individual,
739
+ hidden: DEFINITION_STARTED,
740
+ },
741
+ ],
742
+ views: [createAllQueryView()],
743
+ },
744
+ },
745
+ },
746
+ };
747
+ }
748
+ //#endregion
749
+
750
+ export { softwareFactory };
751
+ //# sourceMappingURL=acorex-platform-module-software-management-client-contracts-software.entity-DfeM7KfF.mjs.map