@acorex-platform/module-person-core-client 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.
@@ -0,0 +1,391 @@
1
+ import { RootConfig, buildContactAssignmentPersonSnapshot, AXMPersonCorePermissionKeys, AXMPersonCoreMenuKeys } from '@acorex-platform/module-person-core-client/contracts';
2
+ import * as i0 from '@angular/core';
3
+ import { inject, NgModule } from '@angular/core';
4
+ import { AXP_MODULE_MANIFEST_PROVIDER, provideLazyProvider } from '@acorex-platform/framework-client/core';
5
+ import { AXP_ENTITY_STORAGE_BACKEND, AXP_ENTITY_STORAGE_MIDDLEWARE, AXP_ENTITY_DEFINITION_LOADER, AXPEntityService } from '@acorex-platform/framework-client/layout/entity';
6
+ import { AXP_MENU_PROVIDER } from '@acorex-platform/framework-client/common';
7
+ import { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';
8
+ import { provideCommandSetups } from '@acorex-platform/framework-client/runtime';
9
+ import { get, set } from 'lodash';
10
+ import { AXPCommonMenuKeys } from '@acorex-platform/module-common-client/contracts';
11
+ import { AXTranslationService } from '@acorex/core/translation';
12
+
13
+ //#region ---- Imports ----
14
+ //#endregion
15
+ //#region ---- Manifest Definition ----
16
+ /**
17
+ * Person Core Module Manifest.
18
+ * Defines module metadata for shared person/demographic reference data.
19
+ */
20
+ const PersonCoreManifest = {
21
+ name: RootConfig.module.name,
22
+ version: '1.0.0',
23
+ title: RootConfig.module.title,
24
+ icon: RootConfig.module.icon,
25
+ i18n: RootConfig.config.i18n,
26
+ dependencies: ['LocationManagement'],
27
+ required: true,
28
+ };
29
+ //#endregion
30
+
31
+ //#region ---- ContactAssignment person hydration ----
32
+ const CONTACT_ASSIGNMENT_ENTITY = `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}`;
33
+ const PERSON_ENTITY = `${RootConfig.module.name}.${RootConfig.entities.person.name}`;
34
+ /**
35
+ * Hydrates nested `person` on ContactAssignment rows from `personId` so consumers
36
+ * (e.g. party contact lists) receive Person fields such as `fullName`, `phones`, and `emails`.
37
+ */
38
+ const contactAssignmentPersonHydrateMiddleware = {
39
+ target: { ops: ['getOne', 'getAll', 'query'], order: 13 },
40
+ execute: async (ctx, next) => {
41
+ const backend = inject(AXP_ENTITY_STORAGE_BACKEND);
42
+ await next();
43
+ if (ctx.entityName !== CONTACT_ASSIGNMENT_ENTITY) {
44
+ return;
45
+ }
46
+ try {
47
+ const rows = Array.isArray(ctx.result)
48
+ ? ctx.result
49
+ : Array.isArray(ctx.result?.items)
50
+ ? (ctx.result.items ?? [])
51
+ : ctx.result
52
+ ? [ctx.result]
53
+ : [];
54
+ if (!rows.length) {
55
+ return;
56
+ }
57
+ const personIds = Array.from(new Set(rows.map((row) => get(row, 'personId')).filter((id) => id != null)));
58
+ if (!personIds.length) {
59
+ return;
60
+ }
61
+ const response = await backend.query(PERSON_ENTITY, {
62
+ skip: 0,
63
+ take: personIds.length,
64
+ filter: { field: 'id', operator: { type: 'in' }, value: personIds },
65
+ });
66
+ const personMap = new Map();
67
+ for (const item of response?.items ?? []) {
68
+ const record = item;
69
+ personMap.set(get(record, 'id'), record);
70
+ }
71
+ for (const row of rows) {
72
+ const personId = get(row, 'personId');
73
+ if (personId == null) {
74
+ continue;
75
+ }
76
+ const person = personMap.get(personId);
77
+ if (person) {
78
+ set(row, 'person', buildContactAssignmentPersonSnapshot(person, personId));
79
+ }
80
+ }
81
+ }
82
+ catch {
83
+ // swallow to avoid breaking main flow
84
+ }
85
+ },
86
+ };
87
+ //#endregion
88
+
89
+ //#region ---- Imports ----
90
+ //#endregion
91
+ //#region ---- Module ----
92
+ class AXMPersonCoreModule {
93
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMPersonCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
94
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: AXMPersonCoreModule }); }
95
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMPersonCoreModule, providers: [
96
+ {
97
+ provide: AXP_MODULE_MANIFEST_PROVIDER,
98
+ useValue: PersonCoreManifest,
99
+ multi: true,
100
+ },
101
+ provideLazyProvider(AXP_PERMISSION_DEFINITION_PROVIDER, () => Promise.resolve().then(function () { return permissionDefinition_provider; }).then((m) => m.AXMPersonCorePermissionDefinitionProvider)),
102
+ provideLazyProvider(AXP_MENU_PROVIDER, () => Promise.resolve().then(function () { return menu_provider; }).then((m) => m.AXMPersonCoreMenuProvider)),
103
+ provideLazyProvider(AXP_ENTITY_DEFINITION_LOADER, () => Promise.resolve().then(function () { return entity_provider; }).then((m) => m.AXMPersonCoreEntityProvider)),
104
+ {
105
+ provide: AXP_ENTITY_STORAGE_MIDDLEWARE,
106
+ multi: true,
107
+ useValue: contactAssignmentPersonHydrateMiddleware,
108
+ },
109
+ provideCommandSetups([
110
+ {
111
+ key: `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}:AssignExistingPerson`,
112
+ command: () => import('./acorex-platform-module-person-core-client-assign-existing-person-to-party.command-DO3Z5pPU.mjs').then((c) => c.AXMContactAssignmentAssignExistingPersonCommand),
113
+ },
114
+ {
115
+ key: `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}:CreateWithNewPerson`,
116
+ command: () => import('./acorex-platform-module-person-core-client-create-contact-with-new-person.command-CVNc2tNy.mjs').then((c) => c.AXMContactAssignmentCreateWithNewPersonCommand),
117
+ },
118
+ ]),
119
+ ] }); }
120
+ }
121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMPersonCoreModule, decorators: [{
122
+ type: NgModule,
123
+ args: [{
124
+ imports: [],
125
+ providers: [
126
+ {
127
+ provide: AXP_MODULE_MANIFEST_PROVIDER,
128
+ useValue: PersonCoreManifest,
129
+ multi: true,
130
+ },
131
+ provideLazyProvider(AXP_PERMISSION_DEFINITION_PROVIDER, () => Promise.resolve().then(function () { return permissionDefinition_provider; }).then((m) => m.AXMPersonCorePermissionDefinitionProvider)),
132
+ provideLazyProvider(AXP_MENU_PROVIDER, () => Promise.resolve().then(function () { return menu_provider; }).then((m) => m.AXMPersonCoreMenuProvider)),
133
+ provideLazyProvider(AXP_ENTITY_DEFINITION_LOADER, () => Promise.resolve().then(function () { return entity_provider; }).then((m) => m.AXMPersonCoreEntityProvider)),
134
+ {
135
+ provide: AXP_ENTITY_STORAGE_MIDDLEWARE,
136
+ multi: true,
137
+ useValue: contactAssignmentPersonHydrateMiddleware,
138
+ },
139
+ provideCommandSetups([
140
+ {
141
+ key: `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}:AssignExistingPerson`,
142
+ command: () => import('./acorex-platform-module-person-core-client-assign-existing-person-to-party.command-DO3Z5pPU.mjs').then((c) => c.AXMContactAssignmentAssignExistingPersonCommand),
143
+ },
144
+ {
145
+ key: `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}:CreateWithNewPerson`,
146
+ command: () => import('./acorex-platform-module-person-core-client-create-contact-with-new-person.command-CVNc2tNy.mjs').then((c) => c.AXMContactAssignmentCreateWithNewPersonCommand),
147
+ },
148
+ ]),
149
+ ],
150
+ }]
151
+ }] });
152
+
153
+ //#region ---- Imports ----
154
+ //#endregion
155
+ //#region ---- Entity Provider ----
156
+ class AXMPersonCoreEntityProvider {
157
+ preload() {
158
+ const { entities, module } = RootConfig;
159
+ return [
160
+ entities.person.name,
161
+ entities.educationLevel.name,
162
+ entities.gender.name,
163
+ entities.maritalStatus.name,
164
+ entities.personTitle.name,
165
+ entities.personIdentifierType.name,
166
+ entities.personRelationship.name,
167
+ entities.contactAssignment.name,
168
+ entities.religion.name,
169
+ entities.contactRole.name,
170
+ ].map((entity) => ({
171
+ module: module.name,
172
+ entity,
173
+ }));
174
+ }
175
+ async get(moduleName, entityName) {
176
+ if (moduleName !== RootConfig.module.name) {
177
+ return null;
178
+ }
179
+ switch (entityName) {
180
+ case RootConfig.entities.person.name:
181
+ return (await import('@acorex-platform/module-person-core-client/contracts')).personFactory();
182
+ case RootConfig.entities.educationLevel.name:
183
+ return (await import('@acorex-platform/module-person-core-client/contracts')).educationLevelFactory();
184
+ case RootConfig.entities.gender.name:
185
+ return (await import('@acorex-platform/module-person-core-client/contracts')).genderFactory();
186
+ case RootConfig.entities.maritalStatus.name:
187
+ return (await import('@acorex-platform/module-person-core-client/contracts')).maritalStatusFactory();
188
+ case RootConfig.entities.personTitle.name:
189
+ return (await import('@acorex-platform/module-person-core-client/contracts')).personTitleFactory();
190
+ case RootConfig.entities.personIdentifierType.name:
191
+ return (await import('@acorex-platform/module-person-core-client/contracts')).personIdentifierTypeFactory();
192
+ case RootConfig.entities.religion.name:
193
+ return (await import('@acorex-platform/module-person-core-client/contracts')).religionFactory();
194
+ case RootConfig.entities.contactRole.name:
195
+ return (await import('@acorex-platform/module-person-core-client/contracts')).contactRoleFactory();
196
+ case RootConfig.entities.personRelationship.name:
197
+ return (await import('@acorex-platform/module-person-core-client/contracts')).personRelationshipFactory();
198
+ case RootConfig.entities.contactAssignment.name:
199
+ return (await import('@acorex-platform/module-person-core-client/contracts')).contactAssignmentFactory();
200
+ }
201
+ return null;
202
+ }
203
+ async list() {
204
+ const m = RootConfig.module.name;
205
+ return Promise.resolve(Object.values(RootConfig.entities).map((e) => ({ name: e.name, module: m })));
206
+ }
207
+ }
208
+ //#endregion
209
+
210
+ var entity_provider = /*#__PURE__*/Object.freeze({
211
+ __proto__: null,
212
+ AXMPersonCoreEntityProvider: AXMPersonCoreEntityProvider
213
+ });
214
+
215
+ //#region ---- Imports ----
216
+ //#endregion
217
+ //#region ---- Menu Provider ----
218
+ class AXMPersonCoreMenuProvider {
219
+ constructor() {
220
+ this.entityService = inject(AXPEntityService);
221
+ }
222
+ async provide(context) {
223
+ const module = RootConfig.module;
224
+ context.find(AXPCommonMenuKeys.Contacts).addItems([
225
+ {
226
+ name: AXMPersonCoreMenuKeys.Persons,
227
+ text: RootConfig.entities.person.titlePlural,
228
+ icon: RootConfig.entities.person.icon,
229
+ priority: 30,
230
+ path: this.entityService.withEntity(module.name, RootConfig.entities.person.name).createPath(),
231
+ policy: {
232
+ features: [module.name],
233
+ permissions: [AXMPersonCorePermissionKeys.PersonCore.Person.Management],
234
+ },
235
+ },
236
+ ]);
237
+ // Personal group under Configuration/People and Demographics
238
+ context.find(AXPCommonMenuKeys.PeopleAndDemographics).addItems([
239
+ {
240
+ name: AXMPersonCoreMenuKeys.EducationLevels,
241
+ text: RootConfig.entities.educationLevel.titlePlural,
242
+ icon: RootConfig.entities.educationLevel.icon,
243
+ priority: 1,
244
+ path: this.entityService
245
+ .withEntity(module.name, RootConfig.entities.educationLevel.name)
246
+ .createPath(),
247
+ policy: {
248
+ features: [RootConfig.module.name],
249
+ permissions: [AXMPersonCorePermissionKeys.PersonCore.EducationLevel.Management],
250
+ },
251
+ },
252
+ {
253
+ name: AXMPersonCoreMenuKeys.Genders,
254
+ text: RootConfig.entities.gender.titlePlural,
255
+ icon: RootConfig.entities.gender.icon,
256
+ priority: 2,
257
+ path: this.entityService.withEntity(module.name, RootConfig.entities.gender.name).createPath(),
258
+ policy: {
259
+ features: [RootConfig.module.name],
260
+ permissions: [AXMPersonCorePermissionKeys.PersonCore.Gender.Management],
261
+ },
262
+ },
263
+ {
264
+ name: AXMPersonCoreMenuKeys.MaritalStatuses,
265
+ text: RootConfig.entities.maritalStatus.titlePlural,
266
+ icon: RootConfig.entities.maritalStatus.icon,
267
+ priority: 3,
268
+ path: this.entityService
269
+ .withEntity(module.name, RootConfig.entities.maritalStatus.name)
270
+ .createPath(),
271
+ policy: {
272
+ features: [RootConfig.module.name],
273
+ permissions: [AXMPersonCorePermissionKeys.PersonCore.MaritalStatus.Management],
274
+ },
275
+ },
276
+ {
277
+ name: AXMPersonCoreMenuKeys.PersonTitles,
278
+ text: RootConfig.entities.personTitle.titlePlural,
279
+ icon: RootConfig.entities.personTitle.icon,
280
+ priority: 4,
281
+ path: this.entityService
282
+ .withEntity(module.name, RootConfig.entities.personTitle.name)
283
+ .createPath(),
284
+ policy: {
285
+ features: [RootConfig.module.name],
286
+ permissions: [AXMPersonCorePermissionKeys.PersonCore.PersonTitle.Management],
287
+ },
288
+ },
289
+ {
290
+ name: AXMPersonCoreMenuKeys.PersonIdentifierTypes,
291
+ text: RootConfig.entities.personIdentifierType.titlePlural,
292
+ icon: RootConfig.entities.personIdentifierType.icon,
293
+ priority: 5,
294
+ path: this.entityService
295
+ .withEntity(module.name, RootConfig.entities.personIdentifierType.name)
296
+ .createPath(),
297
+ policy: {
298
+ features: [RootConfig.module.name],
299
+ permissions: [AXMPersonCorePermissionKeys.PersonCore.PersonIdentifierType.Management],
300
+ },
301
+ },
302
+ {
303
+ name: AXMPersonCoreMenuKeys.Religions,
304
+ text: RootConfig.entities.religion.titlePlural,
305
+ icon: RootConfig.entities.religion.icon,
306
+ priority: 6,
307
+ path: this.entityService
308
+ .withEntity(module.name, RootConfig.entities.religion.name)
309
+ .createPath(),
310
+ policy: {
311
+ features: [RootConfig.module.name],
312
+ permissions: [AXMPersonCorePermissionKeys.PersonCore.Religion.Management],
313
+ },
314
+ },
315
+ {
316
+ name: AXMPersonCoreMenuKeys.ContactRoles,
317
+ text: RootConfig.entities.contactRole.titlePlural,
318
+ icon: RootConfig.entities.contactRole.icon,
319
+ priority: 7,
320
+ path: this.entityService
321
+ .withEntity(module.name, RootConfig.entities.contactRole.name)
322
+ .createPath(),
323
+ policy: {
324
+ features: [RootConfig.module.name],
325
+ permissions: [AXMPersonCorePermissionKeys.PersonCore.ContactRole.Management],
326
+ },
327
+ },
328
+ ]);
329
+ }
330
+ }
331
+ //#endregion
332
+
333
+ var menu_provider = /*#__PURE__*/Object.freeze({
334
+ __proto__: null,
335
+ AXMPersonCoreMenuProvider: AXMPersonCoreMenuProvider
336
+ });
337
+
338
+ //#region ---- Imports ----
339
+ //#endregion
340
+ //#region ---- Permission Definition Provider ----
341
+ class AXMPersonCorePermissionDefinitionProvider {
342
+ constructor() {
343
+ this.translationService = inject(AXTranslationService);
344
+ }
345
+ async define(context) {
346
+ const keys = AXMPersonCorePermissionKeys.PersonCore;
347
+ const educationLevelTrans = (action) => this.translationService.translateAsync(`@person-core:education-levels.permissions.education-level.${action}.title`);
348
+ const genderTrans = (action) => this.translationService.translateAsync(`@person-core:genders.permissions.gender.${action}.title`);
349
+ const maritalStatusTrans = (action) => this.translationService.translateAsync(`@person-core:marital-statuses.permissions.marital-status.${action}.title`);
350
+ const personTitleTrans = (action) => this.translationService.translateAsync(`@person-core:person-titles.permissions.person-title.${action}.title`);
351
+ const personIdentifierTypeTrans = (action) => this.translationService.translateAsync(`@person-core:person-identifier-types.permissions.person-identifier-type.${action}.title`);
352
+ const personRelationshipTrans = (action) => this.translationService.translateAsync(`@person-core:person-relationships.permissions.person-relationship.${action}.title`);
353
+ const religionTrans = (action) => this.translationService.translateAsync(`@person-core:religions.permissions.religion.${action}.title`);
354
+ const contactRoleTrans = (action) => this.translationService.translateAsync(`@person-core:contact-roles.permissions.contact-role.${action}.title`);
355
+ const personTrans = (action) => this.translationService.translateAsync(`@person-core:persons.permissions.person.${action}.title`);
356
+ context
357
+ .addGroup(RootConfig.module.name, await this.translationService.translateAsync('@person-core:module.title'))
358
+ .addPermission(keys.Person.Management, await personTrans('manage'))
359
+ .endPermission()
360
+ .addPermission(keys.EducationLevel.Management, await educationLevelTrans('manage'))
361
+ .endPermission()
362
+ .addPermission(keys.Gender.Management, await genderTrans('manage'))
363
+ .endPermission()
364
+ .addPermission(keys.MaritalStatus.Management, await maritalStatusTrans('manage'))
365
+ .endPermission()
366
+ .addPermission(keys.PersonTitle.Management, await personTitleTrans('manage'))
367
+ .endPermission()
368
+ .addPermission(keys.PersonIdentifierType.Management, await personIdentifierTypeTrans('manage'))
369
+ .endPermission()
370
+ .addPermission(keys.PersonRelationship.Management, await personRelationshipTrans('manage'))
371
+ .endPermission()
372
+ .addPermission(keys.Religion.Management, await religionTrans('manage'))
373
+ .endPermission()
374
+ .addPermission(keys.ContactRole.Management, await contactRoleTrans('manage'))
375
+ .endPermission()
376
+ .endGroup();
377
+ }
378
+ }
379
+ //#endregion
380
+
381
+ var permissionDefinition_provider = /*#__PURE__*/Object.freeze({
382
+ __proto__: null,
383
+ AXMPersonCorePermissionDefinitionProvider: AXMPersonCorePermissionDefinitionProvider
384
+ });
385
+
386
+ /**
387
+ * Generated bundle index. Do not edit.
388
+ */
389
+
390
+ export { AXMPersonCoreEntityProvider, AXMPersonCoreMenuProvider, AXMPersonCoreModule, AXMPersonCorePermissionDefinitionProvider };
391
+ //# sourceMappingURL=acorex-platform-module-person-core-client.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-person-core-client.mjs","sources":["../../../../libs/modules/person-core/client/src/lib/manifest.ts","../../../../libs/modules/person-core/client/src/lib/middlewares/contact-assignment-person-hydrate.middleware.ts","../../../../libs/modules/person-core/client/src/lib/person-core.module.ts","../../../../libs/modules/person-core/client/src/lib/entity.provider.ts","../../../../libs/modules/person-core/client/src/lib/menu.provider.ts","../../../../libs/modules/person-core/client/src/lib/permission-definition.provider.ts","../../../../libs/modules/person-core/client/src/acorex-platform-module-person-core-client.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPModuleManifest } from '@acorex-platform/framework-client/core';\nimport { RootConfig } from '@acorex-platform/module-person-core-client/contracts';\n\n//#endregion\n\n//#region ---- Manifest Definition ----\n\n/**\n * Person Core Module Manifest.\n * Defines module metadata for shared person/demographic reference data.\n */\nexport const PersonCoreManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '1.0.0',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n dependencies: ['LocationManagement'],\n required: true,\n};\n\n//#endregion\n","import {\n AXPEntityStorageMiddleware,\n AXP_ENTITY_STORAGE_BACKEND,\n} from '@acorex-platform/framework-client/layout/entity';\nimport { inject } from '@angular/core';\nimport { get, set } from 'lodash';\n\nimport { RootConfig, buildContactAssignmentPersonSnapshot } from '@acorex-platform/module-person-core-client/contracts';\n\n//#region ---- ContactAssignment person hydration ----\n\nconst CONTACT_ASSIGNMENT_ENTITY = `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}`;\nconst PERSON_ENTITY = `${RootConfig.module.name}.${RootConfig.entities.person.name}`;\n\n/**\n * Hydrates nested `person` on ContactAssignment rows from `personId` so consumers\n * (e.g. party contact lists) receive Person fields such as `fullName`, `phones`, and `emails`.\n */\nexport const contactAssignmentPersonHydrateMiddleware: AXPEntityStorageMiddleware = {\n target: { ops: ['getOne', 'getAll', 'query'], order: 13 },\n execute: async (ctx, next) => {\n const backend = inject(AXP_ENTITY_STORAGE_BACKEND);\n\n await next();\n\n if (ctx.entityName !== CONTACT_ASSIGNMENT_ENTITY) {\n return;\n }\n\n try {\n const rows: Record<string, unknown>[] = Array.isArray(ctx.result)\n ? ctx.result\n : Array.isArray((ctx.result as { items?: unknown[] })?.items)\n ? ((ctx.result as { items: Record<string, unknown>[] }).items ?? [])\n : ctx.result\n ? [ctx.result as Record<string, unknown>]\n : [];\n\n if (!rows.length) {\n return;\n }\n\n const personIds = Array.from(\n new Set(rows.map((row) => get(row, 'personId')).filter((id) => id != null)),\n );\n\n if (!personIds.length) {\n return;\n }\n\n const response = await backend.query(PERSON_ENTITY, {\n skip: 0,\n take: personIds.length,\n filter: { field: 'id', operator: { type: 'in' }, value: personIds },\n });\n\n const personMap = new Map<unknown, Record<string, unknown>>();\n for (const item of response?.items ?? []) {\n const record = item as Record<string, unknown>;\n personMap.set(get(record, 'id'), record);\n }\n\n for (const row of rows) {\n const personId = get(row, 'personId');\n if (personId == null) {\n continue;\n }\n const person = personMap.get(personId);\n if (person) {\n set(row, 'person', buildContactAssignmentPersonSnapshot(person, personId as string));\n }\n }\n } catch {\n // swallow to avoid breaking main flow\n }\n },\n};\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { RootConfig } from '@acorex-platform/module-person-core-client/contracts';\nimport { NgModule } from '@angular/core';\nimport { AXP_MODULE_MANIFEST_PROVIDER, provideLazyProvider } from '@acorex-platform/framework-client/core';\nimport { AXP_ENTITY_DEFINITION_LOADER, AXP_ENTITY_STORAGE_MIDDLEWARE } from '@acorex-platform/framework-client/layout/entity';\nimport { AXP_MENU_PROVIDER } from '@acorex-platform/framework-client/common';\nimport { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';\nimport { provideCommandSetups } from '@acorex-platform/framework-client/runtime';\nimport { PersonCoreManifest } from './manifest';\nimport { contactAssignmentPersonHydrateMiddleware } from './middlewares/contact-assignment-person-hydrate.middleware';\n//#endregion\n\n//#region ---- Module ----\n\n@NgModule({\n imports: [],\n providers: [\n {\n provide: AXP_MODULE_MANIFEST_PROVIDER,\n useValue: PersonCoreManifest,\n multi: true,\n },\n provideLazyProvider(AXP_PERMISSION_DEFINITION_PROVIDER, () =>\n import('./permission-definition.provider').then((m) => m.AXMPersonCorePermissionDefinitionProvider)\n ),\n provideLazyProvider(AXP_MENU_PROVIDER, () =>\n import('./menu.provider').then((m) => m.AXMPersonCoreMenuProvider)\n ),\n provideLazyProvider(AXP_ENTITY_DEFINITION_LOADER, () =>\n import('./entity.provider').then((m) => m.AXMPersonCoreEntityProvider)\n ),\n {\n provide: AXP_ENTITY_STORAGE_MIDDLEWARE,\n multi: true,\n useValue: contactAssignmentPersonHydrateMiddleware,\n },\n provideCommandSetups([\n {\n key: `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}:AssignExistingPerson`,\n command: () =>\n import('./commands/assign-existing-person-to-party.command').then(\n (c) => c.AXMContactAssignmentAssignExistingPersonCommand,\n ),\n },\n {\n key: `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}:CreateWithNewPerson`,\n command: () =>\n import('./commands/create-contact-with-new-person.command').then(\n (c) => c.AXMContactAssignmentCreateWithNewPersonCommand,\n ),\n },\n ]),\n ],\n})\nexport class AXMPersonCoreModule { }\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { AXPEntityDefinitionLoader, AXPEntityPreloadEntity } from '@acorex-platform/framework-client/layout/entity';\nimport { RootConfig } from '@acorex-platform/module-person-core-client/contracts';\n\n//#endregion\n\n//#region ---- Entity Provider ----\n\nexport class AXMPersonCoreEntityProvider implements AXPEntityDefinitionLoader {\n public preload(): AXPEntityPreloadEntity[] {\n const { entities, module } = RootConfig;\n return [\n entities.person.name,\n entities.educationLevel.name,\n entities.gender.name,\n entities.maritalStatus.name,\n entities.personTitle.name,\n entities.personIdentifierType.name,\n entities.personRelationship.name,\n entities.contactAssignment.name,\n entities.religion.name,\n entities.contactRole.name,\n ].map((entity) => ({\n module: module.name,\n entity,\n }));\n }\n\n async get(moduleName: string, entityName: string): Promise<AXPEntity | null> {\n if (moduleName !== RootConfig.module.name) {\n return null;\n }\n\n switch (entityName) {\n case RootConfig.entities.person.name:\n return (await import('@acorex-platform/module-person-core-client/contracts')).personFactory();\n case RootConfig.entities.educationLevel.name:\n return (await import('@acorex-platform/module-person-core-client/contracts')).educationLevelFactory();\n case RootConfig.entities.gender.name:\n return (await import('@acorex-platform/module-person-core-client/contracts')).genderFactory();\n case RootConfig.entities.maritalStatus.name:\n return (await import('@acorex-platform/module-person-core-client/contracts')).maritalStatusFactory();\n case RootConfig.entities.personTitle.name:\n return (await import('@acorex-platform/module-person-core-client/contracts')).personTitleFactory();\n case RootConfig.entities.personIdentifierType.name:\n return (await import('@acorex-platform/module-person-core-client/contracts')).personIdentifierTypeFactory();\n case RootConfig.entities.religion.name:\n return (await import('@acorex-platform/module-person-core-client/contracts')).religionFactory();\n case RootConfig.entities.contactRole.name:\n return (await import('@acorex-platform/module-person-core-client/contracts')).contactRoleFactory();\n case RootConfig.entities.personRelationship.name:\n return (await import('@acorex-platform/module-person-core-client/contracts')).personRelationshipFactory();\n case RootConfig.entities.contactAssignment.name:\n return (await import('@acorex-platform/module-person-core-client/contracts')).contactAssignmentFactory();\n }\n\n return null;\n }\n\n async list(): Promise<{ name: string; module: string }[]> {\n const m = RootConfig.module.name;\n return Promise.resolve(Object.values(RootConfig.entities).map((e) => ({ name: e.name, module: m })));\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPCommonMenuKeys } from '@acorex-platform/module-common-client/contracts';\nimport { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { inject } from '@angular/core';\nimport { RootConfig } from '@acorex-platform/module-person-core-client/contracts';\nimport { AXMPersonCoreMenuKeys } from '@acorex-platform/module-person-core-client/contracts';\nimport { AXMPersonCorePermissionKeys } from '@acorex-platform/module-person-core-client/contracts';\n\n//#endregion\n\n//#region ---- Menu Provider ----\n\nexport class AXMPersonCoreMenuProvider implements AXPMenuProvider {\n private readonly entityService = inject(AXPEntityService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const module = RootConfig.module;\n\n context.find(AXPCommonMenuKeys.Contacts).addItems([\n {\n name: AXMPersonCoreMenuKeys.Persons,\n text: RootConfig.entities.person.titlePlural,\n icon: RootConfig.entities.person.icon,\n priority: 30,\n path: this.entityService.withEntity(module.name, RootConfig.entities.person.name).createPath(),\n policy: {\n features: [module.name],\n permissions: [AXMPersonCorePermissionKeys.PersonCore.Person.Management],\n },\n },\n ]);\n\n // Personal group under Configuration/People and Demographics\n context.find(AXPCommonMenuKeys.PeopleAndDemographics).addItems([\n {\n name: AXMPersonCoreMenuKeys.EducationLevels,\n text: RootConfig.entities.educationLevel.titlePlural,\n icon: RootConfig.entities.educationLevel.icon,\n priority: 1,\n path: this.entityService\n .withEntity(module.name, RootConfig.entities.educationLevel.name)\n .createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [AXMPersonCorePermissionKeys.PersonCore.EducationLevel.Management],\n },\n },\n {\n name: AXMPersonCoreMenuKeys.Genders,\n text: RootConfig.entities.gender.titlePlural,\n icon: RootConfig.entities.gender.icon,\n priority: 2,\n path: this.entityService.withEntity(module.name, RootConfig.entities.gender.name).createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [AXMPersonCorePermissionKeys.PersonCore.Gender.Management],\n },\n },\n {\n name: AXMPersonCoreMenuKeys.MaritalStatuses,\n text: RootConfig.entities.maritalStatus.titlePlural,\n icon: RootConfig.entities.maritalStatus.icon,\n priority: 3,\n path: this.entityService\n .withEntity(module.name, RootConfig.entities.maritalStatus.name)\n .createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [AXMPersonCorePermissionKeys.PersonCore.MaritalStatus.Management],\n },\n },\n {\n name: AXMPersonCoreMenuKeys.PersonTitles,\n text: RootConfig.entities.personTitle.titlePlural,\n icon: RootConfig.entities.personTitle.icon,\n priority: 4,\n path: this.entityService\n .withEntity(module.name, RootConfig.entities.personTitle.name)\n .createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [AXMPersonCorePermissionKeys.PersonCore.PersonTitle.Management],\n },\n },\n {\n name: AXMPersonCoreMenuKeys.PersonIdentifierTypes,\n text: RootConfig.entities.personIdentifierType.titlePlural,\n icon: RootConfig.entities.personIdentifierType.icon,\n priority: 5,\n path: this.entityService\n .withEntity(module.name, RootConfig.entities.personIdentifierType.name)\n .createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [AXMPersonCorePermissionKeys.PersonCore.PersonIdentifierType.Management],\n },\n },\n {\n name: AXMPersonCoreMenuKeys.Religions,\n text: RootConfig.entities.religion.titlePlural,\n icon: RootConfig.entities.religion.icon,\n priority: 6,\n path: this.entityService\n .withEntity(module.name, RootConfig.entities.religion.name)\n .createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [AXMPersonCorePermissionKeys.PersonCore.Religion.Management],\n },\n },\n {\n name: AXMPersonCoreMenuKeys.ContactRoles,\n text: RootConfig.entities.contactRole.titlePlural,\n icon: RootConfig.entities.contactRole.icon,\n priority: 7,\n path: this.entityService\n .withEntity(module.name, RootConfig.entities.contactRole.name)\n .createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [AXMPersonCorePermissionKeys.PersonCore.ContactRole.Management],\n },\n },\n ]);\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPPermissionDefinitionProvider, AXPPermissionDefinitionProviderContext } from '@acorex-platform/framework-client/auth';\nimport { inject } from '@angular/core';\nimport { RootConfig } from '@acorex-platform/module-person-core-client/contracts';\nimport { AXMPersonCorePermissionKeys } from '@acorex-platform/module-person-core-client/contracts';\n\n//#endregion\n\n//#region ---- Permission Definition Provider ----\n\nexport class AXMPersonCorePermissionDefinitionProvider implements AXPPermissionDefinitionProvider {\n private readonly translationService = inject(AXTranslationService);\n\n async define(context: AXPPermissionDefinitionProviderContext): Promise<void> {\n const keys = AXMPersonCorePermissionKeys.PersonCore;\n\n const educationLevelTrans = (action: string) =>\n this.translationService.translateAsync(\n `@person-core:education-levels.permissions.education-level.${action}.title`\n );\n\n const genderTrans = (action: string) =>\n this.translationService.translateAsync(`@person-core:genders.permissions.gender.${action}.title`);\n\n const maritalStatusTrans = (action: string) =>\n this.translationService.translateAsync(\n `@person-core:marital-statuses.permissions.marital-status.${action}.title`\n );\n\n const personTitleTrans = (action: string) =>\n this.translationService.translateAsync(\n `@person-core:person-titles.permissions.person-title.${action}.title`\n );\n\n const personIdentifierTypeTrans = (action: string) =>\n this.translationService.translateAsync(\n `@person-core:person-identifier-types.permissions.person-identifier-type.${action}.title`\n );\n\n const personRelationshipTrans = (action: string) =>\n this.translationService.translateAsync(\n `@person-core:person-relationships.permissions.person-relationship.${action}.title`\n );\n\n const religionTrans = (action: string) =>\n this.translationService.translateAsync(\n `@person-core:religions.permissions.religion.${action}.title`\n );\n\n const contactRoleTrans = (action: string) =>\n this.translationService.translateAsync(\n `@person-core:contact-roles.permissions.contact-role.${action}.title`\n );\n\n const personTrans = (action: string) =>\n this.translationService.translateAsync(`@person-core:persons.permissions.person.${action}.title`);\n\n context\n .addGroup(RootConfig.module.name, await this.translationService.translateAsync('@person-core:module.title'))\n\n .addPermission(keys.Person.Management, await personTrans('manage'))\n .endPermission()\n\n .addPermission(keys.EducationLevel.Management, await educationLevelTrans('manage'))\n .endPermission()\n\n .addPermission(keys.Gender.Management, await genderTrans('manage'))\n .endPermission()\n\n .addPermission(keys.MaritalStatus.Management, await maritalStatusTrans('manage'))\n .endPermission()\n\n .addPermission(keys.PersonTitle.Management, await personTitleTrans('manage'))\n .endPermission()\n\n .addPermission(keys.PersonIdentifierType.Management, await personIdentifierTypeTrans('manage'))\n .endPermission()\n\n .addPermission(keys.PersonRelationship.Management, await personRelationshipTrans('manage'))\n .endPermission()\n\n .addPermission(keys.Religion.Management, await religionTrans('manage'))\n .endPermission()\n\n .addPermission(keys.ContactRole.Management, await contactRoleTrans('manage'))\n .endPermission()\n\n .endGroup();\n }\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAAA;AAKA;AAEA;AAEA;;;AAGG;AACI,MAAM,kBAAkB,GAAsB;AACnD,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK;AAC9B,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;IAC5B,YAAY,EAAE,CAAC,oBAAoB,CAAC;AACpC,IAAA,QAAQ,EAAE,IAAI;CACf;AAED;;ACdA;AAEA,MAAM,yBAAyB,GAAG,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,CAAA,EAAI,UAAU,CAAC,QAAQ,CAAC,iBA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AAEb,aAAA,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,aAAa,CAAC,QAAQ,CAAC;AACrE,aAAA,aAAa;AAEb,aAAA,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,MAAM,gBAAgB,CAAC,QAAQ,CAAC;AAC3E,aAAA,aAAa;AAEb,aAAA,QAAQ,EAAE;IACf;AACD;AAED;;;;;;;AC7FA;;AAEG;;;;"}
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@acorex-platform/module-person-core-client",
3
+ "version": "0.0.15",
4
+ "sideEffects": false,
5
+ "peerDependencies": {
6
+ "@angular/common": "^21.0.0",
7
+ "@angular/core": "^21.0.0"
8
+ },
9
+ "dependencies": {
10
+ "tslib": "^2.3.0"
11
+ },
12
+ "module": "fesm2022/acorex-platform-module-person-core-client.mjs",
13
+ "typings": "types/acorex-platform-module-person-core-client.d.ts",
14
+ "exports": {
15
+ "./package.json": {
16
+ "default": "./package.json"
17
+ },
18
+ ".": {
19
+ "types": "./types/acorex-platform-module-person-core-client.d.ts",
20
+ "default": "./fesm2022/acorex-platform-module-person-core-client.mjs"
21
+ },
22
+ "./contracts": {
23
+ "types": "./types/acorex-platform-module-person-core-client-contracts.d.ts",
24
+ "default": "./fesm2022/acorex-platform-module-person-core-client-contracts.mjs"
25
+ }
26
+ },
27
+ "type": "module"
28
+ }