@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
package/fesm2022/acorex-platform-module-business-core-client-contracts-entities-business-status.mjs
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
|
|
4
|
+
const config = {
|
|
5
|
+
i18n: 'business-core',
|
|
6
|
+
module: 'BusinessCore',
|
|
7
|
+
};
|
|
8
|
+
const RootConfig = {
|
|
9
|
+
config,
|
|
10
|
+
module: {
|
|
11
|
+
name: config.module,
|
|
12
|
+
title: `@${config.i18n}:module.title`,
|
|
13
|
+
icon: 'fa-light fa-building',
|
|
14
|
+
},
|
|
15
|
+
entities: {
|
|
16
|
+
manufacturer: {
|
|
17
|
+
name: 'Manufacturer',
|
|
18
|
+
title: `@${config.i18n}:manufacturers.entities.manufacturer.title`,
|
|
19
|
+
titlePlural: `@${config.i18n}:manufacturers.entities.manufacturer.plural`,
|
|
20
|
+
icon: 'fa-light fa-industry',
|
|
21
|
+
},
|
|
22
|
+
industry: {
|
|
23
|
+
name: 'Industry',
|
|
24
|
+
title: `@${config.i18n}:industries.entities.industry.title`,
|
|
25
|
+
titlePlural: `@${config.i18n}:industries.entities.industry.plural`,
|
|
26
|
+
icon: 'fa-light fa-chart-line',
|
|
27
|
+
},
|
|
28
|
+
businessType: {
|
|
29
|
+
name: 'BusinessType',
|
|
30
|
+
title: `@${config.i18n}:business-types.entities.business-type.title`,
|
|
31
|
+
titlePlural: `@${config.i18n}:business-types.entities.business-type.plural`,
|
|
32
|
+
icon: 'fa-light fa-briefcase',
|
|
33
|
+
},
|
|
34
|
+
businessStatus: {
|
|
35
|
+
name: 'BusinessStatus',
|
|
36
|
+
title: `@${config.i18n}:business-statuses.entities.business-status.title`,
|
|
37
|
+
titlePlural: `@${config.i18n}:business-statuses.entities.business-status.plural`,
|
|
38
|
+
icon: 'fa-light fa-circle-check',
|
|
39
|
+
},
|
|
40
|
+
partyType: {
|
|
41
|
+
name: 'PartyType',
|
|
42
|
+
title: `@${config.i18n}:party-types.entities.party-type.title`,
|
|
43
|
+
titlePlural: `@${config.i18n}:party-types.entities.party-type.plural`,
|
|
44
|
+
icon: 'fa-light fa-tag',
|
|
45
|
+
},
|
|
46
|
+
partySegment: {
|
|
47
|
+
name: 'PartySegment',
|
|
48
|
+
title: `@${config.i18n}:party-segments.entities.party-segment.title`,
|
|
49
|
+
titlePlural: `@${config.i18n}:party-segments.entities.party-segment.plural`,
|
|
50
|
+
icon: 'fa-light fa-chart-pie',
|
|
51
|
+
},
|
|
52
|
+
lifecycleStage: {
|
|
53
|
+
name: 'LifecycleStage',
|
|
54
|
+
title: `@${config.i18n}:lifecycle-stages.entities.lifecycle-stage.title`,
|
|
55
|
+
titlePlural: `@${config.i18n}:lifecycle-stages.entities.lifecycle-stage.plural`,
|
|
56
|
+
icon: 'fa-light fa-timeline',
|
|
57
|
+
},
|
|
58
|
+
party: {
|
|
59
|
+
name: 'Party',
|
|
60
|
+
title: `@${config.i18n}:parties.entities.party.title`,
|
|
61
|
+
titlePlural: `@${config.i18n}:parties.entities.party.plural`,
|
|
62
|
+
icon: 'fa-light fa-building',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region ---- Entity Factory ----
|
|
69
|
+
async function businessStatusFactory() {
|
|
70
|
+
const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];
|
|
71
|
+
const propertyLayouts = [
|
|
72
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
|
|
73
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },
|
|
74
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
75
|
+
];
|
|
76
|
+
const entityDef = {
|
|
77
|
+
module: RootConfig.module.name,
|
|
78
|
+
name: RootConfig.entities.businessStatus.name,
|
|
79
|
+
title: RootConfig.entities.businessStatus.title,
|
|
80
|
+
icon: RootConfig.entities.businessStatus.icon,
|
|
81
|
+
formats: {
|
|
82
|
+
individual: RootConfig.entities.businessStatus.title,
|
|
83
|
+
plural: RootConfig.entities.businessStatus.titlePlural,
|
|
84
|
+
searchResult: {
|
|
85
|
+
title: '{{ title }}',
|
|
86
|
+
description: '{{ code }}',
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }, { name: 'disable' }],
|
|
90
|
+
groups: [{ id: 'basic-info', title: '@business-core:business-statuses.entities.business-status.groups.basic-info' }],
|
|
91
|
+
properties: [
|
|
92
|
+
{
|
|
93
|
+
name: 'id',
|
|
94
|
+
title: '@general:terms.common.id',
|
|
95
|
+
groupId: 'basic-info',
|
|
96
|
+
schema: {
|
|
97
|
+
dataType: 'uuid',
|
|
98
|
+
visible: false,
|
|
99
|
+
readonly: true,
|
|
100
|
+
unique: { enabled: true },
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'code',
|
|
105
|
+
title: '@general:terms.common.code',
|
|
106
|
+
groupId: 'basic-info',
|
|
107
|
+
options: {
|
|
108
|
+
sort: { enabled: true },
|
|
109
|
+
filter: {
|
|
110
|
+
advance: { enabled: true },
|
|
111
|
+
inline: { enabled: true },
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
schema: {
|
|
115
|
+
dataType: 'string',
|
|
116
|
+
interface: {
|
|
117
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
118
|
+
options: {
|
|
119
|
+
placeholder: '@business-core:business-statuses.entities.business-status.fields.code.placeholder',
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
validations: [{ rule: 'required' }],
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'title',
|
|
127
|
+
title: '@general:terms.common.title',
|
|
128
|
+
groupId: 'basic-info',
|
|
129
|
+
options: {
|
|
130
|
+
sort: { enabled: true },
|
|
131
|
+
filter: {
|
|
132
|
+
advance: { enabled: true },
|
|
133
|
+
inline: { enabled: true },
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
schema: {
|
|
137
|
+
dataType: 'string',
|
|
138
|
+
interface: {
|
|
139
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
140
|
+
options: {
|
|
141
|
+
placeholder: '@business-core:business-statuses.entities.business-status.fields.title.placeholder',
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
validations: [{ rule: 'required' }],
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: 'description',
|
|
149
|
+
title: '@general:terms.common.description',
|
|
150
|
+
groupId: 'basic-info',
|
|
151
|
+
schema: {
|
|
152
|
+
dataType: 'string',
|
|
153
|
+
interface: {
|
|
154
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
155
|
+
options: {
|
|
156
|
+
rows: 3,
|
|
157
|
+
placeholder: '@business-core:business-statuses.entities.business-status.fields.description.placeholder',
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
columns: [
|
|
164
|
+
{ name: 'code', options: { width: '120px', order: 1 } },
|
|
165
|
+
{ name: 'title', options: { width: '220px', order: 2 } },
|
|
166
|
+
],
|
|
167
|
+
interfaces: {
|
|
168
|
+
master: {
|
|
169
|
+
create: {
|
|
170
|
+
sections,
|
|
171
|
+
properties: propertyLayouts,
|
|
172
|
+
},
|
|
173
|
+
update: {
|
|
174
|
+
sections,
|
|
175
|
+
properties: propertyLayouts,
|
|
176
|
+
},
|
|
177
|
+
single: {
|
|
178
|
+
title: '{{ title }}',
|
|
179
|
+
sections,
|
|
180
|
+
properties: propertyLayouts,
|
|
181
|
+
actions: [...entityMasterRecordActions()],
|
|
182
|
+
},
|
|
183
|
+
list: {
|
|
184
|
+
actions: [...entityMasterCrudActions()],
|
|
185
|
+
views: [
|
|
186
|
+
createAllQueryView({
|
|
187
|
+
sorts: [{ name: 'code', dir: 'asc' }],
|
|
188
|
+
}),
|
|
189
|
+
],
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
};
|
|
194
|
+
return entityDef;
|
|
195
|
+
}
|
|
196
|
+
//#endregion
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Generated bundle index. Do not edit.
|
|
200
|
+
*/
|
|
201
|
+
|
|
202
|
+
export { businessStatusFactory };
|
|
203
|
+
//# sourceMappingURL=acorex-platform-module-business-core-client-contracts-entities-business-status.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-business-core-client-contracts-entities-business-status.mjs","sources":["../../../../libs/modules/business-core/contracts/src/root-config.ts","../../../../libs/modules/business-core/contracts/src/entities/business-status/business-status.entity.ts","../../../../libs/modules/business-core/contracts/src/acorex-platform-module-business-core-client-contracts-entities-business-status.ts"],"sourcesContent":["const config = {\n i18n: 'business-core',\n module: 'BusinessCore',\n};\n\nexport const RootConfig = {\n config,\n module: {\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-building',\n },\n entities: {\n manufacturer: {\n name: 'Manufacturer',\n title: `@${config.i18n}:manufacturers.entities.manufacturer.title`,\n titlePlural: `@${config.i18n}:manufacturers.entities.manufacturer.plural`,\n icon: 'fa-light fa-industry',\n },\n industry: {\n name: 'Industry',\n title: `@${config.i18n}:industries.entities.industry.title`,\n titlePlural: `@${config.i18n}:industries.entities.industry.plural`,\n icon: 'fa-light fa-chart-line',\n },\n businessType: {\n name: 'BusinessType',\n title: `@${config.i18n}:business-types.entities.business-type.title`,\n titlePlural: `@${config.i18n}:business-types.entities.business-type.plural`,\n icon: 'fa-light fa-briefcase',\n },\n businessStatus: {\n name: 'BusinessStatus',\n title: `@${config.i18n}:business-statuses.entities.business-status.title`,\n titlePlural: `@${config.i18n}:business-statuses.entities.business-status.plural`,\n icon: 'fa-light fa-circle-check',\n },\n partyType: {\n name: 'PartyType',\n title: `@${config.i18n}:party-types.entities.party-type.title`,\n titlePlural: `@${config.i18n}:party-types.entities.party-type.plural`,\n icon: 'fa-light fa-tag',\n },\n partySegment: {\n name: 'PartySegment',\n title: `@${config.i18n}:party-segments.entities.party-segment.title`,\n titlePlural: `@${config.i18n}:party-segments.entities.party-segment.plural`,\n icon: 'fa-light fa-chart-pie',\n },\n lifecycleStage: {\n name: 'LifecycleStage',\n title: `@${config.i18n}:lifecycle-stages.entities.lifecycle-stage.title`,\n titlePlural: `@${config.i18n}:lifecycle-stages.entities.lifecycle-stage.plural`,\n icon: 'fa-light fa-timeline',\n },\n party: {\n name: 'Party',\n title: `@${config.i18n}:parties.entities.party.title`,\n titlePlural: `@${config.i18n}:parties.entities.party.plural`,\n icon: 'fa-light fa-building',\n },\n },\n} as const;\n","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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.business-status';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACX,IAAA,IAAI,EAAE,eAAe;AACrB,IAAA,MAAM,EAAE,cAAc;CACzB;AAEM,MAAM,UAAU,GAAG;IACtB,MAAM;AACN,IAAA,MAAM,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,sBAAsB;AAC/B,KAAA;AACD,IAAA,QAAQ,EAAE;AACN,QAAA,YAAY,EAAE;AACV,YAAA,IAAI,EAAE,cAAc;AACpB,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MA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,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;;AC5IA;;AAEG;;"}
|
package/fesm2022/acorex-platform-module-business-core-client-contracts-entities-business-type.mjs
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
|
|
4
|
+
const config = {
|
|
5
|
+
i18n: 'business-core',
|
|
6
|
+
module: 'BusinessCore',
|
|
7
|
+
};
|
|
8
|
+
const RootConfig = {
|
|
9
|
+
config,
|
|
10
|
+
module: {
|
|
11
|
+
name: config.module,
|
|
12
|
+
title: `@${config.i18n}:module.title`,
|
|
13
|
+
icon: 'fa-light fa-building',
|
|
14
|
+
},
|
|
15
|
+
entities: {
|
|
16
|
+
manufacturer: {
|
|
17
|
+
name: 'Manufacturer',
|
|
18
|
+
title: `@${config.i18n}:manufacturers.entities.manufacturer.title`,
|
|
19
|
+
titlePlural: `@${config.i18n}:manufacturers.entities.manufacturer.plural`,
|
|
20
|
+
icon: 'fa-light fa-industry',
|
|
21
|
+
},
|
|
22
|
+
industry: {
|
|
23
|
+
name: 'Industry',
|
|
24
|
+
title: `@${config.i18n}:industries.entities.industry.title`,
|
|
25
|
+
titlePlural: `@${config.i18n}:industries.entities.industry.plural`,
|
|
26
|
+
icon: 'fa-light fa-chart-line',
|
|
27
|
+
},
|
|
28
|
+
businessType: {
|
|
29
|
+
name: 'BusinessType',
|
|
30
|
+
title: `@${config.i18n}:business-types.entities.business-type.title`,
|
|
31
|
+
titlePlural: `@${config.i18n}:business-types.entities.business-type.plural`,
|
|
32
|
+
icon: 'fa-light fa-briefcase',
|
|
33
|
+
},
|
|
34
|
+
businessStatus: {
|
|
35
|
+
name: 'BusinessStatus',
|
|
36
|
+
title: `@${config.i18n}:business-statuses.entities.business-status.title`,
|
|
37
|
+
titlePlural: `@${config.i18n}:business-statuses.entities.business-status.plural`,
|
|
38
|
+
icon: 'fa-light fa-circle-check',
|
|
39
|
+
},
|
|
40
|
+
partyType: {
|
|
41
|
+
name: 'PartyType',
|
|
42
|
+
title: `@${config.i18n}:party-types.entities.party-type.title`,
|
|
43
|
+
titlePlural: `@${config.i18n}:party-types.entities.party-type.plural`,
|
|
44
|
+
icon: 'fa-light fa-tag',
|
|
45
|
+
},
|
|
46
|
+
partySegment: {
|
|
47
|
+
name: 'PartySegment',
|
|
48
|
+
title: `@${config.i18n}:party-segments.entities.party-segment.title`,
|
|
49
|
+
titlePlural: `@${config.i18n}:party-segments.entities.party-segment.plural`,
|
|
50
|
+
icon: 'fa-light fa-chart-pie',
|
|
51
|
+
},
|
|
52
|
+
lifecycleStage: {
|
|
53
|
+
name: 'LifecycleStage',
|
|
54
|
+
title: `@${config.i18n}:lifecycle-stages.entities.lifecycle-stage.title`,
|
|
55
|
+
titlePlural: `@${config.i18n}:lifecycle-stages.entities.lifecycle-stage.plural`,
|
|
56
|
+
icon: 'fa-light fa-timeline',
|
|
57
|
+
},
|
|
58
|
+
party: {
|
|
59
|
+
name: 'Party',
|
|
60
|
+
title: `@${config.i18n}:parties.entities.party.title`,
|
|
61
|
+
titlePlural: `@${config.i18n}:parties.entities.party.plural`,
|
|
62
|
+
icon: 'fa-light fa-building',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region ---- Entity Factory ----
|
|
69
|
+
async function businessTypeFactory() {
|
|
70
|
+
const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];
|
|
71
|
+
const propertyLayouts = [
|
|
72
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
|
|
73
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },
|
|
74
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
75
|
+
];
|
|
76
|
+
const entityDef = {
|
|
77
|
+
module: RootConfig.module.name,
|
|
78
|
+
name: RootConfig.entities.businessType.name,
|
|
79
|
+
title: RootConfig.entities.businessType.title,
|
|
80
|
+
icon: RootConfig.entities.businessType.icon,
|
|
81
|
+
formats: {
|
|
82
|
+
individual: RootConfig.entities.businessType.title,
|
|
83
|
+
plural: RootConfig.entities.businessType.titlePlural,
|
|
84
|
+
searchResult: {
|
|
85
|
+
title: '{{ title }}',
|
|
86
|
+
description: '{{ code }}',
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }, { name: 'disable' }],
|
|
90
|
+
groups: [{ id: 'basic-info', title: '@business-core:business-types.entities.business-type.groups.basic-info' }],
|
|
91
|
+
properties: [
|
|
92
|
+
{
|
|
93
|
+
name: 'id',
|
|
94
|
+
title: '@general:terms.common.id',
|
|
95
|
+
groupId: 'basic-info',
|
|
96
|
+
schema: {
|
|
97
|
+
dataType: 'uuid',
|
|
98
|
+
visible: false,
|
|
99
|
+
readonly: true,
|
|
100
|
+
unique: { enabled: true },
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'code',
|
|
105
|
+
title: '@general:terms.common.code',
|
|
106
|
+
groupId: 'basic-info',
|
|
107
|
+
options: {
|
|
108
|
+
sort: { enabled: true },
|
|
109
|
+
filter: {
|
|
110
|
+
advance: { enabled: true },
|
|
111
|
+
inline: { enabled: true },
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
schema: {
|
|
115
|
+
dataType: 'string',
|
|
116
|
+
interface: {
|
|
117
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
118
|
+
options: {
|
|
119
|
+
placeholder: '@business-core:business-types.entities.business-type.fields.code.placeholder',
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
validations: [{ rule: 'required' }],
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'title',
|
|
127
|
+
title: '@general:terms.common.title',
|
|
128
|
+
groupId: 'basic-info',
|
|
129
|
+
options: {
|
|
130
|
+
sort: { enabled: true },
|
|
131
|
+
filter: {
|
|
132
|
+
advance: { enabled: true },
|
|
133
|
+
inline: { enabled: true },
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
schema: {
|
|
137
|
+
dataType: 'string',
|
|
138
|
+
interface: {
|
|
139
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
140
|
+
options: {
|
|
141
|
+
placeholder: '@business-core:business-types.entities.business-type.fields.title.placeholder',
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
validations: [{ rule: 'required' }],
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: 'description',
|
|
149
|
+
title: '@general:terms.common.description',
|
|
150
|
+
groupId: 'basic-info',
|
|
151
|
+
schema: {
|
|
152
|
+
dataType: 'string',
|
|
153
|
+
interface: {
|
|
154
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
155
|
+
options: {
|
|
156
|
+
rows: 3,
|
|
157
|
+
placeholder: '@business-core:business-types.entities.business-type.fields.description.placeholder',
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
columns: [
|
|
164
|
+
{ name: 'code', options: { width: '120px', order: 1 } },
|
|
165
|
+
{ name: 'title', options: { width: '220px', order: 2 } },
|
|
166
|
+
],
|
|
167
|
+
interfaces: {
|
|
168
|
+
master: {
|
|
169
|
+
create: {
|
|
170
|
+
sections,
|
|
171
|
+
properties: propertyLayouts,
|
|
172
|
+
},
|
|
173
|
+
update: {
|
|
174
|
+
sections,
|
|
175
|
+
properties: propertyLayouts,
|
|
176
|
+
},
|
|
177
|
+
single: {
|
|
178
|
+
title: '{{ title }}',
|
|
179
|
+
sections,
|
|
180
|
+
properties: propertyLayouts,
|
|
181
|
+
actions: [...entityMasterRecordActions()],
|
|
182
|
+
},
|
|
183
|
+
list: {
|
|
184
|
+
actions: [...entityMasterCrudActions()],
|
|
185
|
+
views: [
|
|
186
|
+
createAllQueryView({
|
|
187
|
+
sorts: [{ name: 'code', dir: 'asc' }],
|
|
188
|
+
}),
|
|
189
|
+
],
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
};
|
|
194
|
+
return entityDef;
|
|
195
|
+
}
|
|
196
|
+
//#endregion
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Generated bundle index. Do not edit.
|
|
200
|
+
*/
|
|
201
|
+
|
|
202
|
+
export { businessTypeFactory };
|
|
203
|
+
//# sourceMappingURL=acorex-platform-module-business-core-client-contracts-entities-business-type.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-business-core-client-contracts-entities-business-type.mjs","sources":["../../../../libs/modules/business-core/contracts/src/root-config.ts","../../../../libs/modules/business-core/contracts/src/entities/business-type/business-type.entity.ts","../../../../libs/modules/business-core/contracts/src/acorex-platform-module-business-core-client-contracts-entities-business-type.ts"],"sourcesContent":["const config = {\n i18n: 'business-core',\n module: 'BusinessCore',\n};\n\nexport const RootConfig = {\n config,\n module: {\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-building',\n },\n entities: {\n manufacturer: {\n name: 'Manufacturer',\n title: `@${config.i18n}:manufacturers.entities.manufacturer.title`,\n titlePlural: `@${config.i18n}:manufacturers.entities.manufacturer.plural`,\n icon: 'fa-light fa-industry',\n },\n industry: {\n name: 'Industry',\n title: `@${config.i18n}:industries.entities.industry.title`,\n titlePlural: `@${config.i18n}:industries.entities.industry.plural`,\n icon: 'fa-light fa-chart-line',\n },\n businessType: {\n name: 'BusinessType',\n title: `@${config.i18n}:business-types.entities.business-type.title`,\n titlePlural: `@${config.i18n}:business-types.entities.business-type.plural`,\n icon: 'fa-light fa-briefcase',\n },\n businessStatus: {\n name: 'BusinessStatus',\n title: `@${config.i18n}:business-statuses.entities.business-status.title`,\n titlePlural: `@${config.i18n}:business-statuses.entities.business-status.plural`,\n icon: 'fa-light fa-circle-check',\n },\n partyType: {\n name: 'PartyType',\n title: `@${config.i18n}:party-types.entities.party-type.title`,\n titlePlural: `@${config.i18n}:party-types.entities.party-type.plural`,\n icon: 'fa-light fa-tag',\n },\n partySegment: {\n name: 'PartySegment',\n title: `@${config.i18n}:party-segments.entities.party-segment.title`,\n titlePlural: `@${config.i18n}:party-segments.entities.party-segment.plural`,\n icon: 'fa-light fa-chart-pie',\n },\n lifecycleStage: {\n name: 'LifecycleStage',\n title: `@${config.i18n}:lifecycle-stages.entities.lifecycle-stage.title`,\n titlePlural: `@${config.i18n}:lifecycle-stages.entities.lifecycle-stage.plural`,\n icon: 'fa-light fa-timeline',\n },\n party: {\n name: 'Party',\n title: `@${config.i18n}:parties.entities.party.title`,\n titlePlural: `@${config.i18n}:parties.entities.party.plural`,\n icon: 'fa-light fa-building',\n },\n },\n} as const;\n","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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.business-type';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACX,IAAA,IAAI,EAAE,eAAe;AACrB,IAAA,MAAM,EAAE,cAAc;CACzB;AAEM,MAAM,UAAU,GAAG;IACtB,MAAM;AACN,IAAA,MAAM,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,sBAAsB;AAC/B,KAAA;AACD,IAAA,QAAQ,EAAE;AACN,QAAA,YAAY,EAAE;AACV,YAAA,IAAI,EAAE,cAAc;AACpB,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,0CAAA,CAA4C;AAClE,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,2CAAA,CAA6C;AACzE,YAAA,IAAI,EAAE,sBAAsB;AAC/B,SAAA;AACD,QAAA,QAAQ,EAAE;AACN,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,mCAAA,CAAqC;AAC3D,YAAA,WAAW,EAAE,CAAA,CAAA,EA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;AACJ,SAAA;KACJ;AAED,IAAA,OAAO,SAAS;AACpB;AAEA;;AC5IA;;AAEG;;"}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
|
|
4
|
+
const config = {
|
|
5
|
+
i18n: 'business-core',
|
|
6
|
+
module: 'BusinessCore',
|
|
7
|
+
};
|
|
8
|
+
const RootConfig = {
|
|
9
|
+
config,
|
|
10
|
+
module: {
|
|
11
|
+
name: config.module,
|
|
12
|
+
title: `@${config.i18n}:module.title`,
|
|
13
|
+
icon: 'fa-light fa-building',
|
|
14
|
+
},
|
|
15
|
+
entities: {
|
|
16
|
+
manufacturer: {
|
|
17
|
+
name: 'Manufacturer',
|
|
18
|
+
title: `@${config.i18n}:manufacturers.entities.manufacturer.title`,
|
|
19
|
+
titlePlural: `@${config.i18n}:manufacturers.entities.manufacturer.plural`,
|
|
20
|
+
icon: 'fa-light fa-industry',
|
|
21
|
+
},
|
|
22
|
+
industry: {
|
|
23
|
+
name: 'Industry',
|
|
24
|
+
title: `@${config.i18n}:industries.entities.industry.title`,
|
|
25
|
+
titlePlural: `@${config.i18n}:industries.entities.industry.plural`,
|
|
26
|
+
icon: 'fa-light fa-chart-line',
|
|
27
|
+
},
|
|
28
|
+
businessType: {
|
|
29
|
+
name: 'BusinessType',
|
|
30
|
+
title: `@${config.i18n}:business-types.entities.business-type.title`,
|
|
31
|
+
titlePlural: `@${config.i18n}:business-types.entities.business-type.plural`,
|
|
32
|
+
icon: 'fa-light fa-briefcase',
|
|
33
|
+
},
|
|
34
|
+
businessStatus: {
|
|
35
|
+
name: 'BusinessStatus',
|
|
36
|
+
title: `@${config.i18n}:business-statuses.entities.business-status.title`,
|
|
37
|
+
titlePlural: `@${config.i18n}:business-statuses.entities.business-status.plural`,
|
|
38
|
+
icon: 'fa-light fa-circle-check',
|
|
39
|
+
},
|
|
40
|
+
partyType: {
|
|
41
|
+
name: 'PartyType',
|
|
42
|
+
title: `@${config.i18n}:party-types.entities.party-type.title`,
|
|
43
|
+
titlePlural: `@${config.i18n}:party-types.entities.party-type.plural`,
|
|
44
|
+
icon: 'fa-light fa-tag',
|
|
45
|
+
},
|
|
46
|
+
partySegment: {
|
|
47
|
+
name: 'PartySegment',
|
|
48
|
+
title: `@${config.i18n}:party-segments.entities.party-segment.title`,
|
|
49
|
+
titlePlural: `@${config.i18n}:party-segments.entities.party-segment.plural`,
|
|
50
|
+
icon: 'fa-light fa-chart-pie',
|
|
51
|
+
},
|
|
52
|
+
lifecycleStage: {
|
|
53
|
+
name: 'LifecycleStage',
|
|
54
|
+
title: `@${config.i18n}:lifecycle-stages.entities.lifecycle-stage.title`,
|
|
55
|
+
titlePlural: `@${config.i18n}:lifecycle-stages.entities.lifecycle-stage.plural`,
|
|
56
|
+
icon: 'fa-light fa-timeline',
|
|
57
|
+
},
|
|
58
|
+
party: {
|
|
59
|
+
name: 'Party',
|
|
60
|
+
title: `@${config.i18n}:parties.entities.party.title`,
|
|
61
|
+
titlePlural: `@${config.i18n}:parties.entities.party.plural`,
|
|
62
|
+
icon: 'fa-light fa-building',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region ---- Entity Factory ----
|
|
69
|
+
async function industryFactory() {
|
|
70
|
+
const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];
|
|
71
|
+
const propertyLayouts = [
|
|
72
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
|
|
73
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },
|
|
74
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
75
|
+
];
|
|
76
|
+
const entityDef = {
|
|
77
|
+
module: RootConfig.module.name,
|
|
78
|
+
name: RootConfig.entities.industry.name,
|
|
79
|
+
title: RootConfig.entities.industry.title,
|
|
80
|
+
icon: RootConfig.entities.industry.icon,
|
|
81
|
+
formats: {
|
|
82
|
+
individual: RootConfig.entities.industry.title,
|
|
83
|
+
plural: RootConfig.entities.industry.titlePlural,
|
|
84
|
+
searchResult: {
|
|
85
|
+
title: '{{ title }}',
|
|
86
|
+
description: '{{ code }}',
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }, { name: 'disable' }],
|
|
90
|
+
groups: [{ id: 'basic-info', title: '@business-core:industries.entities.industry.groups.basic-info' }],
|
|
91
|
+
properties: [
|
|
92
|
+
{
|
|
93
|
+
name: 'id',
|
|
94
|
+
title: '@general:terms.common.id',
|
|
95
|
+
groupId: 'basic-info',
|
|
96
|
+
schema: {
|
|
97
|
+
dataType: 'uuid',
|
|
98
|
+
visible: false,
|
|
99
|
+
readonly: true,
|
|
100
|
+
unique: { enabled: true },
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'code',
|
|
105
|
+
title: '@general:terms.common.code',
|
|
106
|
+
groupId: 'basic-info',
|
|
107
|
+
options: {
|
|
108
|
+
sort: { enabled: true },
|
|
109
|
+
filter: {
|
|
110
|
+
advance: { enabled: true },
|
|
111
|
+
inline: { enabled: true },
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
schema: {
|
|
115
|
+
dataType: 'string',
|
|
116
|
+
interface: {
|
|
117
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
118
|
+
options: {
|
|
119
|
+
placeholder: '@business-core:industries.entities.industry.fields.code.placeholder',
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
validations: [{ rule: 'required' }],
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'title',
|
|
127
|
+
title: '@general:terms.common.title',
|
|
128
|
+
groupId: 'basic-info',
|
|
129
|
+
options: {
|
|
130
|
+
sort: { enabled: true },
|
|
131
|
+
filter: {
|
|
132
|
+
advance: { enabled: true },
|
|
133
|
+
inline: { enabled: true },
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
schema: {
|
|
137
|
+
dataType: 'string',
|
|
138
|
+
interface: {
|
|
139
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
140
|
+
options: {
|
|
141
|
+
placeholder: '@business-core:industries.entities.industry.fields.title.placeholder',
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
validations: [{ rule: 'required' }],
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: 'description',
|
|
149
|
+
title: '@general:terms.common.description',
|
|
150
|
+
groupId: 'basic-info',
|
|
151
|
+
schema: {
|
|
152
|
+
dataType: 'string',
|
|
153
|
+
interface: {
|
|
154
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
155
|
+
options: {
|
|
156
|
+
rows: 3,
|
|
157
|
+
placeholder: '@business-core:industries.entities.industry.fields.description.placeholder',
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
columns: [
|
|
164
|
+
{ name: 'code', options: { width: '120px', order: 1 } },
|
|
165
|
+
{ name: 'title', options: { width: '220px', order: 2 } },
|
|
166
|
+
],
|
|
167
|
+
interfaces: {
|
|
168
|
+
master: {
|
|
169
|
+
create: {
|
|
170
|
+
sections,
|
|
171
|
+
properties: propertyLayouts,
|
|
172
|
+
},
|
|
173
|
+
update: {
|
|
174
|
+
sections,
|
|
175
|
+
properties: propertyLayouts,
|
|
176
|
+
},
|
|
177
|
+
single: {
|
|
178
|
+
title: '{{ title }}',
|
|
179
|
+
sections,
|
|
180
|
+
properties: propertyLayouts,
|
|
181
|
+
actions: [...entityMasterRecordActions()],
|
|
182
|
+
},
|
|
183
|
+
list: {
|
|
184
|
+
actions: [...entityMasterCrudActions()],
|
|
185
|
+
views: [
|
|
186
|
+
createAllQueryView({
|
|
187
|
+
sorts: [{ name: 'code', dir: 'asc' }],
|
|
188
|
+
}),
|
|
189
|
+
],
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
};
|
|
194
|
+
return entityDef;
|
|
195
|
+
}
|
|
196
|
+
//#endregion
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Generated bundle index. Do not edit.
|
|
200
|
+
*/
|
|
201
|
+
|
|
202
|
+
export { industryFactory };
|
|
203
|
+
//# sourceMappingURL=acorex-platform-module-business-core-client-contracts-entities-industry.mjs.map
|