@acorex-platform/module-person-core-server 0.0.15
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/contracts/src/contact-assignment.actions.d.ts +10 -0
- package/contracts/src/contact-assignment.actions.js +80 -0
- package/contracts/src/contact-assignment.actions.js.map +1 -0
- package/contracts/src/contact-assignment.utils.d.ts +14 -0
- package/contracts/src/contact-assignment.utils.js +47 -0
- package/contracts/src/contact-assignment.utils.js.map +1 -0
- package/contracts/src/entities/contact-assignment/contact-assignment.entity.d.ts +2 -0
- package/contracts/src/entities/contact-assignment/contact-assignment.entity.js +155 -0
- package/contracts/src/entities/contact-assignment/contact-assignment.entity.js.map +1 -0
- package/contracts/src/entities/contact-assignment/contact-assignment.types.d.ts +21 -0
- package/contracts/src/entities/contact-assignment/contact-assignment.types.js +4 -0
- package/contracts/src/entities/contact-assignment/contact-assignment.types.js.map +1 -0
- package/contracts/src/entities/contact-assignment/index.d.ts +2 -0
- package/contracts/src/entities/contact-assignment/index.js +6 -0
- package/contracts/src/entities/contact-assignment/index.js.map +1 -0
- package/contracts/src/entities/contact-role/contact-role.entity.d.ts +2 -0
- package/contracts/src/entities/contact-role/contact-role.entity.js +150 -0
- package/contracts/src/entities/contact-role/contact-role.entity.js.map +1 -0
- package/contracts/src/entities/contact-role/contact-role.types.d.ts +7 -0
- package/contracts/src/entities/contact-role/contact-role.types.js +4 -0
- package/contracts/src/entities/contact-role/contact-role.types.js.map +1 -0
- package/contracts/src/entities/contact-role/index.d.ts +2 -0
- package/contracts/src/entities/contact-role/index.js +6 -0
- package/contracts/src/entities/contact-role/index.js.map +1 -0
- package/contracts/src/entities/education-level/education-level.entity.d.ts +2 -0
- package/contracts/src/entities/education-level/education-level.entity.js +123 -0
- package/contracts/src/entities/education-level/education-level.entity.js.map +1 -0
- package/contracts/src/entities/education-level/education-level.types.d.ts +6 -0
- package/contracts/src/entities/education-level/education-level.types.js +4 -0
- package/contracts/src/entities/education-level/education-level.types.js.map +1 -0
- package/contracts/src/entities/education-level/index.d.ts +2 -0
- package/contracts/src/entities/education-level/index.js +6 -0
- package/contracts/src/entities/education-level/index.js.map +1 -0
- package/contracts/src/entities/gender/gender.entity.d.ts +2 -0
- package/contracts/src/entities/gender/gender.entity.js +123 -0
- package/contracts/src/entities/gender/gender.entity.js.map +1 -0
- package/contracts/src/entities/gender/gender.types.d.ts +6 -0
- package/contracts/src/entities/gender/gender.types.js +4 -0
- package/contracts/src/entities/gender/gender.types.js.map +1 -0
- package/contracts/src/entities/gender/index.d.ts +2 -0
- package/contracts/src/entities/gender/index.js +6 -0
- package/contracts/src/entities/gender/index.js.map +1 -0
- package/contracts/src/entities/index.d.ts +10 -0
- package/contracts/src/entities/index.js +14 -0
- package/contracts/src/entities/index.js.map +1 -0
- package/contracts/src/entities/marital-status/index.d.ts +2 -0
- package/contracts/src/entities/marital-status/index.js +6 -0
- package/contracts/src/entities/marital-status/index.js.map +1 -0
- package/contracts/src/entities/marital-status/marital-status.entity.d.ts +2 -0
- package/contracts/src/entities/marital-status/marital-status.entity.js +123 -0
- package/contracts/src/entities/marital-status/marital-status.entity.js.map +1 -0
- package/contracts/src/entities/marital-status/marital-status.types.d.ts +6 -0
- package/contracts/src/entities/marital-status/marital-status.types.js +4 -0
- package/contracts/src/entities/marital-status/marital-status.types.js.map +1 -0
- package/contracts/src/entities/person/index.d.ts +2 -0
- package/contracts/src/entities/person/index.js +6 -0
- package/contracts/src/entities/person/index.js.map +1 -0
- package/contracts/src/entities/person/person.entity.d.ts +2 -0
- package/contracts/src/entities/person/person.entity.js +456 -0
- package/contracts/src/entities/person/person.entity.js.map +1 -0
- package/contracts/src/entities/person/person.types.d.ts +40 -0
- package/contracts/src/entities/person/person.types.js +3 -0
- package/contracts/src/entities/person/person.types.js.map +1 -0
- package/contracts/src/entities/person-identifier-type/index.d.ts +2 -0
- package/contracts/src/entities/person-identifier-type/index.js +6 -0
- package/contracts/src/entities/person-identifier-type/index.js.map +1 -0
- package/contracts/src/entities/person-identifier-type/person-identifier-type.entity.d.ts +2 -0
- package/contracts/src/entities/person-identifier-type/person-identifier-type.entity.js +193 -0
- package/contracts/src/entities/person-identifier-type/person-identifier-type.entity.js.map +1 -0
- package/contracts/src/entities/person-identifier-type/person-identifier-type.types.d.ts +11 -0
- package/contracts/src/entities/person-identifier-type/person-identifier-type.types.js +4 -0
- package/contracts/src/entities/person-identifier-type/person-identifier-type.types.js.map +1 -0
- package/contracts/src/entities/person-relationship/index.d.ts +2 -0
- package/contracts/src/entities/person-relationship/index.js +6 -0
- package/contracts/src/entities/person-relationship/index.js.map +1 -0
- package/contracts/src/entities/person-relationship/person-relationship.entity.d.ts +2 -0
- package/contracts/src/entities/person-relationship/person-relationship.entity.js +155 -0
- package/contracts/src/entities/person-relationship/person-relationship.entity.js.map +1 -0
- package/contracts/src/entities/person-relationship/person-relationship.types.d.ts +10 -0
- package/contracts/src/entities/person-relationship/person-relationship.types.js +3 -0
- package/contracts/src/entities/person-relationship/person-relationship.types.js.map +1 -0
- package/contracts/src/entities/person-title/index.d.ts +2 -0
- package/contracts/src/entities/person-title/index.js +6 -0
- package/contracts/src/entities/person-title/index.js.map +1 -0
- package/contracts/src/entities/person-title/person-title.entity.d.ts +2 -0
- package/contracts/src/entities/person-title/person-title.entity.js +123 -0
- package/contracts/src/entities/person-title/person-title.entity.js.map +1 -0
- package/contracts/src/entities/person-title/person-title.types.d.ts +6 -0
- package/contracts/src/entities/person-title/person-title.types.js +4 -0
- package/contracts/src/entities/person-title/person-title.types.js.map +1 -0
- package/contracts/src/entities/religion/index.d.ts +2 -0
- package/contracts/src/entities/religion/index.js +6 -0
- package/contracts/src/entities/religion/index.js.map +1 -0
- package/contracts/src/entities/religion/religion.entity.d.ts +2 -0
- package/contracts/src/entities/religion/religion.entity.js +123 -0
- package/contracts/src/entities/religion/religion.entity.js.map +1 -0
- package/contracts/src/entities/religion/religion.types.d.ts +6 -0
- package/contracts/src/entities/religion/religion.types.js +4 -0
- package/contracts/src/entities/religion/religion.types.js.map +1 -0
- package/contracts/src/index.d.ts +7 -0
- package/contracts/src/index.js +13 -0
- package/contracts/src/index.js.map +1 -0
- package/contracts/src/menu.keys.d.ts +12 -0
- package/contracts/src/menu.keys.js +16 -0
- package/contracts/src/menu.keys.js.map +1 -0
- package/contracts/src/permission.keys.d.ts +31 -0
- package/contracts/src/permission.keys.js +35 -0
- package/contracts/src/permission.keys.js.map +1 -0
- package/contracts/src/person-relationship.actions.d.ts +10 -0
- package/contracts/src/person-relationship.actions.js +88 -0
- package/contracts/src/person-relationship.actions.js.map +1 -0
- package/contracts/src/root-config.d.ts +73 -0
- package/contracts/src/root-config.js +78 -0
- package/contracts/src/root-config.js.map +1 -0
- package/package.json +26 -0
- package/src/index.d.ts +5 -0
- package/src/index.js +13 -0
- package/src/index.js.map +1 -0
- package/src/lib/person-core-server.module.d.ts +2 -0
- package/src/lib/person-core-server.module.js +27 -0
- package/src/lib/person-core-server.module.js.map +1 -0
- package/src/lib/seed/contact-assignment/contact-assignment.mock.d.ts +8 -0
- package/src/lib/seed/contact-assignment/contact-assignment.mock.js +51 -0
- package/src/lib/seed/contact-assignment/contact-assignment.mock.js.map +1 -0
- package/src/lib/seed/contact-assignment/contact-assignment.seed.d.ts +5 -0
- package/src/lib/seed/contact-assignment/contact-assignment.seed.js +32 -0
- package/src/lib/seed/contact-assignment/contact-assignment.seed.js.map +1 -0
- package/src/lib/seed/contact-assignment/index.d.ts +2 -0
- package/src/lib/seed/contact-assignment/index.js +6 -0
- package/src/lib/seed/contact-assignment/index.js.map +1 -0
- package/src/lib/seed/contact-role/contact-role.mock.d.ts +40 -0
- package/src/lib/seed/contact-role/contact-role.mock.js +258 -0
- package/src/lib/seed/contact-role/contact-role.mock.js.map +1 -0
- package/src/lib/seed/contact-role/contact-role.seed.d.ts +5 -0
- package/src/lib/seed/contact-role/contact-role.seed.js +31 -0
- package/src/lib/seed/contact-role/contact-role.seed.js.map +1 -0
- package/src/lib/seed/contact-role/index.d.ts +2 -0
- package/src/lib/seed/contact-role/index.js +6 -0
- package/src/lib/seed/contact-role/index.js.map +1 -0
- package/src/lib/seed/education-level/education-level.mock.d.ts +14 -0
- package/src/lib/seed/education-level/education-level.mock.js +52 -0
- package/src/lib/seed/education-level/education-level.mock.js.map +1 -0
- package/src/lib/seed/education-level/education-level.seed.d.ts +5 -0
- package/src/lib/seed/education-level/education-level.seed.js +31 -0
- package/src/lib/seed/education-level/education-level.seed.js.map +1 -0
- package/src/lib/seed/education-level/index.d.ts +2 -0
- package/src/lib/seed/education-level/index.js +6 -0
- package/src/lib/seed/education-level/index.js.map +1 -0
- package/src/lib/seed/gender/gender.mock.d.ts +28 -0
- package/src/lib/seed/gender/gender.mock.js +40 -0
- package/src/lib/seed/gender/gender.mock.js.map +1 -0
- package/src/lib/seed/gender/gender.seed.d.ts +5 -0
- package/src/lib/seed/gender/gender.seed.js +31 -0
- package/src/lib/seed/gender/gender.seed.js.map +1 -0
- package/src/lib/seed/gender/index.d.ts +2 -0
- package/src/lib/seed/gender/index.js +6 -0
- package/src/lib/seed/gender/index.js.map +1 -0
- package/src/lib/seed/index.d.ts +28 -0
- package/src/lib/seed/index.js +30 -0
- package/src/lib/seed/index.js.map +1 -0
- package/src/lib/seed/marital-status/index.d.ts +2 -0
- package/src/lib/seed/marital-status/index.js +6 -0
- package/src/lib/seed/marital-status/index.js.map +1 -0
- package/src/lib/seed/marital-status/marital-status.mock.d.ts +33 -0
- package/src/lib/seed/marital-status/marital-status.mock.js +46 -0
- package/src/lib/seed/marital-status/marital-status.mock.js.map +1 -0
- package/src/lib/seed/marital-status/marital-status.seed.d.ts +5 -0
- package/src/lib/seed/marital-status/marital-status.seed.js +31 -0
- package/src/lib/seed/marital-status/marital-status.seed.js.map +1 -0
- package/src/lib/seed/person/index.d.ts +3 -0
- package/src/lib/seed/person/index.js +7 -0
- package/src/lib/seed/person/index.js.map +1 -0
- package/src/lib/seed/person/person-natural-ids.constants.d.ts +76 -0
- package/src/lib/seed/person/person-natural-ids.constants.js +82 -0
- package/src/lib/seed/person/person-natural-ids.constants.js.map +1 -0
- package/src/lib/seed/person/person.mock.d.ts +5 -0
- package/src/lib/seed/person/person.mock.js +372 -0
- package/src/lib/seed/person/person.mock.js.map +1 -0
- package/src/lib/seed/person/person.seed.d.ts +5 -0
- package/src/lib/seed/person/person.seed.js +31 -0
- package/src/lib/seed/person/person.seed.js.map +1 -0
- package/src/lib/seed/person-core-seed.provider.d.ts +4 -0
- package/src/lib/seed/person-core-seed.provider.js +18 -0
- package/src/lib/seed/person-core-seed.provider.js.map +1 -0
- package/src/lib/seed/person-core-seed.tokens.d.ts +1 -0
- package/src/lib/seed/person-core-seed.tokens.js +7 -0
- package/src/lib/seed/person-core-seed.tokens.js.map +1 -0
- package/src/lib/seed/person-core.seed-catalog.d.ts +2 -0
- package/src/lib/seed/person-core.seed-catalog.js +31 -0
- package/src/lib/seed/person-core.seed-catalog.js.map +1 -0
- package/src/lib/seed/person-identifier-type/index.d.ts +2 -0
- package/src/lib/seed/person-identifier-type/index.js +6 -0
- package/src/lib/seed/person-identifier-type/index.js.map +1 -0
- package/src/lib/seed/person-identifier-type/person-identifier-type.mock.d.ts +4 -0
- package/src/lib/seed/person-identifier-type/person-identifier-type.mock.js +68 -0
- package/src/lib/seed/person-identifier-type/person-identifier-type.mock.js.map +1 -0
- package/src/lib/seed/person-identifier-type/person-identifier-type.seed.d.ts +5 -0
- package/src/lib/seed/person-identifier-type/person-identifier-type.seed.js +31 -0
- package/src/lib/seed/person-identifier-type/person-identifier-type.seed.js.map +1 -0
- package/src/lib/seed/person-relationship/index.d.ts +2 -0
- package/src/lib/seed/person-relationship/index.js +6 -0
- package/src/lib/seed/person-relationship/index.js.map +1 -0
- package/src/lib/seed/person-relationship/person-relationship.mock.d.ts +30 -0
- package/src/lib/seed/person-relationship/person-relationship.mock.js +156 -0
- package/src/lib/seed/person-relationship/person-relationship.mock.js.map +1 -0
- package/src/lib/seed/person-relationship/person-relationship.seed.d.ts +5 -0
- package/src/lib/seed/person-relationship/person-relationship.seed.js +31 -0
- package/src/lib/seed/person-relationship/person-relationship.seed.js.map +1 -0
- package/src/lib/seed/person-title/index.d.ts +2 -0
- package/src/lib/seed/person-title/index.js +6 -0
- package/src/lib/seed/person-title/index.js.map +1 -0
- package/src/lib/seed/person-title/person-title.mock.d.ts +43 -0
- package/src/lib/seed/person-title/person-title.mock.js +58 -0
- package/src/lib/seed/person-title/person-title.mock.js.map +1 -0
- package/src/lib/seed/person-title/person-title.seed.d.ts +5 -0
- package/src/lib/seed/person-title/person-title.seed.js +31 -0
- package/src/lib/seed/person-title/person-title.seed.js.map +1 -0
- package/src/lib/seed/religion/index.d.ts +2 -0
- package/src/lib/seed/religion/index.js +6 -0
- package/src/lib/seed/religion/index.js.map +1 -0
- package/src/lib/seed/religion/religion.mock.d.ts +5 -0
- package/src/lib/seed/religion/religion.mock.js +48 -0
- package/src/lib/seed/religion/religion.mock.js.map +1 -0
- package/src/lib/seed/religion/religion.seed.d.ts +5 -0
- package/src/lib/seed/religion/religion.seed.js +31 -0
- package/src/lib/seed/religion/religion.seed.js.map +1 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AXPEntityAction, AXPQueryFilter } from '@acorex-platform/framework-shared/entity';
|
|
2
|
+
/**
|
|
3
|
+
* Filters ContactAssignment rows for the current row context (Party record, or Party merge-detail under Customer).
|
|
4
|
+
*/
|
|
5
|
+
export declare function contactAssignmentPartyConditions(partyIdContextPath?: string): AXPQueryFilter[];
|
|
6
|
+
/**
|
|
7
|
+
* Actions for ContactAssignment when shown from Party/Customer/Supplier.
|
|
8
|
+
* Create menu: assign existing person or create new person with party prefilled.
|
|
9
|
+
*/
|
|
10
|
+
export declare function contactAssignmentDetailsCrudActionsForPartyContext(partyIdContextPath?: string): AXPEntityAction[];
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.contactAssignmentPartyConditions = contactAssignmentPartyConditions;
|
|
4
|
+
exports.contactAssignmentDetailsCrudActionsForPartyContext = contactAssignmentDetailsCrudActionsForPartyContext;
|
|
5
|
+
const core_1 = require("@acorex-platform/framework-shared/core");
|
|
6
|
+
const entity_1 = require("@acorex-platform/framework-shared/entity");
|
|
7
|
+
const root_config_1 = require("./root-config");
|
|
8
|
+
//#region ---- Command keys ----
|
|
9
|
+
const ASSIGN_EXISTING_PERSON = `${root_config_1.RootConfig.module.name}.${root_config_1.RootConfig.entities.contactAssignment.name}:AssignExistingPerson`;
|
|
10
|
+
const CREATE_WITH_NEW_PERSON = `${root_config_1.RootConfig.module.name}.${root_config_1.RootConfig.entities.contactAssignment.name}:CreateWithNewPerson`;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region ---- Contact assignment related-entity actions ----
|
|
13
|
+
const partyProcessOptions = (partyIdContextPath = 'id') => ({
|
|
14
|
+
process: {
|
|
15
|
+
redirect: false,
|
|
16
|
+
canCreateNewOne: true,
|
|
17
|
+
data: {
|
|
18
|
+
partyId: `{{ context.eval("${partyIdContextPath}") }}`,
|
|
19
|
+
'party.title': '{{ context.eval("title") }}',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
/**
|
|
24
|
+
* Filters ContactAssignment rows for the current row context (Party record, or Party merge-detail under Customer).
|
|
25
|
+
*/
|
|
26
|
+
function contactAssignmentPartyConditions(partyIdContextPath = 'id') {
|
|
27
|
+
return [
|
|
28
|
+
{
|
|
29
|
+
name: 'partyId',
|
|
30
|
+
operator: { type: 'equal' },
|
|
31
|
+
value: `{{ context.eval("${partyIdContextPath}") }}`,
|
|
32
|
+
},
|
|
33
|
+
];
|
|
34
|
+
}
|
|
35
|
+
function contactAssignmentPartyCreateAction(partyIdContextPath = 'id') {
|
|
36
|
+
const partyOptions = partyProcessOptions(partyIdContextPath);
|
|
37
|
+
return {
|
|
38
|
+
name: 'Create',
|
|
39
|
+
title: '@general:actions.create.title',
|
|
40
|
+
command: { name: 'Entity:Create' },
|
|
41
|
+
icon: 'fa-light fa-plus',
|
|
42
|
+
priority: 'primary',
|
|
43
|
+
type: core_1.AXPSystemActionType.Create,
|
|
44
|
+
scope: entity_1.AXPEntityCommandScope.TypeLevel,
|
|
45
|
+
items: [
|
|
46
|
+
{
|
|
47
|
+
name: 'AssignExistingPerson',
|
|
48
|
+
title: '@person-core:contact-assignments.actions.assign-existing-person.title',
|
|
49
|
+
command: { name: ASSIGN_EXISTING_PERSON, options: partyOptions },
|
|
50
|
+
icon: 'fa-light fa-user-magnifying-glass',
|
|
51
|
+
priority: 'primary',
|
|
52
|
+
type: core_1.AXPSystemActionType.Create,
|
|
53
|
+
scope: entity_1.AXPEntityCommandScope.TypeLevel,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'CreateWithNewPerson',
|
|
57
|
+
title: '@person-core:contact-assignments.actions.create-with-new-person.title',
|
|
58
|
+
command: { name: CREATE_WITH_NEW_PERSON, options: partyOptions },
|
|
59
|
+
icon: 'fa-light fa-user-plus',
|
|
60
|
+
priority: 'primary',
|
|
61
|
+
type: core_1.AXPSystemActionType.Create,
|
|
62
|
+
scope: entity_1.AXPEntityCommandScope.TypeLevel,
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Actions for ContactAssignment when shown from Party/Customer/Supplier.
|
|
69
|
+
* Create menu: assign existing person or create new person with party prefilled.
|
|
70
|
+
*/
|
|
71
|
+
function contactAssignmentDetailsCrudActionsForPartyContext(partyIdContextPath = 'id') {
|
|
72
|
+
return [
|
|
73
|
+
Object.assign(Object.assign({}, (0, entity_1.entityMasterCreateAction)()), { hidden: true }),
|
|
74
|
+
contactAssignmentPartyCreateAction(partyIdContextPath),
|
|
75
|
+
(0, entity_1.entityDetailsEditAction)(),
|
|
76
|
+
(0, entity_1.entityOverrideDetailsViewAction)(),
|
|
77
|
+
];
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
//# sourceMappingURL=contact-assignment.actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-assignment.actions.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/server/contracts/src/contact-assignment.actions.ts"],"names":[],"mappings":";;AAmCA,4EAQC;AAwCD,gHASC;AA5FD,iEAA6E;AAC7E,qEAOkD;AAElD,+CAA2C;AAE3C,gCAAgC;AAEhC,MAAM,sBAAsB,GAAG,GAAG,wBAAU,CAAC,MAAM,CAAC,IAAI,IAAI,wBAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,uBAAuB,CAAC;AAC9H,MAAM,sBAAsB,GAAG,GAAG,wBAAU,CAAC,MAAM,CAAC,IAAI,IAAI,wBAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,sBAAsB,CAAC;AAE7H,YAAY;AAEZ,6DAA6D;AAE7D,MAAM,mBAAmB,GAAG,CAAC,kBAAkB,GAAG,IAAI,EAAE,EAAE,CAAC,CAAC;IAC1D,OAAO,EAAE;QACP,QAAQ,EAAE,KAAK;QACf,eAAe,EAAE,IAAI;QACrB,IAAI,EAAE;YACJ,OAAO,EAAE,oBAAoB,kBAAkB,OAAO;YACtD,aAAa,EAAE,6BAA6B;SAC7C;KACF;CACF,CAAC,CAAC;AAEH;;GAEG;AACH,SAAgB,gCAAgC,CAAC,kBAAkB,GAAG,IAAI;IACxE,OAAO;QACL;YACE,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;YAC3B,KAAK,EAAE,oBAAoB,kBAAkB,OAAO;SACrD;KACF,CAAC;AACJ,CAAC;AAED,SAAS,kCAAkC,CAAC,kBAAkB,GAAG,IAAI;IACnE,MAAM,YAAY,GAAG,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;IAE7D,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,+BAA+B;QACtC,OAAO,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE;QAClC,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,0BAAmB,CAAC,MAAM;QAChC,KAAK,EAAE,8BAAqB,CAAC,SAAS;QACtC,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,EAAE,uEAAuE;gBAC9E,OAAO,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,EAAE,YAAY,EAAE;gBAChE,IAAI,EAAE,mCAAmC;gBACzC,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,0BAAmB,CAAC,MAAM;gBAChC,KAAK,EAAE,8BAAqB,CAAC,SAAS;aACvC;YACD;gBACE,IAAI,EAAE,qBAAqB;gBAC3B,KAAK,EAAE,uEAAuE;gBAC9E,OAAO,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,EAAE,YAAY,EAAE;gBAChE,IAAI,EAAE,uBAAuB;gBAC7B,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,0BAAmB,CAAC,MAAM;gBAChC,KAAK,EAAE,8BAAqB,CAAC,SAAS;aACvC;SACF;KACF,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAgB,kDAAkD,CAChE,kBAAkB,GAAG,IAAI;IAEzB,OAAO;wCACA,IAAA,iCAAwB,GAAE,KAAE,MAAM,EAAE,IAAI;QAC7C,kCAAkC,CAAC,kBAAkB,CAAC;QACtD,IAAA,gCAAuB,GAAE;QACzB,IAAA,wCAA+B,GAAE;KAClC,CAAC;AACJ,CAAC;AAED,YAAY"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Resolves party display title from host/process data (plain string or multi-language object). */
|
|
2
|
+
export declare function resolveContactAssignmentPartyDisplayTitle(locale: string, ...candidates: unknown[]): string;
|
|
3
|
+
/** Builds a person snapshot for nested ContactAssignment display fields. */
|
|
4
|
+
export declare function buildContactAssignmentPersonSnapshot(personRow: Record<string, unknown>, personId: string): {
|
|
5
|
+
id: string;
|
|
6
|
+
fullName?: string;
|
|
7
|
+
phones?: unknown;
|
|
8
|
+
emails?: unknown;
|
|
9
|
+
};
|
|
10
|
+
/** Resolves partyId and display title from command process/host payload. */
|
|
11
|
+
export declare function resolveContactAssignmentPartyContext(processData: Record<string, unknown>, locale: string): {
|
|
12
|
+
partyId: string;
|
|
13
|
+
partyTitle: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ---- Imports ----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.resolveContactAssignmentPartyDisplayTitle = resolveContactAssignmentPartyDisplayTitle;
|
|
5
|
+
exports.buildContactAssignmentPersonSnapshot = buildContactAssignmentPersonSnapshot;
|
|
6
|
+
exports.resolveContactAssignmentPartyContext = resolveContactAssignmentPartyContext;
|
|
7
|
+
const core_1 = require("@acorex-platform/framework-shared/core");
|
|
8
|
+
const lodash_1 = require("lodash");
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region ---- Display helpers ----
|
|
11
|
+
/** Resolves party display title from host/process data (plain string or multi-language object). */
|
|
12
|
+
function resolveContactAssignmentPartyDisplayTitle(locale, ...candidates) {
|
|
13
|
+
for (const candidate of candidates) {
|
|
14
|
+
if (candidate == null || candidate === '') {
|
|
15
|
+
continue;
|
|
16
|
+
}
|
|
17
|
+
const resolved = (0, core_1.resolveMultiLanguageString)(candidate, locale).trim();
|
|
18
|
+
if (resolved) {
|
|
19
|
+
return resolved;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return '';
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region ---- Context helpers ----
|
|
26
|
+
/** Builds a person snapshot for nested ContactAssignment display fields. */
|
|
27
|
+
function buildContactAssignmentPersonSnapshot(personRow, personId) {
|
|
28
|
+
var _a;
|
|
29
|
+
const fullName = (_a = personRow['fullName']) !== null && _a !== void 0 ? _a : [personRow['firstName'], personRow['lastName']].filter(Boolean).join(' ').trim();
|
|
30
|
+
return {
|
|
31
|
+
id: personId,
|
|
32
|
+
fullName: fullName || undefined,
|
|
33
|
+
phones: personRow['phones'],
|
|
34
|
+
emails: personRow['emails'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
/** Resolves partyId and display title from command process/host payload. */
|
|
38
|
+
function resolveContactAssignmentPartyContext(processData, locale) {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
const nestedParty = (0, lodash_1.get)(processData, 'party');
|
|
41
|
+
return {
|
|
42
|
+
partyId: (_b = (_a = processData['partyId']) !== null && _a !== void 0 ? _a : nestedParty === null || nestedParty === void 0 ? void 0 : nestedParty.id) !== null && _b !== void 0 ? _b : '',
|
|
43
|
+
partyTitle: resolveContactAssignmentPartyDisplayTitle(locale, processData['party.title'], nestedParty === null || nestedParty === void 0 ? void 0 : nestedParty.title, (0, lodash_1.get)(processData, 'title')),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
//# sourceMappingURL=contact-assignment.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-assignment.utils.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/server/contracts/src/contact-assignment.utils.ts"],"names":[],"mappings":";AAAA,2BAA2B;;AAa3B,8FAgBC;AAOD,oFAcC;AAGD,oFAeC;AAlED,iEAGgD;AAChD,mCAA6B;AAE7B,YAAY;AAEZ,mCAAmC;AAEnC,mGAAmG;AACnG,SAAgB,yCAAyC,CAAC,MAAc,EAAE,GAAG,UAAqB;IAChG,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,IAAI,SAAS,IAAI,IAAI,IAAI,SAAS,KAAK,EAAE,EAAE,CAAC;YAC1C,SAAS;QACX,CAAC;QAED,MAAM,QAAQ,GAAG,IAAA,iCAA0B,EACzC,SAA+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.contactAssignmentFactory = contactAssignmentFactory;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const core_1 = require("@acorex-platform/framework-shared/core");
|
|
6
|
+
const entity_1 = require("@acorex-platform/framework-shared/entity");
|
|
7
|
+
//#region ---- Imports ----
|
|
8
|
+
const root_config_1 = require("../../root-config");
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region ---- Entity Factory ----
|
|
11
|
+
function contactAssignmentFactory() {
|
|
12
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
13
|
+
const entityDef = {
|
|
14
|
+
module: root_config_1.RootConfig.module.name,
|
|
15
|
+
name: root_config_1.RootConfig.entities.contactAssignment.name,
|
|
16
|
+
title: root_config_1.RootConfig.entities.contactAssignment.title,
|
|
17
|
+
icon: root_config_1.RootConfig.entities.contactAssignment.icon,
|
|
18
|
+
formats: {
|
|
19
|
+
individual: root_config_1.RootConfig.entities.contactAssignment.title,
|
|
20
|
+
plural: root_config_1.RootConfig.entities.contactAssignment.titlePlural,
|
|
21
|
+
searchResult: {
|
|
22
|
+
title: '{{ context.eval("person.fullName") + " (" + context.eval("role.title", { pipes: ["translate"] }) + ")" }}',
|
|
23
|
+
description: '@person-core:contact-assignments.entities.contact-assignment.search-result-description',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
plugins: [{ name: 'notes' }],
|
|
27
|
+
groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
|
|
28
|
+
properties: [
|
|
29
|
+
{
|
|
30
|
+
name: 'partyId',
|
|
31
|
+
title: '@person-core:contact-assignments.entities.contact-assignment.fields.party.title',
|
|
32
|
+
groupId: 'basic-info',
|
|
33
|
+
options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
|
|
34
|
+
schema: {
|
|
35
|
+
dataType: 'string',
|
|
36
|
+
interface: {
|
|
37
|
+
type: core_1.AXPWidgetsList.Editors.LookupBox,
|
|
38
|
+
options: {
|
|
39
|
+
entity: 'BusinessCore.Party',
|
|
40
|
+
multiple: false,
|
|
41
|
+
textField: 'title',
|
|
42
|
+
columns: ['title'],
|
|
43
|
+
expose: [
|
|
44
|
+
{ source: 'id', target: 'party.id' },
|
|
45
|
+
{ source: 'title', target: 'party.title' },
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
validations: [{ rule: 'required' }],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'personId',
|
|
54
|
+
title: '@person-core:contact-assignments.entities.contact-assignment.fields.person.title',
|
|
55
|
+
groupId: 'basic-info',
|
|
56
|
+
options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
|
|
57
|
+
schema: {
|
|
58
|
+
dataType: 'string',
|
|
59
|
+
interface: {
|
|
60
|
+
type: core_1.AXPWidgetsList.Editors.LookupBox,
|
|
61
|
+
options: {
|
|
62
|
+
entity: `${root_config_1.RootConfig.module.name}.${root_config_1.RootConfig.entities.person.name}`,
|
|
63
|
+
multiple: false,
|
|
64
|
+
textField: 'fullName',
|
|
65
|
+
columns: ['fullName', 'phones', 'emails'],
|
|
66
|
+
allowCreate: 'quick',
|
|
67
|
+
expose: [
|
|
68
|
+
{ source: 'id', target: 'person.id' },
|
|
69
|
+
{ source: 'fullName', target: 'person.fullName' },
|
|
70
|
+
{ source: 'phones', target: 'person.phones' },
|
|
71
|
+
{ source: 'emails', target: 'person.emails' },
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
validations: [{ rule: 'required' }],
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'roleId',
|
|
80
|
+
title: '@person-core:contact-assignments.entities.contact-assignment.fields.role.title',
|
|
81
|
+
groupId: 'basic-info',
|
|
82
|
+
options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
|
|
83
|
+
schema: {
|
|
84
|
+
dataType: 'string',
|
|
85
|
+
interface: {
|
|
86
|
+
type: core_1.AXPWidgetsList.Editors.LookupBox,
|
|
87
|
+
options: {
|
|
88
|
+
look: 'select',
|
|
89
|
+
entity: `${root_config_1.RootConfig.module.name}.${root_config_1.RootConfig.entities.contactRole.name}`,
|
|
90
|
+
multiple: false,
|
|
91
|
+
allowCreate: 'quick',
|
|
92
|
+
expose: [
|
|
93
|
+
{ source: 'id', target: 'role.id' },
|
|
94
|
+
{ source: 'title', target: 'role.title' },
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
validations: [{ rule: 'required' }],
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
columns: [
|
|
103
|
+
{ name: 'personId', title: '@general:terms.people.contact', options: { dataPath: 'person.fullName' } },
|
|
104
|
+
{
|
|
105
|
+
name: 'roleId',
|
|
106
|
+
title: '@person-core:contact-assignments.entities.contact-assignment.fields.role.title',
|
|
107
|
+
options: { dataPath: 'role.title' },
|
|
108
|
+
},
|
|
109
|
+
{ name: 'person.phones', title: '@general:terms.communication.phones', options: { width: '200px' } },
|
|
110
|
+
{ name: 'person.emails', title: '@general:terms.communication.emails', options: { width: '200px' } },
|
|
111
|
+
],
|
|
112
|
+
interfaces: {
|
|
113
|
+
master: {
|
|
114
|
+
create: {
|
|
115
|
+
sections: [{ id: 'basic-info' }],
|
|
116
|
+
properties: [
|
|
117
|
+
{ name: 'partyId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
118
|
+
{ name: 'personId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
119
|
+
{ name: 'roleId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
update: {
|
|
123
|
+
sections: [{ id: 'basic-info' }],
|
|
124
|
+
properties: [
|
|
125
|
+
{ name: 'partyId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
126
|
+
{ name: 'personId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
127
|
+
{ name: 'roleId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
128
|
+
],
|
|
129
|
+
},
|
|
130
|
+
single: {
|
|
131
|
+
title: '{{ context.eval("person.fullName") + " - " + context.eval("role.title", { pipes: ["translate"] }) }}',
|
|
132
|
+
sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],
|
|
133
|
+
properties: [
|
|
134
|
+
{ name: 'partyId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
135
|
+
{ name: 'personId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
136
|
+
{ name: 'roleId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
137
|
+
],
|
|
138
|
+
actions: [...(0, entity_1.entityMasterRecordActions)()],
|
|
139
|
+
},
|
|
140
|
+
list: {
|
|
141
|
+
actions: [...(0, entity_1.entityMasterCrudActions)()],
|
|
142
|
+
views: [
|
|
143
|
+
(0, entity_1.createAllQueryView)({
|
|
144
|
+
sorts: [{ name: 'roleId', dir: 'asc' }],
|
|
145
|
+
}),
|
|
146
|
+
],
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
};
|
|
151
|
+
return entityDef;
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
//#endregion
|
|
155
|
+
//# sourceMappingURL=contact-assignment.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-assignment.entity.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/contracts/src/entities/contact-assignment/contact-assignment.entity.ts"],"names":[],"mappings":";;AAgBA,4DA6IC;;AA7JD,iEAAwE;AACxE,qEAKkD;AAElD,+BAA+B;AAE/B,mDAA+C;AAE/C,YAAY;AAEZ,sCAAsC;AAEtC,SAAsB,wBAAwB;;QAC5C,MAAM,SAAS,GAAc;YAC3B,MAAM,EAAE,wBAAU,CAAC,MAAM,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AAM,EAAE;wBACN,KAAK,EAAE,sGAAsG;wBAC7G,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;wBAChF,UAAU,EAAE;4BACV,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;4BAC7E,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;4BAC7E,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;yBAC5E;wBACD,OAAO,EAAE,CAAC,GAAG,IAAA,kCAAyB,GAAE,CAAC;qBAC1C;oBACD,IAAI,EAAE;wBACJ,OAAO,EAAE,CAAC,GAAG,IAAA,gCAAuB,GAAE,CAAC;wBACvC,KAAK,EAAE;4BACL,IAAA,2BAAkB,EAAC;gCACjB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;6BACxC,CAAC;yBACH;qBACF;iBACF;aACF;SACF,CAAC;QAEF,OAAO,SAAS,CAAC;IACnB,CAAC;CAAA;AAED,YAAY"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { AXPEntityModel } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
export interface AXMPersonCoreContactAssignmentEntityModel extends AXPEntityModel<string> {
|
|
4
|
+
partyId: string;
|
|
5
|
+
personId: string;
|
|
6
|
+
roleId: string;
|
|
7
|
+
party?: {
|
|
8
|
+
id: string;
|
|
9
|
+
title: AXPMultiLanguageString;
|
|
10
|
+
};
|
|
11
|
+
person?: {
|
|
12
|
+
id: string;
|
|
13
|
+
fullName?: string;
|
|
14
|
+
phones?: unknown[];
|
|
15
|
+
emails?: unknown[];
|
|
16
|
+
};
|
|
17
|
+
role?: {
|
|
18
|
+
id: string;
|
|
19
|
+
title: AXPMultiLanguageString;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-assignment.types.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/contracts/src/entities/contact-assignment/contact-assignment.types.ts"],"names":[],"mappings":";;AAcA,YAAY"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./contact-assignment.entity"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./contact-assignment.types"), exports);
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/contracts/src/entities/contact-assignment/index.ts"],"names":[],"mappings":";;;AAAA,sEAA4C;AAC5C,qEAA2C"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.contactRoleFactory = contactRoleFactory;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const core_1 = require("@acorex-platform/framework-shared/core");
|
|
6
|
+
const entity_1 = require("@acorex-platform/framework-shared/entity");
|
|
7
|
+
//#region ---- Imports ----
|
|
8
|
+
const root_config_1 = require("../../root-config");
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region ---- Entity Factory ----
|
|
11
|
+
function contactRoleFactory() {
|
|
12
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
13
|
+
const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];
|
|
14
|
+
const createPropertyLayouts = [
|
|
15
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
16
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
17
|
+
];
|
|
18
|
+
const modifyPropertyLayouts = [
|
|
19
|
+
{ name: 'name', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
20
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
21
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
22
|
+
];
|
|
23
|
+
const entityDef = {
|
|
24
|
+
module: root_config_1.RootConfig.module.name,
|
|
25
|
+
name: root_config_1.RootConfig.entities.contactRole.name,
|
|
26
|
+
title: root_config_1.RootConfig.entities.contactRole.title,
|
|
27
|
+
icon: root_config_1.RootConfig.entities.contactRole.icon,
|
|
28
|
+
formats: {
|
|
29
|
+
individual: root_config_1.RootConfig.entities.contactRole.title,
|
|
30
|
+
plural: root_config_1.RootConfig.entities.contactRole.titlePlural,
|
|
31
|
+
searchResult: {
|
|
32
|
+
title: '{{ title }}',
|
|
33
|
+
description: '@person-core:contact-roles.entities.contact-role.search-result-description',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
plugins: [
|
|
37
|
+
{ name: 'history' },
|
|
38
|
+
{ name: 'compare' },
|
|
39
|
+
{ name: 'clone' },
|
|
40
|
+
{ name: 'derived-name' },
|
|
41
|
+
{
|
|
42
|
+
name: 'unique-fields',
|
|
43
|
+
options: {
|
|
44
|
+
fields: 'name',
|
|
45
|
+
scope: 'global',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
|
|
50
|
+
properties: [
|
|
51
|
+
{
|
|
52
|
+
name: 'id',
|
|
53
|
+
title: '@general:terms.common.id',
|
|
54
|
+
groupId: 'basic-info',
|
|
55
|
+
schema: {
|
|
56
|
+
dataType: 'uuid',
|
|
57
|
+
visible: false,
|
|
58
|
+
readonly: true,
|
|
59
|
+
unique: { enabled: true },
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: 'name',
|
|
64
|
+
title: '@person-core:contact-roles.entities.contact-role.fields.name.title',
|
|
65
|
+
groupId: 'basic-info',
|
|
66
|
+
options: {
|
|
67
|
+
sort: { enabled: true },
|
|
68
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
69
|
+
},
|
|
70
|
+
schema: {
|
|
71
|
+
dataType: 'string',
|
|
72
|
+
interface: {
|
|
73
|
+
type: core_1.AXPWidgetsList.Editors.TextBox,
|
|
74
|
+
options: {
|
|
75
|
+
placeholder: '@person-core:contact-roles.entities.contact-role.fields.name.placeholder',
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
validations: [{ rule: 'required' }, { rule: 'variable-name' }],
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: 'title',
|
|
83
|
+
title: '@general:terms.common.title',
|
|
84
|
+
groupId: 'basic-info',
|
|
85
|
+
options: {
|
|
86
|
+
sort: { enabled: true },
|
|
87
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
88
|
+
},
|
|
89
|
+
schema: {
|
|
90
|
+
dataType: 'string',
|
|
91
|
+
interface: {
|
|
92
|
+
type: core_1.AXPWidgetsList.Editors.TextBox,
|
|
93
|
+
options: {
|
|
94
|
+
placeholder: '@person-core:contact-roles.entities.contact-role.fields.title.placeholder',
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
validations: [{ rule: 'required' }],
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'description',
|
|
102
|
+
title: '@general:terms.common.description',
|
|
103
|
+
groupId: 'basic-info',
|
|
104
|
+
options: {
|
|
105
|
+
sort: { enabled: false },
|
|
106
|
+
filter: { advance: { enabled: true }, inline: { enabled: false } },
|
|
107
|
+
},
|
|
108
|
+
schema: {
|
|
109
|
+
dataType: 'string',
|
|
110
|
+
interface: {
|
|
111
|
+
type: core_1.AXPWidgetsList.Editors.LargeTextBox,
|
|
112
|
+
options: {
|
|
113
|
+
rows: 3,
|
|
114
|
+
placeholder: '@person-core:contact-roles.entities.contact-role.fields.description.placeholder',
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
columns: [
|
|
121
|
+
{ name: 'title', options: { width: '220px', order: 1 } },
|
|
122
|
+
{ name: 'name', options: { width: '140px', order: 2 } },
|
|
123
|
+
{ name: 'description', options: { width: '320px', order: 3 } },
|
|
124
|
+
],
|
|
125
|
+
interfaces: {
|
|
126
|
+
master: {
|
|
127
|
+
create: { sections, properties: createPropertyLayouts },
|
|
128
|
+
update: { sections, properties: modifyPropertyLayouts },
|
|
129
|
+
single: {
|
|
130
|
+
title: '{{ title }}',
|
|
131
|
+
sections,
|
|
132
|
+
properties: modifyPropertyLayouts,
|
|
133
|
+
actions: [...(0, entity_1.entityMasterRecordActions)()],
|
|
134
|
+
},
|
|
135
|
+
list: {
|
|
136
|
+
actions: [...(0, entity_1.entityMasterCrudActions)()],
|
|
137
|
+
views: [
|
|
138
|
+
(0, entity_1.createAllQueryView)({
|
|
139
|
+
sorts: [{ name: 'title', dir: 'asc' }],
|
|
140
|
+
}),
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
return entityDef;
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
//#endregion
|
|
150
|
+
//# sourceMappingURL=contact-role.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-role.entity.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/contracts/src/entities/contact-role/contact-role.entity.ts"],"names":[],"mappings":";;AAWA,gDAyIC;;AApJD,iEAAwE;AACxE,qEAA6I;AAE7I,2BAA2B;AAE3B,mDAA+C;AAE/C,YAAY;AAEZ,kCAAkC;AAElC,SAAsB,kBAAkB;;QACtC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QACxF,MAAM,qBAAqB,GAAG;YAC5B,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;YAC3E,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;SAClF,CAAC;QACF,MAAM,qBAAqB,GAAG;YAC5B,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;YACzE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;YAC1E,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE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C;6BACvC,CAAC;yBACH;qBACF;iBACF;aACF;SACF,CAAC;QAEF,OAAO,SAAS,CAAC;IACnB,CAAC;CAAA;AAED,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-role.types.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/contracts/src/entities/contact-role/contact-role.types.ts"],"names":[],"mappings":";;AAWA,YAAY"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./contact-role.entity"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./contact-role.types"), exports);
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/contracts/src/entities/contact-role/index.ts"],"names":[],"mappings":";;;AAAA,gEAAsC;AACtC,+DAAqC"}
|