@acorex-platform/module-software-management-client 1.0.2 → 2.0.0-beta.0
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-software-management-client-accept-software-suggestion.command-DVcM5TTv.mjs → acorex-platform-module-software-management-client-accept-software-suggestion.command-BzPDjIw0.mjs} +7 -6
- package/fesm2022/acorex-platform-module-software-management-client-accept-software-suggestion.command-BzPDjIw0.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-behavior-specification.commands-4rkD2uP9.mjs +212 -0
- package/fesm2022/acorex-platform-module-software-management-client-behavior-specification.commands-4rkD2uP9.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-behavior-task.activities-WmCC3-3L.mjs +79 -0
- package/fesm2022/acorex-platform-module-software-management-client-behavior-task.activities-WmCC3-3L.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-complete-software-phase.activity-C61GUc78.mjs +512 -0
- package/fesm2022/acorex-platform-module-software-management-client-complete-software-phase.activity-C61GUc78.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-acceptance-criterion.entity-CHEusZ4z.mjs +62 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-acceptance-criterion.entity-CHEusZ4z.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-business-rule.entity-Cew1yY4A.mjs +76 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-business-rule.entity-Cew1yY4A.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-design-decision.entity-BDRnAUj9.mjs +94 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-design-decision.entity-BDRnAUj9.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-discovery-item.entity-Ah5hlc5n.mjs +71 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-discovery-item.entity-Ah5hlc5n.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-feature.entity-D9es0yAv.mjs +49 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-feature.entity-D9es0yAv.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-module.entity-E9XKlo1v.mjs +26 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-module.entity-E9XKlo1v.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-requirement.entity-DKr-En_J.mjs +86 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-requirement.entity-DKr-En_J.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-scope-item.entity-D25tkUvi.mjs +73 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-scope-item.entity-D25tkUvi.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-software-entity.util-sRHl21Jh.mjs +281 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-software-entity.util-sRHl21Jh.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-software.entity-DfeM7KfF.mjs +751 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-software.entity-DfeM7KfF.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-use-case.entity-dPBFz-xN.mjs +92 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-use-case.entity-dPBFz-xN.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts.mjs +2709 -156
- package/fesm2022/acorex-platform-module-software-management-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-software-management-client-delivery-plan.commands-ccrjppbE.mjs +212 -0
- package/fesm2022/acorex-platform-module-software-management-client-delivery-plan.commands-ccrjppbE.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-delivery-task.activities-L955X3RX.mjs +216 -0
- package/fesm2022/acorex-platform-module-software-management-client-delivery-task.activities-L955X3RX.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-design-document.commands-BDE3x0KG.mjs +212 -0
- package/fesm2022/acorex-platform-module-software-management-client-design-document.commands-BDE3x0KG.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-design-task.activities-Cra2LNal.mjs +79 -0
- package/fesm2022/acorex-platform-module-software-management-client-design-task.activities-Cra2LNal.mjs.map +1 -0
- 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
- 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
- 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
- package/fesm2022/acorex-platform-module-software-management-client-discovery-report.commands-C9GKrnHs.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-discovery-task.activities-PIJEUza7.mjs +228 -0
- package/fesm2022/acorex-platform-module-software-management-client-discovery-task.activities-PIJEUza7.mjs.map +1 -0
- 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
- 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
- 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
- package/fesm2022/acorex-platform-module-software-management-client-introduction-task.activities-DQPpsJaH.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-scope-document.commands-oLGsbLoA.mjs +212 -0
- package/fesm2022/acorex-platform-module-software-management-client-scope-document.commands-oLGsbLoA.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-scope-task.activities-BCSPq0eO.mjs +79 -0
- package/fesm2022/acorex-platform-module-software-management-client-scope-task.activities-BCSPq0eO.mjs.map +1 -0
- 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
- 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
- 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
- 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
- package/fesm2022/acorex-platform-module-software-management-client.mjs +400 -32
- package/fesm2022/acorex-platform-module-software-management-client.mjs.map +1 -1
- package/i18n/en-AU/software-management.json +473 -24
- package/i18n/en-US/software-management.json +473 -24
- package/i18n/fa-IR/software-management.json +474 -25
- package/package.json +1 -1
- package/types/acorex-platform-module-software-management-client-contracts.d.ts +640 -11
- package/fesm2022/acorex-platform-module-software-management-client-accept-software-suggestion.command-DVcM5TTv.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-software-management-client-complete-software-phase.activity-C56HhK20.mjs +0 -182
- package/fesm2022/acorex-platform-module-software-management-client-complete-software-phase.activity-C56HhK20.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-software-management-client-discovery-report.commands-D2ricLpq.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-software-management-client-introduction-task.activities-BOsJbeJe.mjs.map +0 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { g as createSoftwareLinkedEntity, b as softwareSelectProperty, a as softwareTextProperty } from './acorex-platform-module-software-management-client-contracts-software-entity.util-sRHl21Jh.mjs';
|
|
2
|
+
import { RootConfig, SOFTWARE_SCOPE_KINDS, SOFTWARE_MOSCOW_PRIORITIES } from './acorex-platform-module-software-management-client-contracts.mjs';
|
|
3
|
+
|
|
4
|
+
async function softwareScopeItemFactory() {
|
|
5
|
+
const i18n = `${RootConfig.config.i18n}:entities.scope-item`;
|
|
6
|
+
return createSoftwareLinkedEntity({
|
|
7
|
+
entityKey: 'scopeItem',
|
|
8
|
+
i18nKey: 'scope-item',
|
|
9
|
+
searchTags: ['scope', 'capability', 'metric', 'محدوده'],
|
|
10
|
+
extraProperties: [
|
|
11
|
+
softwareSelectProperty({
|
|
12
|
+
name: 'kind',
|
|
13
|
+
title: `@${i18n}.fields.kind.title`,
|
|
14
|
+
description: `@${i18n}.fields.kind.description`,
|
|
15
|
+
groupId: 'identity',
|
|
16
|
+
required: true,
|
|
17
|
+
dataSource: SOFTWARE_SCOPE_KINDS.map((value) => ({
|
|
18
|
+
value,
|
|
19
|
+
text: `@${RootConfig.config.i18n}:terms.scope-kind.${value}`,
|
|
20
|
+
})),
|
|
21
|
+
}),
|
|
22
|
+
softwareTextProperty({ name: 'title', title: `@${i18n}.fields.title.title`, groupId: 'identity', required: true }),
|
|
23
|
+
softwareTextProperty({ name: 'body', title: `@${i18n}.fields.body.title`, groupId: 'identity', large: true }),
|
|
24
|
+
softwareSelectProperty({
|
|
25
|
+
name: 'priority',
|
|
26
|
+
title: `@${i18n}.fields.priority.title`,
|
|
27
|
+
description: `@${i18n}.fields.priority.description`,
|
|
28
|
+
groupId: 'identity',
|
|
29
|
+
dataSource: SOFTWARE_MOSCOW_PRIORITIES.map((value) => ({
|
|
30
|
+
value,
|
|
31
|
+
text: `@${RootConfig.config.i18n}:terms.moscow-priority.${value}`,
|
|
32
|
+
})),
|
|
33
|
+
}),
|
|
34
|
+
softwareTextProperty({
|
|
35
|
+
name: 'rationale',
|
|
36
|
+
title: `@${i18n}.fields.rationale.title`,
|
|
37
|
+
description: `@${i18n}.fields.rationale.description`,
|
|
38
|
+
groupId: 'identity',
|
|
39
|
+
large: true,
|
|
40
|
+
}),
|
|
41
|
+
softwareTextProperty({
|
|
42
|
+
name: 'metricBaseline',
|
|
43
|
+
title: `@${i18n}.fields.metric-baseline.title`,
|
|
44
|
+
description: `@${i18n}.fields.metric-baseline.description`,
|
|
45
|
+
groupId: 'identity',
|
|
46
|
+
}),
|
|
47
|
+
softwareTextProperty({
|
|
48
|
+
name: 'metricTarget',
|
|
49
|
+
title: `@${i18n}.fields.metric-target.title`,
|
|
50
|
+
description: `@${i18n}.fields.metric-target.description`,
|
|
51
|
+
groupId: 'identity',
|
|
52
|
+
}),
|
|
53
|
+
softwareTextProperty({
|
|
54
|
+
name: 'metricMethod',
|
|
55
|
+
title: `@${i18n}.fields.metric-method.title`,
|
|
56
|
+
description: `@${i18n}.fields.metric-method.description`,
|
|
57
|
+
groupId: 'identity',
|
|
58
|
+
}),
|
|
59
|
+
softwareTextProperty({
|
|
60
|
+
name: 'discoveryVersionId', reference: true,
|
|
61
|
+
title: `@${i18n}.fields.discovery-version.title`,
|
|
62
|
+
description: `@${i18n}.fields.discovery-version.description`,
|
|
63
|
+
groupId: 'identity',
|
|
64
|
+
readonly: true,
|
|
65
|
+
}),
|
|
66
|
+
],
|
|
67
|
+
omitOnCreate: ['discoveryVersionId'],
|
|
68
|
+
columns: ['kind', 'title', 'priority', 'origin', 'needsReview'],
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { softwareScopeItemFactory };
|
|
73
|
+
//# sourceMappingURL=acorex-platform-module-software-management-client-contracts-scope-item.entity-D25tkUvi.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-software-management-client-contracts-scope-item.entity-D25tkUvi.mjs","sources":["../../../../libs/modules/software-management/contracts/src/entities/scope-item/scope-item.entity.ts"],"sourcesContent":["import { createSoftwareLinkedEntity, softwareSelectProperty, softwareTextProperty } from '../software-entity.util';\nimport { RootConfig } from '../../root-config';\nimport { SOFTWARE_MOSCOW_PRIORITIES, SOFTWARE_SCOPE_KINDS } from '../../software-provenance.constants';\n\nexport async function softwareScopeItemFactory() {\n const i18n = `${RootConfig.config.i18n}:entities.scope-item`;\n return createSoftwareLinkedEntity({\n entityKey: 'scopeItem',\n i18nKey: 'scope-item',\n searchTags: ['scope', 'capability', 'metric', 'محدوده'],\n extraProperties: [\n softwareSelectProperty({\n name: 'kind',\n title: `@${i18n}.fields.kind.title`,\n description: `@${i18n}.fields.kind.description`,\n groupId: 'identity',\n required: true,\n dataSource: SOFTWARE_SCOPE_KINDS.map((value) => ({\n value,\n text: `@${RootConfig.config.i18n}:terms.scope-kind.${value}`,\n })),\n }),\n softwareTextProperty({ name: 'title', title: `@${i18n}.fields.title.title`, groupId: 'identity', required: true }),\n softwareTextProperty({ name: 'body', title: `@${i18n}.fields.body.title`, groupId: 'identity', large: true }),\n softwareSelectProperty({\n name: 'priority',\n title: `@${i18n}.fields.priority.title`,\n description: `@${i18n}.fields.priority.description`,\n groupId: 'identity',\n dataSource: SOFTWARE_MOSCOW_PRIORITIES.map((value) => ({\n value,\n text: `@${RootConfig.config.i18n}:terms.moscow-priority.${value}`,\n })),\n }),\n softwareTextProperty({\n name: 'rationale',\n title: `@${i18n}.fields.rationale.title`,\n description: `@${i18n}.fields.rationale.description`,\n groupId: 'identity',\n large: true,\n }),\n softwareTextProperty({\n name: 'metricBaseline',\n title: `@${i18n}.fields.metric-baseline.title`,\n description: `@${i18n}.fields.metric-baseline.description`,\n groupId: 'identity',\n }),\n softwareTextProperty({\n name: 'metricTarget',\n title: `@${i18n}.fields.metric-target.title`,\n description: `@${i18n}.fields.metric-target.description`,\n groupId: 'identity',\n }),\n softwareTextProperty({\n name: 'metricMethod',\n title: `@${i18n}.fields.metric-method.title`,\n description: `@${i18n}.fields.metric-method.description`,\n groupId: 'identity',\n }),\n softwareTextProperty({\n name: 'discoveryVersionId', reference: true,\n title: `@${i18n}.fields.discovery-version.title`,\n description: `@${i18n}.fields.discovery-version.description`,\n groupId: 'identity',\n readonly: true,\n }),\n ],\n omitOnCreate: ['discoveryVersionId'],\n columns: ['kind', 'title', 'priority', 'origin', 'needsReview'],\n });\n}\n"],"names":[],"mappings":";;;AAIO,eAAe,wBAAwB,GAAA;IAC5C,MAAM,IAAI,GAAG,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,oBAAA,CAAsB;AAC5D,IAAA,OAAO,0BAA0B,CAAC;AAChC,QAAA,SAAS,EAAE,WAAW;AACtB,QAAA,OAAO,EAAE,YAAY;QACrB,UAAU,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,CAAC;AACvD,QAAA,eAAe,EAAE;AACf,YAAA,sBAAsB,CAAC;AACrB,gBAAA,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,kBAAA,CAAoB;gBACnC,WAAW,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,wBAAA,CAA0B;AAC/C,gBAAA,OAAO,EAAE,UAAU;AACnB,gBAAA,QAAQ,EAAE,IAAI;gBACd,UAAU,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC,KAAK,MAAM;oBAC/C,KAAK;oBACL,IAAI,EAAE,IAAI,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,kBAAA,EAAqB,KAAK,CAAA,CAAE;AAC7D,iBAAA,CAAC,CAAC;aACJ,CAAC;YACF,oBAAoB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,qBAAqB,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YAClH,oBAAoB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,oBAAoB,EAAE,OAAO,EA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I,EAAE,cAAc;gBACpB,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,2BAAA,CAA6B;gBAC5C,WAAW,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,iCAAA,CAAmC;AACxD,gBAAA,OAAO,EAAE,UAAU;aACpB,CAAC;AACF,YAAA,oBAAoB,CAAC;AACnB,gBAAA,IAAI,EAAE,oBAAoB,EAAE,SAAS,EAAE,IAAI;gBAC3C,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,+BAAA,CAAiC;gBAChD,WAAW,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,qCAAA,CAAuC;AAC5D,gBAAA,OAAO,EAAE,UAAU;AACnB,gBAAA,QAAQ,EAAE,IAAI;aACf,CAAC;AACH,SAAA;QACD,YAAY,EAAE,CAAC,oBAAoB,CAAC;QACpC,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,CAAC;AAChE,KAAA,CAAC;AACJ;;"}
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { AXPWidgetsList, AXPSystemActionType } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { AXPEntityCommandScope, entityMasterCreateAction, entityMasterBulkDeleteAction, entityMasterDeleteAction, entityMasterViewAction, entityMasterEditAction, entityDetailsCrudActions, createAllQueryView, entityDetailsSimpleCondition } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { RootConfig, SOFTWARE_ORIGINS, SOFTWARE_PROPOSED_BY, AXPSoftwareManagementCommandKeys } from './acorex-platform-module-software-management-client-contracts.mjs';
|
|
4
|
+
|
|
5
|
+
const listSortAndFilter = {
|
|
6
|
+
sort: { enabled: true },
|
|
7
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
8
|
+
};
|
|
9
|
+
function softwareI18n(entityKey) {
|
|
10
|
+
return `${RootConfig.config.i18n}:entities.${entityKey}`;
|
|
11
|
+
}
|
|
12
|
+
function softwareLookupProperty(options) {
|
|
13
|
+
return {
|
|
14
|
+
name: options.name,
|
|
15
|
+
title: options.title,
|
|
16
|
+
description: options.description,
|
|
17
|
+
groupId: options.groupId,
|
|
18
|
+
schema: {
|
|
19
|
+
dataType: 'string',
|
|
20
|
+
visible: options.visible,
|
|
21
|
+
interface: {
|
|
22
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
23
|
+
options: {
|
|
24
|
+
entity: options.entity,
|
|
25
|
+
textField: options.textField,
|
|
26
|
+
valueField: 'id',
|
|
27
|
+
look: 'select',
|
|
28
|
+
columns: [options.textField],
|
|
29
|
+
...(options.exposeTarget
|
|
30
|
+
? { expose: [{ source: options.textField, target: options.exposeTarget }] }
|
|
31
|
+
: {}),
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
validations: options.required ? [{ rule: 'required' }] : [],
|
|
36
|
+
options: listSortAndFilter,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function softwareTextProperty(options) {
|
|
40
|
+
return {
|
|
41
|
+
name: options.name,
|
|
42
|
+
title: options.title,
|
|
43
|
+
description: options.description,
|
|
44
|
+
groupId: options.groupId,
|
|
45
|
+
schema: {
|
|
46
|
+
dataType: options.reference ? 'reference' : 'string',
|
|
47
|
+
readonly: options.readonly,
|
|
48
|
+
interface: {
|
|
49
|
+
type: options.large ? AXPWidgetsList.Editors.LargeTextBox : AXPWidgetsList.Editors.TextBox,
|
|
50
|
+
...(options.readonly ? { options: { readonly: true, disabled: true } } : {}),
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
validations: options.required ? [{ rule: 'required' }] : [],
|
|
54
|
+
options: listSortAndFilter,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function softwareDateProperty(options) {
|
|
58
|
+
return {
|
|
59
|
+
name: options.name,
|
|
60
|
+
title: options.title,
|
|
61
|
+
description: options.description,
|
|
62
|
+
groupId: options.groupId,
|
|
63
|
+
schema: {
|
|
64
|
+
dataType: 'date',
|
|
65
|
+
readonly: options.readonly,
|
|
66
|
+
interface: { type: AXPWidgetsList.Editors.DateTimeBox, options: { format: 'date' } },
|
|
67
|
+
},
|
|
68
|
+
options: listSortAndFilter,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function softwareSelectProperty(options) {
|
|
72
|
+
return {
|
|
73
|
+
name: options.name,
|
|
74
|
+
title: options.title,
|
|
75
|
+
description: options.description,
|
|
76
|
+
groupId: options.groupId,
|
|
77
|
+
schema: {
|
|
78
|
+
dataType: 'string',
|
|
79
|
+
readonly: options.readonly,
|
|
80
|
+
defaultValue: options.defaultValue,
|
|
81
|
+
interface: {
|
|
82
|
+
type: AXPWidgetsList.Editors.SelectBox,
|
|
83
|
+
options: {
|
|
84
|
+
valueField: 'value',
|
|
85
|
+
textField: 'text',
|
|
86
|
+
dataSource: options.dataSource,
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
validations: options.required ? [{ rule: 'required' }] : [],
|
|
91
|
+
options: listSortAndFilter,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
function softwareProvenanceProperties(i18n) {
|
|
95
|
+
return [
|
|
96
|
+
softwareSelectProperty({
|
|
97
|
+
name: 'origin',
|
|
98
|
+
title: `@${i18n}.fields.origin.title`,
|
|
99
|
+
groupId: 'provenance',
|
|
100
|
+
required: true,
|
|
101
|
+
defaultValue: 'original',
|
|
102
|
+
dataSource: SOFTWARE_ORIGINS.map((value) => ({
|
|
103
|
+
value,
|
|
104
|
+
text: `@${RootConfig.config.i18n}:terms.origin.${value}`,
|
|
105
|
+
})),
|
|
106
|
+
}),
|
|
107
|
+
softwareSelectProperty({
|
|
108
|
+
name: 'proposedBy',
|
|
109
|
+
title: `@${i18n}.fields.proposed-by.title`,
|
|
110
|
+
groupId: 'provenance',
|
|
111
|
+
required: true,
|
|
112
|
+
defaultValue: 'user',
|
|
113
|
+
dataSource: SOFTWARE_PROPOSED_BY.map((value) => ({
|
|
114
|
+
value,
|
|
115
|
+
text: `@${RootConfig.config.i18n}:terms.proposed-by.${value}`,
|
|
116
|
+
})),
|
|
117
|
+
}),
|
|
118
|
+
{
|
|
119
|
+
name: 'acceptedAt',
|
|
120
|
+
title: `@${i18n}.fields.accepted-at.title`,
|
|
121
|
+
groupId: 'provenance',
|
|
122
|
+
schema: {
|
|
123
|
+
dataType: 'date',
|
|
124
|
+
readonly: true,
|
|
125
|
+
interface: { type: AXPWidgetsList.Editors.DateTimeBox, options: { format: 'datetime' } },
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'needsReview',
|
|
130
|
+
title: `@${i18n}.fields.needs-review.title`,
|
|
131
|
+
groupId: 'provenance',
|
|
132
|
+
schema: {
|
|
133
|
+
dataType: 'boolean',
|
|
134
|
+
defaultValue: false,
|
|
135
|
+
interface: { type: AXPWidgetsList.Editors.ToggleSwitch },
|
|
136
|
+
},
|
|
137
|
+
options: listSortAndFilter,
|
|
138
|
+
},
|
|
139
|
+
softwareTextProperty({
|
|
140
|
+
name: 'reviewReason',
|
|
141
|
+
title: `@${i18n}.fields.review-reason.title`,
|
|
142
|
+
groupId: 'provenance',
|
|
143
|
+
large: true,
|
|
144
|
+
}),
|
|
145
|
+
softwareTextProperty({
|
|
146
|
+
name: 'sourceNote',
|
|
147
|
+
title: `@${i18n}.fields.source-note.title`,
|
|
148
|
+
groupId: 'provenance',
|
|
149
|
+
large: true,
|
|
150
|
+
}),
|
|
151
|
+
];
|
|
152
|
+
}
|
|
153
|
+
function softwareAcceptSuggestionAction() {
|
|
154
|
+
return {
|
|
155
|
+
name: 'accept-suggestion',
|
|
156
|
+
title: `@${RootConfig.config.i18n}:actions.accept-suggestion.title`,
|
|
157
|
+
command: { name: AXPSoftwareManagementCommandKeys.Software.AcceptSuggestion },
|
|
158
|
+
priority: 'primary',
|
|
159
|
+
type: AXPSystemActionType.Approve,
|
|
160
|
+
scope: AXPEntityCommandScope.Individual,
|
|
161
|
+
hidden: '{{ context.eval("origin") !== "suggestion" }}',
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
function namedSoftwareMasterListActions() {
|
|
165
|
+
return [
|
|
166
|
+
{ ...entityMasterCreateAction(), name: 'create' },
|
|
167
|
+
{ ...entityMasterBulkDeleteAction(), name: 'delete-selected' },
|
|
168
|
+
{ ...entityMasterDeleteAction(), name: 'delete' },
|
|
169
|
+
{ ...entityMasterViewAction(), name: 'view' },
|
|
170
|
+
{ ...entityMasterEditAction(), name: 'edit' },
|
|
171
|
+
];
|
|
172
|
+
}
|
|
173
|
+
function namedSoftwareRelatedCrudActions(foreignKey) {
|
|
174
|
+
return entityDetailsCrudActions(foreignKey).map((action) => {
|
|
175
|
+
if (action.type === AXPSystemActionType.Delete) {
|
|
176
|
+
return { ...action, name: 'delete' };
|
|
177
|
+
}
|
|
178
|
+
if (action.type === AXPSystemActionType.Create) {
|
|
179
|
+
return { ...action, name: 'create' };
|
|
180
|
+
}
|
|
181
|
+
if (action.type === AXPSystemActionType.Update) {
|
|
182
|
+
return { ...action, name: 'edit' };
|
|
183
|
+
}
|
|
184
|
+
if (action.type === AXPSystemActionType.View) {
|
|
185
|
+
return { ...action, name: 'view' };
|
|
186
|
+
}
|
|
187
|
+
return action;
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
async function createSoftwareLinkedEntity(options) {
|
|
191
|
+
const meta = RootConfig.entities[options.entityKey];
|
|
192
|
+
const i18n = softwareI18n(options.i18nKey);
|
|
193
|
+
const groups = [
|
|
194
|
+
{ id: 'identity', title: `@${i18n}.groups.identity` },
|
|
195
|
+
...(options.extraGroups ?? []),
|
|
196
|
+
{ id: 'provenance', title: `@${i18n}.groups.provenance` },
|
|
197
|
+
];
|
|
198
|
+
const properties = [
|
|
199
|
+
softwareLookupProperty({
|
|
200
|
+
name: 'softwareId',
|
|
201
|
+
title: `@${i18n}.fields.software.title`,
|
|
202
|
+
groupId: 'identity',
|
|
203
|
+
entity: RootConfig.entities.software.source,
|
|
204
|
+
textField: 'title',
|
|
205
|
+
required: options.softwareRequired !== false,
|
|
206
|
+
}),
|
|
207
|
+
...options.extraProperties,
|
|
208
|
+
...softwareProvenanceProperties(i18n),
|
|
209
|
+
];
|
|
210
|
+
const propertyNames = properties.map((property) => property.name);
|
|
211
|
+
const createPropertyNames = propertyNames.filter((name) => !options.omitOnCreate?.includes(name));
|
|
212
|
+
return {
|
|
213
|
+
module: RootConfig.module.name,
|
|
214
|
+
name: meta.name,
|
|
215
|
+
title: meta.title,
|
|
216
|
+
icon: meta.icon,
|
|
217
|
+
searchTags: options.searchTags,
|
|
218
|
+
plugins: [{ name: 'history' }],
|
|
219
|
+
formats: {
|
|
220
|
+
individual: meta.title,
|
|
221
|
+
plural: meta.titlePlural,
|
|
222
|
+
searchResult: {
|
|
223
|
+
title: '{{ title || statement || code }}',
|
|
224
|
+
description: RootConfig.module.title,
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
groups,
|
|
228
|
+
properties,
|
|
229
|
+
columns: options.columns.map((name) => ({ name, options: { width: '180px' } })),
|
|
230
|
+
relatedEntities: options.relatedEntities ?? [],
|
|
231
|
+
interfaces: {
|
|
232
|
+
master: {
|
|
233
|
+
create: {
|
|
234
|
+
sections: groups.map((group) => ({ id: group.id })),
|
|
235
|
+
properties: createPropertyNames.map((name, index) => ({
|
|
236
|
+
name,
|
|
237
|
+
layout: { positions: { lg: { colSpan: 12, order: index + 1 } } },
|
|
238
|
+
})),
|
|
239
|
+
},
|
|
240
|
+
update: {
|
|
241
|
+
sections: groups.map((group) => ({ id: group.id })),
|
|
242
|
+
properties: propertyNames.map((name, index) => ({
|
|
243
|
+
name,
|
|
244
|
+
layout: { positions: { lg: { colSpan: 12, order: index + 1 } } },
|
|
245
|
+
})),
|
|
246
|
+
},
|
|
247
|
+
single: {
|
|
248
|
+
title: '{{ title || statement || code }}',
|
|
249
|
+
sections: groups.map((group) => ({
|
|
250
|
+
id: group.id,
|
|
251
|
+
layout: { positions: { lg: { colSpan: 12 } } },
|
|
252
|
+
})),
|
|
253
|
+
properties: propertyNames.map((name, index) => ({
|
|
254
|
+
name,
|
|
255
|
+
layout: { positions: { lg: { colSpan: 12, order: index + 1 } } },
|
|
256
|
+
})),
|
|
257
|
+
actions: [softwareAcceptSuggestionAction()],
|
|
258
|
+
},
|
|
259
|
+
list: {
|
|
260
|
+
actions: [...namedSoftwareMasterListActions(), softwareAcceptSuggestionAction()],
|
|
261
|
+
views: [createAllQueryView()],
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
function softwareChildRelated(entityKey, columns, foreignKey = 'softwareId', extraActions = []) {
|
|
268
|
+
const meta = RootConfig.entities[entityKey];
|
|
269
|
+
return {
|
|
270
|
+
entity: meta.source,
|
|
271
|
+
title: meta.titlePlural,
|
|
272
|
+
icon: meta.icon,
|
|
273
|
+
columns,
|
|
274
|
+
conditions: [entityDetailsSimpleCondition(foreignKey)],
|
|
275
|
+
actions: [...namedSoftwareRelatedCrudActions(foreignKey), ...extraActions],
|
|
276
|
+
layout: { type: 'page-list' },
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export { softwareTextProperty as a, softwareSelectProperty as b, softwareLookupProperty as c, softwareProvenanceProperties as d, softwareChildRelated as e, softwareAcceptSuggestionAction as f, createSoftwareLinkedEntity as g, softwareDateProperty as h, listSortAndFilter as l, softwareI18n as s };
|
|
281
|
+
//# sourceMappingURL=acorex-platform-module-software-management-client-contracts-software-entity.util-sRHl21Jh.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-software-management-client-contracts-software-entity.util-sRHl21Jh.mjs","sources":["../../../../libs/modules/software-management/contracts/src/entities/software-entity.util.ts"],"sourcesContent":["import { AXPWidgetsList, AXPSystemActionType } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n AXPEntityAction,\n AXPEntityCommandScope,\n createAllQueryView,\n entityDetailsCrudActions,\n entityDetailsSimpleCondition,\n entityMasterBulkDeleteAction,\n entityMasterCreateAction,\n entityMasterDeleteAction,\n entityMasterEditAction,\n entityMasterViewAction,\n} from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from '../root-config';\nimport { AXPSoftwareManagementCommandKeys } from '../runtime.keys';\nimport {\n SOFTWARE_ORIGINS,\n SOFTWARE_PROPOSED_BY,\n} from '../software-provenance.constants';\n\nconst listSortAndFilter = {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n};\n\nexport function softwareI18n(entityKey: string): string {\n return `${RootConfig.config.i18n}:entities.${entityKey}`;\n}\n\nexport function softwareLookupProperty(options: {\n name: string;\n title: string;\n groupId: string;\n entity: string;\n textField: string;\n required?: boolean;\n exposeTarget?: string;\n description?: string;\n visible?: boolean | string;\n}): AXPEntity['properties'][number] {\n return {\n name: options.name,\n title: options.title,\n description: options.description,\n groupId: options.groupId,\n schema: {\n dataType: 'string',\n visible: options.visible,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: options.entity,\n textField: options.textField,\n valueField: 'id',\n look: 'select',\n columns: [options.textField],\n ...(options.exposeTarget\n ? { expose: [{ source: options.textField, target: options.exposeTarget }] }\n : {}),\n },\n },\n },\n validations: options.required ? [{ rule: 'required' }] : [],\n options: listSortAndFilter,\n };\n}\n\nexport function softwareTextProperty(options: {\n name: string;\n reference?: boolean;\n title: string;\n groupId: string;\n required?: boolean;\n large?: boolean;\n readonly?: boolean;\n description?: string;\n}): AXPEntity['properties'][number] {\n return {\n name: options.name,\n title: options.title,\n description: options.description,\n groupId: options.groupId,\n schema: {\n dataType: options.reference ? 'reference' : 'string',\n readonly: options.readonly,\n interface: {\n type: options.large ? AXPWidgetsList.Editors.LargeTextBox : AXPWidgetsList.Editors.TextBox,\n ...(options.readonly ? { options: { readonly: true, disabled: true } } : {}),\n },\n },\n validations: options.required ? [{ rule: 'required' }] : [],\n options: listSortAndFilter,\n };\n}\n\nexport function softwareDateProperty(options: {\n name: string;\n title: string;\n groupId: string;\n description?: string;\n readonly?: boolean;\n}): AXPEntity['properties'][number] {\n return {\n name: options.name,\n title: options.title,\n description: options.description,\n groupId: options.groupId,\n schema: {\n dataType: 'date',\n readonly: options.readonly,\n interface: { type: AXPWidgetsList.Editors.DateTimeBox, options: { format: 'date' } },\n },\n options: listSortAndFilter,\n };\n}\n\nexport function softwareSelectProperty(options: {\n name: string;\n title: string;\n groupId: string;\n required?: boolean;\n dataSource: Array<{ value: string; text: string }>;\n defaultValue?: string;\n readonly?: boolean;\n description?: string;\n}): AXPEntity['properties'][number] {\n return {\n name: options.name,\n title: options.title,\n description: options.description,\n groupId: options.groupId,\n schema: {\n dataType: 'string',\n readonly: options.readonly,\n defaultValue: options.defaultValue,\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: options.dataSource,\n },\n },\n },\n validations: options.required ? [{ rule: 'required' }] : [],\n options: listSortAndFilter,\n };\n}\n\nexport function softwareProvenanceProperties(i18n: string): AXPEntity['properties'] {\n return [\n softwareSelectProperty({\n name: 'origin',\n title: `@${i18n}.fields.origin.title`,\n groupId: 'provenance',\n required: true,\n defaultValue: 'original',\n dataSource: SOFTWARE_ORIGINS.map((value) => ({\n value,\n text: `@${RootConfig.config.i18n}:terms.origin.${value}`,\n })),\n }),\n softwareSelectProperty({\n name: 'proposedBy',\n title: `@${i18n}.fields.proposed-by.title`,\n groupId: 'provenance',\n required: true,\n defaultValue: 'user',\n dataSource: SOFTWARE_PROPOSED_BY.map((value) => ({\n value,\n text: `@${RootConfig.config.i18n}:terms.proposed-by.${value}`,\n })),\n }),\n {\n name: 'acceptedAt',\n title: `@${i18n}.fields.accepted-at.title`,\n groupId: 'provenance',\n schema: {\n dataType: 'date',\n readonly: true,\n interface: { type: AXPWidgetsList.Editors.DateTimeBox, options: { format: 'datetime' } },\n },\n },\n {\n name: 'needsReview',\n title: `@${i18n}.fields.needs-review.title`,\n groupId: 'provenance',\n schema: {\n dataType: 'boolean',\n defaultValue: false,\n interface: { type: AXPWidgetsList.Editors.ToggleSwitch },\n },\n options: listSortAndFilter,\n },\n softwareTextProperty({\n name: 'reviewReason',\n title: `@${i18n}.fields.review-reason.title`,\n groupId: 'provenance',\n large: true,\n }),\n softwareTextProperty({\n name: 'sourceNote',\n title: `@${i18n}.fields.source-note.title`,\n groupId: 'provenance',\n large: true,\n }),\n ];\n}\n\nexport function softwareAcceptSuggestionAction(): AXPEntityAction {\n return {\n name: 'accept-suggestion',\n title: `@${RootConfig.config.i18n}:actions.accept-suggestion.title`,\n command: { name: AXPSoftwareManagementCommandKeys.Software.AcceptSuggestion },\n priority: 'primary',\n type: AXPSystemActionType.Approve,\n scope: AXPEntityCommandScope.Individual,\n hidden: '{{ context.eval(\"origin\") !== \"suggestion\" }}',\n };\n}\n\nfunction namedSoftwareMasterListActions(): AXPEntityAction[] {\n return [\n { ...entityMasterCreateAction(), name: 'create' },\n { ...entityMasterBulkDeleteAction(), name: 'delete-selected' },\n { ...entityMasterDeleteAction(), name: 'delete' },\n { ...entityMasterViewAction(), name: 'view' },\n { ...entityMasterEditAction(), name: 'edit' },\n ];\n}\n\nfunction namedSoftwareRelatedCrudActions(foreignKey: string): AXPEntityAction[] {\n return entityDetailsCrudActions(foreignKey).map((action) => {\n if (action.type === AXPSystemActionType.Delete) {\n return { ...action, name: 'delete' };\n }\n if (action.type === AXPSystemActionType.Create) {\n return { ...action, name: 'create' };\n }\n if (action.type === AXPSystemActionType.Update) {\n return { ...action, name: 'edit' };\n }\n if (action.type === AXPSystemActionType.View) {\n return { ...action, name: 'view' };\n }\n return action;\n });\n}\n\nexport async function createSoftwareLinkedEntity(options: {\n entityKey: keyof typeof RootConfig.entities;\n i18nKey: string;\n searchTags: string[];\n extraProperties: AXPEntity['properties'];\n extraGroups?: AXPEntity['groups'];\n columns: string[];\n relatedEntities?: AXPEntity['relatedEntities'];\n softwareRequired?: boolean;\n omitOnCreate?: string[];\n}): Promise<AXPEntity> {\n const meta = RootConfig.entities[options.entityKey];\n const i18n = softwareI18n(options.i18nKey);\n const groups = [\n { id: 'identity', title: `@${i18n}.groups.identity` },\n ...(options.extraGroups ?? []),\n { id: 'provenance', title: `@${i18n}.groups.provenance` },\n ];\n const properties = [\n softwareLookupProperty({\n name: 'softwareId',\n title: `@${i18n}.fields.software.title`,\n groupId: 'identity',\n entity: RootConfig.entities.software.source,\n textField: 'title',\n required: options.softwareRequired !== false,\n }),\n ...options.extraProperties,\n ...softwareProvenanceProperties(i18n),\n ];\n const propertyNames = properties.map((property) => property.name);\n const createPropertyNames = propertyNames.filter((name) => !options.omitOnCreate?.includes(name));\n return {\n module: RootConfig.module.name,\n name: meta.name,\n title: meta.title,\n icon: meta.icon,\n searchTags: options.searchTags,\n plugins: [{ name: 'history' }],\n formats: {\n individual: meta.title,\n plural: meta.titlePlural,\n searchResult: {\n title: '{{ title || statement || code }}',\n description: RootConfig.module.title,\n },\n },\n groups,\n properties,\n columns: options.columns.map((name) => ({ name, options: { width: '180px' } })),\n relatedEntities: options.relatedEntities ?? [],\n interfaces: {\n master: {\n create: {\n sections: groups.map((group) => ({ id: group.id })),\n properties: createPropertyNames.map((name, index) => ({\n name,\n layout: { positions: { lg: { colSpan: 12, order: index + 1 } } },\n })),\n },\n update: {\n sections: groups.map((group) => ({ id: group.id })),\n properties: propertyNames.map((name, index) => ({\n name,\n layout: { positions: { lg: { colSpan: 12, order: index + 1 } } },\n })),\n },\n single: {\n title: '{{ title || statement || code }}',\n sections: groups.map((group) => ({\n id: group.id,\n layout: { positions: { lg: { colSpan: 12 } } },\n })),\n properties: propertyNames.map((name, index) => ({\n name,\n layout: { positions: { lg: { colSpan: 12, order: index + 1 } } },\n })),\n actions: [softwareAcceptSuggestionAction()],\n },\n list: {\n actions: [...namedSoftwareMasterListActions(), softwareAcceptSuggestionAction()],\n views: [createAllQueryView()],\n },\n },\n },\n };\n}\n\nexport function softwareChildRelated(\n entityKey: keyof typeof RootConfig.entities,\n columns: string[],\n foreignKey = 'softwareId',\n extraActions: AXPEntityAction[] = [],\n) {\n const meta = RootConfig.entities[entityKey];\n return {\n entity: meta.source,\n title: meta.titlePlural,\n icon: meta.icon,\n columns,\n conditions: [entityDetailsSimpleCondition(foreignKey)],\n actions: [...namedSoftwareRelatedCrudActions(foreignKey), ...extraActions],\n layout: { type: 'page-list' as const },\n };\n}\n\nexport { listSortAndFilter };\n"],"names":[],"mappings":";;;;AAsBA,MAAM,iBAAiB,GAAG;AACxB,IAAA,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;AACvB,IAAA,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;;AAG7D,SAAU,YAAY,CAAC,SAAiB,EAAA;IAC5C,OAAO,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,UAAA,EAAa,SAAS,CAAA,CAAE;AAC1D;AAEM,SAAU,sBAAsB,CAAC,OAUtC,EAAA;IACC,OAAO;QACL,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,OAAO,EAAE,OAAO,CAAC,OAAO;AACxB,QAAA,MAAM,EAAE;AACN,YAAA,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,OAAO,CAAC,OAAO;AACxB,YAAA,SAAS,EAAE;AACT,gBAAA,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,SAAS;AACtC,gBAAA,OAAO,EAAE;oBACP,MAAM,EAAE,OAAO,CAAC,MAAM;oBACtB,SAAS,EAAE,OAAO,CAAC,SAAS;AAC5B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,QAAQ;AACd,oBAAA,OAAO,EAAE,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