@acorex-platform/module-order-management-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-order-management-client-contracts-entities-bulk-buy-order-item.mjs +399 -0
- package/fesm2022/acorex-platform-module-order-management-client-contracts-entities-bulk-buy-order-item.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-order-management-client-contracts-entities-bulk-buy-order.mjs +325 -0
- package/fesm2022/acorex-platform-module-order-management-client-contracts-entities-bulk-buy-order.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-order-management-client-contracts-entities-member-order-line.mjs +285 -0
- package/fesm2022/acorex-platform-module-order-management-client-contracts-entities-member-order-line.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-order-management-client-contracts-entities-member-order.mjs +316 -0
- package/fesm2022/acorex-platform-module-order-management-client-contracts-entities-member-order.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog-acorex-platform-module-order-management-client-contracts-entity-catalog-CwK6VbHl.mjs +71 -0
- package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog-acorex-platform-module-order-management-client-contracts-entity-catalog-CwK6VbHl.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog-bulk-buy-order-item.entity-Bdm37iF8.mjs +350 -0
- package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog-bulk-buy-order-item.entity-Bdm37iF8.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog-bulk-buy-order.entity-Bv8b-3_O.mjs +276 -0
- package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog-bulk-buy-order.entity-Bv8b-3_O.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog-member-order-line.entity-BJNnKNe4.mjs +236 -0
- package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog-member-order-line.entity-BJNnKNe4.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog-member-order.entity-cKfUjSOr.mjs +267 -0
- package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog-member-order.entity-cKfUjSOr.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-order-management-client-local-entities.mjs +32 -0
- package/fesm2022/acorex-platform-module-order-management-client-local-entities.mjs.map +1 -0
- package/package.json +25 -1
- package/types/acorex-platform-module-order-management-client-contracts-entities-bulk-buy-order-item.d.ts +5 -0
- package/types/acorex-platform-module-order-management-client-contracts-entities-bulk-buy-order.d.ts +5 -0
- package/types/acorex-platform-module-order-management-client-contracts-entities-member-order-line.d.ts +5 -0
- package/types/acorex-platform-module-order-management-client-contracts-entities-member-order.d.ts +5 -0
- package/types/acorex-platform-module-order-management-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-order-management-client-local-entities.d.ts +12 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { AXPWidgetsList, AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions, entityDetailsCrudActions, entityDetailsSimpleCondition } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-order-management-client-contracts-entity-catalog-acorex-platform-module-order-management-client-contracts-entity-catalog-CwK6VbHl.mjs';
|
|
4
|
+
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region ---- Factory Function ----
|
|
7
|
+
async function memberOrderFactory() {
|
|
8
|
+
const i18n = `${RootConfig.config.i18n}:bulk-buy-orders.entities.member-order`;
|
|
9
|
+
const entityDef = {
|
|
10
|
+
module: RootConfig.module.name,
|
|
11
|
+
name: RootConfig.entities.memberOrder.name,
|
|
12
|
+
title: RootConfig.entities.memberOrder.title,
|
|
13
|
+
icon: RootConfig.entities.memberOrder.icon,
|
|
14
|
+
formats: {
|
|
15
|
+
individual: RootConfig.entities.memberOrder.title,
|
|
16
|
+
plural: RootConfig.entities.memberOrder.titlePlural,
|
|
17
|
+
searchResult: {
|
|
18
|
+
title: '{{ member.displayName }}',
|
|
19
|
+
description: '{{ totalOwing }}',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
plugins: [
|
|
23
|
+
{ name: 'history' },
|
|
24
|
+
{ name: 'lock' },
|
|
25
|
+
{ name: 'notes' },
|
|
26
|
+
{
|
|
27
|
+
name: 'status',
|
|
28
|
+
options: {
|
|
29
|
+
field: 'statusId',
|
|
30
|
+
definition: 'order-management.status.member-order',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'computed-property',
|
|
35
|
+
options: {
|
|
36
|
+
fields: [
|
|
37
|
+
{
|
|
38
|
+
name: 'productTotal',
|
|
39
|
+
title: `@${i18n}.fields.product-total.title`,
|
|
40
|
+
value: '{{ context.eval("productTotal") || 0 }}',
|
|
41
|
+
group: {
|
|
42
|
+
id: 'financial-info',
|
|
43
|
+
title: `@${i18n}.groups.financial-info`,
|
|
44
|
+
},
|
|
45
|
+
showAs: {
|
|
46
|
+
type: AXPWidgetsCatalog.number,
|
|
47
|
+
options: {
|
|
48
|
+
readonly: true,
|
|
49
|
+
format: 'currency',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'freightShare',
|
|
55
|
+
title: `@${i18n}.fields.freight-share.title`,
|
|
56
|
+
value: '{{ context.eval("freightShare") || 0 }}',
|
|
57
|
+
group: {
|
|
58
|
+
id: 'financial-info',
|
|
59
|
+
title: `@${i18n}.groups.financial-info`,
|
|
60
|
+
},
|
|
61
|
+
showAs: {
|
|
62
|
+
type: AXPWidgetsCatalog.number,
|
|
63
|
+
options: {
|
|
64
|
+
readonly: true,
|
|
65
|
+
format: 'currency',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'totalOwing',
|
|
71
|
+
title: `@${i18n}.fields.total-owing.title`,
|
|
72
|
+
value: '{{ (context.eval("productTotal") || 0) + (context.eval("freightShare") || 0) }}',
|
|
73
|
+
group: {
|
|
74
|
+
id: 'financial-info',
|
|
75
|
+
title: `@${i18n}.groups.financial-info`,
|
|
76
|
+
},
|
|
77
|
+
showAs: {
|
|
78
|
+
type: AXPWidgetsCatalog.number,
|
|
79
|
+
options: {
|
|
80
|
+
readonly: true,
|
|
81
|
+
format: 'currency',
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
groups: [
|
|
90
|
+
{ id: 'order-info', title: `@${i18n}.groups.order-info` },
|
|
91
|
+
{ id: 'member-info', title: `@${i18n}.groups.member-info` },
|
|
92
|
+
{ id: 'financial-info', title: `@${i18n}.groups.financial-info` },
|
|
93
|
+
],
|
|
94
|
+
properties: [
|
|
95
|
+
{
|
|
96
|
+
name: 'id',
|
|
97
|
+
title: 'ID',
|
|
98
|
+
groupId: 'order-info',
|
|
99
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'bulkBuyOrderId',
|
|
103
|
+
title: `@${i18n}.fields.bulk-buy-order.title`,
|
|
104
|
+
groupId: 'order-info',
|
|
105
|
+
options: {
|
|
106
|
+
sort: { enabled: true },
|
|
107
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
108
|
+
},
|
|
109
|
+
schema: {
|
|
110
|
+
dataType: 'string',
|
|
111
|
+
interface: {
|
|
112
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
113
|
+
options: {
|
|
114
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.bulkBuyOrder.name}`,
|
|
115
|
+
textField: 'title',
|
|
116
|
+
valueField: 'id',
|
|
117
|
+
look: 'select',
|
|
118
|
+
expose: [
|
|
119
|
+
{ source: 'id', target: 'bulkBuyOrder.id' },
|
|
120
|
+
{ source: 'orderNumber', target: 'bulkBuyOrder.orderNumber' },
|
|
121
|
+
{ source: 'title', target: 'bulkBuyOrder.title' },
|
|
122
|
+
],
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
validations: [{ rule: 'required' }],
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'memberId',
|
|
130
|
+
title: `@${i18n}.fields.member.title`,
|
|
131
|
+
groupId: 'member-info',
|
|
132
|
+
options: {
|
|
133
|
+
sort: { enabled: true },
|
|
134
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
135
|
+
},
|
|
136
|
+
schema: {
|
|
137
|
+
dataType: 'string',
|
|
138
|
+
interface: {
|
|
139
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
140
|
+
options: {
|
|
141
|
+
entity: `${"PersonCore"}.${"Person"}`,
|
|
142
|
+
textField: 'displayName',
|
|
143
|
+
valueField: 'id',
|
|
144
|
+
look: 'select',
|
|
145
|
+
expose: [
|
|
146
|
+
{ source: 'id', target: 'member.id' },
|
|
147
|
+
{ source: 'displayName', target: 'member.displayName' },
|
|
148
|
+
{ source: 'email', target: 'member.email' },
|
|
149
|
+
],
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
validations: [{ rule: 'required' }],
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: 'productTotal',
|
|
157
|
+
title: `@${i18n}.fields.product-total.title`,
|
|
158
|
+
groupId: 'financial-info',
|
|
159
|
+
schema: {
|
|
160
|
+
dataType: 'number',
|
|
161
|
+
visible: false,
|
|
162
|
+
interface: {
|
|
163
|
+
type: AXPWidgetsCatalog.number,
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: 'freightShare',
|
|
169
|
+
title: `@${i18n}.fields.freight-share.title`,
|
|
170
|
+
groupId: 'financial-info',
|
|
171
|
+
schema: {
|
|
172
|
+
dataType: 'number',
|
|
173
|
+
visible: false,
|
|
174
|
+
interface: {
|
|
175
|
+
type: AXPWidgetsCatalog.number,
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: 'paidDate',
|
|
181
|
+
title: `@${i18n}.fields.paid-date.title`,
|
|
182
|
+
groupId: 'financial-info',
|
|
183
|
+
options: {
|
|
184
|
+
sort: { enabled: true },
|
|
185
|
+
filter: { advance: { enabled: true }, inline: { enabled: false } },
|
|
186
|
+
},
|
|
187
|
+
schema: {
|
|
188
|
+
dataType: 'date',
|
|
189
|
+
interface: {
|
|
190
|
+
type: AXPWidgetsCatalog.dateTime,
|
|
191
|
+
options: {
|
|
192
|
+
showTime: false,
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
columns: [
|
|
199
|
+
{ name: 'memberId', options: { dataPath: 'member.displayName' } },
|
|
200
|
+
{ name: 'bulkBuyOrderId', options: { dataPath: 'bulkBuyOrder.orderNumber' } },
|
|
201
|
+
{ name: 'productTotal' },
|
|
202
|
+
{ name: 'freightShare' },
|
|
203
|
+
{ name: 'totalOwing' },
|
|
204
|
+
{ name: 'statusId' },
|
|
205
|
+
{ name: 'paidDate' },
|
|
206
|
+
],
|
|
207
|
+
relatedEntities: [
|
|
208
|
+
{
|
|
209
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.memberOrderLine.name}`,
|
|
210
|
+
title: RootConfig.entities.memberOrderLine.titlePlural,
|
|
211
|
+
columns: ['bulkBuyOrderItemId', 'quantity', 'price', 'lineTotal'],
|
|
212
|
+
conditions: [entityDetailsSimpleCondition('memberOrderId')],
|
|
213
|
+
actions: [...entityDetailsCrudActions('memberOrderId')],
|
|
214
|
+
layout: { type: 'tab-list' },
|
|
215
|
+
},
|
|
216
|
+
],
|
|
217
|
+
interfaces: {
|
|
218
|
+
master: {
|
|
219
|
+
create: {
|
|
220
|
+
sections: [{ id: 'order-info' }, { id: 'member-info' }, { id: 'financial-info' }],
|
|
221
|
+
properties: [
|
|
222
|
+
{ name: 'bulkBuyOrderId', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
223
|
+
{ name: 'memberId', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
224
|
+
],
|
|
225
|
+
},
|
|
226
|
+
update: {
|
|
227
|
+
sections: [{ id: 'order-info' }, { id: 'member-info' }, { id: 'financial-info' }],
|
|
228
|
+
properties: [
|
|
229
|
+
{ name: 'bulkBuyOrderId', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
230
|
+
{ name: 'memberId', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
231
|
+
{ name: 'paidDate', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
232
|
+
],
|
|
233
|
+
},
|
|
234
|
+
single: {
|
|
235
|
+
title: '{{ member.displayName }}',
|
|
236
|
+
sections: [
|
|
237
|
+
{ id: 'order-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },
|
|
238
|
+
{ id: 'member-info', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },
|
|
239
|
+
{ id: 'financial-info', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },
|
|
240
|
+
],
|
|
241
|
+
properties: [
|
|
242
|
+
{ name: 'bulkBuyOrderId', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
243
|
+
{ name: 'memberId', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
244
|
+
{ name: 'productTotal', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
245
|
+
{ name: 'freightShare', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
246
|
+
{ name: 'totalOwing', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
247
|
+
{ name: 'paidDate', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
248
|
+
],
|
|
249
|
+
actions: [...entityMasterRecordActions()],
|
|
250
|
+
},
|
|
251
|
+
list: {
|
|
252
|
+
actions: [...entityMasterCrudActions()],
|
|
253
|
+
views: [
|
|
254
|
+
createAllQueryView({
|
|
255
|
+
sorts: [{ name: 'member.displayName', dir: 'asc' }],
|
|
256
|
+
}),
|
|
257
|
+
],
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
};
|
|
262
|
+
return entityDef;
|
|
263
|
+
}
|
|
264
|
+
//#endregion
|
|
265
|
+
|
|
266
|
+
export { memberOrderFactory };
|
|
267
|
+
//# sourceMappingURL=acorex-platform-module-order-management-client-contracts-entity-catalog-member-order.entity-cKfUjSOr.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-order-management-client-contracts-entity-catalog-member-order.entity-cKfUjSOr.mjs","sources":["../../../../libs/modules/order-management/contracts/src/entities/member-order/member-order.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityDetailsCrudActions, entityDetailsSimpleCondition, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Factory Function ----\n\nexport async function memberOrderFactory(): Promise<AXPEntity | null> {\n const i18n = `${RootConfig.config.i18n}:bulk-buy-orders.entities.member-order`;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.memberOrder.name,\n title: RootConfig.entities.memberOrder.title,\n icon: RootConfig.entities.memberOrder.icon,\n formats: {\n individual: RootConfig.entities.memberOrder.title,\n plural: RootConfig.entities.memberOrder.titlePlural,\n searchResult: {\n title: '{{ member.displayName }}',\n description: '{{ totalOwing }}',\n },\n },\n plugins: [\n { name: 'history' },\n { name: 'lock' },\n { name: 'notes' },\n {\n name: 'status',\n options: {\n field: 'statusId',\n definition: 'order-management.status.member-order',\n },\n },\n {\n name: 'computed-property',\n options: {\n fields: [\n {\n name: 'productTotal',\n title: `@${i18n}.fields.product-total.title`,\n value: '{{ context.eval(\"productTotal\") || 0 }}',\n group: {\n id: 'financial-info',\n title: `@${i18n}.groups.financial-info`,\n },\n showAs: {\n type: AXPWidgetsCatalog.number,\n options: {\n readonly: true,\n format: 'currency',\n },\n },\n },\n {\n name: 'freightShare',\n title: `@${i18n}.fields.freight-share.title`,\n value: '{{ context.eval(\"freightShare\") || 0 }}',\n group: {\n id: 'financial-info',\n title: `@${i18n}.groups.financial-info`,\n },\n showAs: {\n type: AXPWidgetsCatalog.number,\n options: {\n readonly: true,\n format: 'currency',\n },\n },\n },\n {\n name: 'totalOwing',\n title: `@${i18n}.fields.total-owing.title`,\n value: '{{ (context.eval(\"productTotal\") || 0) + (context.eval(\"freightShare\") || 0) }}',\n group: {\n id: 'financial-info',\n title: `@${i18n}.groups.financial-info`,\n },\n showAs: {\n type: AXPWidgetsCatalog.number,\n options: {\n readonly: true,\n format: 'currency',\n },\n },\n },\n ],\n },\n },\n ],\n groups: [\n { id: 'order-info', title: `@${i18n}.groups.order-info` },\n { id: 'member-info', title: `@${i18n}.groups.member-info` },\n { id: 'financial-info', title: `@${i18n}.groups.financial-info` },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'order-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'bulkBuyOrderId',\n title: `@${i18n}.fields.bulk-buy-order.title`,\n groupId: 'order-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.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.bulkBuyOrder.name}`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n expose: [\n { source: 'id', target: 'bulkBuyOrder.id' },\n { source: 'orderNumber', target: 'bulkBuyOrder.orderNumber' },\n { source: 'title', target: 'bulkBuyOrder.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'memberId',\n title: `@${i18n}.fields.member.title`,\n groupId: 'member-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.LookupBox,\n options: {\n entity: `${\"PersonCore\"}.${\"Person\"}`,\n textField: 'displayName',\n valueField: 'id',\n look: 'select',\n expose: [\n { source: 'id', target: 'member.id' },\n { source: 'displayName', target: 'member.displayName' },\n { source: 'email', target: 'member.email' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'productTotal',\n title: `@${i18n}.fields.product-total.title`,\n groupId: 'financial-info',\n schema: {\n dataType: 'number',\n visible: false,\n interface: {\n type: AXPWidgetsCatalog.number,\n },\n },\n },\n {\n name: 'freightShare',\n title: `@${i18n}.fields.freight-share.title`,\n groupId: 'financial-info',\n schema: {\n dataType: 'number',\n visible: false,\n interface: {\n type: AXPWidgetsCatalog.number,\n },\n },\n },\n {\n name: 'paidDate',\n title: `@${i18n}.fields.paid-date.title`,\n groupId: 'financial-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'date',\n interface: {\n type: AXPWidgetsCatalog.dateTime,\n options: {\n showTime: false,\n },\n },\n },\n },\n ],\n columns: [\n { name: 'memberId', options: { dataPath: 'member.displayName' } },\n { name: 'bulkBuyOrderId', options: { dataPath: 'bulkBuyOrder.orderNumber' } },\n { name: 'productTotal' },\n { name: 'freightShare' },\n { name: 'totalOwing' },\n { name: 'statusId' },\n { name: 'paidDate' },\n ],\n relatedEntities: [\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.memberOrderLine.name}`,\n title: RootConfig.entities.memberOrderLine.titlePlural,\n columns: ['bulkBuyOrderItemId', 'quantity', 'price', 'lineTotal'],\n conditions: [entityDetailsSimpleCondition('memberOrderId')],\n actions: [...entityDetailsCrudActions('memberOrderId')],\n layout: { type: 'tab-list' },\n },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'order-info' }, { id: 'member-info' }, { id: 'financial-info' }],\n properties: [\n { name: 'bulkBuyOrderId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'memberId', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n update: {\n sections: [{ id: 'order-info' }, { id: 'member-info' }, { id: 'financial-info' }],\n properties: [\n { name: 'bulkBuyOrderId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'memberId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'paidDate', layout: { positions: { lg: { colSpan: 6 } } } },\n ],\n },\n single: {\n title: '{{ member.displayName }}',\n sections: [\n { id: 'order-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'member-info', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'financial-info', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'bulkBuyOrderId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'memberId', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'productTotal', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'freightShare', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'totalOwing', layout: { positions: { lg: { colSpan: 4 } } } },\n { name: 'paidDate', layout: { positions: { lg: { colSpan: 6 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'member.displayName', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO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AAE,EAAE;AACvE,wBAAA,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AACrE,wBAAA,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AACtE,qBAAA;AACD,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,oBAAoB,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBACtD,CAAC;AACL,qBAAA;AACJ,iBAAA;AACJ,aAAA;AACJ,SAAA;KACJ;AAED,IAAA,OAAO,SAAS;AACpB;AAEA;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { o as orderManagementLocalEntityCatalog } from './acorex-platform-module-order-management-client-contracts-entity-catalog-acorex-platform-module-order-management-client-contracts-entity-catalog-CwK6VbHl.mjs';
|
|
2
|
+
//# sourceMappingURL=acorex-platform-module-order-management-client-contracts-entity-catalog.mjs.map
|
package/fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-order-management-client-contracts-entity-catalog.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';
|
|
2
|
+
import { RootConfig } from '@acorex-platform/module-order-management-client/contracts';
|
|
3
|
+
export { orderManagementLocalEntityCatalog } from '@acorex-platform/module-order-management-client/contracts/entity-catalog';
|
|
4
|
+
|
|
5
|
+
//#region ----- Imports -----
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ----- Provide local entities -----
|
|
8
|
+
/**
|
|
9
|
+
* Registers order-management layouts on the client from packaged factories.
|
|
10
|
+
* Each `import()` targets a secondary entry so unused entities stay out of the
|
|
11
|
+
* bundle. Do not add this to the demo app; demo continues to load layouts via
|
|
12
|
+
* `Domain:GetEntityLayout`.
|
|
13
|
+
*/
|
|
14
|
+
function provideOrderManagementLocalEntities() {
|
|
15
|
+
return provideLocalEntityCatalog({
|
|
16
|
+
moduleName: RootConfig.module.name,
|
|
17
|
+
loaders: {
|
|
18
|
+
[RootConfig.entities.bulkBuyOrder.name]: () => import('@acorex-platform/module-order-management-client/contracts/entities/bulk-buy-order').then((m) => m.bulkBuyOrderFactory()),
|
|
19
|
+
[RootConfig.entities.bulkBuyOrderItem.name]: () => import('@acorex-platform/module-order-management-client/contracts/entities/bulk-buy-order-item').then((m) => m.bulkBuyOrderItemFactory()),
|
|
20
|
+
[RootConfig.entities.memberOrder.name]: () => import('@acorex-platform/module-order-management-client/contracts/entities/member-order').then((m) => m.memberOrderFactory()),
|
|
21
|
+
[RootConfig.entities.memberOrderLine.name]: () => import('@acorex-platform/module-order-management-client/contracts/entities/member-order-line').then((m) => m.memberOrderLineFactory()),
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Generated bundle index. Do not edit.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
export { provideOrderManagementLocalEntities };
|
|
32
|
+
//# sourceMappingURL=acorex-platform-module-order-management-client-local-entities.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-order-management-client-local-entities.mjs","sources":["../../../../libs/modules/order-management/client/src/lib/provide-local-entities.ts","../../../../libs/modules/order-management/client/src/lib/acorex-platform-module-order-management-client-local-entities.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';\nimport { RootConfig } from '@acorex-platform/module-order-management-client/contracts';\n\n//#endregion\n\n//#region ----- Provide local entities -----\n\n/**\n * Registers order-management layouts on the client from packaged factories.\n * Each `import()` targets a secondary entry so unused entities stay out of the\n * bundle. Do not add this to the demo app; demo continues to load layouts via\n * `Domain:GetEntityLayout`.\n */\nexport function provideOrderManagementLocalEntities() {\n return provideLocalEntityCatalog({\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.bulkBuyOrder.name]: () =>\n import('@acorex-platform/module-order-management-client/contracts/entities/bulk-buy-order').then((m) => m.bulkBuyOrderFactory()),\n [RootConfig.entities.bulkBuyOrderItem.name]: () =>\n import('@acorex-platform/module-order-management-client/contracts/entities/bulk-buy-order-item').then((m) => m.bulkBuyOrderItemFactory()),\n [RootConfig.entities.memberOrder.name]: () =>\n import('@acorex-platform/module-order-management-client/contracts/entities/member-order').then((m) => m.memberOrderFactory()),\n [RootConfig.entities.memberOrderLine.name]: () =>\n import('@acorex-platform/module-order-management-client/contracts/entities/member-order-line').then((m) => m.memberOrderLineFactory()),\n },\n });\n}\n\nexport { orderManagementLocalEntityCatalog } from '@acorex-platform/module-order-management-client/contracts/entity-catalog';\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './provide-local-entities';\n"],"names":[],"mappings":";;;;AAAA;AAKA;AAEA;AAEA;;;;;AAKG;SACa,mCAAmC,GAAA;AACjD,IAAA,OAAO,yBAAyB,CAAC;AAC/B,QAAA,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAClC,QAAA,OAAO,EAAE;AACP,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,GAAG,MACvC,OAAO,mFAAmF,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,mBAAmB,EAAE,CAAC;AAClI,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,GAAG,MAC3C,OAAO,wFAAwF,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAuB,EAAE,CAAC;AAC3I,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,GAAG,MACtC,OAAO,iFAAiF,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,kBAAkB,EAAE,CAAC;AAC/H,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,GAAG,MAC1C,OAAO,sFAAsF,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,sBAAsB,EAAE,CAAC;AACzI,SAAA;AACF,KAAA,CAAC;AACJ;AAIA;;ACjCA;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex-platform/module-order-management-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.33",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0 || ^22.0.0",
|
|
@@ -22,6 +22,30 @@
|
|
|
22
22
|
"./contracts": {
|
|
23
23
|
"types": "./types/acorex-platform-module-order-management-client-contracts.d.ts",
|
|
24
24
|
"default": "./fesm2022/acorex-platform-module-order-management-client-contracts.mjs"
|
|
25
|
+
},
|
|
26
|
+
"./contracts/entities/bulk-buy-order": {
|
|
27
|
+
"types": "./types/acorex-platform-module-order-management-client-contracts-entities-bulk-buy-order.d.ts",
|
|
28
|
+
"default": "./fesm2022/acorex-platform-module-order-management-client-contracts-entities-bulk-buy-order.mjs"
|
|
29
|
+
},
|
|
30
|
+
"./contracts/entities/bulk-buy-order-item": {
|
|
31
|
+
"types": "./types/acorex-platform-module-order-management-client-contracts-entities-bulk-buy-order-item.d.ts",
|
|
32
|
+
"default": "./fesm2022/acorex-platform-module-order-management-client-contracts-entities-bulk-buy-order-item.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./contracts/entities/member-order": {
|
|
35
|
+
"types": "./types/acorex-platform-module-order-management-client-contracts-entities-member-order.d.ts",
|
|
36
|
+
"default": "./fesm2022/acorex-platform-module-order-management-client-contracts-entities-member-order.mjs"
|
|
37
|
+
},
|
|
38
|
+
"./contracts/entities/member-order-line": {
|
|
39
|
+
"types": "./types/acorex-platform-module-order-management-client-contracts-entities-member-order-line.d.ts",
|
|
40
|
+
"default": "./fesm2022/acorex-platform-module-order-management-client-contracts-entities-member-order-line.mjs"
|
|
41
|
+
},
|
|
42
|
+
"./contracts/entity-catalog": {
|
|
43
|
+
"types": "./types/acorex-platform-module-order-management-client-contracts-entity-catalog.d.ts",
|
|
44
|
+
"default": "./fesm2022/acorex-platform-module-order-management-client-contracts-entity-catalog.mjs"
|
|
45
|
+
},
|
|
46
|
+
"./local-entities": {
|
|
47
|
+
"types": "./types/acorex-platform-module-order-management-client-local-entities.d.ts",
|
|
48
|
+
"default": "./fesm2022/acorex-platform-module-order-management-client-local-entities.mjs"
|
|
25
49
|
}
|
|
26
50
|
},
|
|
27
51
|
"type": "module"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Lazy per-entity layout factories. Do not re-export from the contracts barrel
|
|
5
|
+
* so RootConfig imports stay light. Server seed and client `local-entities`
|
|
6
|
+
* consume this catalog explicitly.
|
|
7
|
+
*/
|
|
8
|
+
declare const orderManagementLocalEntityCatalog: AXPLocalEntityCatalog;
|
|
9
|
+
|
|
10
|
+
export { orderManagementLocalEntityCatalog };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
export { orderManagementLocalEntityCatalog } from '@acorex-platform/module-order-management-client/contracts/entity-catalog';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Registers order-management layouts on the client from packaged factories.
|
|
6
|
+
* Each `import()` targets a secondary entry so unused entities stay out of the
|
|
7
|
+
* bundle. Do not add this to the demo app; demo continues to load layouts via
|
|
8
|
+
* `Domain:GetEntityLayout`.
|
|
9
|
+
*/
|
|
10
|
+
declare function provideOrderManagementLocalEntities(): _angular_core.EnvironmentProviders;
|
|
11
|
+
|
|
12
|
+
export { provideOrderManagementLocalEntities };
|