rerobe-js-orm 3.0.22 → 3.0.23
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.
|
@@ -32,7 +32,6 @@ export default class ProductFormState extends FormState {
|
|
|
32
32
|
autoCreateDescription(): string;
|
|
33
33
|
createProduct(): Product;
|
|
34
34
|
private priceInputChangeHandler;
|
|
35
|
-
private setGenderFromPassedOptions;
|
|
36
35
|
private genderSelectHandler;
|
|
37
36
|
private geWeightArray;
|
|
38
37
|
private findWeightRange;
|
|
@@ -42,6 +41,7 @@ export default class ProductFormState extends FormState {
|
|
|
42
41
|
private productCategorySelectHandler;
|
|
43
42
|
private productTypeSelectHandler;
|
|
44
43
|
private setPriceRangeFromPrice;
|
|
44
|
+
private setGenderFromPassedOptions;
|
|
45
45
|
private setProductCategoreisFromGender;
|
|
46
46
|
private setProductTypesFromCategory;
|
|
47
47
|
private setProductTypesFromPassedOptions;
|
|
@@ -100,12 +100,6 @@ class ProductFormState extends FormState_1.default {
|
|
|
100
100
|
// Recalculates salePrice
|
|
101
101
|
this.props.salePrice = this.calculateSalePrice();
|
|
102
102
|
}
|
|
103
|
-
setGenderFromPassedOptions() {
|
|
104
|
-
if (this.opts && this.opts.taxonomy && Object.keys(this.opts.taxonomy).length > 0) {
|
|
105
|
-
return Object.keys(this.opts.taxonomy).map((t) => ({ label: t, value: t }));
|
|
106
|
-
}
|
|
107
|
-
return options_1.gender;
|
|
108
|
-
}
|
|
109
103
|
genderSelectHandler(value) {
|
|
110
104
|
// Mutate gender selectedValue and valid prop
|
|
111
105
|
this.fields.gender.selectedValue = value;
|
|
@@ -261,6 +255,12 @@ class ProductFormState extends FormState_1.default {
|
|
|
261
255
|
}
|
|
262
256
|
return '1000+';
|
|
263
257
|
}
|
|
258
|
+
setGenderFromPassedOptions() {
|
|
259
|
+
if (this.opts && this.opts.taxonomy && Object.keys(this.opts.taxonomy).length > 0) {
|
|
260
|
+
return Object.keys(this.opts.taxonomy).map((t) => ({ label: t, value: t }));
|
|
261
|
+
}
|
|
262
|
+
return options_1.gender;
|
|
263
|
+
}
|
|
264
264
|
setProductCategoreisFromGender(genderSelected) {
|
|
265
265
|
let productCategoryOptions = [];
|
|
266
266
|
if (this.opts && this.opts.taxonomy && Object.keys(this.opts.taxonomy).length > 0 && genderSelected) {
|
|
@@ -38,27 +38,64 @@ const sizeCategoryOptions = [
|
|
|
38
38
|
{
|
|
39
39
|
label: 'Suits & Blazers',
|
|
40
40
|
value: 'Suits & Blazers',
|
|
41
|
-
|
|
41
|
+
measurementFields: ['chestCircumference', 'waistCircumference', 'length', 'shoulderWidth', 'sleeveLength'],
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
label: 'Bottoms',
|
|
45
45
|
value: 'Bottoms',
|
|
46
|
-
|
|
46
|
+
measurementFields: ['waistCircumference', 'innerLeg', 'outerLeg', 'footCircumference'],
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
label: 'Shirts',
|
|
50
50
|
value: 'Shirts',
|
|
51
|
-
|
|
51
|
+
measurementFields: ['neckCircumference', 'collarLength', 'sleeveLength', 'chestCircumference'],
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
label: 'Coats',
|
|
55
55
|
value: 'Coats',
|
|
56
|
-
|
|
56
|
+
measurementFields: ['chestCircumference', 'waistCircumference', 'length', 'shoulderWidth', 'sleeveLength'],
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
label: 'Shoes',
|
|
60
60
|
value: 'Shoes',
|
|
61
|
-
|
|
61
|
+
measurementFields: ['footLength', 'footWidth', 'heelHeight', 'shaftHeight', 'calfCircumference'],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: 'Dresses',
|
|
65
|
+
value: 'Dresses',
|
|
66
|
+
measurementFields: [
|
|
67
|
+
'bustCircumference',
|
|
68
|
+
'waistCircumference',
|
|
69
|
+
'hipCircumference',
|
|
70
|
+
'length',
|
|
71
|
+
'shoulderWidth',
|
|
72
|
+
'sleeveLength',
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
label: 'Hats',
|
|
77
|
+
value: 'Hats',
|
|
78
|
+
measurementFields: ['headCircumference', 'brimWidth', 'crownHeight'],
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
label: 'Gloves',
|
|
82
|
+
value: 'Gloves',
|
|
83
|
+
measurementFields: ['handLength', 'handCircumference', 'fingerLength'],
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
label: 'Accessories',
|
|
87
|
+
value: 'Accessories',
|
|
88
|
+
measurementFields: ['width', 'height', 'depth'],
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
label: 'Eyewear',
|
|
92
|
+
value: 'Eyewear',
|
|
93
|
+
measurementFields: ['lensWidth', 'bridgeWidth', 'templeLength'],
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
label: 'General Items',
|
|
97
|
+
value: 'General Items',
|
|
98
|
+
measurementFields: ['width', 'height', 'depth'],
|
|
62
99
|
},
|
|
63
100
|
];
|
|
64
101
|
exports.sizeCategoryOptions = sizeCategoryOptions;
|