@acorex-platform/module-customer-management-client 0.0.32 → 0.0.33
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/fesm2022/acorex-platform-module-customer-management-client-contracts-entities-activity.mjs +232 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entities-activity.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entities-customer-segment.mjs +157 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entities-customer-segment.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entities-customer-type.mjs +167 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entities-customer-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entities-customer.mjs +363 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entities-customer.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entities-deal-contact-role.mjs +221 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entities-deal-contact-role.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entities-lead.mjs +178 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entities-lead.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entities-opportunity-stage.mjs +148 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entities-opportunity-stage.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entities-opportunity.mjs +263 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entities-opportunity.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entities-sales-pipeline.mjs +148 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entities-sales-pipeline.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog-acorex-platform-module-customer-management-client-contracts-entity-catalog-D62Sfv4c.mjs +116 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog-acorex-platform-module-customer-management-client-contracts-entity-catalog-D62Sfv4c.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog-activity.entity-B7t-BGlf.mjs +143 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog-activity.entity-B7t-BGlf.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog-customer-segment.entity-CT92wMZ_.mjs +68 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog-customer-segment.entity-CT92wMZ_.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog-customer-type.entity-D2qFykij.mjs +78 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog-customer-type.entity-D2qFykij.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog-customer.entity-DTK4cvCC.mjs +274 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog-customer.entity-DTK4cvCC.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog-deal-contact-role.entity-Ch1NKe4s.mjs +132 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog-deal-contact-role.entity-Ch1NKe4s.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog-lead.entity-Duh3ddXB.mjs +89 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog-lead.entity-Duh3ddXB.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog-opportunity-stage.entity-DWi_Js4e.mjs +59 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog-opportunity-stage.entity-DWi_Js4e.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog-opportunity.entity-DXn7piCx.mjs +174 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog-opportunity.entity-DXn7piCx.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog-sales-pipeline.entity-D6eI6CW1.mjs +59 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog-sales-pipeline.entity-D6eI6CW1.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-customer-management-client-local-entities.mjs +37 -0
- package/fesm2022/acorex-platform-module-customer-management-client-local-entities.mjs.map +1 -0
- package/package.json +45 -1
- package/types/acorex-platform-module-customer-management-client-contracts-entities-activity.d.ts +5 -0
- package/types/acorex-platform-module-customer-management-client-contracts-entities-customer-segment.d.ts +5 -0
- package/types/acorex-platform-module-customer-management-client-contracts-entities-customer-type.d.ts +5 -0
- package/types/acorex-platform-module-customer-management-client-contracts-entities-customer.d.ts +5 -0
- package/types/acorex-platform-module-customer-management-client-contracts-entities-deal-contact-role.d.ts +5 -0
- package/types/acorex-platform-module-customer-management-client-contracts-entities-lead.d.ts +5 -0
- package/types/acorex-platform-module-customer-management-client-contracts-entities-opportunity-stage.d.ts +5 -0
- package/types/acorex-platform-module-customer-management-client-contracts-entities-opportunity.d.ts +5 -0
- package/types/acorex-platform-module-customer-management-client-contracts-entities-sales-pipeline.d.ts +5 -0
- package/types/acorex-platform-module-customer-management-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-customer-management-client-local-entities.d.ts +12 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterDeleteAction } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-customer-management-client-contracts-entity-catalog-acorex-platform-module-customer-management-client-contracts-entity-catalog-D62Sfv4c.mjs';
|
|
4
|
+
|
|
5
|
+
async function opportunityStageFactory() {
|
|
6
|
+
const i18n = RootConfig.config.i18n + ':opportunities.entities.opportunity-stage';
|
|
7
|
+
const entityDef = {
|
|
8
|
+
module: RootConfig.module.name,
|
|
9
|
+
name: RootConfig.entities.opportunityStage.name,
|
|
10
|
+
title: RootConfig.entities.opportunityStage.title,
|
|
11
|
+
icon: RootConfig.entities.opportunityStage.icon,
|
|
12
|
+
formats: {
|
|
13
|
+
individual: RootConfig.entities.opportunityStage.title,
|
|
14
|
+
plural: RootConfig.entities.opportunityStage.titlePlural,
|
|
15
|
+
searchResult: { title: '{{ title }}', description: RootConfig.module.title },
|
|
16
|
+
},
|
|
17
|
+
groups: [{ id: 'basic-info', title: `@${i18n}.groups.basic-info` }],
|
|
18
|
+
properties: [
|
|
19
|
+
{ name: 'title', title: `@${i18n}.fields.title.title`, groupId: 'basic-info', schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } }, validations: [{ rule: 'required' }] },
|
|
20
|
+
{ name: 'probability', title: `@${i18n}.fields.probability.title`, groupId: 'basic-info', schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number, options: { minValue: 0, maxValue: 100 } } } },
|
|
21
|
+
],
|
|
22
|
+
columns: [{ name: 'title' }, { name: 'probability' }],
|
|
23
|
+
interfaces: {
|
|
24
|
+
master: {
|
|
25
|
+
create: {
|
|
26
|
+
sections: [{ id: 'basic-info' }],
|
|
27
|
+
properties: [
|
|
28
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
29
|
+
{ name: 'probability', layout: { positions: { lg: { colSpan: 3 } } } },
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
update: {
|
|
33
|
+
sections: [{ id: 'basic-info' }],
|
|
34
|
+
properties: [
|
|
35
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
36
|
+
{ name: 'probability', layout: { positions: { lg: { colSpan: 3 } } } },
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
single: {
|
|
40
|
+
title: '{{title}}',
|
|
41
|
+
sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],
|
|
42
|
+
properties: [
|
|
43
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
44
|
+
{ name: 'probability', layout: { positions: { lg: { colSpan: 3, order: 2 } } } },
|
|
45
|
+
],
|
|
46
|
+
actions: [entityMasterDeleteAction()],
|
|
47
|
+
},
|
|
48
|
+
list: {
|
|
49
|
+
actions: [...entityMasterCrudActions()],
|
|
50
|
+
views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
return entityDef;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export { opportunityStageFactory };
|
|
59
|
+
//# sourceMappingURL=acorex-platform-module-customer-management-client-contracts-entity-catalog-opportunity-stage.entity-DWi_Js4e.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-customer-management-client-contracts-entity-catalog-opportunity-stage.entity-DWi_Js4e.mjs","sources":["../../../../libs/modules/customer-management/contracts/src/entities/opportunity-stage/opportunity-stage.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterDeleteAction } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function opportunityStageFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n + ':opportunities.entities.opportunity-stage';\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.opportunityStage.name,\n title: RootConfig.entities.opportunityStage.title,\n icon: RootConfig.entities.opportunityStage.icon,\n formats: {\n individual: RootConfig.entities.opportunityStage.title,\n plural: RootConfig.entities.opportunityStage.titlePlural,\n searchResult: { title: '{{ title }}', description: RootConfig.module.title },\n },\n groups: [{ id: 'basic-info', title: `@${i18n}.groups.basic-info` }],\n properties: [\n { name: 'title', title: `@${i18n}.fields.title.title`, groupId: 'basic-info', schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } }, validations: [{ rule: 'required' }] },\n { name: 'probability', title: `@${i18n}.fields.probability.title`, groupId: 'basic-info', schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number, options: { minValue: 0, maxValue: 100 } } } },\n\n ],\n columns: [{ name: 'title' }, { name: 'probability' }],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'probability', layout: { positions: { lg: { colSpan: 3 } } } },\n\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'probability', layout: { positions: { lg: { colSpan: 3 } } } },\n\n ],\n },\n single: {\n title: '{{title}}',\n sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'probability', layout: { positions: { lg: { colSpan: 3, order: 2 } } } },\n\n ],\n actions: [entityMasterDeleteAction()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n"],"names":[],"mappings":";;;;AAIO,eAAe,uBAAuB,GAAA;IACzC,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,GAAG,2CAA2C;AAEjF,IAAA,MAAM,SAAS,GAAc;AACzB,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,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EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBAC1E,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAEnF,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,wBAAwB,EAAE,CAAC;AACxC,iBAAA;AACD,gBAAA,IAAI,EAAE;AACF,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AAC1E,iBAAA;AACJ,aAAA;AACJ,SAAA;KACJ;AAED,IAAA,OAAO,SAAS;AACpB;;;;"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-customer-management-client-contracts-entity-catalog-acorex-platform-module-customer-management-client-contracts-entity-catalog-D62Sfv4c.mjs';
|
|
4
|
+
|
|
5
|
+
async function opportunityFactory() {
|
|
6
|
+
const i18n = RootConfig.config.i18n + ':opportunities.entities.opportunity';
|
|
7
|
+
const entityName = 'opportunity';
|
|
8
|
+
const entityDef = {
|
|
9
|
+
module: RootConfig.module.name,
|
|
10
|
+
name: RootConfig.entities.opportunity.name,
|
|
11
|
+
title: RootConfig.entities.opportunity.title,
|
|
12
|
+
icon: RootConfig.entities.opportunity.icon,
|
|
13
|
+
formats: {
|
|
14
|
+
individual: RootConfig.entities.opportunity.title,
|
|
15
|
+
plural: RootConfig.entities.opportunity.titlePlural,
|
|
16
|
+
searchResult: { title: '{{ title }}', description: RootConfig.module.title },
|
|
17
|
+
},
|
|
18
|
+
groups: [
|
|
19
|
+
{ id: 'basic-info', title: `@${i18n}.groups.basic-info` },
|
|
20
|
+
{ id: 'relations', title: '@general:terms.relations' },
|
|
21
|
+
{ id: 'financial', title: '@general:terms.financial' },
|
|
22
|
+
{ id: 'classification', title: '@general:terms.classification' },
|
|
23
|
+
{ id: 'date', title: '@general:terms.datetime.date' },
|
|
24
|
+
],
|
|
25
|
+
properties: [
|
|
26
|
+
{ name: 'title', title: `@${i18n}.fields.title.title`, groupId: 'basic-info', schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } }, validations: [{ rule: 'required' }] },
|
|
27
|
+
{
|
|
28
|
+
name: 'customerId',
|
|
29
|
+
title: `@${i18n}.fields.customer.title`,
|
|
30
|
+
groupId: 'relations',
|
|
31
|
+
schema: {
|
|
32
|
+
dataType: 'string',
|
|
33
|
+
interface: {
|
|
34
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
35
|
+
options: {
|
|
36
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.customer.name}`,
|
|
37
|
+
textField: 'title',
|
|
38
|
+
valueField: 'id',
|
|
39
|
+
look: 'select',
|
|
40
|
+
expose: [
|
|
41
|
+
{ source: 'id', target: 'customer.id' },
|
|
42
|
+
{ source: 'title', target: 'customer.title' },
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
validations: [{ rule: 'required' }],
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'contactId',
|
|
51
|
+
title: `@${i18n}.fields.contact.title`,
|
|
52
|
+
groupId: 'relations',
|
|
53
|
+
schema: {
|
|
54
|
+
dataType: 'string',
|
|
55
|
+
interface: {
|
|
56
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
57
|
+
options: {
|
|
58
|
+
entity: `${"PersonCore"}.${"Person"}`,
|
|
59
|
+
textField: 'displayName',
|
|
60
|
+
valueField: 'id',
|
|
61
|
+
look: 'select',
|
|
62
|
+
expose: [
|
|
63
|
+
{ source: 'id', target: 'contact.{id}' },
|
|
64
|
+
{ source: 'displayName', target: 'contact.{displayName}' },
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
{ name: 'amount', title: `@${i18n}.fields.amount.title`, groupId: 'financial', schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number } } },
|
|
71
|
+
{ name: 'currency', title: `@${i18n}.fields.currency.title`, groupId: 'financial', schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } } },
|
|
72
|
+
{ name: 'probability', title: `@${i18n}.fields.probability.title`, groupId: 'financial', schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number, options: { minValue: 0, maxValue: 100 } } } },
|
|
73
|
+
{ name: 'expectedClose', title: `@${i18n}.fields.expected-close.title`, groupId: 'date', schema: { dataType: 'date', interface: { type: AXPWidgetsCatalog.dateTime } } },
|
|
74
|
+
{
|
|
75
|
+
name: 'stageId',
|
|
76
|
+
title: `@${i18n}.fields.stage.title`,
|
|
77
|
+
groupId: 'classification',
|
|
78
|
+
schema: {
|
|
79
|
+
dataType: 'string',
|
|
80
|
+
interface: {
|
|
81
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
82
|
+
options: {
|
|
83
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.opportunityStage.name}`,
|
|
84
|
+
textField: 'title',
|
|
85
|
+
valueField: 'id',
|
|
86
|
+
look: 'select',
|
|
87
|
+
expose: [
|
|
88
|
+
{ source: 'id', target: 'stage.{id}' },
|
|
89
|
+
{ source: 'title', target: 'stage.{title}' },
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: 'pipelineId',
|
|
97
|
+
title: `@${i18n}.fields.pipeline.title`,
|
|
98
|
+
groupId: 'classification',
|
|
99
|
+
schema: {
|
|
100
|
+
dataType: 'string',
|
|
101
|
+
interface: {
|
|
102
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
103
|
+
options: {
|
|
104
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.salesPipeline.name}`,
|
|
105
|
+
textField: 'title',
|
|
106
|
+
valueField: 'id',
|
|
107
|
+
look: 'select',
|
|
108
|
+
expose: [
|
|
109
|
+
{ source: 'id', target: 'pipeline.{id}' },
|
|
110
|
+
{ source: 'title', target: 'pipeline.{title}' },
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
columns: [{ name: 'title' }, { name: 'customerId', options: { dataPath: 'customer.title' } }, { name: 'amount' }, { name: 'stageId', options: { dataPath: 'stage.title' } }, { name: 'expectedClose' }],
|
|
118
|
+
interfaces: {
|
|
119
|
+
master: {
|
|
120
|
+
create: {
|
|
121
|
+
sections: [{ id: 'basic-info' }],
|
|
122
|
+
properties: [
|
|
123
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
124
|
+
{ name: 'customerId', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
125
|
+
{ name: 'contactId', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
126
|
+
{ name: 'amount', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
127
|
+
{ name: 'currency', layout: { positions: { lg: { colSpan: 2 } } } },
|
|
128
|
+
{ name: 'probability', layout: { positions: { lg: { colSpan: 2 } } } },
|
|
129
|
+
{ name: 'expectedClose', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
130
|
+
{ name: 'stageId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
131
|
+
{ name: 'pipelineId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
update: {
|
|
135
|
+
sections: [{ id: 'basic-info' }],
|
|
136
|
+
properties: [
|
|
137
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
138
|
+
{ name: 'customerId', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
139
|
+
{ name: 'contactId', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
140
|
+
{ name: 'amount', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
141
|
+
{ name: 'currency', layout: { positions: { lg: { colSpan: 2 } } } },
|
|
142
|
+
{ name: 'probability', layout: { positions: { lg: { colSpan: 2 } } } },
|
|
143
|
+
{ name: 'expectedClose', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
144
|
+
{ name: 'stageId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
145
|
+
{ name: 'pipelineId', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
146
|
+
],
|
|
147
|
+
},
|
|
148
|
+
single: {
|
|
149
|
+
title: '{{title}}',
|
|
150
|
+
sections: [
|
|
151
|
+
{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }
|
|
152
|
+
],
|
|
153
|
+
properties: [
|
|
154
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
155
|
+
{ name: 'customerId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
156
|
+
{ name: 'contactId', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
157
|
+
{ name: 'amount', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
|
|
158
|
+
{ name: 'currency', layout: { positions: { lg: { colSpan: 2, order: 5 } } } },
|
|
159
|
+
{ name: 'probability', layout: { positions: { lg: { colSpan: 2, order: 6 } } } },
|
|
160
|
+
{ name: 'expectedClose', layout: { positions: { lg: { colSpan: 4, order: 7 } } } },
|
|
161
|
+
{ name: 'stageId', layout: { positions: { lg: { colSpan: 6, order: 8 } } } },
|
|
162
|
+
{ name: 'pipelineId', layout: { positions: { lg: { colSpan: 6, order: 9 } } } },
|
|
163
|
+
],
|
|
164
|
+
actions: []
|
|
165
|
+
},
|
|
166
|
+
list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView({ sorts: [{ name: 'expectedClose', dir: 'asc' }] })] },
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
};
|
|
170
|
+
return entityDef;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export { opportunityFactory };
|
|
174
|
+
//# sourceMappingURL=acorex-platform-module-customer-management-client-contracts-entity-catalog-opportunity.entity-DXn7piCx.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-customer-management-client-contracts-entity-catalog-opportunity.entity-DXn7piCx.mjs","sources":["../../../../libs/modules/customer-management/contracts/src/entities/opportunity/opportunity.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function opportunityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n + ':opportunities.entities.opportunity';\n const entityName = 'opportunity';\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.opportunity.name,\n title: RootConfig.entities.opportunity.title,\n icon: RootConfig.entities.opportunity.icon,\n formats: {\n individual: RootConfig.entities.opportunity.title,\n plural: RootConfig.entities.opportunity.titlePlural,\n searchResult: { title: '{{ title }}', description: RootConfig.module.title },\n },\n groups: [\n { id: 'basic-info', title: `@${i18n}.groups.basic-info` },\n { id: 'relations', title: '@general:terms.relations' },\n { id: 'financial', title: '@general:terms.financial' },\n { id: 'classification', title: '@general:terms.classification' },\n { id: 'date', title: '@general:terms.datetime.date' },\n ],\n properties: [\n { name: 'title', title: `@${i18n}.fields.title.title`, groupId: 'basic-info', schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } }, validations: [{ rule: 'required' }] },\n {\n name: 'customerId',\n title: `@${i18n}.fields.customer.title`,\n groupId: 'relations',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.customer.name}`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n expose: [\n { source: 'id', target: 'customer.id' },\n { source: 'title', target: 'customer.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'contactId',\n title: `@${i18n}.fields.contact.title`,\n groupId: 'relations',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${\"PersonCore\"}.${\"Person\"}`,\n textField: 'displayName',\n valueField: 'id',\n look: 'select',\n expose: [\n { source: 'id', target: 'contact.{id}' },\n { source: 'displayName', target: 'contact.{displayName}' },\n ],\n },\n },\n },\n },\n { name: 'amount', title: `@${i18n}.fields.amount.title`, groupId: 'financial', schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number } } },\n { name: 'currency', title: `@${i18n}.fields.currency.title`, groupId: 'financial', schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } } },\n { name: 'probability', title: `@${i18n}.fields.probability.title`, groupId: 'financial', schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number, options: { minValue: 0, maxValue: 100 } } } },\n { name: 'expectedClose', title: `@${i18n}.fields.expected-close.title`, groupId: 'date', schema: { dataType: 'date', interface: { type: AXPWidgetsCatalog.dateTime } } },\n {\n name: 'stageId',\n title: `@${i18n}.fields.stage.title`,\n groupId: 'classification',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.opportunityStage.name}`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n expose: [\n { source: 'id', target: 'stage.{id}' },\n { source: 'title', target: 'stage.{title}' },\n ],\n },\n },\n },\n },\n {\n name: 'pipelineId',\n title: `@${i18n}.fields.pipeline.title`,\n groupId: 'classification',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.salesPipeline.name}`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n expose: [\n { source: 'id', target: 'pipeline.{id}' },\n { source: 'title', target: 'pipeline.{title}' },\n ],\n },\n },\n },\n },\n ],\n columns: [{ name: 'title' }, { name: 'customerId', options: { dataPath: 'customer.title' } }, { name: 'amount' }, { name: 'stageId', options: { dataPath: 'stage.title' } }, { name: 'expectedClose' }],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'customerId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'contactId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'amount', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'currency', layout: { positions: { lg: { colSpan: 2 } } } },\n { name: 'probability', layout: { positions: { lg: { colSpan: 2 } } } },\n { name: 'expectedClose', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'stageId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'pipelineId', layout: { positions: { lg: { colSpan: 6 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'customerId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'contactId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'amount', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'currency', layout: { positions: { lg: { colSpan: 2 } } } },\n { name: 'probability', layout: { positions: { lg: { colSpan: 2 } } } },\n { name: 'expectedClose', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'stageId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'pipelineId', layout: { positions: { lg: { colSpan: 6 } } } },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }\n ],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'customerId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'contactId', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'amount', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },\n { name: 'currency', layout: { positions: { lg: { colSpan: 2, order: 5 } } } },\n { name: 'probability', layout: { positions: { lg: { colSpan: 2, order: 6 } } } },\n { name: 'expectedClose', layout: { positions: { lg: { colSpan: 4, order: 7 } } } },\n { name: 'stageId', layout: { positions: { lg: { colSpan: 6, order: 8 } } } },\n { name: 'pipelineId', layout: { positions: { lg: { colSpan: 6, order: 9 } } } },\n ],\n actions: []\n },\n list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView({ sorts: [{ name: 'expectedClose', dir: 'asc' }] })] },\n },\n },\n };\n\n return entityDef;\n}\n\n"],"names":[],"mappings":";;;;AAIO,eAAe,kBAAkB,GAAA;IACpC,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,GAAG,qCAAqC;IAC3E,MAAM,UAAU,GAAG,aAAa;AAEhC,IAAA,MAAM,SAAS,GAAc;AACzB,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI;AAC1C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK;AAC5C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI;AAC1C,QAAA,OAAO,EAAE;AACL,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK;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BAAA,OAAO,EAAE;AACZ,iBAAA;AACD,gBAAA,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE;AACrI,aAAA;AACJ,SAAA;KACJ;AAED,IAAA,OAAO,SAAS;AACpB;;;;"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterDeleteAction } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-customer-management-client-contracts-entity-catalog-acorex-platform-module-customer-management-client-contracts-entity-catalog-D62Sfv4c.mjs';
|
|
4
|
+
|
|
5
|
+
async function salesPipelineFactory() {
|
|
6
|
+
const i18n = RootConfig.config.i18n + ':opportunities.entities.sales-pipeline';
|
|
7
|
+
const entityDef = {
|
|
8
|
+
module: RootConfig.module.name,
|
|
9
|
+
name: RootConfig.entities.salesPipeline.name,
|
|
10
|
+
title: RootConfig.entities.salesPipeline.title,
|
|
11
|
+
icon: RootConfig.entities.salesPipeline.icon,
|
|
12
|
+
formats: {
|
|
13
|
+
individual: RootConfig.entities.salesPipeline.title,
|
|
14
|
+
plural: RootConfig.entities.salesPipeline.titlePlural,
|
|
15
|
+
searchResult: { title: '{{ title }}', description: RootConfig.module.title },
|
|
16
|
+
},
|
|
17
|
+
groups: [{ id: 'basic-info', title: `@${i18n}.groups.basic-info` }],
|
|
18
|
+
properties: [
|
|
19
|
+
{ name: 'title', title: `@${i18n}.fields.title.title`, groupId: 'basic-info', schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } }, validations: [{ rule: 'required' }] },
|
|
20
|
+
{ name: 'description', title: `@${i18n}.fields.description.title`, groupId: 'basic-info', schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.largeText, options: { rows: 3 } } } },
|
|
21
|
+
],
|
|
22
|
+
columns: [{ name: 'title' }, { name: 'description' }],
|
|
23
|
+
interfaces: {
|
|
24
|
+
master: {
|
|
25
|
+
create: {
|
|
26
|
+
sections: [{ id: 'basic-info' }],
|
|
27
|
+
properties: [
|
|
28
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
29
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
update: {
|
|
33
|
+
sections: [{ id: 'basic-info' }],
|
|
34
|
+
properties: [
|
|
35
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
36
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
single: {
|
|
40
|
+
title: '{{title}}',
|
|
41
|
+
sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],
|
|
42
|
+
properties: [
|
|
43
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
44
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
45
|
+
],
|
|
46
|
+
actions: [entityMasterDeleteAction()],
|
|
47
|
+
},
|
|
48
|
+
list: {
|
|
49
|
+
actions: [...entityMasterCrudActions()],
|
|
50
|
+
views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
return entityDef;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export { salesPipelineFactory };
|
|
59
|
+
//# sourceMappingURL=acorex-platform-module-customer-management-client-contracts-entity-catalog-sales-pipeline.entity-D6eI6CW1.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-customer-management-client-contracts-entity-catalog-sales-pipeline.entity-D6eI6CW1.mjs","sources":["../../../../libs/modules/customer-management/contracts/src/entities/sales-pipeline/sales-pipeline.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterDeleteAction } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function salesPipelineFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n + ':opportunities.entities.sales-pipeline';\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.salesPipeline.name,\n title: RootConfig.entities.salesPipeline.title,\n icon: RootConfig.entities.salesPipeline.icon,\n formats: {\n individual: RootConfig.entities.salesPipeline.title,\n plural: RootConfig.entities.salesPipeline.titlePlural,\n searchResult: { title: '{{ title }}', description: RootConfig.module.title },\n },\n groups: [{ id: 'basic-info', title: `@${i18n}.groups.basic-info` }],\n properties: [\n { name: 'title', title: `@${i18n}.fields.title.title`, groupId: 'basic-info', schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } }, validations: [{ rule: 'required' }] },\n { name: 'description', title: `@${i18n}.fields.description.title`, groupId: 'basic-info', schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.largeText, options: { rows: 3 } } } },\n\n ],\n columns: [{ name: 'title' }, { name: 'description' }],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n ],\n actions: [entityMasterDeleteAction()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n"],"names":[],"mappings":";;;;AAIO,eAAe,oBAAoB,GAAA;IACtC,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,GAAG,wCAAwC;AAE9E,IAAA,MAAM,SAAS,GAAc;AACzB,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI;AAC5C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK;AAC9C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI;AAC5C,QAAA,OAAO,EAAE;AACL,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK;AACnD,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,WAAW;AACrD,YAAA,YAAY,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK,EAAE;AAC/E,SAAA;AACD,QAAA,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,kBAAA,CAAoB,EAAE,CAAC;AACnE,QAAA,UAAU,EAAE;AACR,YAAA,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,IAAI,CAAA,mBAAA,CAAqB,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ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export { c as customerManagementLocalEntityCatalog } from './acorex-platform-module-customer-management-client-contracts-entity-catalog-acorex-platform-module-customer-management-client-contracts-entity-catalog-D62Sfv4c.mjs';
|
|
2
|
+
//# sourceMappingURL=acorex-platform-module-customer-management-client-contracts-entity-catalog.mjs.map
|
package/fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-customer-management-client-contracts-entity-catalog.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';
|
|
2
|
+
import { RootConfig } from '@acorex-platform/module-customer-management-client/contracts';
|
|
3
|
+
export { customerManagementLocalEntityCatalog } from '@acorex-platform/module-customer-management-client/contracts/entity-catalog';
|
|
4
|
+
|
|
5
|
+
//#region ----- Imports -----
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ----- Provide local entities -----
|
|
8
|
+
/**
|
|
9
|
+
* Registers customer-management layouts on the client from packaged factories.
|
|
10
|
+
* Each `import()` targets a secondary entry so unused entities stay out of the
|
|
11
|
+
* bundle. Do not add this to the demo app; demo continues to load layouts via
|
|
12
|
+
* `Domain:GetEntityLayout`.
|
|
13
|
+
*/
|
|
14
|
+
function provideCustomerManagementLocalEntities() {
|
|
15
|
+
return provideLocalEntityCatalog({
|
|
16
|
+
moduleName: RootConfig.module.name,
|
|
17
|
+
loaders: {
|
|
18
|
+
[RootConfig.entities.activity.name]: () => import('@acorex-platform/module-customer-management-client/contracts/entities/activity').then((m) => m.activityFactory()),
|
|
19
|
+
[RootConfig.entities.customer.name]: () => import('@acorex-platform/module-customer-management-client/contracts/entities/customer').then((m) => m.customerFactory()),
|
|
20
|
+
[RootConfig.entities.customerSegment.name]: () => import('@acorex-platform/module-customer-management-client/contracts/entities/customer-segment').then((m) => m.customerSegmentFactory()),
|
|
21
|
+
[RootConfig.entities.customerType.name]: () => import('@acorex-platform/module-customer-management-client/contracts/entities/customer-type').then((m) => m.customerTypeFactory()),
|
|
22
|
+
[RootConfig.entities.dealContactRole.name]: () => import('@acorex-platform/module-customer-management-client/contracts/entities/deal-contact-role').then((m) => m.dealContactRoleFactory()),
|
|
23
|
+
[RootConfig.entities.lead.name]: () => import('@acorex-platform/module-customer-management-client/contracts/entities/lead').then((m) => m.leadFactory()),
|
|
24
|
+
[RootConfig.entities.opportunity.name]: () => import('@acorex-platform/module-customer-management-client/contracts/entities/opportunity').then((m) => m.opportunityFactory()),
|
|
25
|
+
[RootConfig.entities.opportunityStage.name]: () => import('@acorex-platform/module-customer-management-client/contracts/entities/opportunity-stage').then((m) => m.opportunityStageFactory()),
|
|
26
|
+
[RootConfig.entities.salesPipeline.name]: () => import('@acorex-platform/module-customer-management-client/contracts/entities/sales-pipeline').then((m) => m.salesPipelineFactory()),
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Generated bundle index. Do not edit.
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
export { provideCustomerManagementLocalEntities };
|
|
37
|
+
//# sourceMappingURL=acorex-platform-module-customer-management-client-local-entities.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-customer-management-client-local-entities.mjs","sources":["../../../../libs/modules/customer-management/client/src/lib/provide-local-entities.ts","../../../../libs/modules/customer-management/client/src/lib/acorex-platform-module-customer-management-client-local-entities.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';\nimport { RootConfig } from '@acorex-platform/module-customer-management-client/contracts';\n\n//#endregion\n\n//#region ----- Provide local entities -----\n\n/**\n * Registers customer-management layouts on the client from packaged factories.\n * Each `import()` targets a secondary entry so unused entities stay out of the\n * bundle. Do not add this to the demo app; demo continues to load layouts via\n * `Domain:GetEntityLayout`.\n */\nexport function provideCustomerManagementLocalEntities() {\n return provideLocalEntityCatalog({\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.activity.name]: () =>\n import('@acorex-platform/module-customer-management-client/contracts/entities/activity').then((m) => m.activityFactory()),\n [RootConfig.entities.customer.name]: () =>\n import('@acorex-platform/module-customer-management-client/contracts/entities/customer').then((m) => m.customerFactory()),\n [RootConfig.entities.customerSegment.name]: () =>\n import('@acorex-platform/module-customer-management-client/contracts/entities/customer-segment').then((m) => m.customerSegmentFactory()),\n [RootConfig.entities.customerType.name]: () =>\n import('@acorex-platform/module-customer-management-client/contracts/entities/customer-type').then((m) => m.customerTypeFactory()),\n [RootConfig.entities.dealContactRole.name]: () =>\n import('@acorex-platform/module-customer-management-client/contracts/entities/deal-contact-role').then((m) => m.dealContactRoleFactory()),\n [RootConfig.entities.lead.name]: () =>\n import('@acorex-platform/module-customer-management-client/contracts/entities/lead').then((m) => m.leadFactory()),\n [RootConfig.entities.opportunity.name]: () =>\n import('@acorex-platform/module-customer-management-client/contracts/entities/opportunity').then((m) => m.opportunityFactory()),\n [RootConfig.entities.opportunityStage.name]: () =>\n import('@acorex-platform/module-customer-management-client/contracts/entities/opportunity-stage').then((m) => m.opportunityStageFactory()),\n [RootConfig.entities.salesPipeline.name]: () =>\n import('@acorex-platform/module-customer-management-client/contracts/entities/sales-pipeline').then((m) => m.salesPipelineFactory()),\n },\n });\n}\n\nexport { customerManagementLocalEntityCatalog } from '@acorex-platform/module-customer-management-client/contracts/entity-catalog';\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './provide-local-entities';\n"],"names":[],"mappings":";;;;AAAA;AAKA;AAEA;AAEA;;;;;AAKG;SACa,sCAAsC,GAAA;AACpD,IAAA,OAAO,yBAAyB,CAAC;AAC/B,QAAA,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAClC,QAAA,OAAO,EAAE;AACP,YAAA,CAA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I,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAuB,EAAE,CAAC;AAC5I,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,GAAG,MACxC,OAAO,sFAAsF,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,oBAAoB,EAAE,CAAC;AACvI,SAAA;AACF,KAAA,CAAC;AACJ;AAIA;;AC3CA;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex-platform/module-customer-management-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.33",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0 || ^22.0.0",
|
|
@@ -22,6 +22,50 @@
|
|
|
22
22
|
"./contracts": {
|
|
23
23
|
"types": "./types/acorex-platform-module-customer-management-client-contracts.d.ts",
|
|
24
24
|
"default": "./fesm2022/acorex-platform-module-customer-management-client-contracts.mjs"
|
|
25
|
+
},
|
|
26
|
+
"./contracts/entities/activity": {
|
|
27
|
+
"types": "./types/acorex-platform-module-customer-management-client-contracts-entities-activity.d.ts",
|
|
28
|
+
"default": "./fesm2022/acorex-platform-module-customer-management-client-contracts-entities-activity.mjs"
|
|
29
|
+
},
|
|
30
|
+
"./contracts/entities/customer": {
|
|
31
|
+
"types": "./types/acorex-platform-module-customer-management-client-contracts-entities-customer.d.ts",
|
|
32
|
+
"default": "./fesm2022/acorex-platform-module-customer-management-client-contracts-entities-customer.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./contracts/entities/customer-segment": {
|
|
35
|
+
"types": "./types/acorex-platform-module-customer-management-client-contracts-entities-customer-segment.d.ts",
|
|
36
|
+
"default": "./fesm2022/acorex-platform-module-customer-management-client-contracts-entities-customer-segment.mjs"
|
|
37
|
+
},
|
|
38
|
+
"./contracts/entities/customer-type": {
|
|
39
|
+
"types": "./types/acorex-platform-module-customer-management-client-contracts-entities-customer-type.d.ts",
|
|
40
|
+
"default": "./fesm2022/acorex-platform-module-customer-management-client-contracts-entities-customer-type.mjs"
|
|
41
|
+
},
|
|
42
|
+
"./contracts/entities/deal-contact-role": {
|
|
43
|
+
"types": "./types/acorex-platform-module-customer-management-client-contracts-entities-deal-contact-role.d.ts",
|
|
44
|
+
"default": "./fesm2022/acorex-platform-module-customer-management-client-contracts-entities-deal-contact-role.mjs"
|
|
45
|
+
},
|
|
46
|
+
"./contracts/entities/lead": {
|
|
47
|
+
"types": "./types/acorex-platform-module-customer-management-client-contracts-entities-lead.d.ts",
|
|
48
|
+
"default": "./fesm2022/acorex-platform-module-customer-management-client-contracts-entities-lead.mjs"
|
|
49
|
+
},
|
|
50
|
+
"./contracts/entities/opportunity": {
|
|
51
|
+
"types": "./types/acorex-platform-module-customer-management-client-contracts-entities-opportunity.d.ts",
|
|
52
|
+
"default": "./fesm2022/acorex-platform-module-customer-management-client-contracts-entities-opportunity.mjs"
|
|
53
|
+
},
|
|
54
|
+
"./contracts/entities/opportunity-stage": {
|
|
55
|
+
"types": "./types/acorex-platform-module-customer-management-client-contracts-entities-opportunity-stage.d.ts",
|
|
56
|
+
"default": "./fesm2022/acorex-platform-module-customer-management-client-contracts-entities-opportunity-stage.mjs"
|
|
57
|
+
},
|
|
58
|
+
"./contracts/entities/sales-pipeline": {
|
|
59
|
+
"types": "./types/acorex-platform-module-customer-management-client-contracts-entities-sales-pipeline.d.ts",
|
|
60
|
+
"default": "./fesm2022/acorex-platform-module-customer-management-client-contracts-entities-sales-pipeline.mjs"
|
|
61
|
+
},
|
|
62
|
+
"./contracts/entity-catalog": {
|
|
63
|
+
"types": "./types/acorex-platform-module-customer-management-client-contracts-entity-catalog.d.ts",
|
|
64
|
+
"default": "./fesm2022/acorex-platform-module-customer-management-client-contracts-entity-catalog.mjs"
|
|
65
|
+
},
|
|
66
|
+
"./local-entities": {
|
|
67
|
+
"types": "./types/acorex-platform-module-customer-management-client-local-entities.d.ts",
|
|
68
|
+
"default": "./fesm2022/acorex-platform-module-customer-management-client-local-entities.mjs"
|
|
25
69
|
}
|
|
26
70
|
},
|
|
27
71
|
"type": "module"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Lazy per-entity layout factories. Do not re-export from the contracts barrel
|
|
5
|
+
* so RootConfig imports stay light. Server seed and client `local-entities`
|
|
6
|
+
* consume this catalog explicitly.
|
|
7
|
+
*/
|
|
8
|
+
declare const customerManagementLocalEntityCatalog: AXPLocalEntityCatalog;
|
|
9
|
+
|
|
10
|
+
export { customerManagementLocalEntityCatalog };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
export { customerManagementLocalEntityCatalog } from '@acorex-platform/module-customer-management-client/contracts/entity-catalog';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Registers customer-management layouts on the client from packaged factories.
|
|
6
|
+
* Each `import()` targets a secondary entry so unused entities stay out of the
|
|
7
|
+
* bundle. Do not add this to the demo app; demo continues to load layouts via
|
|
8
|
+
* `Domain:GetEntityLayout`.
|
|
9
|
+
*/
|
|
10
|
+
declare function provideCustomerManagementLocalEntities(): _angular_core.EnvironmentProviders;
|
|
11
|
+
|
|
12
|
+
export { provideCustomerManagementLocalEntities };
|