@acorex-platform/module-business-core-client 0.0.30 → 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-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-local-entities.mjs +36 -0
- package/fesm2022/acorex-platform-module-business-core-client-local-entities.mjs.map +1 -0
- 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,284 @@
|
|
|
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 manufacturerFactory() {
|
|
8
|
+
const entityDef = {
|
|
9
|
+
module: RootConfig.module.name,
|
|
10
|
+
name: RootConfig.entities.manufacturer.name,
|
|
11
|
+
title: RootConfig.entities.manufacturer.title,
|
|
12
|
+
icon: RootConfig.entities.manufacturer.icon,
|
|
13
|
+
formats: {
|
|
14
|
+
individual: RootConfig.entities.manufacturer.title,
|
|
15
|
+
plural: RootConfig.entities.manufacturer.titlePlural,
|
|
16
|
+
searchResult: {
|
|
17
|
+
title: '{{ title }}',
|
|
18
|
+
description: RootConfig.module.title,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
plugins: [
|
|
22
|
+
{ name: 'history' },
|
|
23
|
+
{ name: 'lock' },
|
|
24
|
+
{ name: 'compare' },
|
|
25
|
+
{ name: 'clone' },
|
|
26
|
+
{ name: 'category', options: { appearance: { icon: true, color: true }, metaData: { enabled: true } } },
|
|
27
|
+
{ name: 'meta-data-form', options: { path: 'categoryIds' } },
|
|
28
|
+
{ name: 'archive' },
|
|
29
|
+
],
|
|
30
|
+
groups: [
|
|
31
|
+
{
|
|
32
|
+
id: 'basic-info',
|
|
33
|
+
title: '@general:terms.interface.basic-info',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: 'contact-info',
|
|
37
|
+
title: '@business-core:manufacturers.entities.manufacturer.groups.contact-info',
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
properties: [
|
|
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: 'e.g., MFG-001',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
validations: [
|
|
62
|
+
{
|
|
63
|
+
rule: 'required',
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'title',
|
|
69
|
+
title: '@general:terms.common.title',
|
|
70
|
+
groupId: 'basic-info',
|
|
71
|
+
options: {
|
|
72
|
+
sort: { enabled: true },
|
|
73
|
+
filter: {
|
|
74
|
+
advance: { enabled: true },
|
|
75
|
+
inline: { enabled: true },
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
schema: {
|
|
79
|
+
dataType: 'string',
|
|
80
|
+
interface: {
|
|
81
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
validations: [
|
|
85
|
+
{
|
|
86
|
+
rule: 'required',
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'description',
|
|
92
|
+
title: '@general:terms.common.description',
|
|
93
|
+
groupId: 'basic-info',
|
|
94
|
+
options: {
|
|
95
|
+
sort: { enabled: false },
|
|
96
|
+
filter: {
|
|
97
|
+
advance: { enabled: true },
|
|
98
|
+
inline: { enabled: false },
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
schema: {
|
|
102
|
+
dataType: 'string',
|
|
103
|
+
interface: {
|
|
104
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
105
|
+
options: {
|
|
106
|
+
rows: 3,
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'logo',
|
|
113
|
+
title: '@business-core:manufacturers.entities.manufacturer.fields.logo.title',
|
|
114
|
+
groupId: 'basic-info',
|
|
115
|
+
options: {
|
|
116
|
+
sort: { enabled: false },
|
|
117
|
+
filter: {
|
|
118
|
+
advance: { enabled: false },
|
|
119
|
+
inline: { enabled: false },
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
schema: {
|
|
123
|
+
dataType: 'string',
|
|
124
|
+
interface: {
|
|
125
|
+
type: AXPWidgetsList.Advanced.Avatar,
|
|
126
|
+
options: {
|
|
127
|
+
accept: ['.jpg', '.jpeg', '.png', '.svg'],
|
|
128
|
+
maxSize: 2048,
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'countryOfOrigin',
|
|
135
|
+
title: '@business-core:manufacturers.entities.manufacturer.fields.country-of-origin.title',
|
|
136
|
+
groupId: 'basic-info',
|
|
137
|
+
options: {
|
|
138
|
+
sort: { enabled: true },
|
|
139
|
+
filter: {
|
|
140
|
+
advance: { enabled: true },
|
|
141
|
+
inline: { enabled: true },
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
schema: {
|
|
145
|
+
dataType: 'string',
|
|
146
|
+
interface: {
|
|
147
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: 'website',
|
|
153
|
+
title: '@business-core:manufacturers.entities.manufacturer.fields.website.title',
|
|
154
|
+
groupId: 'contact-info',
|
|
155
|
+
options: {
|
|
156
|
+
sort: { enabled: false },
|
|
157
|
+
filter: {
|
|
158
|
+
advance: { enabled: true },
|
|
159
|
+
inline: { enabled: false },
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
schema: {
|
|
163
|
+
dataType: 'string',
|
|
164
|
+
interface: {
|
|
165
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
166
|
+
options: {
|
|
167
|
+
placeholder: 'https://www.example.com',
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'contactEmail',
|
|
174
|
+
title: '@business-core:manufacturers.entities.manufacturer.fields.contact-email.title',
|
|
175
|
+
groupId: 'contact-info',
|
|
176
|
+
options: {
|
|
177
|
+
sort: { enabled: false },
|
|
178
|
+
filter: {
|
|
179
|
+
advance: { enabled: true },
|
|
180
|
+
inline: { enabled: false },
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
schema: {
|
|
184
|
+
dataType: 'string',
|
|
185
|
+
interface: {
|
|
186
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
187
|
+
options: {
|
|
188
|
+
placeholder: 'contact@example.com',
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
validations: [
|
|
193
|
+
{
|
|
194
|
+
rule: 'email',
|
|
195
|
+
},
|
|
196
|
+
],
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
name: 'contactPhone',
|
|
200
|
+
title: '@business-core:manufacturers.entities.manufacturer.fields.contact-phone.title',
|
|
201
|
+
groupId: 'contact-info',
|
|
202
|
+
options: {
|
|
203
|
+
sort: { enabled: false },
|
|
204
|
+
filter: {
|
|
205
|
+
advance: { enabled: true },
|
|
206
|
+
inline: { enabled: false },
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
schema: {
|
|
210
|
+
dataType: 'string',
|
|
211
|
+
interface: {
|
|
212
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
213
|
+
options: {
|
|
214
|
+
placeholder: '+1-234-567-8900',
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
columns: [
|
|
221
|
+
{ name: 'code' },
|
|
222
|
+
{ name: 'title' },
|
|
223
|
+
{ name: 'countryOfOrigin' },
|
|
224
|
+
],
|
|
225
|
+
interfaces: {
|
|
226
|
+
master: {
|
|
227
|
+
create: {
|
|
228
|
+
sections: [{ id: 'basic-info' }, { id: 'contact-info' }],
|
|
229
|
+
properties: [
|
|
230
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
231
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
232
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
233
|
+
{ name: 'logo', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
|
|
234
|
+
{ name: 'countryOfOrigin', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
|
|
235
|
+
{ name: 'website', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
|
|
236
|
+
{ name: 'contactEmail', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },
|
|
237
|
+
{ name: 'contactPhone', layout: { positions: { lg: { colSpan: 6, order: 8 } } } },
|
|
238
|
+
],
|
|
239
|
+
},
|
|
240
|
+
update: {
|
|
241
|
+
sections: [{ id: 'basic-info' }, { id: 'contact-info' }],
|
|
242
|
+
properties: [
|
|
243
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
244
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
245
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
246
|
+
{ name: 'logo', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
|
|
247
|
+
{ name: 'countryOfOrigin', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
|
|
248
|
+
{ name: 'website', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
|
|
249
|
+
{ name: 'contactEmail', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },
|
|
250
|
+
{ name: 'contactPhone', layout: { positions: { lg: { colSpan: 6, order: 8 } } } },
|
|
251
|
+
],
|
|
252
|
+
},
|
|
253
|
+
single: {
|
|
254
|
+
title: '{{title}}',
|
|
255
|
+
sections: [{ id: 'basic-info' }, { id: 'contact-info' }],
|
|
256
|
+
properties: [
|
|
257
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
258
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
259
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
260
|
+
{ name: 'logo', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
|
|
261
|
+
{ name: 'countryOfOrigin', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
|
|
262
|
+
{ name: 'website', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
|
|
263
|
+
{ name: 'contactEmail', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },
|
|
264
|
+
{ name: 'contactPhone', layout: { positions: { lg: { colSpan: 6, order: 8 } } } },
|
|
265
|
+
],
|
|
266
|
+
actions: [...entityMasterRecordActions()],
|
|
267
|
+
},
|
|
268
|
+
list: {
|
|
269
|
+
actions: [...entityMasterCrudActions()],
|
|
270
|
+
views: [
|
|
271
|
+
createAllQueryView({
|
|
272
|
+
sorts: [{ name: 'title', dir: 'asc' }],
|
|
273
|
+
}),
|
|
274
|
+
],
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
};
|
|
279
|
+
return entityDef;
|
|
280
|
+
}
|
|
281
|
+
//#endregion
|
|
282
|
+
|
|
283
|
+
export { manufacturerFactory };
|
|
284
|
+
//# sourceMappingURL=acorex-platform-module-business-core-client-contracts-entity-catalog-manufacturer.entity-CAd01aKL.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-business-core-client-contracts-entity-catalog-manufacturer.entity-CAd01aKL.mjs","sources":["../../../../libs/modules/business-core/contracts/src/entities/manufacturer/manufacturer.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 manufacturerFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.manufacturer.name,\n title: RootConfig.entities.manufacturer.title,\n icon: RootConfig.entities.manufacturer.icon,\n formats: {\n individual: RootConfig.entities.manufacturer.title,\n plural: RootConfig.entities.manufacturer.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n plugins: [\n { name: 'history' },\n { name: 'lock' },\n { name: 'compare' },\n { name: 'clone' },\n { name: 'category', options: { appearance: { icon: true, color: true }, metaData: { enabled: true } } },\n { name: 'meta-data-form', options: { path: 'categoryIds' } },\n { name: 'archive' },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@general:terms.interface.basic-info',\n },\n {\n id: 'contact-info',\n title: '@business-core:manufacturers.entities.manufacturer.groups.contact-info',\n },\n ],\n properties: [\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: 'e.g., MFG-001',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\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 },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: {\n advance: { enabled: true },\n inline: { enabled: false },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n },\n },\n },\n },\n {\n name: 'logo',\n title: '@business-core:manufacturers.entities.manufacturer.fields.logo.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: {\n advance: { enabled: false },\n inline: { enabled: false },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Advanced.Avatar,\n options: {\n accept: ['.jpg', '.jpeg', '.png', '.svg'],\n maxSize: 2048,\n },\n },\n },\n },\n {\n name: 'countryOfOrigin',\n title: '@business-core:manufacturers.entities.manufacturer.fields.country-of-origin.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 },\n },\n },\n {\n name: 'website',\n title: '@business-core:manufacturers.entities.manufacturer.fields.website.title',\n groupId: 'contact-info',\n options: {\n sort: { enabled: false },\n filter: {\n advance: { enabled: true },\n inline: { enabled: false },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: 'https://www.example.com',\n },\n },\n },\n },\n {\n name: 'contactEmail',\n title: '@business-core:manufacturers.entities.manufacturer.fields.contact-email.title',\n groupId: 'contact-info',\n options: {\n sort: { enabled: false },\n filter: {\n advance: { enabled: true },\n inline: { enabled: false },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: 'contact@example.com',\n },\n },\n },\n validations: [\n {\n rule: 'email',\n },\n ],\n },\n {\n name: 'contactPhone',\n title: '@business-core:manufacturers.entities.manufacturer.fields.contact-phone.title',\n groupId: 'contact-info',\n options: {\n sort: { enabled: false },\n filter: {\n advance: { enabled: true },\n inline: { enabled: false },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '+1-234-567-8900',\n },\n },\n },\n },\n ],\n columns: [\n { name: 'code' },\n { name: 'title' },\n { name: 'countryOfOrigin' },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'contact-info' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'logo', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'countryOfOrigin', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'website', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n { name: 'contactEmail', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },\n { name: 'contactPhone', layout: { positions: { lg: { colSpan: 6, order: 8 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'contact-info' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'logo', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'countryOfOrigin', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'website', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n { name: 'contactEmail', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },\n { name: 'contactPhone', layout: { positions: { lg: { colSpan: 6, order: 8 } } } },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [{ id: 'basic-info' }, { id: 'contact-info' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'logo', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'countryOfOrigin', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'website', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n { name: 'contactEmail', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },\n { name: 'contactPhone', layout: { positions: { lg: { colSpan: 6, order: 8 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'title', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n\n"],"names":[],"mappings":";;;;AAK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AK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBACzC,CAAC;AACL,qBAAA;AACJ,iBAAA;AACJ,aAAA;AACJ,SAAA;KACJ;AAED,IAAA,OAAO,SAAS;AACpB;AAEA;;;;"}
|
|
@@ -0,0 +1,118 @@
|
|
|
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 partySegmentFactory() {
|
|
8
|
+
const sections = [
|
|
9
|
+
{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
10
|
+
{ id: 'appearance', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
11
|
+
];
|
|
12
|
+
const propertyLayouts = [
|
|
13
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
14
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
15
|
+
{ name: 'color', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
16
|
+
];
|
|
17
|
+
const entityDef = {
|
|
18
|
+
module: RootConfig.module.name,
|
|
19
|
+
name: RootConfig.entities.partySegment.name,
|
|
20
|
+
title: RootConfig.entities.partySegment.title,
|
|
21
|
+
icon: RootConfig.entities.partySegment.icon,
|
|
22
|
+
formats: {
|
|
23
|
+
individual: RootConfig.entities.partySegment.title,
|
|
24
|
+
plural: RootConfig.entities.partySegment.titlePlural,
|
|
25
|
+
searchResult: {
|
|
26
|
+
title: '{{ title }}',
|
|
27
|
+
description: RootConfig.module.title,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
plugins: [{ name: 'color' }, { name: 'archive' }],
|
|
31
|
+
groups: [
|
|
32
|
+
{ id: 'basic-info', title: '@business-core:party-segments.entities.party-segment.groups.basic-info' },
|
|
33
|
+
{ id: 'appearance', title: '@general:terms.interface.appearance' },
|
|
34
|
+
],
|
|
35
|
+
properties: [
|
|
36
|
+
{
|
|
37
|
+
name: 'id',
|
|
38
|
+
title: '@general:terms.common.id',
|
|
39
|
+
groupId: 'basic-info',
|
|
40
|
+
schema: {
|
|
41
|
+
dataType: 'uuid',
|
|
42
|
+
visible: false,
|
|
43
|
+
readonly: true,
|
|
44
|
+
unique: { enabled: true },
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'title',
|
|
49
|
+
title: '@general:terms.common.title',
|
|
50
|
+
groupId: 'basic-info',
|
|
51
|
+
options: {
|
|
52
|
+
sort: { enabled: true },
|
|
53
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
54
|
+
},
|
|
55
|
+
schema: {
|
|
56
|
+
dataType: 'string',
|
|
57
|
+
interface: {
|
|
58
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
59
|
+
options: {
|
|
60
|
+
placeholder: '@business-core:party-segments.entities.party-segment.fields.title.placeholder',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
validations: [{ rule: 'required' }],
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'description',
|
|
68
|
+
title: '@general:terms.common.description',
|
|
69
|
+
groupId: 'basic-info',
|
|
70
|
+
schema: {
|
|
71
|
+
dataType: 'string',
|
|
72
|
+
interface: {
|
|
73
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
74
|
+
options: {
|
|
75
|
+
rows: 3,
|
|
76
|
+
placeholder: '@business-core:party-segments.entities.party-segment.fields.description.placeholder',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
columns: [
|
|
83
|
+
{ name: 'title', options: { width: '200px', order: 1 } },
|
|
84
|
+
{ name: 'description', options: { width: '280px', order: 2 } },
|
|
85
|
+
],
|
|
86
|
+
interfaces: {
|
|
87
|
+
master: {
|
|
88
|
+
create: {
|
|
89
|
+
sections,
|
|
90
|
+
properties: propertyLayouts,
|
|
91
|
+
},
|
|
92
|
+
update: {
|
|
93
|
+
sections,
|
|
94
|
+
properties: propertyLayouts,
|
|
95
|
+
},
|
|
96
|
+
single: {
|
|
97
|
+
title: '{{ title }}',
|
|
98
|
+
sections,
|
|
99
|
+
properties: propertyLayouts,
|
|
100
|
+
actions: [...entityMasterRecordActions()],
|
|
101
|
+
},
|
|
102
|
+
list: {
|
|
103
|
+
actions: [...entityMasterCrudActions()],
|
|
104
|
+
views: [
|
|
105
|
+
createAllQueryView({
|
|
106
|
+
sorts: [{ name: 'title', dir: 'asc' }],
|
|
107
|
+
}),
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
return entityDef;
|
|
114
|
+
}
|
|
115
|
+
//#endregion
|
|
116
|
+
|
|
117
|
+
export { partySegmentFactory };
|
|
118
|
+
//# sourceMappingURL=acorex-platform-module-business-core-client-contracts-entity-catalog-party-segment.entity-WNUL6gHc.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-business-core-client-contracts-entity-catalog-party-segment.entity-WNUL6gHc.mjs","sources":["../../../../libs/modules/business-core/contracts/src/entities/party-segment/party-segment.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 partySegmentFactory(): Promise<AXPEntity> {\n const sections = [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'appearance', layout: { positions: { lg: { colSpan: 12 } } } },\n ];\n\n const propertyLayouts = [\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'color', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.partySegment.name,\n title: RootConfig.entities.partySegment.title,\n icon: RootConfig.entities.partySegment.icon,\n formats: {\n individual: RootConfig.entities.partySegment.title,\n plural: RootConfig.entities.partySegment.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n plugins: [{ name: 'color' }, { name: 'archive' }],\n groups: [\n { id: 'basic-info', title: '@business-core:party-segments.entities.party-segment.groups.basic-info' },\n { id: 'appearance', title: '@general:terms.interface.appearance' },\n ],\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: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@business-core:party-segments.entities.party-segment.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:party-segments.entities.party-segment.fields.description.placeholder',\n },\n },\n },\n },\n ],\n columns: [\n { name: 'title', options: { width: '200px', order: 1 } },\n { name: 'description', options: { width: '280px', 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: 'title', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,mBAAmB,GAAA;AACrC,IAAA,MAAM,QAAQ,GAAG;AACb,QAAA,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACpE,QAAA,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;KACvE;AAED,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,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QACjF,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;KAC7E;AAED,IAAA,MAAM,SAAS,GAAc;AACzB,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,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BACJ,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,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBACzC,CAAC;AACL,qBAAA;AACJ,iBAAA;AACJ,aAAA;AACJ,SAAA;KACJ;AAED,IAAA,OAAO,SAAS;AACpB;AAEA;;;;"}
|
|
@@ -0,0 +1,131 @@
|
|
|
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 partyTypeFactory() {
|
|
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.partyType.name,
|
|
17
|
+
title: RootConfig.entities.partyType.title,
|
|
18
|
+
icon: RootConfig.entities.partyType.icon,
|
|
19
|
+
formats: {
|
|
20
|
+
individual: RootConfig.entities.partyType.title,
|
|
21
|
+
plural: RootConfig.entities.partyType.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:party-types.entities.party-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: { advance: { enabled: true }, inline: { enabled: true } },
|
|
48
|
+
},
|
|
49
|
+
schema: {
|
|
50
|
+
dataType: 'string',
|
|
51
|
+
interface: {
|
|
52
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
53
|
+
options: {
|
|
54
|
+
placeholder: '@business-core:party-types.entities.party-type.fields.code.placeholder',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
validations: [{ rule: 'required' }],
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'title',
|
|
62
|
+
title: '@general:terms.common.title',
|
|
63
|
+
groupId: 'basic-info',
|
|
64
|
+
options: {
|
|
65
|
+
sort: { enabled: true },
|
|
66
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
67
|
+
},
|
|
68
|
+
schema: {
|
|
69
|
+
dataType: 'string',
|
|
70
|
+
interface: {
|
|
71
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
72
|
+
options: {
|
|
73
|
+
placeholder: '@business-core:party-types.entities.party-type.fields.title.placeholder',
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
validations: [{ rule: 'required' }],
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'description',
|
|
81
|
+
title: '@general:terms.common.description',
|
|
82
|
+
groupId: 'basic-info',
|
|
83
|
+
schema: {
|
|
84
|
+
dataType: 'string',
|
|
85
|
+
interface: {
|
|
86
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
87
|
+
options: {
|
|
88
|
+
rows: 3,
|
|
89
|
+
placeholder: '@business-core:party-types.entities.party-type.fields.description.placeholder',
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
columns: [
|
|
96
|
+
{ name: 'code', options: { width: '120px', order: 1 } },
|
|
97
|
+
{ name: 'title', options: { width: '220px', order: 2 } },
|
|
98
|
+
],
|
|
99
|
+
interfaces: {
|
|
100
|
+
master: {
|
|
101
|
+
create: {
|
|
102
|
+
sections,
|
|
103
|
+
properties: propertyLayouts,
|
|
104
|
+
},
|
|
105
|
+
update: {
|
|
106
|
+
sections,
|
|
107
|
+
properties: propertyLayouts,
|
|
108
|
+
},
|
|
109
|
+
single: {
|
|
110
|
+
title: '{{ title }}',
|
|
111
|
+
sections,
|
|
112
|
+
properties: propertyLayouts,
|
|
113
|
+
actions: [...entityMasterRecordActions()],
|
|
114
|
+
},
|
|
115
|
+
list: {
|
|
116
|
+
actions: [...entityMasterCrudActions()],
|
|
117
|
+
views: [
|
|
118
|
+
createAllQueryView({
|
|
119
|
+
sorts: [{ name: 'code', dir: 'asc' }],
|
|
120
|
+
}),
|
|
121
|
+
],
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
};
|
|
126
|
+
return entityDef;
|
|
127
|
+
}
|
|
128
|
+
//#endregion
|
|
129
|
+
|
|
130
|
+
export { partyTypeFactory };
|
|
131
|
+
//# sourceMappingURL=acorex-platform-module-business-core-client-contracts-entity-catalog-party-type.entity-9PmLR0SV.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-business-core-client-contracts-entity-catalog-party-type.entity-9PmLR0SV.mjs","sources":["../../../../libs/modules/business-core/contracts/src/entities/party-type/party-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 partyTypeFactory(): 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.partyType.name,\n title: RootConfig.entities.partyType.title,\n icon: RootConfig.entities.partyType.icon,\n formats: {\n individual: RootConfig.entities.partyType.title,\n plural: RootConfig.entities.partyType.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:party-types.entities.party-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: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@business-core:party-types.entities.party-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: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@business-core:party-types.entities.party-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:party-types.entities.party-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"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,gBAAgB,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