@acorex-platform/module-measurement-core-client 0.0.32 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entities-measurement-dimension.mjs +280 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entities-measurement-dimension.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entities-measurement-range.mjs +405 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entities-measurement-range.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entities-quantity-type.mjs +242 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entities-quantity-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entities-size-item.mjs +250 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entities-size-item.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entities-size-rule.mjs +327 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entities-size-rule.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entities-sizing-dimension-usage.mjs +276 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entities-sizing-dimension-usage.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entities-sizing-profile.mjs +326 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entities-sizing-profile.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entities-unit-conversion.mjs +291 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entities-unit-conversion.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entities-unit-of-measure.mjs +315 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entities-unit-of-measure.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog-acorex-platform-module-measurement-core-client-contracts-entity-catalog-D_3qAB6g.mjs +99 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog-acorex-platform-module-measurement-core-client-contracts-entity-catalog-D_3qAB6g.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog-measurement-dimension.entity-hKoZ7MYW.mjs +208 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog-measurement-dimension.entity-hKoZ7MYW.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog-measurement-range.entity-5TG_paCh.mjs +333 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog-measurement-range.entity-5TG_paCh.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog-quantity-type.entity-qM6kczXO.mjs +170 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog-quantity-type.entity-qM6kczXO.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog-size-item.entity-DBZTjTbr.mjs +178 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog-size-item.entity-DBZTjTbr.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog-size-rule.entity-DdsOkrLS.mjs +255 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog-size-rule.entity-DdsOkrLS.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog-sizing-dimension-usage.entity-D0L5v_Lw.mjs +204 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog-sizing-dimension-usage.entity-D0L5v_Lw.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog-sizing-profile.entity-BWZ882vO.mjs +254 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog-sizing-profile.entity-BWZ882vO.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog-unit-conversion.entity-DDLTaqsv.mjs +219 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog-unit-conversion.entity-DDLTaqsv.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog-unit-of-measure.entity-CYJDuSvX.mjs +243 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog-unit-of-measure.entity-CYJDuSvX.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-local-entities.mjs +37 -0
- package/fesm2022/acorex-platform-module-measurement-core-client-local-entities.mjs.map +1 -0
- package/package.json +45 -1
- package/types/acorex-platform-module-measurement-core-client-contracts-entities-measurement-dimension.d.ts +5 -0
- package/types/acorex-platform-module-measurement-core-client-contracts-entities-measurement-range.d.ts +5 -0
- package/types/acorex-platform-module-measurement-core-client-contracts-entities-quantity-type.d.ts +5 -0
- package/types/acorex-platform-module-measurement-core-client-contracts-entities-size-item.d.ts +5 -0
- package/types/acorex-platform-module-measurement-core-client-contracts-entities-size-rule.d.ts +5 -0
- package/types/acorex-platform-module-measurement-core-client-contracts-entities-sizing-dimension-usage.d.ts +5 -0
- package/types/acorex-platform-module-measurement-core-client-contracts-entities-sizing-profile.d.ts +5 -0
- package/types/acorex-platform-module-measurement-core-client-contracts-entities-unit-conversion.d.ts +5 -0
- package/types/acorex-platform-module-measurement-core-client-contracts-entities-unit-of-measure.d.ts +5 -0
- package/types/acorex-platform-module-measurement-core-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-measurement-core-client-local-entities.d.ts +12 -0
package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entities-size-rule.mjs
ADDED
|
@@ -0,0 +1,327 @@
|
|
|
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: 'measurement-core',
|
|
6
|
+
module: 'MeasurementCore',
|
|
7
|
+
};
|
|
8
|
+
const RootConfig = {
|
|
9
|
+
config,
|
|
10
|
+
module: {
|
|
11
|
+
name: config.module,
|
|
12
|
+
title: `@${config.i18n}:module.title`,
|
|
13
|
+
icon: 'fa-light fa-ruler-combined',
|
|
14
|
+
},
|
|
15
|
+
entities: {
|
|
16
|
+
quantityType: {
|
|
17
|
+
name: 'QuantityType',
|
|
18
|
+
title: `@${config.i18n}:quantity-types.entities.quantity-type.title`,
|
|
19
|
+
titlePlural: `@${config.i18n}:quantity-types.entities.quantity-type.plural`,
|
|
20
|
+
icon: 'fa-light fa-calculator',
|
|
21
|
+
},
|
|
22
|
+
unitOfMeasure: {
|
|
23
|
+
name: 'UnitOfMeasure',
|
|
24
|
+
title: `@${config.i18n}:units.entities.unit-of-measure.title`,
|
|
25
|
+
titlePlural: `@${config.i18n}:units.entities.unit-of-measure.plural`,
|
|
26
|
+
icon: 'fa-light fa-ruler',
|
|
27
|
+
},
|
|
28
|
+
unitConversion: {
|
|
29
|
+
name: 'UnitConversion',
|
|
30
|
+
title: `@${config.i18n}:conversions.entities.unit-conversion.title`,
|
|
31
|
+
titlePlural: `@${config.i18n}:conversions.entities.unit-conversion.plural`,
|
|
32
|
+
icon: 'fa-light fa-arrows-rotate',
|
|
33
|
+
},
|
|
34
|
+
measurementDimension: {
|
|
35
|
+
name: 'MeasurementDimension',
|
|
36
|
+
title: `@${config.i18n}:dimensions.entities.measurement-dimension.title`,
|
|
37
|
+
titlePlural: `@${config.i18n}:dimensions.entities.measurement-dimension.plural`,
|
|
38
|
+
icon: 'fa-light fa-cube',
|
|
39
|
+
},
|
|
40
|
+
measurementRange: {
|
|
41
|
+
name: 'MeasurementRange',
|
|
42
|
+
title: `@${config.i18n}:ranges.entities.measurement-range.title`,
|
|
43
|
+
titlePlural: `@${config.i18n}:ranges.entities.measurement-range.plural`,
|
|
44
|
+
icon: 'fa-light fa-chart-line-up',
|
|
45
|
+
},
|
|
46
|
+
sizingProfile: {
|
|
47
|
+
name: 'SizingProfile',
|
|
48
|
+
title: `@${config.i18n}:sizes.entities.sizing-profile.title`,
|
|
49
|
+
titlePlural: `@${config.i18n}:sizes.entities.sizing-profile.plural`,
|
|
50
|
+
icon: 'fa-light fa-chart-column',
|
|
51
|
+
},
|
|
52
|
+
sizingDimensionUsage: {
|
|
53
|
+
name: 'SizingDimensionUsage',
|
|
54
|
+
title: `@${config.i18n}:sizes.entities.sizing-dimension-usage.title`,
|
|
55
|
+
titlePlural: `@${config.i18n}:sizes.entities.sizing-dimension-usage.plural`,
|
|
56
|
+
icon: 'fa-light fa-columns',
|
|
57
|
+
},
|
|
58
|
+
sizeItem: {
|
|
59
|
+
name: 'SizeItem',
|
|
60
|
+
title: `@${config.i18n}:sizes.entities.size-item.title`,
|
|
61
|
+
titlePlural: `@${config.i18n}:sizes.entities.size-item.plural`,
|
|
62
|
+
icon: 'fa-light fa-list',
|
|
63
|
+
},
|
|
64
|
+
sizeRule: {
|
|
65
|
+
name: 'SizeRule',
|
|
66
|
+
title: `@${config.i18n}:sizes.entities.size-rule.title`,
|
|
67
|
+
titlePlural: `@${config.i18n}:sizes.entities.size-rule.plural`,
|
|
68
|
+
icon: 'fa-light fa-grip',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region ---- Entity Factory ----
|
|
75
|
+
async function sizeRuleFactory() {
|
|
76
|
+
const sections = [
|
|
77
|
+
{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
78
|
+
];
|
|
79
|
+
const propertyLayouts = [
|
|
80
|
+
{ name: 'sizeChartId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
81
|
+
{ name: 'sizeItemId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
82
|
+
{ name: 'measurementDimensionId', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
83
|
+
{ name: 'measurementRangeId', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
|
|
84
|
+
{ name: 'matchBehavior', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
|
|
85
|
+
{ name: 'priority', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
|
|
86
|
+
];
|
|
87
|
+
const entityDef = {
|
|
88
|
+
module: RootConfig.module.name,
|
|
89
|
+
name: RootConfig.entities.sizeRule.name,
|
|
90
|
+
title: RootConfig.entities.sizeRule.title,
|
|
91
|
+
icon: RootConfig.entities.sizeRule.icon,
|
|
92
|
+
formats: {
|
|
93
|
+
individual: RootConfig.entities.sizeRule.title,
|
|
94
|
+
plural: RootConfig.entities.sizeRule.titlePlural,
|
|
95
|
+
searchResult: {
|
|
96
|
+
title: '{{ context.eval("sizeItem.code") + " / " + context.eval("measurementDimension.title", { pipes: ["translate"] }) }}',
|
|
97
|
+
description: '{{ measurementRange.title || measurementRange.code }}',
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
plugins: [{ name: 'history' }, { name: 'compare' }],
|
|
101
|
+
groups: [
|
|
102
|
+
{ id: 'basic-info', title: '@measurement-core:sizes.entities.size-rule.groups.basic-info' },
|
|
103
|
+
],
|
|
104
|
+
properties: [
|
|
105
|
+
{
|
|
106
|
+
name: 'id',
|
|
107
|
+
title: '@general:terms.common.id',
|
|
108
|
+
groupId: 'basic-info',
|
|
109
|
+
schema: {
|
|
110
|
+
dataType: 'uuid',
|
|
111
|
+
visible: false,
|
|
112
|
+
readonly: true,
|
|
113
|
+
unique: { enabled: true },
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: 'sizeChartId',
|
|
118
|
+
title: '@measurement-core:sizes.entities.size-rule.fields.sizing-profile.title',
|
|
119
|
+
groupId: 'basic-info',
|
|
120
|
+
options: {
|
|
121
|
+
sort: { enabled: true },
|
|
122
|
+
filter: {
|
|
123
|
+
advance: { enabled: true },
|
|
124
|
+
inline: { enabled: true },
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
schema: {
|
|
128
|
+
dataType: 'string',
|
|
129
|
+
interface: {
|
|
130
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
131
|
+
options: {
|
|
132
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.sizingProfile.name}`,
|
|
133
|
+
expose: [
|
|
134
|
+
{ source: 'id', target: 'sizeChartId' },
|
|
135
|
+
{ source: 'title', target: 'sizeChart.title' },
|
|
136
|
+
{ source: 'code', target: 'sizeChart.code' },
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
validations: [{ rule: 'required' }],
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: 'sizeItemId',
|
|
145
|
+
title: '@measurement-core:sizes.entities.size-rule.fields.size-item.title',
|
|
146
|
+
groupId: 'basic-info',
|
|
147
|
+
options: {
|
|
148
|
+
sort: { enabled: true },
|
|
149
|
+
filter: {
|
|
150
|
+
advance: { enabled: true },
|
|
151
|
+
inline: { enabled: true },
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
schema: {
|
|
155
|
+
dataType: 'string',
|
|
156
|
+
interface: {
|
|
157
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
158
|
+
options: {
|
|
159
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.sizeItem.name}`,
|
|
160
|
+
expose: [
|
|
161
|
+
{ source: 'id', target: 'sizeItemId' },
|
|
162
|
+
{ source: 'code', target: 'sizeItem.code' },
|
|
163
|
+
{ source: 'title', target: 'sizeItem.title' },
|
|
164
|
+
],
|
|
165
|
+
conditions: [
|
|
166
|
+
{
|
|
167
|
+
name: 'sizeChartId',
|
|
168
|
+
operator: { type: 'equal' },
|
|
169
|
+
value: '{{context.eval("sizeChartId")}}',
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
validations: [{ rule: 'required' }],
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: 'measurementDimensionId',
|
|
179
|
+
title: '@measurement-core:sizes.entities.size-rule.fields.measurement-dimension.title',
|
|
180
|
+
groupId: 'basic-info',
|
|
181
|
+
options: {
|
|
182
|
+
sort: { enabled: true },
|
|
183
|
+
filter: {
|
|
184
|
+
advance: { enabled: true },
|
|
185
|
+
inline: { enabled: true },
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
schema: {
|
|
189
|
+
dataType: 'string',
|
|
190
|
+
interface: {
|
|
191
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
192
|
+
options: {
|
|
193
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.measurementDimension.name}`,
|
|
194
|
+
expose: [
|
|
195
|
+
{ source: 'id', target: 'measurementDimensionId' },
|
|
196
|
+
{ source: 'title', target: 'measurementDimension.title' },
|
|
197
|
+
{ source: 'code', target: 'measurementDimension.code' },
|
|
198
|
+
],
|
|
199
|
+
conditions: [
|
|
200
|
+
{
|
|
201
|
+
name: 'sizeChartId',
|
|
202
|
+
operator: { type: 'equal' },
|
|
203
|
+
value: '{{context.eval("sizeChartId")}}',
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
validations: [{ rule: 'required' }],
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: 'measurementRangeId',
|
|
213
|
+
title: '@measurement-core:sizes.entities.size-rule.fields.measurement-range.title',
|
|
214
|
+
groupId: 'basic-info',
|
|
215
|
+
options: {
|
|
216
|
+
sort: { enabled: true },
|
|
217
|
+
filter: {
|
|
218
|
+
advance: { enabled: true },
|
|
219
|
+
inline: { enabled: true },
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
schema: {
|
|
223
|
+
dataType: 'string',
|
|
224
|
+
interface: {
|
|
225
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
226
|
+
options: {
|
|
227
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.measurementRange.name}`,
|
|
228
|
+
expose: [
|
|
229
|
+
{ source: 'id', target: 'measurementRangeId' },
|
|
230
|
+
{ source: 'title', target: 'measurementRange.title' },
|
|
231
|
+
{ source: 'code', target: 'measurementRange.code' },
|
|
232
|
+
],
|
|
233
|
+
conditions: [
|
|
234
|
+
{
|
|
235
|
+
name: 'measurementDimensionId',
|
|
236
|
+
operator: { type: 'equal' },
|
|
237
|
+
value: '{{context.eval("measurementDimensionId")}}',
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
},
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
validations: [{ rule: 'required' }],
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
name: 'matchBehavior',
|
|
247
|
+
title: '@measurement-core:sizes.entities.size-rule.fields.match-behavior.title',
|
|
248
|
+
groupId: 'basic-info',
|
|
249
|
+
schema: {
|
|
250
|
+
dataType: 'string',
|
|
251
|
+
interface: {
|
|
252
|
+
type: AXPWidgetsList.Editors.SelectBox,
|
|
253
|
+
options: {
|
|
254
|
+
valueField: 'value',
|
|
255
|
+
textField: 'text',
|
|
256
|
+
dataSource: [
|
|
257
|
+
{ value: 'hard', text: '@measurement-core:sizes.entities.size-rule.fields.match-behavior.options.hard' },
|
|
258
|
+
{ value: 'soft', text: '@measurement-core:sizes.entities.size-rule.fields.match-behavior.options.soft' },
|
|
259
|
+
{ value: 'scoring', text: '@measurement-core:sizes.entities.size-rule.fields.match-behavior.options.scoring' },
|
|
260
|
+
],
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
name: 'priority',
|
|
267
|
+
title: '@measurement-core:sizes.entities.size-rule.fields.priority.title',
|
|
268
|
+
groupId: 'basic-info',
|
|
269
|
+
schema: {
|
|
270
|
+
dataType: 'number',
|
|
271
|
+
interface: {
|
|
272
|
+
type: AXPWidgetsList.Editors.NumberBox,
|
|
273
|
+
options: {
|
|
274
|
+
placeholder: '@measurement-core:sizes.entities.size-rule.fields.priority.placeholder',
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
columns: [
|
|
281
|
+
{ name: 'sizeChartId', options: { width: '160px', dataPath: 'sizeChart.title', order: 1 } },
|
|
282
|
+
{ name: 'sizeItemId', options: { width: '120px', dataPath: 'sizeItem.code', order: 2 } },
|
|
283
|
+
{ name: 'measurementDimensionId', options: { width: '160px', dataPath: 'measurementDimension.title', order: 3 } },
|
|
284
|
+
{ name: 'measurementRangeId', options: { width: '160px', dataPath: 'measurementRange.title', order: 4 } },
|
|
285
|
+
{ name: 'matchBehavior', options: { width: '100px', order: 5 } },
|
|
286
|
+
{ name: 'priority', options: { width: '90px', order: 6 } },
|
|
287
|
+
],
|
|
288
|
+
interfaces: {
|
|
289
|
+
master: {
|
|
290
|
+
create: {
|
|
291
|
+
sections,
|
|
292
|
+
properties: propertyLayouts,
|
|
293
|
+
},
|
|
294
|
+
update: {
|
|
295
|
+
sections,
|
|
296
|
+
properties: propertyLayouts,
|
|
297
|
+
},
|
|
298
|
+
single: {
|
|
299
|
+
title: '{{ context.eval("sizeItem.code") + " / " + context.eval("measurementDimension.title", { pipes: ["translate"] }) }}',
|
|
300
|
+
sections,
|
|
301
|
+
properties: propertyLayouts,
|
|
302
|
+
actions: [...entityMasterRecordActions()],
|
|
303
|
+
},
|
|
304
|
+
list: {
|
|
305
|
+
actions: [...entityMasterCrudActions()],
|
|
306
|
+
views: [
|
|
307
|
+
createAllQueryView({
|
|
308
|
+
sorts: [
|
|
309
|
+
{ name: 'sizeItemId', dir: 'asc' },
|
|
310
|
+
{ name: 'measurementDimensionId', dir: 'asc' },
|
|
311
|
+
],
|
|
312
|
+
}),
|
|
313
|
+
],
|
|
314
|
+
},
|
|
315
|
+
},
|
|
316
|
+
},
|
|
317
|
+
};
|
|
318
|
+
return entityDef;
|
|
319
|
+
}
|
|
320
|
+
//#endregion
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Generated bundle index. Do not edit.
|
|
324
|
+
*/
|
|
325
|
+
|
|
326
|
+
export { sizeRuleFactory };
|
|
327
|
+
//# sourceMappingURL=acorex-platform-module-measurement-core-client-contracts-entities-size-rule.mjs.map
|
package/fesm2022/acorex-platform-module-measurement-core-client-contracts-entities-size-rule.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-measurement-core-client-contracts-entities-size-rule.mjs","sources":["../../../../libs/modules/measurement-core/contracts/src/root-config.ts","../../../../libs/modules/measurement-core/contracts/src/entities/size-rule/size-rule.entity.ts","../../../../libs/modules/measurement-core/contracts/src/acorex-platform-module-measurement-core-client-contracts-entities-size-rule.ts"],"sourcesContent":["const config = {\n i18n: 'measurement-core',\n module: 'MeasurementCore',\n};\n\nexport const RootConfig = {\n config,\n module: {\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-ruler-combined',\n },\n entities: {\n quantityType: {\n name: 'QuantityType',\n title: `@${config.i18n}:quantity-types.entities.quantity-type.title`,\n titlePlural: `@${config.i18n}:quantity-types.entities.quantity-type.plural`,\n icon: 'fa-light fa-calculator',\n },\n unitOfMeasure: {\n name: 'UnitOfMeasure',\n title: `@${config.i18n}:units.entities.unit-of-measure.title`,\n titlePlural: `@${config.i18n}:units.entities.unit-of-measure.plural`,\n icon: 'fa-light fa-ruler',\n },\n unitConversion: {\n name: 'UnitConversion',\n title: `@${config.i18n}:conversions.entities.unit-conversion.title`,\n titlePlural: `@${config.i18n}:conversions.entities.unit-conversion.plural`,\n icon: 'fa-light fa-arrows-rotate',\n },\n measurementDimension: {\n name: 'MeasurementDimension',\n title: `@${config.i18n}:dimensions.entities.measurement-dimension.title`,\n titlePlural: `@${config.i18n}:dimensions.entities.measurement-dimension.plural`,\n icon: 'fa-light fa-cube',\n },\n measurementRange: {\n name: 'MeasurementRange',\n title: `@${config.i18n}:ranges.entities.measurement-range.title`,\n titlePlural: `@${config.i18n}:ranges.entities.measurement-range.plural`,\n icon: 'fa-light fa-chart-line-up',\n },\n sizingProfile: {\n name: 'SizingProfile',\n title: `@${config.i18n}:sizes.entities.sizing-profile.title`,\n titlePlural: `@${config.i18n}:sizes.entities.sizing-profile.plural`,\n icon: 'fa-light fa-chart-column',\n },\n sizingDimensionUsage: {\n name: 'SizingDimensionUsage',\n title: `@${config.i18n}:sizes.entities.sizing-dimension-usage.title`,\n titlePlural: `@${config.i18n}:sizes.entities.sizing-dimension-usage.plural`,\n icon: 'fa-light fa-columns',\n },\n sizeItem: {\n name: 'SizeItem',\n title: `@${config.i18n}:sizes.entities.size-item.title`,\n titlePlural: `@${config.i18n}:sizes.entities.size-item.plural`,\n icon: 'fa-light fa-list',\n },\n sizeRule: {\n name: 'SizeRule',\n title: `@${config.i18n}:sizes.entities.size-rule.title`,\n titlePlural: `@${config.i18n}:sizes.entities.size-rule.plural`,\n icon: 'fa-light fa-grip',\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 sizeRuleFactory(): Promise<AXPEntity> {\n const sections = [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n ];\n\n const propertyLayouts = [\n { name: 'sizeChartId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'sizeItemId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'measurementDimensionId', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'measurementRangeId', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'matchBehavior', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'priority', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.sizeRule.name,\n title: RootConfig.entities.sizeRule.title,\n icon: RootConfig.entities.sizeRule.icon,\n formats: {\n individual: RootConfig.entities.sizeRule.title,\n plural: RootConfig.entities.sizeRule.titlePlural,\n searchResult: {\n title:\n '{{ context.eval(\"sizeItem.code\") + \" / \" + context.eval(\"measurementDimension.title\", { pipes: [\"translate\"] }) }}',\n description: '{{ measurementRange.title || measurementRange.code }}',\n },\n },\n plugins: [{ name: 'history' }, { name: 'compare' }],\n groups: [\n { id: 'basic-info', title: '@measurement-core:sizes.entities.size-rule.groups.basic-info' },\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: 'sizeChartId',\n title: '@measurement-core:sizes.entities.size-rule.fields.sizing-profile.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.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.sizingProfile.name}`,\n expose: [\n { source: 'id', target: 'sizeChartId' },\n { source: 'title', target: 'sizeChart.title' },\n { source: 'code', target: 'sizeChart.code' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'sizeItemId',\n title: '@measurement-core:sizes.entities.size-rule.fields.size-item.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.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.sizeItem.name}`,\n expose: [\n { source: 'id', target: 'sizeItemId' },\n { source: 'code', target: 'sizeItem.code' },\n { source: 'title', target: 'sizeItem.title' },\n ],\n conditions: [\n {\n name: 'sizeChartId',\n operator: { type: 'equal' },\n value: '{{context.eval(\"sizeChartId\")}}',\n },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'measurementDimensionId',\n title: '@measurement-core:sizes.entities.size-rule.fields.measurement-dimension.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.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.measurementDimension.name}`,\n expose: [\n { source: 'id', target: 'measurementDimensionId' },\n { source: 'title', target: 'measurementDimension.title' },\n { source: 'code', target: 'measurementDimension.code' },\n ],\n conditions: [\n {\n name: 'sizeChartId',\n operator: { type: 'equal' },\n value: '{{context.eval(\"sizeChartId\")}}',\n },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'measurementRangeId',\n title: '@measurement-core:sizes.entities.size-rule.fields.measurement-range.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.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.measurementRange.name}`,\n expose: [\n { source: 'id', target: 'measurementRangeId' },\n { source: 'title', target: 'measurementRange.title' },\n { source: 'code', target: 'measurementRange.code' },\n ],\n conditions: [\n {\n name: 'measurementDimensionId',\n operator: { type: 'equal' },\n value: '{{context.eval(\"measurementDimensionId\")}}',\n },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'matchBehavior',\n title: '@measurement-core:sizes.entities.size-rule.fields.match-behavior.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n { value: 'hard', text: '@measurement-core:sizes.entities.size-rule.fields.match-behavior.options.hard' },\n { value: 'soft', text: '@measurement-core:sizes.entities.size-rule.fields.match-behavior.options.soft' },\n { value: 'scoring', text: '@measurement-core:sizes.entities.size-rule.fields.match-behavior.options.scoring' },\n ],\n },\n },\n },\n },\n {\n name: 'priority',\n title: '@measurement-core:sizes.entities.size-rule.fields.priority.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n placeholder: '@measurement-core:sizes.entities.size-rule.fields.priority.placeholder',\n },\n },\n },\n },\n ],\n columns: [\n { name: 'sizeChartId', options: { width: '160px', dataPath: 'sizeChart.title', order: 1 } },\n { name: 'sizeItemId', options: { width: '120px', dataPath: 'sizeItem.code', order: 2 } },\n { name: 'measurementDimensionId', options: { width: '160px', dataPath: 'measurementDimension.title', order: 3 } },\n { name: 'measurementRangeId', options: { width: '160px', dataPath: 'measurementRange.title', order: 4 } },\n { name: 'matchBehavior', options: { width: '100px', order: 5 } },\n { name: 'priority', options: { width: '90px', order: 6 } },\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:\n '{{ context.eval(\"sizeItem.code\") + \" / \" + context.eval(\"measurementDimension.title\", { pipes: [\"translate\"] }) }}',\n sections,\n properties: propertyLayouts,\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [\n { name: 'sizeItemId', dir: 'asc' },\n { name: 'measurementDimensionId', dir: 'asc' },\n ],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.size-rule';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,kBAAkB;AACxB,IAAA,MAAM,EAAE,iBAAiB;CAC1B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,4BAA4B;AACnC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,YAAY,EAAE;AACZ,YAAA,IAAI,EAAE,cAAc;AACpB,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,4CAAA,CAA8C;AACpE,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,6CAAA,CAA+C;AAC3E,YAAA,IAAI,EAAE,wBAAwB;AAC/B,SAAA;AACD,QAAA,aAAa,EAAE;AACb,YAAA,IAAI,EAAE,eAAe;AACrB,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,qCAAA,CAAuC;AAC7D,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,sCAAA,CAAwC;AACpE,YAAA,IAAI,EAAE,mBAAmB;AAC1B,SAAA;AACD,QAAA,cAAc,EAAE;AACd,YAAA,IAAI,EAAE,gBAAgB;AACtB,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,2CAAA,CAA6C;AACnE,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,4CAAA,CAA8C;AAC1E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F,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;ACpQA;;AAEG;;;;"}
|
|
@@ -0,0 +1,276 @@
|
|
|
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: 'measurement-core',
|
|
6
|
+
module: 'MeasurementCore',
|
|
7
|
+
};
|
|
8
|
+
const RootConfig = {
|
|
9
|
+
config,
|
|
10
|
+
module: {
|
|
11
|
+
name: config.module,
|
|
12
|
+
title: `@${config.i18n}:module.title`,
|
|
13
|
+
icon: 'fa-light fa-ruler-combined',
|
|
14
|
+
},
|
|
15
|
+
entities: {
|
|
16
|
+
quantityType: {
|
|
17
|
+
name: 'QuantityType',
|
|
18
|
+
title: `@${config.i18n}:quantity-types.entities.quantity-type.title`,
|
|
19
|
+
titlePlural: `@${config.i18n}:quantity-types.entities.quantity-type.plural`,
|
|
20
|
+
icon: 'fa-light fa-calculator',
|
|
21
|
+
},
|
|
22
|
+
unitOfMeasure: {
|
|
23
|
+
name: 'UnitOfMeasure',
|
|
24
|
+
title: `@${config.i18n}:units.entities.unit-of-measure.title`,
|
|
25
|
+
titlePlural: `@${config.i18n}:units.entities.unit-of-measure.plural`,
|
|
26
|
+
icon: 'fa-light fa-ruler',
|
|
27
|
+
},
|
|
28
|
+
unitConversion: {
|
|
29
|
+
name: 'UnitConversion',
|
|
30
|
+
title: `@${config.i18n}:conversions.entities.unit-conversion.title`,
|
|
31
|
+
titlePlural: `@${config.i18n}:conversions.entities.unit-conversion.plural`,
|
|
32
|
+
icon: 'fa-light fa-arrows-rotate',
|
|
33
|
+
},
|
|
34
|
+
measurementDimension: {
|
|
35
|
+
name: 'MeasurementDimension',
|
|
36
|
+
title: `@${config.i18n}:dimensions.entities.measurement-dimension.title`,
|
|
37
|
+
titlePlural: `@${config.i18n}:dimensions.entities.measurement-dimension.plural`,
|
|
38
|
+
icon: 'fa-light fa-cube',
|
|
39
|
+
},
|
|
40
|
+
measurementRange: {
|
|
41
|
+
name: 'MeasurementRange',
|
|
42
|
+
title: `@${config.i18n}:ranges.entities.measurement-range.title`,
|
|
43
|
+
titlePlural: `@${config.i18n}:ranges.entities.measurement-range.plural`,
|
|
44
|
+
icon: 'fa-light fa-chart-line-up',
|
|
45
|
+
},
|
|
46
|
+
sizingProfile: {
|
|
47
|
+
name: 'SizingProfile',
|
|
48
|
+
title: `@${config.i18n}:sizes.entities.sizing-profile.title`,
|
|
49
|
+
titlePlural: `@${config.i18n}:sizes.entities.sizing-profile.plural`,
|
|
50
|
+
icon: 'fa-light fa-chart-column',
|
|
51
|
+
},
|
|
52
|
+
sizingDimensionUsage: {
|
|
53
|
+
name: 'SizingDimensionUsage',
|
|
54
|
+
title: `@${config.i18n}:sizes.entities.sizing-dimension-usage.title`,
|
|
55
|
+
titlePlural: `@${config.i18n}:sizes.entities.sizing-dimension-usage.plural`,
|
|
56
|
+
icon: 'fa-light fa-columns',
|
|
57
|
+
},
|
|
58
|
+
sizeItem: {
|
|
59
|
+
name: 'SizeItem',
|
|
60
|
+
title: `@${config.i18n}:sizes.entities.size-item.title`,
|
|
61
|
+
titlePlural: `@${config.i18n}:sizes.entities.size-item.plural`,
|
|
62
|
+
icon: 'fa-light fa-list',
|
|
63
|
+
},
|
|
64
|
+
sizeRule: {
|
|
65
|
+
name: 'SizeRule',
|
|
66
|
+
title: `@${config.i18n}:sizes.entities.size-rule.title`,
|
|
67
|
+
titlePlural: `@${config.i18n}:sizes.entities.size-rule.plural`,
|
|
68
|
+
icon: 'fa-light fa-grip',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region ---- Entity Factory ----
|
|
75
|
+
async function sizingDimensionUsageFactory() {
|
|
76
|
+
const sections = [
|
|
77
|
+
{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
78
|
+
];
|
|
79
|
+
const propertyLayouts = [
|
|
80
|
+
{ name: 'sizeChartId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
81
|
+
{ name: 'measurementDimensionId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
82
|
+
{ name: 'required', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
|
|
83
|
+
{ name: 'primary', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
|
|
84
|
+
{ name: 'sortOrder', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },
|
|
85
|
+
{ name: 'priority', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },
|
|
86
|
+
];
|
|
87
|
+
const entityDef = {
|
|
88
|
+
module: RootConfig.module.name,
|
|
89
|
+
name: RootConfig.entities.sizingDimensionUsage.name,
|
|
90
|
+
title: RootConfig.entities.sizingDimensionUsage.title,
|
|
91
|
+
icon: RootConfig.entities.sizingDimensionUsage.icon,
|
|
92
|
+
formats: {
|
|
93
|
+
individual: RootConfig.entities.sizingDimensionUsage.title,
|
|
94
|
+
plural: RootConfig.entities.sizingDimensionUsage.titlePlural,
|
|
95
|
+
searchResult: {
|
|
96
|
+
title: '{{ measurementDimension.title }}',
|
|
97
|
+
description: '{{ sizeChart.title }}',
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
plugins: [{ name: 'history' }, { name: 'compare' }],
|
|
101
|
+
groups: [
|
|
102
|
+
{ id: 'basic-info', title: '@measurement-core:sizes.entities.sizing-dimension-usage.groups.basic-info' },
|
|
103
|
+
],
|
|
104
|
+
properties: [
|
|
105
|
+
{
|
|
106
|
+
name: 'id',
|
|
107
|
+
title: '@general:terms.common.id',
|
|
108
|
+
groupId: 'basic-info',
|
|
109
|
+
schema: {
|
|
110
|
+
dataType: 'uuid',
|
|
111
|
+
visible: false,
|
|
112
|
+
readonly: true,
|
|
113
|
+
unique: { enabled: true },
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: 'sizeChartId',
|
|
118
|
+
title: '@measurement-core:sizes.entities.sizing-dimension-usage.fields.sizing-profile.title',
|
|
119
|
+
groupId: 'basic-info',
|
|
120
|
+
options: {
|
|
121
|
+
sort: { enabled: true },
|
|
122
|
+
filter: {
|
|
123
|
+
advance: { enabled: true },
|
|
124
|
+
inline: { enabled: true },
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
schema: {
|
|
128
|
+
dataType: 'string',
|
|
129
|
+
interface: {
|
|
130
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
131
|
+
options: {
|
|
132
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.sizingProfile.name}`,
|
|
133
|
+
expose: [
|
|
134
|
+
{ source: 'id', target: 'sizeChartId' },
|
|
135
|
+
{ source: 'title', target: 'sizeChart.title' },
|
|
136
|
+
{ source: 'code', target: 'sizeChart.code' },
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
validations: [{ rule: 'required' }],
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: 'measurementDimensionId',
|
|
145
|
+
title: '@measurement-core:sizes.entities.sizing-dimension-usage.fields.measurement-dimension.title',
|
|
146
|
+
groupId: 'basic-info',
|
|
147
|
+
options: {
|
|
148
|
+
sort: { enabled: true },
|
|
149
|
+
filter: {
|
|
150
|
+
advance: { enabled: true },
|
|
151
|
+
inline: { enabled: true },
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
schema: {
|
|
155
|
+
dataType: 'string',
|
|
156
|
+
interface: {
|
|
157
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
158
|
+
options: {
|
|
159
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.measurementDimension.name}`,
|
|
160
|
+
expose: [
|
|
161
|
+
{ source: 'id', target: 'measurementDimensionId' },
|
|
162
|
+
{ source: 'title', target: 'measurementDimension.title' },
|
|
163
|
+
{ source: 'code', target: 'measurementDimension.code' },
|
|
164
|
+
],
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
validations: [{ rule: 'required' }],
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: 'required',
|
|
172
|
+
title: '@measurement-core:sizes.entities.sizing-dimension-usage.fields.required.title',
|
|
173
|
+
groupId: 'basic-info',
|
|
174
|
+
schema: {
|
|
175
|
+
dataType: 'boolean',
|
|
176
|
+
interface: {
|
|
177
|
+
type: AXPWidgetsList.Editors.ToggleSwitch,
|
|
178
|
+
options: {
|
|
179
|
+
trulyText: '@general:terms.common.yes-no.yes',
|
|
180
|
+
falsyText: '@general:terms.common.yes-no.no',
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
name: 'primary',
|
|
187
|
+
title: '@measurement-core:sizes.entities.sizing-dimension-usage.fields.primary.title',
|
|
188
|
+
groupId: 'basic-info',
|
|
189
|
+
schema: {
|
|
190
|
+
dataType: 'boolean',
|
|
191
|
+
interface: {
|
|
192
|
+
type: AXPWidgetsList.Editors.ToggleSwitch,
|
|
193
|
+
options: {
|
|
194
|
+
trulyText: '@general:terms.common.yes-no.yes',
|
|
195
|
+
falsyText: '@general:terms.common.yes-no.no',
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
name: 'sortOrder',
|
|
202
|
+
title: '@measurement-core:sizes.entities.sizing-dimension-usage.fields.sort-order.title',
|
|
203
|
+
groupId: 'basic-info',
|
|
204
|
+
schema: {
|
|
205
|
+
dataType: 'number',
|
|
206
|
+
interface: {
|
|
207
|
+
type: AXPWidgetsList.Editors.NumberBox,
|
|
208
|
+
options: {
|
|
209
|
+
minValue: 0,
|
|
210
|
+
placeholder: '@measurement-core:sizes.entities.sizing-dimension-usage.fields.sort-order.placeholder',
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
name: 'priority',
|
|
217
|
+
title: '@measurement-core:sizes.entities.sizing-dimension-usage.fields.priority.title',
|
|
218
|
+
groupId: 'basic-info',
|
|
219
|
+
schema: {
|
|
220
|
+
dataType: 'number',
|
|
221
|
+
interface: {
|
|
222
|
+
type: AXPWidgetsList.Editors.NumberBox,
|
|
223
|
+
options: {
|
|
224
|
+
placeholder: '@measurement-core:sizes.entities.sizing-dimension-usage.fields.priority.placeholder',
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
],
|
|
230
|
+
columns: [
|
|
231
|
+
{ name: 'sizeChartId', options: { width: '180px', dataPath: 'sizeChart.title', order: 1 } },
|
|
232
|
+
{ name: 'measurementDimensionId', options: { width: '200px', dataPath: 'measurementDimension.title', order: 2 } },
|
|
233
|
+
{ name: 'required', options: { width: '90px', order: 3 } },
|
|
234
|
+
{ name: 'primary', options: { width: '90px', order: 4 } },
|
|
235
|
+
{ name: 'sortOrder', options: { width: '100px', order: 5 } },
|
|
236
|
+
],
|
|
237
|
+
interfaces: {
|
|
238
|
+
master: {
|
|
239
|
+
create: {
|
|
240
|
+
sections,
|
|
241
|
+
properties: propertyLayouts,
|
|
242
|
+
},
|
|
243
|
+
update: {
|
|
244
|
+
sections,
|
|
245
|
+
properties: propertyLayouts,
|
|
246
|
+
},
|
|
247
|
+
single: {
|
|
248
|
+
title: '{{ measurementDimension.title }}',
|
|
249
|
+
sections,
|
|
250
|
+
properties: propertyLayouts,
|
|
251
|
+
actions: [...entityMasterRecordActions()],
|
|
252
|
+
},
|
|
253
|
+
list: {
|
|
254
|
+
actions: [...entityMasterCrudActions()],
|
|
255
|
+
views: [
|
|
256
|
+
createAllQueryView({
|
|
257
|
+
sorts: [
|
|
258
|
+
{ name: 'sizeChartId', dir: 'asc' },
|
|
259
|
+
{ name: 'sortOrder', dir: 'asc' },
|
|
260
|
+
],
|
|
261
|
+
}),
|
|
262
|
+
],
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
},
|
|
266
|
+
};
|
|
267
|
+
return entityDef;
|
|
268
|
+
}
|
|
269
|
+
//#endregion
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Generated bundle index. Do not edit.
|
|
273
|
+
*/
|
|
274
|
+
|
|
275
|
+
export { sizingDimensionUsageFactory };
|
|
276
|
+
//# sourceMappingURL=acorex-platform-module-measurement-core-client-contracts-entities-sizing-dimension-usage.mjs.map
|