@acorex-platform/module-business-core-client 0.0.32 → 0.0.37
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-business-core-client-contracts-entities-business-status.mjs +203 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entities-business-status.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entities-business-type.mjs +203 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entities-business-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entities-industry.mjs +203 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entities-industry.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entities-lifecycle-stage.mjs +170 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entities-lifecycle-stage.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entities-manufacturer.mjs +350 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entities-manufacturer.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entities-party-segment.mjs +184 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entities-party-segment.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entities-party-type.mjs +197 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entities-party-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entities-party.mjs +392 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entities-party.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entity-catalog-acorex-platform-module-business-core-client-contracts-entity-catalog-CgsGPgV1.mjs +92 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entity-catalog-acorex-platform-module-business-core-client-contracts-entity-catalog-CgsGPgV1.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entity-catalog-business-status.entity-DsqWCkLU.mjs +137 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entity-catalog-business-status.entity-DsqWCkLU.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entity-catalog-business-type.entity-wK3D1WEc.mjs +137 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entity-catalog-business-type.entity-wK3D1WEc.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entity-catalog-industry.entity-DBEKleao.mjs +137 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entity-catalog-industry.entity-DBEKleao.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entity-catalog-lifecycle-stage.entity-BWPn1XnS.mjs +104 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entity-catalog-lifecycle-stage.entity-BWPn1XnS.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entity-catalog-manufacturer.entity-CAd01aKL.mjs +284 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entity-catalog-manufacturer.entity-CAd01aKL.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entity-catalog-party-segment.entity-WNUL6gHc.mjs +118 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entity-catalog-party-segment.entity-WNUL6gHc.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entity-catalog-party-type.entity-9PmLR0SV.mjs +131 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entity-catalog-party-type.entity-9PmLR0SV.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entity-catalog-party.entity-8vs-i3_r.mjs +326 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entity-catalog-party.entity-8vs-i3_r.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-business-core-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-business-core-client-local-entities.mjs +36 -0
- package/fesm2022/acorex-platform-module-business-core-client-local-entities.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-business-core-client.mjs.map +1 -1
- package/package.json +43 -1
- package/types/acorex-platform-module-business-core-client-contracts-entities-business-status.d.ts +5 -0
- package/types/acorex-platform-module-business-core-client-contracts-entities-business-type.d.ts +5 -0
- package/types/acorex-platform-module-business-core-client-contracts-entities-industry.d.ts +5 -0
- package/types/acorex-platform-module-business-core-client-contracts-entities-lifecycle-stage.d.ts +5 -0
- package/types/acorex-platform-module-business-core-client-contracts-entities-manufacturer.d.ts +5 -0
- package/types/acorex-platform-module-business-core-client-contracts-entities-party-segment.d.ts +5 -0
- package/types/acorex-platform-module-business-core-client-contracts-entities-party-type.d.ts +5 -0
- package/types/acorex-platform-module-business-core-client-contracts-entities-party.d.ts +5 -0
- package/types/acorex-platform-module-business-core-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-business-core-client-local-entities.d.ts +12 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-business-core-client-contracts-entity-catalog-acorex-platform-module-business-core-client-contracts-entity-catalog-CgsGPgV1.mjs';
|
|
4
|
+
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region ---- Entity Factory ----
|
|
7
|
+
async function businessStatusFactory() {
|
|
8
|
+
const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];
|
|
9
|
+
const propertyLayouts = [
|
|
10
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
|
|
11
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },
|
|
12
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
13
|
+
];
|
|
14
|
+
const entityDef = {
|
|
15
|
+
module: RootConfig.module.name,
|
|
16
|
+
name: RootConfig.entities.businessStatus.name,
|
|
17
|
+
title: RootConfig.entities.businessStatus.title,
|
|
18
|
+
icon: RootConfig.entities.businessStatus.icon,
|
|
19
|
+
formats: {
|
|
20
|
+
individual: RootConfig.entities.businessStatus.title,
|
|
21
|
+
plural: RootConfig.entities.businessStatus.titlePlural,
|
|
22
|
+
searchResult: {
|
|
23
|
+
title: '{{ title }}',
|
|
24
|
+
description: '{{ code }}',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }, { name: 'disable' }],
|
|
28
|
+
groups: [{ id: 'basic-info', title: '@business-core:business-statuses.entities.business-status.groups.basic-info' }],
|
|
29
|
+
properties: [
|
|
30
|
+
{
|
|
31
|
+
name: 'id',
|
|
32
|
+
title: '@general:terms.common.id',
|
|
33
|
+
groupId: 'basic-info',
|
|
34
|
+
schema: {
|
|
35
|
+
dataType: 'uuid',
|
|
36
|
+
visible: false,
|
|
37
|
+
readonly: true,
|
|
38
|
+
unique: { enabled: true },
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'code',
|
|
43
|
+
title: '@general:terms.common.code',
|
|
44
|
+
groupId: 'basic-info',
|
|
45
|
+
options: {
|
|
46
|
+
sort: { enabled: true },
|
|
47
|
+
filter: {
|
|
48
|
+
advance: { enabled: true },
|
|
49
|
+
inline: { enabled: true },
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
schema: {
|
|
53
|
+
dataType: 'string',
|
|
54
|
+
interface: {
|
|
55
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
56
|
+
options: {
|
|
57
|
+
placeholder: '@business-core:business-statuses.entities.business-status.fields.code.placeholder',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
validations: [{ rule: 'required' }],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'title',
|
|
65
|
+
title: '@general:terms.common.title',
|
|
66
|
+
groupId: 'basic-info',
|
|
67
|
+
options: {
|
|
68
|
+
sort: { enabled: true },
|
|
69
|
+
filter: {
|
|
70
|
+
advance: { enabled: true },
|
|
71
|
+
inline: { enabled: true },
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
schema: {
|
|
75
|
+
dataType: 'string',
|
|
76
|
+
interface: {
|
|
77
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
78
|
+
options: {
|
|
79
|
+
placeholder: '@business-core:business-statuses.entities.business-status.fields.title.placeholder',
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
validations: [{ rule: 'required' }],
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'description',
|
|
87
|
+
title: '@general:terms.common.description',
|
|
88
|
+
groupId: 'basic-info',
|
|
89
|
+
schema: {
|
|
90
|
+
dataType: 'string',
|
|
91
|
+
interface: {
|
|
92
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
93
|
+
options: {
|
|
94
|
+
rows: 3,
|
|
95
|
+
placeholder: '@business-core:business-statuses.entities.business-status.fields.description.placeholder',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
columns: [
|
|
102
|
+
{ name: 'code', options: { width: '120px', order: 1 } },
|
|
103
|
+
{ name: 'title', options: { width: '220px', order: 2 } },
|
|
104
|
+
],
|
|
105
|
+
interfaces: {
|
|
106
|
+
master: {
|
|
107
|
+
create: {
|
|
108
|
+
sections,
|
|
109
|
+
properties: propertyLayouts,
|
|
110
|
+
},
|
|
111
|
+
update: {
|
|
112
|
+
sections,
|
|
113
|
+
properties: propertyLayouts,
|
|
114
|
+
},
|
|
115
|
+
single: {
|
|
116
|
+
title: '{{ title }}',
|
|
117
|
+
sections,
|
|
118
|
+
properties: propertyLayouts,
|
|
119
|
+
actions: [...entityMasterRecordActions()],
|
|
120
|
+
},
|
|
121
|
+
list: {
|
|
122
|
+
actions: [...entityMasterCrudActions()],
|
|
123
|
+
views: [
|
|
124
|
+
createAllQueryView({
|
|
125
|
+
sorts: [{ name: 'code', dir: 'asc' }],
|
|
126
|
+
}),
|
|
127
|
+
],
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
return entityDef;
|
|
133
|
+
}
|
|
134
|
+
//#endregion
|
|
135
|
+
|
|
136
|
+
export { businessStatusFactory };
|
|
137
|
+
//# sourceMappingURL=acorex-platform-module-business-core-client-contracts-entity-catalog-business-status.entity-DsqWCkLU.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-business-core-client-contracts-entity-catalog-business-status.entity-DsqWCkLU.mjs","sources":["../../../../libs/modules/business-core/contracts/src/entities/business-status/business-status.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function businessStatusFactory(): Promise<AXPEntity> {\n const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];\n\n const propertyLayouts = [\n { name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.businessStatus.name,\n title: RootConfig.entities.businessStatus.title,\n icon: RootConfig.entities.businessStatus.icon,\n formats: {\n individual: RootConfig.entities.businessStatus.title,\n plural: RootConfig.entities.businessStatus.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }, { name: 'disable' }],\n groups: [{ id: 'basic-info', title: '@business-core:business-statuses.entities.business-status.groups.basic-info' }],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: {\n dataType: 'uuid',\n visible: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'code',\n title: '@general:terms.common.code',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: {\n advance: { enabled: true },\n inline: { enabled: true },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@business-core:business-statuses.entities.business-status.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: {\n advance: { enabled: true },\n inline: { enabled: true },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@business-core:business-statuses.entities.business-status.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n placeholder: '@business-core:business-statuses.entities.business-status.fields.description.placeholder',\n },\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '120px', order: 1 } },\n { name: 'title', options: { width: '220px', order: 2 } },\n ],\n interfaces: {\n master: {\n create: {\n sections,\n properties: propertyLayouts,\n },\n update: {\n sections,\n properties: propertyLayouts,\n },\n single: {\n title: '{{ title }}',\n sections,\n properties: propertyLayouts,\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'code', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,qBAAqB,GAAA;IACvC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AAEvF,IAAA,MAAM,eAAe,GAAG;QACpB,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QACzE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QAC1E,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;KACpF;AAED,IAAA,MAAM,SAAS,GAAc;AACzB,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI;AAC7C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK;AAC/C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI;AAC7C,QAAA,OAAO,EAAE;AACL,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC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AA;AACJ,iBAAA;AACJ,aAAA;AACJ,SAAA;AACD,QAAA,OAAO,EAAE;AACL,YAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;AACvD,YAAA,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;AAC3D,SAAA;AACD,QAAA,UAAU,EAAE;AACR,YAAA,MAAM,EAAE;AACJ,gBAAA,MAAM,EAAE;oBACJ,QAAQ;AACR,oBAAA,UAAU,EAAE,eAAe;AAC9B,iBAAA;AACD,gBAAA,MAAM,EAAE;oBACJ,QAAQ;AACR,oBAAA,UAAU,EAAE,eAAe;AAC9B,iBAAA;AACD,gBAAA,MAAM,EAAE;AACJ,oBAAA,KAAK,EAAE,aAAa;oBACpB,QAAQ;AACR,oBAAA,UAAU,EAAE,eAAe;AAC3B,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC5C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACF,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;AACvC,oBAAA,KAAK,EAAE;AACH,wBAAA,kBAAkB,CAAC;4BACf,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBACxC,CAAC;AACL,qBAAA;AACJ,iBAAA;AACJ,aAAA;AACJ,SAAA;KACJ;AAED,IAAA,OAAO,SAAS;AACpB;AAEA;;"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-business-core-client-contracts-entity-catalog-acorex-platform-module-business-core-client-contracts-entity-catalog-CgsGPgV1.mjs';
|
|
4
|
+
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region ---- Entity Factory ----
|
|
7
|
+
async function businessTypeFactory() {
|
|
8
|
+
const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];
|
|
9
|
+
const propertyLayouts = [
|
|
10
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
|
|
11
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },
|
|
12
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
13
|
+
];
|
|
14
|
+
const entityDef = {
|
|
15
|
+
module: RootConfig.module.name,
|
|
16
|
+
name: RootConfig.entities.businessType.name,
|
|
17
|
+
title: RootConfig.entities.businessType.title,
|
|
18
|
+
icon: RootConfig.entities.businessType.icon,
|
|
19
|
+
formats: {
|
|
20
|
+
individual: RootConfig.entities.businessType.title,
|
|
21
|
+
plural: RootConfig.entities.businessType.titlePlural,
|
|
22
|
+
searchResult: {
|
|
23
|
+
title: '{{ title }}',
|
|
24
|
+
description: '{{ code }}',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }, { name: 'disable' }],
|
|
28
|
+
groups: [{ id: 'basic-info', title: '@business-core:business-types.entities.business-type.groups.basic-info' }],
|
|
29
|
+
properties: [
|
|
30
|
+
{
|
|
31
|
+
name: 'id',
|
|
32
|
+
title: '@general:terms.common.id',
|
|
33
|
+
groupId: 'basic-info',
|
|
34
|
+
schema: {
|
|
35
|
+
dataType: 'uuid',
|
|
36
|
+
visible: false,
|
|
37
|
+
readonly: true,
|
|
38
|
+
unique: { enabled: true },
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'code',
|
|
43
|
+
title: '@general:terms.common.code',
|
|
44
|
+
groupId: 'basic-info',
|
|
45
|
+
options: {
|
|
46
|
+
sort: { enabled: true },
|
|
47
|
+
filter: {
|
|
48
|
+
advance: { enabled: true },
|
|
49
|
+
inline: { enabled: true },
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
schema: {
|
|
53
|
+
dataType: 'string',
|
|
54
|
+
interface: {
|
|
55
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
56
|
+
options: {
|
|
57
|
+
placeholder: '@business-core:business-types.entities.business-type.fields.code.placeholder',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
validations: [{ rule: 'required' }],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'title',
|
|
65
|
+
title: '@general:terms.common.title',
|
|
66
|
+
groupId: 'basic-info',
|
|
67
|
+
options: {
|
|
68
|
+
sort: { enabled: true },
|
|
69
|
+
filter: {
|
|
70
|
+
advance: { enabled: true },
|
|
71
|
+
inline: { enabled: true },
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
schema: {
|
|
75
|
+
dataType: 'string',
|
|
76
|
+
interface: {
|
|
77
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
78
|
+
options: {
|
|
79
|
+
placeholder: '@business-core:business-types.entities.business-type.fields.title.placeholder',
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
validations: [{ rule: 'required' }],
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'description',
|
|
87
|
+
title: '@general:terms.common.description',
|
|
88
|
+
groupId: 'basic-info',
|
|
89
|
+
schema: {
|
|
90
|
+
dataType: 'string',
|
|
91
|
+
interface: {
|
|
92
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
93
|
+
options: {
|
|
94
|
+
rows: 3,
|
|
95
|
+
placeholder: '@business-core:business-types.entities.business-type.fields.description.placeholder',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
columns: [
|
|
102
|
+
{ name: 'code', options: { width: '120px', order: 1 } },
|
|
103
|
+
{ name: 'title', options: { width: '220px', order: 2 } },
|
|
104
|
+
],
|
|
105
|
+
interfaces: {
|
|
106
|
+
master: {
|
|
107
|
+
create: {
|
|
108
|
+
sections,
|
|
109
|
+
properties: propertyLayouts,
|
|
110
|
+
},
|
|
111
|
+
update: {
|
|
112
|
+
sections,
|
|
113
|
+
properties: propertyLayouts,
|
|
114
|
+
},
|
|
115
|
+
single: {
|
|
116
|
+
title: '{{ title }}',
|
|
117
|
+
sections,
|
|
118
|
+
properties: propertyLayouts,
|
|
119
|
+
actions: [...entityMasterRecordActions()],
|
|
120
|
+
},
|
|
121
|
+
list: {
|
|
122
|
+
actions: [...entityMasterCrudActions()],
|
|
123
|
+
views: [
|
|
124
|
+
createAllQueryView({
|
|
125
|
+
sorts: [{ name: 'code', dir: 'asc' }],
|
|
126
|
+
}),
|
|
127
|
+
],
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
return entityDef;
|
|
133
|
+
}
|
|
134
|
+
//#endregion
|
|
135
|
+
|
|
136
|
+
export { businessTypeFactory };
|
|
137
|
+
//# sourceMappingURL=acorex-platform-module-business-core-client-contracts-entity-catalog-business-type.entity-wK3D1WEc.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-business-core-client-contracts-entity-catalog-business-type.entity-wK3D1WEc.mjs","sources":["../../../../libs/modules/business-core/contracts/src/entities/business-type/business-type.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function businessTypeFactory(): Promise<AXPEntity> {\n const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];\n\n const propertyLayouts = [\n { name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.businessType.name,\n title: RootConfig.entities.businessType.title,\n icon: RootConfig.entities.businessType.icon,\n formats: {\n individual: RootConfig.entities.businessType.title,\n plural: RootConfig.entities.businessType.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }, { name: 'disable' }],\n groups: [{ id: 'basic-info', title: '@business-core:business-types.entities.business-type.groups.basic-info' }],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: {\n dataType: 'uuid',\n visible: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'code',\n title: '@general:terms.common.code',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: {\n advance: { enabled: true },\n inline: { enabled: true },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@business-core:business-types.entities.business-type.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: {\n advance: { enabled: true },\n inline: { enabled: true },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@business-core:business-types.entities.business-type.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n placeholder: '@business-core:business-types.entities.business-type.fields.description.placeholder',\n },\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '120px', order: 1 } },\n { name: 'title', options: { width: '220px', order: 2 } },\n ],\n interfaces: {\n master: {\n create: {\n sections,\n properties: propertyLayouts,\n },\n update: {\n sections,\n properties: propertyLayouts,\n },\n single: {\n title: '{{ title }}',\n sections,\n properties: propertyLayouts,\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'code', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,mBAAmB,GAAA;IACrC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AAEvF,IAAA,MAAM,eAAe,GAAG;QACpB,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QACzE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QAC1E,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;KACpF;AAED,IAAA,MAAM,SAAS,GAAc;AACzB,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B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AACJ,SAAA;KACJ;AAED,IAAA,OAAO,SAAS;AACpB;AAEA;;"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-business-core-client-contracts-entity-catalog-acorex-platform-module-business-core-client-contracts-entity-catalog-CgsGPgV1.mjs';
|
|
4
|
+
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region ---- Entity Factory ----
|
|
7
|
+
async function industryFactory() {
|
|
8
|
+
const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];
|
|
9
|
+
const propertyLayouts = [
|
|
10
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
|
|
11
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },
|
|
12
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
13
|
+
];
|
|
14
|
+
const entityDef = {
|
|
15
|
+
module: RootConfig.module.name,
|
|
16
|
+
name: RootConfig.entities.industry.name,
|
|
17
|
+
title: RootConfig.entities.industry.title,
|
|
18
|
+
icon: RootConfig.entities.industry.icon,
|
|
19
|
+
formats: {
|
|
20
|
+
individual: RootConfig.entities.industry.title,
|
|
21
|
+
plural: RootConfig.entities.industry.titlePlural,
|
|
22
|
+
searchResult: {
|
|
23
|
+
title: '{{ title }}',
|
|
24
|
+
description: '{{ code }}',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }, { name: 'disable' }],
|
|
28
|
+
groups: [{ id: 'basic-info', title: '@business-core:industries.entities.industry.groups.basic-info' }],
|
|
29
|
+
properties: [
|
|
30
|
+
{
|
|
31
|
+
name: 'id',
|
|
32
|
+
title: '@general:terms.common.id',
|
|
33
|
+
groupId: 'basic-info',
|
|
34
|
+
schema: {
|
|
35
|
+
dataType: 'uuid',
|
|
36
|
+
visible: false,
|
|
37
|
+
readonly: true,
|
|
38
|
+
unique: { enabled: true },
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'code',
|
|
43
|
+
title: '@general:terms.common.code',
|
|
44
|
+
groupId: 'basic-info',
|
|
45
|
+
options: {
|
|
46
|
+
sort: { enabled: true },
|
|
47
|
+
filter: {
|
|
48
|
+
advance: { enabled: true },
|
|
49
|
+
inline: { enabled: true },
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
schema: {
|
|
53
|
+
dataType: 'string',
|
|
54
|
+
interface: {
|
|
55
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
56
|
+
options: {
|
|
57
|
+
placeholder: '@business-core:industries.entities.industry.fields.code.placeholder',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
validations: [{ rule: 'required' }],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'title',
|
|
65
|
+
title: '@general:terms.common.title',
|
|
66
|
+
groupId: 'basic-info',
|
|
67
|
+
options: {
|
|
68
|
+
sort: { enabled: true },
|
|
69
|
+
filter: {
|
|
70
|
+
advance: { enabled: true },
|
|
71
|
+
inline: { enabled: true },
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
schema: {
|
|
75
|
+
dataType: 'string',
|
|
76
|
+
interface: {
|
|
77
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
78
|
+
options: {
|
|
79
|
+
placeholder: '@business-core:industries.entities.industry.fields.title.placeholder',
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
validations: [{ rule: 'required' }],
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'description',
|
|
87
|
+
title: '@general:terms.common.description',
|
|
88
|
+
groupId: 'basic-info',
|
|
89
|
+
schema: {
|
|
90
|
+
dataType: 'string',
|
|
91
|
+
interface: {
|
|
92
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
93
|
+
options: {
|
|
94
|
+
rows: 3,
|
|
95
|
+
placeholder: '@business-core:industries.entities.industry.fields.description.placeholder',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
columns: [
|
|
102
|
+
{ name: 'code', options: { width: '120px', order: 1 } },
|
|
103
|
+
{ name: 'title', options: { width: '220px', order: 2 } },
|
|
104
|
+
],
|
|
105
|
+
interfaces: {
|
|
106
|
+
master: {
|
|
107
|
+
create: {
|
|
108
|
+
sections,
|
|
109
|
+
properties: propertyLayouts,
|
|
110
|
+
},
|
|
111
|
+
update: {
|
|
112
|
+
sections,
|
|
113
|
+
properties: propertyLayouts,
|
|
114
|
+
},
|
|
115
|
+
single: {
|
|
116
|
+
title: '{{ title }}',
|
|
117
|
+
sections,
|
|
118
|
+
properties: propertyLayouts,
|
|
119
|
+
actions: [...entityMasterRecordActions()],
|
|
120
|
+
},
|
|
121
|
+
list: {
|
|
122
|
+
actions: [...entityMasterCrudActions()],
|
|
123
|
+
views: [
|
|
124
|
+
createAllQueryView({
|
|
125
|
+
sorts: [{ name: 'code', dir: 'asc' }],
|
|
126
|
+
}),
|
|
127
|
+
],
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
return entityDef;
|
|
133
|
+
}
|
|
134
|
+
//#endregion
|
|
135
|
+
|
|
136
|
+
export { industryFactory };
|
|
137
|
+
//# sourceMappingURL=acorex-platform-module-business-core-client-contracts-entity-catalog-industry.entity-DBEKleao.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-business-core-client-contracts-entity-catalog-industry.entity-DBEKleao.mjs","sources":["../../../../libs/modules/business-core/contracts/src/entities/industry/industry.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function industryFactory(): Promise<AXPEntity> {\n const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];\n\n const propertyLayouts = [\n { name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.industry.name,\n title: RootConfig.entities.industry.title,\n icon: RootConfig.entities.industry.icon,\n formats: {\n individual: RootConfig.entities.industry.title,\n plural: RootConfig.entities.industry.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }, { name: 'disable' }],\n groups: [{ id: 'basic-info', title: '@business-core:industries.entities.industry.groups.basic-info' }],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: {\n dataType: 'uuid',\n visible: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'code',\n title: '@general:terms.common.code',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: {\n advance: { enabled: true },\n inline: { enabled: true },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@business-core:industries.entities.industry.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: {\n advance: { enabled: true },\n inline: { enabled: true },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@business-core:industries.entities.industry.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n placeholder: '@business-core:industries.entities.industry.fields.description.placeholder',\n },\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '120px', order: 1 } },\n { name: 'title', options: { width: '220px', order: 2 } },\n ],\n interfaces: {\n master: {\n create: {\n sections,\n properties: propertyLayouts,\n },\n update: {\n sections,\n properties: propertyLayouts,\n },\n single: {\n title: '{{ title }}',\n sections,\n properties: propertyLayouts,\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'code', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,eAAe,GAAA;IACjC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AAEvF,IAAA,MAAM,eAAe,GAAG;QACpB,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QACzE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QAC1E,EAAE,IAAI,EAAE,aAAa,E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E,CAAC,GAAG,uBAAuB,EAAE,CAAC;AACvC,oBAAA,KAAK,EAAE;AACH,wBAAA,kBAAkB,CAAC;4BACf,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBACxC,CAAC;AACL,qBAAA;AACJ,iBAAA;AACJ,aAAA;AACJ,SAAA;KACJ;AAED,IAAA,OAAO,SAAS;AACpB;AAEA;;"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-business-core-client-contracts-entity-catalog-acorex-platform-module-business-core-client-contracts-entity-catalog-CgsGPgV1.mjs';
|
|
4
|
+
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region ---- Entity Factory ----
|
|
7
|
+
async function lifecycleStageFactory() {
|
|
8
|
+
const i18n = RootConfig.config.i18n + ':lifecycle-stages.entities.lifecycle-stage';
|
|
9
|
+
const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];
|
|
10
|
+
const propertyLayouts = [
|
|
11
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
12
|
+
{ name: 'order', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },
|
|
13
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
14
|
+
];
|
|
15
|
+
const entityDef = {
|
|
16
|
+
module: RootConfig.module.name,
|
|
17
|
+
name: RootConfig.entities.lifecycleStage.name,
|
|
18
|
+
title: RootConfig.entities.lifecycleStage.title,
|
|
19
|
+
icon: RootConfig.entities.lifecycleStage.icon,
|
|
20
|
+
formats: {
|
|
21
|
+
individual: RootConfig.entities.lifecycleStage.title,
|
|
22
|
+
plural: RootConfig.entities.lifecycleStage.titlePlural,
|
|
23
|
+
searchResult: {
|
|
24
|
+
title: '{{ title }}',
|
|
25
|
+
description: RootConfig.module.title,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
plugins: [{ name: 'archive' }],
|
|
29
|
+
groups: [{ id: 'basic-info', title: `@${i18n}.groups.basic-info` }],
|
|
30
|
+
properties: [
|
|
31
|
+
{
|
|
32
|
+
name: 'id',
|
|
33
|
+
title: '@general:terms.common.id',
|
|
34
|
+
groupId: 'basic-info',
|
|
35
|
+
schema: { dataType: 'uuid', visible: false, readonly: true, unique: { enabled: true } },
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'title',
|
|
39
|
+
title: `@${i18n}.fields.title.title`,
|
|
40
|
+
groupId: 'basic-info',
|
|
41
|
+
options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
|
|
42
|
+
schema: {
|
|
43
|
+
dataType: 'string',
|
|
44
|
+
interface: {
|
|
45
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
46
|
+
options: { placeholder: `@${i18n}.fields.title.placeholder` },
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
validations: [{ rule: 'required' }],
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'order',
|
|
53
|
+
title: `@${i18n}.fields.order.title`,
|
|
54
|
+
groupId: 'basic-info',
|
|
55
|
+
options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
|
|
56
|
+
schema: {
|
|
57
|
+
dataType: 'number',
|
|
58
|
+
interface: {
|
|
59
|
+
type: AXPWidgetsList.Editors.NumberBox,
|
|
60
|
+
options: { placeholder: `@${i18n}.fields.order.placeholder` },
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'description',
|
|
66
|
+
title: `@${i18n}.fields.description.title`,
|
|
67
|
+
groupId: 'basic-info',
|
|
68
|
+
schema: {
|
|
69
|
+
dataType: 'string',
|
|
70
|
+
interface: {
|
|
71
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
72
|
+
options: { rows: 3, placeholder: `@${i18n}.fields.description.placeholder` },
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
columns: [
|
|
78
|
+
{ name: 'title', options: { width: '200px', order: 1 } },
|
|
79
|
+
{ name: 'order', options: { width: '80px', order: 2 } },
|
|
80
|
+
{ name: 'description', options: { width: '280px', order: 3 } },
|
|
81
|
+
],
|
|
82
|
+
interfaces: {
|
|
83
|
+
master: {
|
|
84
|
+
create: { sections, properties: propertyLayouts },
|
|
85
|
+
update: { sections, properties: propertyLayouts },
|
|
86
|
+
single: {
|
|
87
|
+
title: '{{ title }}',
|
|
88
|
+
sections,
|
|
89
|
+
properties: propertyLayouts,
|
|
90
|
+
actions: [...entityMasterRecordActions()],
|
|
91
|
+
},
|
|
92
|
+
list: {
|
|
93
|
+
actions: [...entityMasterCrudActions()],
|
|
94
|
+
views: [createAllQueryView({ sorts: [{ name: 'order', dir: 'asc' }, { name: 'title', dir: 'asc' }] })],
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
return entityDef;
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
102
|
+
|
|
103
|
+
export { lifecycleStageFactory };
|
|
104
|
+
//# sourceMappingURL=acorex-platform-module-business-core-client-contracts-entity-catalog-lifecycle-stage.entity-BWPn1XnS.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-business-core-client-contracts-entity-catalog-lifecycle-stage.entity-BWPn1XnS.mjs","sources":["../../../../libs/modules/business-core/contracts/src/entities/lifecycle-stage/lifecycle-stage.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function lifecycleStageFactory(): Promise<AXPEntity> {\n const i18n = RootConfig.config.i18n + ':lifecycle-stages.entities.lifecycle-stage';\n const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];\n const propertyLayouts = [\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'order', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.lifecycleStage.name,\n title: RootConfig.entities.lifecycleStage.title,\n icon: RootConfig.entities.lifecycleStage.icon,\n formats: {\n individual: RootConfig.entities.lifecycleStage.title,\n plural: RootConfig.entities.lifecycleStage.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n plugins: [{ name: 'archive' }],\n groups: [{ id: 'basic-info', title: `@${i18n}.groups.basic-info` }],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'title',\n title: `@${i18n}.fields.title.title`,\n groupId: 'basic-info',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: { placeholder: `@${i18n}.fields.title.placeholder` },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'order',\n title: `@${i18n}.fields.order.title`,\n groupId: 'basic-info',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: { placeholder: `@${i18n}.fields.order.placeholder` },\n },\n },\n },\n {\n name: 'description',\n title: `@${i18n}.fields.description.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: { rows: 3, placeholder: `@${i18n}.fields.description.placeholder` },\n },\n },\n },\n ],\n columns: [\n { name: 'title', options: { width: '200px', order: 1 } },\n { name: 'order', options: { width: '80px', order: 2 } },\n { name: 'description', options: { width: '280px', order: 3 } },\n ],\n interfaces: {\n master: {\n create: { sections, properties: propertyLayouts },\n update: { sections, properties: propertyLayouts },\n single: {\n title: '{{ title }}',\n sections,\n properties: propertyLayouts,\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'order', dir: 'asc' }, { name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,qBAAqB,GAAA;IACvC,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,GAAG,4CAA4C;IAClF,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AACvF,IAAA,MAAM,eAAe,GAAG;QACpB,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QAC1E,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QAC1E,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EA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