@acorex-platform/module-contact-core-client 0.0.21

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,68 @@
1
+ const AXPContactCoreMenuKeys = {
2
+ Root: 'ContactCore:Menu',
3
+ EmergencyServices: 'ContactCore:Menu:EmergencyServices',
4
+ ContactsDivider1: 'Common:Menu:Contacts:Divider1',
5
+ ContactsDivider2: 'Common:Menu:Contacts:Divider2',
6
+ ContactsDivider3: 'Common:Menu:Contacts:Divider3',
7
+ };
8
+
9
+ /**
10
+ * Collaboration capabilities used by this module.
11
+ * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).
12
+ */
13
+ const AXPCollaborationPermissionKeys = {
14
+ Access: 'Collaboration:Permission:Access',
15
+ MaintainConversations: 'Collaboration:Permission:MaintainConversations',
16
+ MaintainMeetings: 'Collaboration:Permission:MaintainMeetings',
17
+ MaintainCalendars: 'Collaboration:Permission:MaintainCalendars',
18
+ MaintainCommunications: 'Collaboration:Permission:MaintainCommunications',
19
+ MaintainReservations: 'Collaboration:Permission:MaintainReservations',
20
+ MaintainHelpDesk: 'Collaboration:Permission:MaintainHelpDesk',
21
+ Setup: 'Collaboration:Permission:Setup',
22
+ };
23
+ /**
24
+ * @deprecated Prefer {@link AXPCollaborationPermissionKeys}.
25
+ * Legacy nested shape kept so existing imports compile during migration.
26
+ */
27
+ const AXPContactCorePermissionKeys = {
28
+ ContactCore: {
29
+ EmergencyService: {
30
+ Management: AXPCollaborationPermissionKeys.Setup,
31
+ },
32
+ },
33
+ };
34
+
35
+ const config = {
36
+ i18n: 'contact-core',
37
+ module: 'ContactCore',
38
+ };
39
+ const RootConfig = {
40
+ config,
41
+ module: {
42
+ route: 'contact-core',
43
+ name: config.module,
44
+ title: '@contact-core:module.title',
45
+ icon: 'fa-light fa-address-book',
46
+ },
47
+ entities: {
48
+ emergencyService: {
49
+ name: 'EmergencyService',
50
+ source: `${config.module}.EmergencyService`,
51
+ title: '@contact-core:emergency-services.entities.emergency-service.title',
52
+ titlePlural: '@contact-core:emergency-services.entities.emergency-service.plural',
53
+ icon: 'fa-light fa-siren',
54
+ },
55
+ },
56
+ };
57
+
58
+ //#region ---- Emergency Service Model ----
59
+ //#endregion
60
+
61
+ //#region ---- Contracts barrel ----
62
+
63
+ /**
64
+ * Generated bundle index. Do not edit.
65
+ */
66
+
67
+ export { AXPCollaborationPermissionKeys, AXPContactCoreMenuKeys, AXPContactCorePermissionKeys, RootConfig };
68
+ //# sourceMappingURL=acorex-platform-module-contact-core-client-contracts.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-contact-core-client-contracts.mjs","sources":["../../../../libs/modules/contact-core/contracts/src/menu.keys.ts","../../../../libs/modules/contact-core/contracts/src/permission.keys.ts","../../../../libs/modules/contact-core/contracts/src/root-config.ts","../../../../libs/modules/contact-core/contracts/src/entities/emergency-service/emergency-service.types.ts","../../../../libs/modules/contact-core/contracts/src/index.ts","../../../../libs/modules/contact-core/contracts/src/acorex-platform-module-contact-core-client-contracts.ts"],"sourcesContent":["export const AXPContactCoreMenuKeys = {\n Root: 'ContactCore:Menu',\n EmergencyServices: 'ContactCore:Menu:EmergencyServices',\n ContactsDivider1: 'Common:Menu:Contacts:Divider1',\n ContactsDivider2: 'Common:Menu:Contacts:Divider2',\n ContactsDivider3: 'Common:Menu:Contacts:Divider3',\n} as const;\n","/**\n * Collaboration capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPCollaborationPermissionKeys = {\n Access: 'Collaboration:Permission:Access',\n MaintainConversations: 'Collaboration:Permission:MaintainConversations',\n MaintainMeetings: 'Collaboration:Permission:MaintainMeetings',\n MaintainCalendars: 'Collaboration:Permission:MaintainCalendars',\n MaintainCommunications: 'Collaboration:Permission:MaintainCommunications',\n MaintainReservations: 'Collaboration:Permission:MaintainReservations',\n MaintainHelpDesk: 'Collaboration:Permission:MaintainHelpDesk',\n Setup: 'Collaboration:Permission:Setup',\n} as const;\n\n/**\n * @deprecated Prefer {@link AXPCollaborationPermissionKeys}.\n * Legacy nested shape kept so existing imports compile during migration.\n */\nexport const AXPContactCorePermissionKeys = {\n ContactCore: {\n EmergencyService: {\n Management: AXPCollaborationPermissionKeys.Setup,\n },\n },\n} as const;\n","const config = {\n i18n: 'contact-core',\n module: 'ContactCore',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'contact-core',\n name: config.module,\n title: '@contact-core:module.title',\n icon: 'fa-light fa-address-book',\n },\n entities: {\n emergencyService: {\n name: 'EmergencyService',\n source: `${config.module}.EmergencyService`,\n title: '@contact-core:emergency-services.entities.emergency-service.title',\n titlePlural: '@contact-core:emergency-services.entities.emergency-service.plural',\n icon: 'fa-light fa-siren',\n },\n },\n} as const;\n","//#region ---- Emergency Service Model ----\n\nimport { AXPCategoryListItem, AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\n\nexport interface AXPContactCoreEmergencyServiceEntityModel {\n id: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n phoneNumber?: string | null;\n alternateNumbers?: string | null;\n textNumber?: string | null;\n countryId?: string | null;\n country?: { id: string; title: AXPMultiLanguageString } | null;\n availability?: string | null;\n whenToCall?: AXPMultiLanguageString | null;\n whenNotToCall?: AXPMultiLanguageString | null;\n instructions?: AXPMultiLanguageString | null;\n categoryIds?: string[];\n categories?: AXPCategoryListItem[];\n}\n\n//#endregion\n","//#region ---- Contracts barrel ----\n\nexport * from './menu.keys';\nexport * from './permission.keys';\nexport * from './root-config';\n\n//#endregion\n\nexport * from './entities';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAO,MAAM,sBAAsB,GAAG;AACpC,IAAA,IAAI,EAAE,kBAAkB;AACxB,IAAA,iBAAiB,EAAE,oCAAoC;AACvD,IAAA,gBAAgB,EAAE,+BAA+B;AACjD,IAAA,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PEntityService } from '@acorex-platform/framework-client/layout/entity';
3
+ import { inject } from '@angular/core';
4
+ import { RootConfig, AXPCollaborationPermissionKeys, AXPContactCoreMenuKeys } from '@acorex-platform/module-contact-core-client/contracts';
5
+
6
+ //#region ---- Imports ----
7
+ //#endregion
8
+ //#region ---- Menu Provider ----
9
+ class AXMMenuProvider {
10
+ constructor() {
11
+ this.entityService = inject(AXPEntityService);
12
+ }
13
+ async provide(context) {
14
+ const module = RootConfig.module;
15
+ const contactsMenu = context.find(AXPCommonMenuKeys.Contacts);
16
+ if (!contactsMenu.exists) {
17
+ context.addItems([
18
+ {
19
+ name: AXPCommonMenuKeys.Contacts,
20
+ priority: 8010,
21
+ text: '@general:menus.contacts.title',
22
+ icon: 'fa-light fa-address-book',
23
+ type: 'menu',
24
+ children: [],
25
+ },
26
+ ]);
27
+ }
28
+ context.find(AXPCommonMenuKeys.Contacts).addItems([
29
+ {
30
+ name: AXPContactCoreMenuKeys.EmergencyServices,
31
+ priority: 45,
32
+ text: RootConfig.entities.emergencyService.titlePlural,
33
+ icon: RootConfig.entities.emergencyService.icon,
34
+ path: this.entityService.createPath(module.name, RootConfig.entities.emergencyService.name),
35
+ policy: {
36
+ permissions: [AXPCollaborationPermissionKeys.Setup],
37
+ },
38
+ },
39
+ {
40
+ name: AXPContactCoreMenuKeys.ContactsDivider1,
41
+ type: 'break',
42
+ priority: 15,
43
+ text: '',
44
+ },
45
+ {
46
+ name: AXPContactCoreMenuKeys.ContactsDivider2,
47
+ type: 'break',
48
+ priority: 25,
49
+ text: '',
50
+ },
51
+ {
52
+ name: AXPContactCoreMenuKeys.ContactsDivider3,
53
+ type: 'break',
54
+ priority: 35,
55
+ text: '',
56
+ },
57
+ ]);
58
+ }
59
+ }
60
+ //#endregion
61
+
62
+ export { AXMMenuProvider };
63
+ //# sourceMappingURL=acorex-platform-module-contact-core-client-menu.provider-CI8cSjpt.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-contact-core-client-menu.provider-CI8cSjpt.mjs","sources":["../../../../libs/modules/contact-core/client/src/lib/menu.provider.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport {\n AXPCommonMenuKeys\n} 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 {\n RootConfig,\n AXPCollaborationPermissionKeys\n} from '@acorex-platform/module-contact-core-client/contracts';\nimport { AXPContactCoreMenuKeys } from '@acorex-platform/module-contact-core-client/contracts';\n\n//#endregion\n\n//#region ---- Menu Provider ----\n\nexport class AXMMenuProvider implements AXPMenuProvider {\n private readonly entityService = inject(AXPEntityService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const module = RootConfig.module;\n\n const contactsMenu = context.find(AXPCommonMenuKeys.Contacts);\n if (!contactsMenu.exists) {\n context.addItems([\n {\n name: AXPCommonMenuKeys.Contacts,\n priority: 8010,\n text: '@general:menus.contacts.title',\n icon: 'fa-light fa-address-book',\n type: 'menu',\n children: [],\n },\n ]);\n }\n\n context.find(AXPCommonMenuKeys.Contacts).addItems([\n {\n name: AXPContactCoreMenuKeys.EmergencyServices,\n priority: 45,\n text: RootConfig.entities.emergencyService.titlePlural,\n icon: RootConfig.entities.emergencyService.icon,\n path: this.entityService.createPath(module.name, RootConfig.entities.emergencyService.name),\n policy: {\n permissions: [AXPCollaborationPermissionKeys.Setup],\n },\n },\n {\n name: AXPContactCoreMenuKeys.ContactsDivider1,\n type: 'break',\n priority: 15,\n text: '',\n },\n {\n name: AXPContactCoreMenuKeys.ContactsDivider2,\n type: 'break',\n priority: 25,\n text: '',\n },\n {\n name: AXPContactCoreMenuKeys.ContactsDivider3,\n type: 'break',\n priority: 35,\n text: '',\n },\n ]);\n }\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;AAAA;AAcA;AAEA;MAEa,eAAe,CAAA;AAA5B,IAAA,WAA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E,EAAE;AACZ,gBAAA,IAAI,EAAE,EAAE;AACT,aAAA;AACD,YAAA;gBACE,IAAI,EAAE,sBAAsB,CAAC,gBAAgB;AAC7C,gBAAA,IAAI,EAAE,OAAO;AACb,gBAAA,QAAQ,EAAE,EAAE;AACZ,gBAAA,IAAI,EAAE,EAAE;AACT,aAAA;AACD,YAAA;gBACE,IAAI,EAAE,sBAAsB,CAAC,gBAAgB;AAC7C,gBAAA,IAAI,EAAE,OAAO;AACb,gBAAA,QAAQ,EAAE,EAAE;AACZ,gBAAA,IAAI,EAAE,EAAE;AACT,aAAA;AACF,SAAA,CAAC;IACJ;AACD;AAED;;;;"}
@@ -0,0 +1,24 @@
1
+ import { AXPCommonPermissionGroupKeys } from '@acorex-platform/module-common-client/contracts';
2
+ import * as i0 from '@angular/core';
3
+ import { Injectable } from '@angular/core';
4
+
5
+ //#endregion
6
+ //#region ----- Permission Definition Provider -----
7
+ /**
8
+ * Ensures Collaboration root exists for contact-core.
9
+ */
10
+ class AXMPermissionDefinitionProvider {
11
+ async define(context) {
12
+ const groups = AXPCommonPermissionGroupKeys;
13
+ const G = '@common:permission-groups';
14
+ context.addGroup(groups.Collaboration.Root, `${G}.collaboration.title`, `${G}.collaboration.description`, { order: 80 });
15
+ }
16
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMPermissionDefinitionProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
17
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMPermissionDefinitionProvider }); }
18
+ }
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMPermissionDefinitionProvider, decorators: [{
20
+ type: Injectable
21
+ }] });
22
+
23
+ export { AXMPermissionDefinitionProvider };
24
+ //# sourceMappingURL=acorex-platform-module-contact-core-client-permission-definition.provider-BslWVcg8.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-contact-core-client-permission-definition.provider-BslWVcg8.mjs","sources":["../../../../libs/modules/contact-core/client/src/lib/permission-definition.provider.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport {\n AXPPermissionDefinitionProvider,\n AXPPermissionDefinitionProviderContext,\n} from '@acorex-platform/framework-client/auth';\nimport {\n AXPCommonPermissionGroupKeys\n} from '@acorex-platform/module-common-client/contracts';\n\nimport { Injectable } from '@angular/core';\n\n//#endregion\n\n//#region ----- Permission Definition Provider -----\n\n/**\n * Ensures Collaboration root exists for contact-core.\n */\n@Injectable()\nexport class AXMPermissionDefinitionProvider implements AXPPermissionDefinitionProvider {\n async define(context: AXPPermissionDefinitionProviderContext): Promise<void> {\n const groups = AXPCommonPermissionGroupKeys;\n const G = '@common:permission-groups';\n\n context.addGroup(groups.Collaboration.Root, `${G}.collaboration.title`, `${G}.collaboration.description`, { order: 80 });\n }\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAYA;AAEA;AAEA;;AAEG;MAEU,+BAA+B,CAAA;IAC1C,MAAM,MAAM,CAAC,OAA+C,EAAA;QAC1D,MAAM,MAAM,GAAG,4BAA4B;QAC3C,MAAM,CAAC,GAAG,2BAA2B;QAErC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,CAAA,EAAG,CAAC,sBAAsB,EAAE,CAAA,EAAG,CAAC,CAAA,0BAAA,CAA4B,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IAC1H;8GANW,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAA/B,+BAA+B,EAAA,CAAA,CAAA;;2FAA/B,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAD3C;;;;;"}
@@ -0,0 +1,63 @@
1
+ import * as i0 from '@angular/core';
2
+ import { NgModule } from '@angular/core';
3
+ import { AXP_MENU_PROVIDER } from '@acorex-platform/framework-client/common';
4
+ import { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';
5
+ import { AXP_MODULE_MANIFEST_PROVIDER, provideLazyProvider } from '@acorex-platform/framework-client/core';
6
+ import { RootConfig } from '@acorex-platform/module-contact-core-client/contracts';
7
+
8
+ //#region ---- Imports ----
9
+ //#endregion
10
+ //#region ---- Manifest Definition ----
11
+ /**
12
+ * Contact Core Module Manifest.
13
+ * Defines module metadata for shared contact reference data and emergency services.
14
+ */
15
+ const ContactCoreManifest = {
16
+ name: RootConfig.module.name,
17
+ version: '1.0.0',
18
+ title: RootConfig.module.title,
19
+ icon: RootConfig.module.icon,
20
+ i18n: RootConfig.config.i18n,
21
+ type: 'domain',
22
+ domain: 'customer-supplier',
23
+ };
24
+ //#endregion
25
+
26
+ //#region ---- Imports ----
27
+ //#endregion
28
+ //#region ---- Module ----
29
+ class AXMContactCoreModule {
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMContactCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
31
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: AXMContactCoreModule }); }
32
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMContactCoreModule, providers: [
33
+ {
34
+ provide: AXP_MODULE_MANIFEST_PROVIDER,
35
+ useValue: ContactCoreManifest,
36
+ multi: true,
37
+ },
38
+ provideLazyProvider(AXP_PERMISSION_DEFINITION_PROVIDER, () => import('./acorex-platform-module-contact-core-client-permission-definition.provider-BslWVcg8.mjs').then((m) => m.AXMPermissionDefinitionProvider)),
39
+ provideLazyProvider(AXP_MENU_PROVIDER, () => import('./acorex-platform-module-contact-core-client-menu.provider-CI8cSjpt.mjs').then((m) => m.AXMMenuProvider)),
40
+ ] }); }
41
+ }
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMContactCoreModule, decorators: [{
43
+ type: NgModule,
44
+ args: [{
45
+ imports: [],
46
+ providers: [
47
+ {
48
+ provide: AXP_MODULE_MANIFEST_PROVIDER,
49
+ useValue: ContactCoreManifest,
50
+ multi: true,
51
+ },
52
+ provideLazyProvider(AXP_PERMISSION_DEFINITION_PROVIDER, () => import('./acorex-platform-module-contact-core-client-permission-definition.provider-BslWVcg8.mjs').then((m) => m.AXMPermissionDefinitionProvider)),
53
+ provideLazyProvider(AXP_MENU_PROVIDER, () => import('./acorex-platform-module-contact-core-client-menu.provider-CI8cSjpt.mjs').then((m) => m.AXMMenuProvider)),
54
+ ],
55
+ }]
56
+ }] });
57
+
58
+ /**
59
+ * Generated bundle index. Do not edit.
60
+ */
61
+
62
+ export { AXMContactCoreModule };
63
+ //# sourceMappingURL=acorex-platform-module-contact-core-client.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-contact-core-client.mjs","sources":["../../../../libs/modules/contact-core/client/src/lib/manifest.ts","../../../../libs/modules/contact-core/client/src/lib/contact-core.module.ts","../../../../libs/modules/contact-core/client/src/acorex-platform-module-contact-core-client.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPModuleManifest } from '@acorex-platform/framework-client/core';\nimport { RootConfig } from '@acorex-platform/module-contact-core-client/contracts';\n\n//#endregion\n\n//#region ---- Manifest Definition ----\n\n/**\n * Contact Core Module Manifest.\n * Defines module metadata for shared contact reference data and emergency services.\n */\nexport const ContactCoreManifest: 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 type: 'domain',\n domain: 'customer-supplier',\n};\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { NgModule } from '@angular/core';\nimport { AXP_MENU_PROVIDER } from '@acorex-platform/framework-client/common';\nimport { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';\nimport { AXP_MODULE_MANIFEST_PROVIDER, provideLazyProvider } from '@acorex-platform/framework-client/core';\nimport { ContactCoreManifest } from './manifest';\n\n//#endregion\n\n//#region ---- Module ----\n\n@NgModule({\n imports: [],\n providers: [\n {\n provide: AXP_MODULE_MANIFEST_PROVIDER,\n useValue: ContactCoreManifest,\n multi: true,\n },\n provideLazyProvider(AXP_PERMISSION_DEFINITION_PROVIDER, () =>\n import('./permission-definition.provider').then((m) => m.AXMPermissionDefinitionProvider),\n ),\n provideLazyProvider(AXP_MENU_PROVIDER, () =>\n import('./menu.provider').then((m) => m.AXMMenuProvider),\n ),\n \n ],\n})\nexport class AXMContactCoreModule {}\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,mBAAmB,GAAsB;AACpD,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;AAC5B,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,MAAM,EAAE,mBAAmB;CAC5B;AAED;;ACvBA;AAQA;AAEA;MAmBa,oBAAoB,CAAA;8GAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAApB,oBAAoB,EAAA,CAAA,CAAA;AAApB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,EAAA,SAAA,EAfpB;AACT,YAAA;AACE,gBAAA,OAAO,EAAE,4BAA4B;AACrC,gBAAA,QAAQ,EAAE,mBAAmB;AAC7B,gBAAA,KAAK,EAAE,IAAI;AACZ,aAAA;YACD,mBAAmB,CAAC,kCAAkC,EAAE,MACtD,OAAO,0FAAkC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,+BAA+B,CAAC,CAC1F;YACD,mBAAmB,CAAC,iBAAiB,EAAE,MACrC,OAAO,yEAAiB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,eAAe,CAAC,CACzD;AAEF,SAAA,EAAA,CAAA,CAAA;;2FAEU,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAjBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,4BAA4B;AACrC,4BAAA,QAAQ,EAAE,mBAAmB;AAC7B,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;wBACD,mBAAmB,CAAC,kCAAkC,EAAE,MACtD,OAAO,0FAAkC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,+BAA+B,CAAC,CAC1F;wBACD,mBAAmB,CAAC,iBAAiB,EAAE,MACrC,OAAO,yEAAiB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,eAAe,CAAC,CACzD;AAEF,qBAAA;AACF,iBAAA;;;AC5BD;;AAEG;;;;"}
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@acorex-platform/module-contact-core-client",
3
+ "version": "0.0.21",
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-contact-core-client.mjs",
13
+ "typings": "types/acorex-platform-module-contact-core-client.d.ts",
14
+ "exports": {
15
+ "./package.json": {
16
+ "default": "./package.json"
17
+ },
18
+ ".": {
19
+ "types": "./types/acorex-platform-module-contact-core-client.d.ts",
20
+ "default": "./fesm2022/acorex-platform-module-contact-core-client.mjs"
21
+ },
22
+ "./contracts": {
23
+ "types": "./types/acorex-platform-module-contact-core-client-contracts.d.ts",
24
+ "default": "./fesm2022/acorex-platform-module-contact-core-client-contracts.mjs"
25
+ }
26
+ },
27
+ "type": "module"
28
+ }
@@ -0,0 +1,80 @@
1
+ import { AXPMultiLanguageString, AXPCategoryListItem } from '@acorex-platform/framework-shared/core';
2
+
3
+ declare const AXPContactCoreMenuKeys: {
4
+ readonly Root: "ContactCore:Menu";
5
+ readonly EmergencyServices: "ContactCore:Menu:EmergencyServices";
6
+ readonly ContactsDivider1: "Common:Menu:Contacts:Divider1";
7
+ readonly ContactsDivider2: "Common:Menu:Contacts:Divider2";
8
+ readonly ContactsDivider3: "Common:Menu:Contacts:Divider3";
9
+ };
10
+
11
+ /**
12
+ * Collaboration capabilities used by this module.
13
+ * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).
14
+ */
15
+ declare const AXPCollaborationPermissionKeys: {
16
+ readonly Access: "Collaboration:Permission:Access";
17
+ readonly MaintainConversations: "Collaboration:Permission:MaintainConversations";
18
+ readonly MaintainMeetings: "Collaboration:Permission:MaintainMeetings";
19
+ readonly MaintainCalendars: "Collaboration:Permission:MaintainCalendars";
20
+ readonly MaintainCommunications: "Collaboration:Permission:MaintainCommunications";
21
+ readonly MaintainReservations: "Collaboration:Permission:MaintainReservations";
22
+ readonly MaintainHelpDesk: "Collaboration:Permission:MaintainHelpDesk";
23
+ readonly Setup: "Collaboration:Permission:Setup";
24
+ };
25
+ /**
26
+ * @deprecated Prefer {@link AXPCollaborationPermissionKeys}.
27
+ * Legacy nested shape kept so existing imports compile during migration.
28
+ */
29
+ declare const AXPContactCorePermissionKeys: {
30
+ readonly ContactCore: {
31
+ readonly EmergencyService: {
32
+ readonly Management: "Collaboration:Permission:Setup";
33
+ };
34
+ };
35
+ };
36
+
37
+ declare const RootConfig: {
38
+ readonly config: {
39
+ i18n: string;
40
+ module: string;
41
+ };
42
+ readonly module: {
43
+ readonly route: "contact-core";
44
+ readonly name: string;
45
+ readonly title: "@contact-core:module.title";
46
+ readonly icon: "fa-light fa-address-book";
47
+ };
48
+ readonly entities: {
49
+ readonly emergencyService: {
50
+ readonly name: "EmergencyService";
51
+ readonly source: `${string}.EmergencyService`;
52
+ readonly title: "@contact-core:emergency-services.entities.emergency-service.title";
53
+ readonly titlePlural: "@contact-core:emergency-services.entities.emergency-service.plural";
54
+ readonly icon: "fa-light fa-siren";
55
+ };
56
+ };
57
+ };
58
+
59
+ interface AXPContactCoreEmergencyServiceEntityModel {
60
+ id: string;
61
+ title: AXPMultiLanguageString;
62
+ description?: AXPMultiLanguageString | null;
63
+ phoneNumber?: string | null;
64
+ alternateNumbers?: string | null;
65
+ textNumber?: string | null;
66
+ countryId?: string | null;
67
+ country?: {
68
+ id: string;
69
+ title: AXPMultiLanguageString;
70
+ } | null;
71
+ availability?: string | null;
72
+ whenToCall?: AXPMultiLanguageString | null;
73
+ whenNotToCall?: AXPMultiLanguageString | null;
74
+ instructions?: AXPMultiLanguageString | null;
75
+ categoryIds?: string[];
76
+ categories?: AXPCategoryListItem[];
77
+ }
78
+
79
+ export { AXPCollaborationPermissionKeys, AXPContactCoreMenuKeys, AXPContactCorePermissionKeys, RootConfig };
80
+ export type { AXPContactCoreEmergencyServiceEntityModel };
@@ -0,0 +1,9 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ declare class AXMContactCoreModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMContactCoreModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXMContactCoreModule, never, never, never>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXMContactCoreModule>;
7
+ }
8
+
9
+ export { AXMContactCoreModule };