@acorex/modules 21.0.0-next.18 → 21.0.0-next.19
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/common/index.d.ts +1 -0
- package/contact-core/index.d.ts +90 -0
- package/fesm2022/acorex-modules-common.mjs +28 -0
- package/fesm2022/acorex-modules-common.mjs.map +1 -1
- package/fesm2022/acorex-modules-contact-core-emergency-service.entity-Cro3bM4G.mjs +318 -0
- package/fesm2022/acorex-modules-contact-core-emergency-service.entity-Cro3bM4G.mjs.map +1 -0
- package/fesm2022/acorex-modules-contact-core.mjs +247 -0
- package/fesm2022/acorex-modules-contact-core.mjs.map +1 -0
- package/fesm2022/acorex-modules-data-management.mjs +59 -0
- package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-health-core-allergy-type.entity-BaZ4OhHW.mjs +65 -0
- package/fesm2022/acorex-modules-health-core-allergy-type.entity-BaZ4OhHW.mjs.map +1 -0
- package/fesm2022/acorex-modules-health-core-blood-type.entity-Cu-UIgw4.mjs +120 -0
- package/fesm2022/acorex-modules-health-core-blood-type.entity-Cu-UIgw4.mjs.map +1 -0
- package/fesm2022/acorex-modules-health-core-body-part.entity-Dc2SIiB3.mjs +65 -0
- package/fesm2022/acorex-modules-health-core-body-part.entity-Dc2SIiB3.mjs.map +1 -0
- package/fesm2022/acorex-modules-health-core-chronic-condition-type.entity-B-9j3pNB.mjs +65 -0
- package/fesm2022/acorex-modules-health-core-chronic-condition-type.entity-B-9j3pNB.mjs.map +1 -0
- package/fesm2022/acorex-modules-health-core-disability-status.entity-hs3vA3zZ.mjs +120 -0
- package/fesm2022/acorex-modules-health-core-disability-status.entity-hs3vA3zZ.mjs.map +1 -0
- package/fesm2022/acorex-modules-health-core-injury-type.entity-BUA1VsE_.mjs +65 -0
- package/fesm2022/acorex-modules-health-core-injury-type.entity-BUA1VsE_.mjs.map +1 -0
- package/fesm2022/acorex-modules-health-core-vaccination-type.entity-DBdFkwx6.mjs +65 -0
- package/fesm2022/acorex-modules-health-core-vaccination-type.entity-DBdFkwx6.mjs.map +1 -0
- package/fesm2022/acorex-modules-health-core.mjs +487 -0
- package/fesm2022/acorex-modules-health-core.mjs.map +1 -0
- package/fesm2022/acorex-modules-person-core-religion.entity-Czb5aHb6.mjs +120 -0
- package/fesm2022/acorex-modules-person-core-religion.entity-Czb5aHb6.mjs.map +1 -0
- package/fesm2022/acorex-modules-person-core.mjs +177 -1
- package/fesm2022/acorex-modules-person-core.mjs.map +1 -1
- package/health-core/index.d.ts +156 -0
- package/package.json +18 -10
- package/person-core/index.d.ts +16 -1
package/common/index.d.ts
CHANGED
|
@@ -208,6 +208,7 @@ declare const AXPCommonMenuKeys: {
|
|
|
208
208
|
readonly Administration: "Common:Menu:Administration";
|
|
209
209
|
readonly Help: "Common:Menu:Help";
|
|
210
210
|
readonly Configuration: "Common:Menu:Configuration";
|
|
211
|
+
readonly Contacts: "Common:Menu:Contacts";
|
|
211
212
|
};
|
|
212
213
|
|
|
213
214
|
declare class AXMSettingProvider implements AXPSettingDefinitionProvider {
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { AXPEntity, AXPMenuProvider, AXPMenuProviderContext } from '@acorex/platform/common';
|
|
3
|
+
import { AXPEntityDefinitionLoader } from '@acorex/platform/layout/entity';
|
|
4
|
+
import { AXPPermissionDefinitionProvider, AXPPermissionDefinitionProviderContext } from '@acorex/platform/auth';
|
|
5
|
+
|
|
6
|
+
declare class AXPContactCoreEmergencyServiceEntityModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPContactCoreEmergencyServiceEntityModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPContactCoreEmergencyServiceEntityModule, never, never, never>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXPContactCoreEmergencyServiceEntityModule>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare class AXPContactCoreModule {
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPContactCoreModule, never>;
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPContactCoreModule, never, [typeof AXPContactCoreEmergencyServiceEntityModule], never>;
|
|
15
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXPContactCoreModule>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare const RootConfig: {
|
|
19
|
+
config: {
|
|
20
|
+
i18n: string;
|
|
21
|
+
module: string;
|
|
22
|
+
};
|
|
23
|
+
module: {
|
|
24
|
+
name: string;
|
|
25
|
+
title: string;
|
|
26
|
+
icon: string;
|
|
27
|
+
};
|
|
28
|
+
entities: {
|
|
29
|
+
emergencyService: {
|
|
30
|
+
name: string;
|
|
31
|
+
source: string;
|
|
32
|
+
title: string;
|
|
33
|
+
titlePlural: string;
|
|
34
|
+
icon: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
interface AXPContactCoreEmergencyServiceEntityModel {
|
|
40
|
+
id: string;
|
|
41
|
+
title: string;
|
|
42
|
+
description?: string | null;
|
|
43
|
+
phoneNumber?: string | null;
|
|
44
|
+
alternateNumbers?: string | null;
|
|
45
|
+
textNumber?: string | null;
|
|
46
|
+
countryId?: string | null;
|
|
47
|
+
country?: {
|
|
48
|
+
id: string;
|
|
49
|
+
title: string;
|
|
50
|
+
} | null;
|
|
51
|
+
availability?: string | null;
|
|
52
|
+
whenToCall?: string | null;
|
|
53
|
+
whenNotToCall?: string | null;
|
|
54
|
+
instructions?: string | null;
|
|
55
|
+
categoryIds?: string[];
|
|
56
|
+
categories?: Array<{
|
|
57
|
+
id: string;
|
|
58
|
+
title: string;
|
|
59
|
+
}>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
declare class AXPContactCoreEntityProvider implements AXPEntityDefinitionLoader {
|
|
63
|
+
private readonly injector;
|
|
64
|
+
get(moduleName: string, entityName: string): Promise<AXPEntity | null>;
|
|
65
|
+
list(): Promise<{
|
|
66
|
+
name: string;
|
|
67
|
+
module: string;
|
|
68
|
+
}[]>;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
declare class AXPContactCoreMenuProvider implements AXPMenuProvider {
|
|
72
|
+
private readonly entityService;
|
|
73
|
+
provide(context: AXPMenuProviderContext): Promise<void>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare class AXPContactCorePermissionDefinitionProvider implements AXPPermissionDefinitionProvider {
|
|
77
|
+
private readonly translationService;
|
|
78
|
+
define(context: AXPPermissionDefinitionProviderContext): Promise<void>;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare const AXPContactCorePermissionKeys: {
|
|
82
|
+
readonly ContactCore: {
|
|
83
|
+
readonly EmergencyService: {
|
|
84
|
+
readonly Management: "ContactCore:Permission:EmergencyService.Management";
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export { AXPContactCoreEntityProvider, AXPContactCoreMenuProvider, AXPContactCoreModule, AXPContactCorePermissionDefinitionProvider, AXPContactCorePermissionKeys, RootConfig };
|
|
90
|
+
export type { AXPContactCoreEmergencyServiceEntityModel };
|
|
@@ -1844,6 +1844,11 @@ class AXMEntityCategoryProvider {
|
|
|
1844
1844
|
async get(moduleName, entityName) {
|
|
1845
1845
|
// Generic per-entity Category provider (works for any module)
|
|
1846
1846
|
if (entityName.endsWith('Category')) {
|
|
1847
|
+
// Prefer custom entity definition: if another loader provides this category entity, skip generation
|
|
1848
|
+
const customEntity = await this.tryOtherLoaders(moduleName, entityName);
|
|
1849
|
+
if (customEntity) {
|
|
1850
|
+
return null;
|
|
1851
|
+
}
|
|
1847
1852
|
const fullKey = `${moduleName}.${entityName}`;
|
|
1848
1853
|
const dataService = runInInjectionContext(this.injector, () => new AXMEntityCrudServiceImpl(fullKey));
|
|
1849
1854
|
// Check if base entity has appearance enabled using lazy injection
|
|
@@ -2076,6 +2081,28 @@ class AXMEntityCategoryProvider {
|
|
|
2076
2081
|
}
|
|
2077
2082
|
return null;
|
|
2078
2083
|
}
|
|
2084
|
+
/**
|
|
2085
|
+
* Asks other entity loaders (excluding this provider) if they provide the given category entity.
|
|
2086
|
+
* If a custom entity file exists for this key, that loader will return it and we skip generating.
|
|
2087
|
+
*/
|
|
2088
|
+
async tryOtherLoaders(moduleName, entityName) {
|
|
2089
|
+
try {
|
|
2090
|
+
const raw = runInInjectionContext(this.injector, () => inject(AXP_ENTITY_DEFINITION_LOADER));
|
|
2091
|
+
const arr = Array.isArray(raw) ? raw : raw ? [raw] : [];
|
|
2092
|
+
for (const p of arr) {
|
|
2093
|
+
const loader = p instanceof Promise ? await p : p;
|
|
2094
|
+
if (loader === this)
|
|
2095
|
+
continue;
|
|
2096
|
+
const entity = await loader.get(moduleName, entityName);
|
|
2097
|
+
if (entity)
|
|
2098
|
+
return entity;
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
catch {
|
|
2102
|
+
// Loaders not available (e.g. circular context), proceed with generation
|
|
2103
|
+
}
|
|
2104
|
+
return null;
|
|
2105
|
+
}
|
|
2079
2106
|
async list() {
|
|
2080
2107
|
return Promise.resolve([]);
|
|
2081
2108
|
}
|
|
@@ -6161,6 +6188,7 @@ const AXPCommonMenuKeys = {
|
|
|
6161
6188
|
Administration: 'Common:Menu:Administration',
|
|
6162
6189
|
Help: 'Common:Menu:Help',
|
|
6163
6190
|
Configuration: 'Common:Menu:Configuration',
|
|
6191
|
+
Contacts: 'Common:Menu:Contacts',
|
|
6164
6192
|
};
|
|
6165
6193
|
|
|
6166
6194
|
class AXMMenuProvider {
|