@acorex-platform/module-supplier-management-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,65 @@
1
+ //#region ---- Feature Keys ----
2
+ // Management feature removed - module name is used directly as feature key
3
+ const AXPSupplierManagementFeatureKeys = {};
4
+ //#endregion
5
+
6
+ const AXPSupplierManagementMenuKeys = {
7
+ Root: 'SupplierManagement:Menu',
8
+ Suppliers: 'SupplierManagement:Menu:Suppliers',
9
+ };
10
+
11
+ /**
12
+ * Procurement capabilities used by this module.
13
+ * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).
14
+ */
15
+ const AXPProcurementPermissionKeys = {
16
+ Access: 'Procurement:Permission:Access',
17
+ MaintainSuppliers: 'Procurement:Permission:MaintainSuppliers',
18
+ MaintainProcurement: 'Procurement:Permission:MaintainProcurement',
19
+ Setup: 'Procurement:Permission:Setup',
20
+ };
21
+ /**
22
+ * @deprecated Prefer {@link AXPProcurementPermissionKeys}.
23
+ * Legacy nested shape kept so existing imports compile during migration.
24
+ */
25
+ const AXPSupplierManagementPermissionKeys = {
26
+ Suppliers: {
27
+ Management: AXPProcurementPermissionKeys.MaintainSuppliers,
28
+ View: AXPProcurementPermissionKeys.MaintainSuppliers,
29
+ Create: AXPProcurementPermissionKeys.MaintainSuppliers,
30
+ Edit: AXPProcurementPermissionKeys.MaintainSuppliers,
31
+ Delete: AXPProcurementPermissionKeys.MaintainSuppliers,
32
+ },
33
+ };
34
+
35
+ const config = {
36
+ i18n: 'supplier-management',
37
+ module: 'SupplierManagement',
38
+ };
39
+ const RootConfig = {
40
+ config,
41
+ module: {
42
+ route: 'supplier-management',
43
+ name: config.module,
44
+ title: `@${config.i18n}:module.title`,
45
+ icon: 'fa-light fa-truck',
46
+ },
47
+ entities: {
48
+ supplier: {
49
+ name: 'Supplier',
50
+ source: `${config.module}.Supplier`,
51
+ title: `@${config.i18n}:suppliers.entities.supplier.title`,
52
+ titlePlural: `@${config.i18n}:suppliers.entities.supplier.plural`,
53
+ icon: 'fa-light fa-truck',
54
+ },
55
+ },
56
+ };
57
+
58
+ //#region ---- Contracts barrel ----
59
+
60
+ /**
61
+ * Generated bundle index. Do not edit.
62
+ */
63
+
64
+ export { AXPProcurementPermissionKeys, AXPSupplierManagementFeatureKeys, AXPSupplierManagementMenuKeys, AXPSupplierManagementPermissionKeys, RootConfig };
65
+ //# sourceMappingURL=acorex-platform-module-supplier-management-client-contracts.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-supplier-management-client-contracts.mjs","sources":["../../../../libs/modules/supplier-management/contracts/src/features.keys.ts","../../../../libs/modules/supplier-management/contracts/src/menu.keys.ts","../../../../libs/modules/supplier-management/contracts/src/permission.keys.ts","../../../../libs/modules/supplier-management/contracts/src/root-config.ts","../../../../libs/modules/supplier-management/contracts/src/index.ts","../../../../libs/modules/supplier-management/contracts/src/acorex-platform-module-supplier-management-client-contracts.ts"],"sourcesContent":["//#region ---- Feature Keys ----\n\n// Management feature removed - module name is used directly as feature key\nexport const AXPSupplierManagementFeatureKeys = {} as const;\n\n//#endregion\n\n","export const AXPSupplierManagementMenuKeys = {\n Root: 'SupplierManagement:Menu',\n Suppliers: 'SupplierManagement:Menu:Suppliers',\n} as const;\n\n","/**\n * Procurement capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPProcurementPermissionKeys = {\n Access: 'Procurement:Permission:Access',\n MaintainSuppliers: 'Procurement:Permission:MaintainSuppliers',\n MaintainProcurement: 'Procurement:Permission:MaintainProcurement',\n Setup: 'Procurement:Permission:Setup',\n} as const;\n\n/**\n * @deprecated Prefer {@link AXPProcurementPermissionKeys}.\n * Legacy nested shape kept so existing imports compile during migration.\n */\nexport const AXPSupplierManagementPermissionKeys = {\n Suppliers: {\n Management: AXPProcurementPermissionKeys.MaintainSuppliers,\n View: AXPProcurementPermissionKeys.MaintainSuppliers,\n Create: AXPProcurementPermissionKeys.MaintainSuppliers,\n Edit: AXPProcurementPermissionKeys.MaintainSuppliers,\n Delete: AXPProcurementPermissionKeys.MaintainSuppliers,\n },\n} as const;\n","const config = {\n i18n: 'supplier-management',\n module: 'SupplierManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'supplier-management',\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-truck',\n },\n entities: {\n supplier: {\n name: 'Supplier',\n source: `${config.module}.Supplier`,\n title: `@${config.i18n}:suppliers.entities.supplier.title`,\n titlePlural: `@${config.i18n}:suppliers.entities.supplier.plural`,\n icon: 'fa-light fa-truck',\n },\n },\n} as const;\n","//#region ---- Contracts barrel ----\n\nexport * from './features.keys';\nexport * from './menu.keys';\nexport * from './permission.keys';\n\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":"AAAA;AAEA;AACO,MAAM,gCAAgC,GAAG;AAEhD;;ACLO,MAAM,6BAA6B,GAAG;AACzC,IAAA,IAAI,EAAE,yBAAyB;AAC/B,IAAA,SAAS,EAAE,mCAAmC;;;ACFlD;;;AAGG;AACI,MAAM,4BAA4B,GAAG;AAC1C,IAAA,MAAM,EAAE,+BAA+B;AACvC,IAAA,iBAAiB,EAAE,0CAA0C;AAC7D,IAAA,mBAAmB,EAAE,4CAA4C;AACjE,IAAA,KAAK,EAAE,8BAA8B;;AAGvC;;;AAGG;AACI,MAAM,mCAAmC,GAAG;AACjD,IAAA,SAAS,EAAE;QACT,UAAU,EAAE,4BAA4B,CAAC,iBAAiB;QAC1D,IAAI,EAAE,4BAA4B,CAAC,iBAAiB;QACpD,MAAM,EAAE,4BAA4B,CAAC,iBAAiB;QACtD,IAAI,EAAE,4BAA4B,CAAC,iBAAiB;QACpD,MAAM,EAAE,4BAA4B,CAAC,iBAAiB;AACvD,KAAA;;;ACtBH,MAAM,MAAM,GAAG;AACX,IAAA,IAAI,EAAE,qBAAqB;AAC3B,IAAA,MAAM,EAAE,oBAAoB;CAC/B;AAEM,MAAM,UAAU,GAAG;IACtB,MAAM;AACN,IAAA,MAAM,EAAE;AACJ,QAAA,KAAK,EAAE,qBAAqB;QAC5B,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,mBAAmB;AAC5B,KAAA;AACD,IAAA,QAAQ,EAAE;AACN,QAAA,QAAQ,EAAE;AACN,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,MAAM,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,SAAA,CAAW;AACnC,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,kCAAA,CAAoC;AAC1D,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,mCAAA,CAAqC;AACjE,YAAA,IAAI,EAAE,mBAAmB;AAC5B,SAAA;AACJ,KAAA;;;ACrBL;;ACAA;;AAEG;;;;"}
@@ -0,0 +1,162 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, inject, NgModule } from '@angular/core';
3
+ import { AXP_MODULE_MANIFEST_PROVIDER, AXP_FEATURE_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/core';
4
+ import { RootConfig, AXPProcurementPermissionKeys, AXPSupplierManagementMenuKeys } from '@acorex-platform/module-supplier-management-client/contracts';
5
+ import { AXP_MENU_PROVIDER } from '@acorex-platform/framework-client/common';
6
+ import { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';
7
+ import { AXPCommonPermissionGroupKeys, AXPCommonMenuKeys } from '@acorex-platform/module-common-client/contracts';
8
+ import { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';
9
+
10
+ //#region ---- Imports ----
11
+ //#endregion
12
+ //#region ---- Manifest Definition ----
13
+ /**
14
+ * Supplier Management Module Manifest.
15
+ * Defines module metadata, features, and provider references.
16
+ */
17
+ const SupplierManagementManifest = {
18
+ name: RootConfig.module.name,
19
+ version: '1.0.0',
20
+ title: RootConfig.module.title,
21
+ icon: RootConfig.module.icon,
22
+ i18n: RootConfig.config.i18n,
23
+ type: 'domain',
24
+ domain: 'customer-supplier',
25
+ // Module dependencies
26
+ dependencies: ['PersonCore'],
27
+ };
28
+ //#endregion
29
+
30
+ //#endregion
31
+ //#region ---- Permission Definition Provider ----
32
+ /**
33
+ * Registers Suppliers & Procurement root + Suppliers & Subcontractors capabilities.
34
+ */
35
+ class AXMSupplierManagementPermissionDefinitionProvider {
36
+ async define(context) {
37
+ const keys = AXPProcurementPermissionKeys;
38
+ const groups = AXPCommonPermissionGroupKeys;
39
+ const P = '@common:procurement.permissions';
40
+ const G = '@common:permission-groups';
41
+ context.addGroup(groups.SuppliersProcurement.Root, `${G}.suppliers-procurement.title`, `${G}.suppliers-procurement.description`, { order: 55 });
42
+ context
43
+ .addGroup(groups.SuppliersProcurement.SuppliersSubcontractors, `${G}.suppliers-procurement-suppliers.title`, `${G}.suppliers-procurement-suppliers.description`, { parent: groups.SuppliersProcurement.Root, order: 10 })
44
+ .addPermission(keys.Access, `${P}.access.title`, `${P}.access.description`)
45
+ .endPermission()
46
+ .addPermission(keys.MaintainSuppliers, `${P}.maintain-suppliers.title`, `${P}.maintain-suppliers.description`)
47
+ .endPermission()
48
+ .addPermission(keys.Setup, `${P}.setup.title`, `${P}.setup.description`)
49
+ .endPermission()
50
+ .endGroup();
51
+ }
52
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMSupplierManagementPermissionDefinitionProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
53
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMSupplierManagementPermissionDefinitionProvider }); }
54
+ }
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMSupplierManagementPermissionDefinitionProvider, decorators: [{
56
+ type: Injectable
57
+ }] });
58
+
59
+ class AXMSupplierMenuProvider {
60
+ constructor() {
61
+ this.entityService = inject(AXPEntityService);
62
+ }
63
+ async provide(context) {
64
+ const module = RootConfig.module;
65
+ const keys = AXPProcurementPermissionKeys;
66
+ context.find(AXPCommonMenuKeys.Contacts).addItems([
67
+ {
68
+ name: AXPSupplierManagementMenuKeys.Suppliers,
69
+ text: '@supplier-management:suppliers.entities.supplier.plural',
70
+ path: this.entityService.createPath(module.name, RootConfig.entities.supplier.name),
71
+ icon: RootConfig.entities.supplier.icon,
72
+ priority: 20,
73
+ policy: {
74
+ features: [module.name],
75
+ permissions: [keys.MaintainSuppliers],
76
+ },
77
+ },
78
+ ]);
79
+ }
80
+ }
81
+
82
+ //#region ---- Imports ----
83
+ //#endregion
84
+ //#region ---- Feature Definition Provider ----
85
+ /**
86
+ * Supplier Management Feature Definition Provider.
87
+ * Provides feature definitions for the Supplier Management module.
88
+ */
89
+ class AXMSupplierManagementFeatureDefinitionProvider {
90
+ async provide(context) {
91
+ // Management feature removed - module name is used directly as feature key
92
+ }
93
+ }
94
+ //#endregion
95
+
96
+ class AXMSupplierManagementModule {
97
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMSupplierManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
98
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: AXMSupplierManagementModule }); }
99
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMSupplierManagementModule, providers: [
100
+ // Module-specific providers (not part of manifest system)
101
+ // Module Manifest Provider
102
+ {
103
+ provide: AXP_MODULE_MANIFEST_PROVIDER,
104
+ useValue: SupplierManagementManifest,
105
+ multi: true,
106
+ },
107
+ // Provider references (now using tokens)
108
+ {
109
+ provide: AXP_PERMISSION_DEFINITION_PROVIDER,
110
+ useClass: AXMSupplierManagementPermissionDefinitionProvider,
111
+ multi: true,
112
+ },
113
+ {
114
+ provide: AXP_MENU_PROVIDER,
115
+ useClass: AXMSupplierMenuProvider,
116
+ multi: true,
117
+ },
118
+ {
119
+ provide: AXP_FEATURE_DEFINITION_PROVIDER,
120
+ useClass: AXMSupplierManagementFeatureDefinitionProvider,
121
+ multi: true,
122
+ },
123
+ ] }); }
124
+ }
125
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMSupplierManagementModule, decorators: [{
126
+ type: NgModule,
127
+ args: [{
128
+ imports: [],
129
+ providers: [
130
+ // Module-specific providers (not part of manifest system)
131
+ // Module Manifest Provider
132
+ {
133
+ provide: AXP_MODULE_MANIFEST_PROVIDER,
134
+ useValue: SupplierManagementManifest,
135
+ multi: true,
136
+ },
137
+ // Provider references (now using tokens)
138
+ {
139
+ provide: AXP_PERMISSION_DEFINITION_PROVIDER,
140
+ useClass: AXMSupplierManagementPermissionDefinitionProvider,
141
+ multi: true,
142
+ },
143
+ {
144
+ provide: AXP_MENU_PROVIDER,
145
+ useClass: AXMSupplierMenuProvider,
146
+ multi: true,
147
+ },
148
+ {
149
+ provide: AXP_FEATURE_DEFINITION_PROVIDER,
150
+ useClass: AXMSupplierManagementFeatureDefinitionProvider,
151
+ multi: true,
152
+ },
153
+ ],
154
+ }]
155
+ }] });
156
+
157
+ /**
158
+ * Generated bundle index. Do not edit.
159
+ */
160
+
161
+ export { AXMSupplierManagementModule, AXMSupplierManagementPermissionDefinitionProvider, AXMSupplierMenuProvider };
162
+ //# sourceMappingURL=acorex-platform-module-supplier-management-client.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-supplier-management-client.mjs","sources":["../../../../libs/modules/supplier-management/client/src/lib/manifest.ts","../../../../libs/modules/supplier-management/client/src/lib/permission-definition.provider.ts","../../../../libs/modules/supplier-management/client/src/lib/menu.provider.ts","../../../../libs/modules/supplier-management/client/src/lib/feature-definition.provider.ts","../../../../libs/modules/supplier-management/client/src/lib/supplier-management.module.ts","../../../../libs/modules/supplier-management/client/src/acorex-platform-module-supplier-management-client.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPModuleManifest } from '@acorex-platform/framework-client/core';\nimport { RootConfig } from '@acorex-platform/module-supplier-management-client/contracts';\n\n//#endregion\n\n//#region ---- Manifest Definition ----\n\n/**\n * Supplier Management Module Manifest.\n * Defines module metadata, features, and provider references.\n */\nexport const SupplierManagementManifest: 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\n type: 'domain',\n domain: 'customer-supplier',\n // Module dependencies\n dependencies: ['PersonCore'],\n};\n\n//#endregion\n\n","//#region ---- Imports ----\n\nimport {\n AXPPermissionDefinitionProvider,\n AXPPermissionDefinitionProviderContext,\n} from '@acorex-platform/framework-client/auth';\nimport { AXPCommonPermissionGroupKeys } from '@acorex-platform/module-common-client/contracts';\nimport { AXPProcurementPermissionKeys } from '@acorex-platform/module-supplier-management-client/contracts';\nimport { Injectable } from '@angular/core';\n\n//#endregion\n\n//#region ---- Permission Definition Provider ----\n\n/**\n * Registers Suppliers & Procurement root + Suppliers & Subcontractors capabilities.\n */\n@Injectable()\nexport class AXMSupplierManagementPermissionDefinitionProvider implements AXPPermissionDefinitionProvider {\n async define(context: AXPPermissionDefinitionProviderContext): Promise<void> {\n const keys = AXPProcurementPermissionKeys;\n const groups = AXPCommonPermissionGroupKeys;\n const P = '@common:procurement.permissions';\n const G = '@common:permission-groups';\n\n context.addGroup(\n groups.SuppliersProcurement.Root,\n `${G}.suppliers-procurement.title`,\n `${G}.suppliers-procurement.description`,\n { order: 55 },\n );\n\n context\n .addGroup(\n groups.SuppliersProcurement.SuppliersSubcontractors,\n `${G}.suppliers-procurement-suppliers.title`,\n `${G}.suppliers-procurement-suppliers.description`,\n { parent: groups.SuppliersProcurement.Root, order: 10 },\n )\n .addPermission(keys.Access, `${P}.access.title`, `${P}.access.description`)\n .endPermission()\n .addPermission(keys.MaintainSuppliers, `${P}.maintain-suppliers.title`, `${P}.maintain-suppliers.description`)\n .endPermission()\n .addPermission(keys.Setup, `${P}.setup.title`, `${P}.setup.description`)\n .endPermission()\n .endGroup();\n }\n}\n\n//#endregion\n","import { 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';\n\nimport { inject } from '@angular/core';\nimport {\n RootConfig,\n AXPProcurementPermissionKeys\n} from '@acorex-platform/module-supplier-management-client/contracts';\nimport { AXPSupplierManagementMenuKeys } from '@acorex-platform/module-supplier-management-client/contracts';\n\nexport class AXMSupplierMenuProvider implements AXPMenuProvider {\n private entityService = inject(AXPEntityService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const module = RootConfig.module;\n const keys = AXPProcurementPermissionKeys;\n\n context.find(AXPCommonMenuKeys.Contacts).addItems([\n {\n name: AXPSupplierManagementMenuKeys.Suppliers,\n text: '@supplier-management:suppliers.entities.supplier.plural',\n path: this.entityService.createPath(module.name, RootConfig.entities.supplier.name),\n icon: RootConfig.entities.supplier.icon,\n priority: 20,\n policy: {\n features: [module.name],\n permissions: [keys.MaintainSuppliers],\n },\n },\n ]);\n }\n}\n","//#region ---- Imports ----\n\nimport {\n AXPFeatureDefinitionProvider,\n AXPFeatureDefinitionProviderContext,\n} from '@acorex-platform/framework-client/core';\n\n//#endregion\n\n//#region ---- Feature Definition Provider ----\n\n/**\n * Supplier Management Feature Definition Provider.\n * Provides feature definitions for the Supplier Management module.\n */\nexport class AXMSupplierManagementFeatureDefinitionProvider implements AXPFeatureDefinitionProvider {\n async provide(context: AXPFeatureDefinitionProviderContext): Promise<void> {\n // Management feature removed - module name is used directly as feature key\n }\n}\n\n//#endregion\n\n","import { NgModule } from '@angular/core';\nimport { AXP_MODULE_MANIFEST_PROVIDER, AXP_FEATURE_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/core';\nimport { SupplierManagementManifest } from './manifest';\nimport { AXP_MENU_PROVIDER } from '@acorex-platform/framework-client/common';\nimport { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';\nimport { AXMSupplierManagementPermissionDefinitionProvider } from './permission-definition.provider';\nimport { AXMSupplierMenuProvider } from './menu.provider';\n\nimport { AXMSupplierManagementFeatureDefinitionProvider } from './feature-definition.provider';\n\n@NgModule({\n imports: [],\n providers: [\n // Module-specific providers (not part of manifest system)\n\n // Module Manifest Provider\n {\n provide: AXP_MODULE_MANIFEST_PROVIDER,\n useValue: SupplierManagementManifest,\n multi: true,\n },\n // Provider references (now using tokens)\n {\n provide: AXP_PERMISSION_DEFINITION_PROVIDER,\n useClass: AXMSupplierManagementPermissionDefinitionProvider,\n multi: true,\n },\n {\n provide: AXP_MENU_PROVIDER,\n useClass: AXMSupplierMenuProvider,\n multi: true,\n },\n \n {\n provide: AXP_FEATURE_DEFINITION_PROVIDER,\n useClass: AXMSupplierManagementFeatureDefinitionProvider,\n multi: true,\n },\n ],\n})\nexport class AXMSupplierManagementModule { }\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;AAKA;AAEA;AAEA;;;AAGG;AACI,MAAM,0BAA0B,GAAsB;AAC3D,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,C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D,wBAAA;AACI,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,QAAQ,EAAE,uBAAuB;AACjC,4BAAA,KAAK,EAAE,IAAI;AACd,yBAAA;AAED,wBAAA;AACI,4BAAA,OAAO,EAAE,+BAA+B;AACxC,4BAAA,QAAQ,EAAE,8CAA8C;AACxD,4BAAA,KAAK,EAAE,IAAI;AACd,yBAAA;AACJ,qBAAA;AACJ,iBAAA;;;ACvCD;;AAEG;;;;"}
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@acorex-platform/module-supplier-management-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-supplier-management-client.mjs",
13
+ "typings": "types/acorex-platform-module-supplier-management-client.d.ts",
14
+ "exports": {
15
+ "./package.json": {
16
+ "default": "./package.json"
17
+ },
18
+ ".": {
19
+ "types": "./types/acorex-platform-module-supplier-management-client.d.ts",
20
+ "default": "./fesm2022/acorex-platform-module-supplier-management-client.mjs"
21
+ },
22
+ "./contracts": {
23
+ "types": "./types/acorex-platform-module-supplier-management-client-contracts.d.ts",
24
+ "default": "./fesm2022/acorex-platform-module-supplier-management-client-contracts.mjs"
25
+ }
26
+ },
27
+ "type": "module"
28
+ }
@@ -0,0 +1,107 @@
1
+ import { AXPMultiLanguageString, AXPCategoryListItem } from '@acorex-platform/framework-shared/core';
2
+ import { AXPEntityModel } from '@acorex-platform/framework-shared/entity';
3
+
4
+ declare const AXPSupplierManagementFeatureKeys: {};
5
+
6
+ declare const AXPSupplierManagementMenuKeys: {
7
+ readonly Root: "SupplierManagement:Menu";
8
+ readonly Suppliers: "SupplierManagement:Menu:Suppliers";
9
+ };
10
+
11
+ /**
12
+ * Procurement capabilities used by this module.
13
+ * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).
14
+ */
15
+ declare const AXPProcurementPermissionKeys: {
16
+ readonly Access: "Procurement:Permission:Access";
17
+ readonly MaintainSuppliers: "Procurement:Permission:MaintainSuppliers";
18
+ readonly MaintainProcurement: "Procurement:Permission:MaintainProcurement";
19
+ readonly Setup: "Procurement:Permission:Setup";
20
+ };
21
+ /**
22
+ * @deprecated Prefer {@link AXPProcurementPermissionKeys}.
23
+ * Legacy nested shape kept so existing imports compile during migration.
24
+ */
25
+ declare const AXPSupplierManagementPermissionKeys: {
26
+ readonly Suppliers: {
27
+ readonly Management: "Procurement:Permission:MaintainSuppliers";
28
+ readonly View: "Procurement:Permission:MaintainSuppliers";
29
+ readonly Create: "Procurement:Permission:MaintainSuppliers";
30
+ readonly Edit: "Procurement:Permission:MaintainSuppliers";
31
+ readonly Delete: "Procurement:Permission:MaintainSuppliers";
32
+ };
33
+ };
34
+
35
+ declare const RootConfig: {
36
+ readonly config: {
37
+ i18n: string;
38
+ module: string;
39
+ };
40
+ readonly module: {
41
+ readonly route: "supplier-management";
42
+ readonly name: string;
43
+ readonly title: `@${string}:module.title`;
44
+ readonly icon: "fa-light fa-truck";
45
+ };
46
+ readonly entities: {
47
+ readonly supplier: {
48
+ readonly name: "Supplier";
49
+ readonly source: `${string}.Supplier`;
50
+ readonly title: `@${string}:suppliers.entities.supplier.title`;
51
+ readonly titlePlural: `@${string}:suppliers.entities.supplier.plural`;
52
+ readonly icon: "fa-light fa-truck";
53
+ };
54
+ };
55
+ };
56
+
57
+ interface AXMSupplierManagementSupplierEntityModel extends AXPEntityModel<string> {
58
+ partyId: string;
59
+ party?: {
60
+ id: string;
61
+ code: string;
62
+ title: AXPMultiLanguageString;
63
+ description?: AXPMultiLanguageString;
64
+ phones?: unknown[];
65
+ emails?: unknown[];
66
+ addresses?: unknown[];
67
+ };
68
+ supplierTypeId?: string;
69
+ partyType?: {
70
+ id: string;
71
+ title: AXPMultiLanguageString;
72
+ };
73
+ segmentId?: string;
74
+ partySegment?: {
75
+ id: string;
76
+ title: AXPMultiLanguageString;
77
+ };
78
+ status?: 'active' | 'inactive' | 'blocked' | 'archived' | 'under-review';
79
+ since?: Date;
80
+ isPreferred?: boolean;
81
+ rating?: number;
82
+ paymentTermsId?: string;
83
+ paymentTerms?: {
84
+ id: string;
85
+ title: AXPMultiLanguageString;
86
+ };
87
+ defaultCurrencyId?: string;
88
+ defaultCurrency?: {
89
+ id: string;
90
+ code: string;
91
+ symbol: string;
92
+ };
93
+ purchasingManagerId?: string;
94
+ purchasingManager?: {
95
+ id: string;
96
+ employeeCode?: string;
97
+ person?: {
98
+ fullName?: string;
99
+ };
100
+ };
101
+ categoryIds?: string[];
102
+ categories?: AXPCategoryListItem[];
103
+ notes?: string;
104
+ }
105
+
106
+ export { AXPProcurementPermissionKeys, AXPSupplierManagementFeatureKeys, AXPSupplierManagementMenuKeys, AXPSupplierManagementPermissionKeys, RootConfig };
107
+ export type { AXMSupplierManagementSupplierEntityModel };
@@ -0,0 +1,25 @@
1
+ import * as i0 from '@angular/core';
2
+ import { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';
3
+ import { AXPPermissionDefinitionProvider, AXPPermissionDefinitionProviderContext } from '@acorex-platform/framework-client/auth';
4
+
5
+ declare class AXMSupplierManagementModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMSupplierManagementModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXMSupplierManagementModule, never, never, never>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXMSupplierManagementModule>;
9
+ }
10
+
11
+ declare class AXMSupplierMenuProvider implements AXPMenuProvider {
12
+ private entityService;
13
+ provide(context: AXPMenuProviderContext): Promise<void>;
14
+ }
15
+
16
+ /**
17
+ * Registers Suppliers & Procurement root + Suppliers & Subcontractors capabilities.
18
+ */
19
+ declare class AXMSupplierManagementPermissionDefinitionProvider implements AXPPermissionDefinitionProvider {
20
+ define(context: AXPPermissionDefinitionProviderContext): Promise<void>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMSupplierManagementPermissionDefinitionProvider, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXMSupplierManagementPermissionDefinitionProvider>;
23
+ }
24
+
25
+ export { AXMSupplierManagementModule, AXMSupplierManagementPermissionDefinitionProvider, AXMSupplierMenuProvider };