contentoh-components-library 21.4.41 → 21.4.44
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/dist/components/molecules/BoxAttribute/index.js +26 -5
- package/dist/components/molecules/BoxAttribute/styles.js +1 -1
- package/dist/components/organisms/Box/index.js +27 -3
- package/dist/components/organisms/BoxOnboarding/index.js +34 -11
- package/dist/components/organisms/InputGroup/index.js +29 -6
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +79 -145
- package/dist/components/pages/ProviderProductEdition/index.js +147 -125
- package/package.json +1 -1
- package/src/components/molecules/BoxAttribute/index.js +23 -16
- package/src/components/molecules/BoxAttribute/styles.js +1 -1
- package/src/components/organisms/Box/index.js +23 -2
- package/src/components/organisms/BoxOnboarding/index.js +41 -29
- package/src/components/organisms/InputGroup/index.js +19 -5
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +83 -174
- package/src/components/pages/ProviderProductEdition/index.js +18 -6
|
@@ -7,6 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.BoxAttribute = void 0;
|
|
9
9
|
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
|
11
|
+
|
|
12
|
+
var _objectSpread3 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
13
|
+
|
|
10
14
|
var _styles = require("./styles");
|
|
11
15
|
|
|
12
16
|
var _info = _interopRequireDefault(require("../../../assets/images/Icons/info.svg"));
|
|
@@ -25,7 +29,20 @@ var BoxAttribute = function BoxAttribute(props) {
|
|
|
25
29
|
borderType = props.borderType,
|
|
26
30
|
isEditEnabled = props.isEditEnabled,
|
|
27
31
|
titletool = props.titletool,
|
|
28
|
-
texttool = props.texttool
|
|
32
|
+
texttool = props.texttool,
|
|
33
|
+
atributos = props.atributos,
|
|
34
|
+
setAtributos = props.setAtributos;
|
|
35
|
+
|
|
36
|
+
var handleInputChange = function handleInputChange(event) {
|
|
37
|
+
var _event$target = event.target,
|
|
38
|
+
name = _event$target.name,
|
|
39
|
+
value = _event$target.value;
|
|
40
|
+
setAtributos(function (prevAtributos) {
|
|
41
|
+
return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, prevAtributos), {}, (0, _defineProperty2.default)({}, name, value));
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
console.log(atributos);
|
|
29
46
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
30
47
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
31
48
|
id: id,
|
|
@@ -54,14 +71,18 @@ var BoxAttribute = function BoxAttribute(props) {
|
|
|
54
71
|
children: text
|
|
55
72
|
}), isEditEnabled ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextField.default, {
|
|
56
73
|
hiddenLabel: true,
|
|
57
|
-
|
|
58
|
-
|
|
74
|
+
name: props.id,
|
|
75
|
+
value: atributos[props.id],
|
|
76
|
+
onChange: handleInputChange,
|
|
77
|
+
className: "caja-borde",
|
|
59
78
|
variant: "outlined",
|
|
60
79
|
size: "small"
|
|
61
80
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextField.default, {
|
|
62
81
|
hiddenLabel: true,
|
|
63
|
-
|
|
64
|
-
|
|
82
|
+
name: props.id,
|
|
83
|
+
value: atributos[props.id],
|
|
84
|
+
onChange: handleInputChange,
|
|
85
|
+
className: "caja-borde",
|
|
65
86
|
variant: "outlined",
|
|
66
87
|
size: "small",
|
|
67
88
|
disabled: true
|
|
@@ -15,7 +15,7 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n gap:4px;\n #atr-alto {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n gap:4px;\n #atr-alto {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n .caja-borde {\n font-family: ", ", sans-serif;\n font-size: 12px;\n line-height: 1.2;\n border-radius: ", ";\n }\n span {\n font-family: ", ", sans-serif;\n font-size: 12px;\n line-height: 1.2;\n font-weight: 600;\n }\n .icon {\n width: 8px;\n height: 8px;\n }\n"])), _variables.FontFamily.RobotoMedium, function (_ref) {
|
|
19
19
|
var borderType = _ref.borderType;
|
|
20
20
|
return (borderType === null || borderType === void 0 ? void 0 : borderType.toLowerCase()) === "rectangle" ? "5px" : (borderType === null || borderType === void 0 ? void 0 : borderType.toLowerCase()) === "circle" ? "50%" : "none";
|
|
21
21
|
}, _variables.FontFamily.RobotoMedium);
|
|
@@ -9,6 +9,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
9
|
});
|
|
10
10
|
exports.Box = void 0;
|
|
11
11
|
|
|
12
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
13
|
+
|
|
12
14
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
|
|
13
15
|
|
|
14
16
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
@@ -25,7 +27,9 @@ var _BoxButtons = require("../../molecules/BoxButtons");
|
|
|
25
27
|
|
|
26
28
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
29
|
|
|
28
|
-
var Box = function Box() {
|
|
30
|
+
var Box = function Box(_ref) {
|
|
31
|
+
var onChange = _ref.onChange;
|
|
32
|
+
|
|
29
33
|
var _useState = (0, _react.useState)(true),
|
|
30
34
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
31
35
|
isDeleteDisabled = _useState2[0],
|
|
@@ -37,7 +41,8 @@ var Box = function Box() {
|
|
|
37
41
|
setIsEditEnabled = _useState4[1];
|
|
38
42
|
|
|
39
43
|
var _useState5 = (0, _react.useState)([{
|
|
40
|
-
showAdd: true
|
|
44
|
+
showAdd: true,
|
|
45
|
+
value: {}
|
|
41
46
|
}]),
|
|
42
47
|
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
43
48
|
boxOnboardingList = _useState6[0],
|
|
@@ -64,6 +69,11 @@ var Box = function Box() {
|
|
|
64
69
|
setIsEditEnabled(!isEditEnabled);
|
|
65
70
|
};
|
|
66
71
|
|
|
72
|
+
(0, _react.useEffect)(function () {
|
|
73
|
+
onChange && onChange(boxOnboardingList);
|
|
74
|
+
}, [boxOnboardingList]); // console.log(atributos)
|
|
75
|
+
|
|
76
|
+
console.log("onboardinglist", boxOnboardingList);
|
|
67
77
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
68
78
|
fontFamily: _variables.FontFamily.Raleway,
|
|
69
79
|
color: _variables.GlobalColors.original_magenta,
|
|
@@ -77,8 +87,22 @@ var Box = function Box() {
|
|
|
77
87
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
78
88
|
className: "container-buttons",
|
|
79
89
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_BoxOnboarding.BoxOnboarding, {
|
|
90
|
+
index: index,
|
|
80
91
|
showAdd: boxOnboarding.showAdd,
|
|
81
|
-
isEditEnabled: isEditEnabled
|
|
92
|
+
isEditEnabled: isEditEnabled,
|
|
93
|
+
onChange: function onChange(e) {
|
|
94
|
+
setBoxOnboardingList(function (prev) {
|
|
95
|
+
return prev.map(function (box, i) {
|
|
96
|
+
if (i != index) {
|
|
97
|
+
return box;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, box), {}, {
|
|
101
|
+
value: e
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
}
|
|
82
106
|
}, index), /*#__PURE__*/(0, _jsxRuntime.jsx)(_BoxButtons.BoxButtons, {
|
|
83
107
|
showAdd: boxOnboarding.showAdd,
|
|
84
108
|
onAdd: handleAddBoxOnboarding,
|
|
@@ -21,46 +21,69 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
21
21
|
|
|
22
22
|
var BoxOnboarding = function BoxOnboarding(_ref) {
|
|
23
23
|
var panelColor = _ref.panelColor,
|
|
24
|
-
isEditEnabled = _ref.isEditEnabled
|
|
24
|
+
isEditEnabled = _ref.isEditEnabled,
|
|
25
|
+
index = _ref.index,
|
|
26
|
+
onChange = _ref.onChange;
|
|
25
27
|
|
|
26
28
|
var _useState = (0, _react.useState)(true),
|
|
27
29
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
28
30
|
boxAttributesActive = _useState2[0],
|
|
29
31
|
setBoxAttributesActive = _useState2[1];
|
|
30
32
|
|
|
33
|
+
var _useState3 = (0, _react.useState)({
|
|
34
|
+
largo: '',
|
|
35
|
+
alto: '',
|
|
36
|
+
ancho: '',
|
|
37
|
+
peso: ''
|
|
38
|
+
}),
|
|
39
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
40
|
+
atributos = _useState4[0],
|
|
41
|
+
setAtributos = _useState4[1];
|
|
42
|
+
|
|
43
|
+
(0, _react.useEffect)(function () {
|
|
44
|
+
onChange && onChange(atributos);
|
|
45
|
+
}, [atributos]);
|
|
31
46
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
32
47
|
panelColor: panelColor,
|
|
33
48
|
fontFamily: _variables.FontFamily.Raleway,
|
|
34
49
|
color: _variables.GlobalColors.original_magenta,
|
|
35
50
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
36
51
|
id: "contenedor-caja",
|
|
37
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
52
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
38
53
|
fontFamily: _variables.FontFamily.Raleway,
|
|
39
|
-
children: "Caja 1, chica"
|
|
54
|
+
children: ["Caja ", index + 1, ", chica"]
|
|
40
55
|
}), boxAttributesActive && /*#__PURE__*/(0, _jsxRuntime.jsx)(_BoxAttribute.BoxAttribute, {
|
|
41
|
-
id: "
|
|
56
|
+
id: "largo",
|
|
42
57
|
borderType: "rectangle",
|
|
43
58
|
className: "caja",
|
|
44
59
|
text: "Largo",
|
|
45
|
-
isEditEnabled: isEditEnabled
|
|
60
|
+
isEditEnabled: isEditEnabled,
|
|
61
|
+
atributos: atributos.largo,
|
|
62
|
+
setAtributos: setAtributos
|
|
46
63
|
}), boxAttributesActive && /*#__PURE__*/(0, _jsxRuntime.jsx)(_BoxAttribute.BoxAttribute, {
|
|
47
|
-
id: "
|
|
64
|
+
id: "alto",
|
|
48
65
|
borderType: "rectangle",
|
|
49
66
|
className: "caja",
|
|
50
67
|
text: "Alto",
|
|
51
|
-
isEditEnabled: isEditEnabled
|
|
68
|
+
isEditEnabled: isEditEnabled,
|
|
69
|
+
atributos: atributos.alto,
|
|
70
|
+
setAtributos: setAtributos
|
|
52
71
|
}), boxAttributesActive && /*#__PURE__*/(0, _jsxRuntime.jsx)(_BoxAttribute.BoxAttribute, {
|
|
53
|
-
id: "
|
|
72
|
+
id: "ancho",
|
|
54
73
|
borderType: "rectangle",
|
|
55
74
|
className: "caja",
|
|
56
75
|
text: "Ancho",
|
|
57
|
-
isEditEnabled: isEditEnabled
|
|
76
|
+
isEditEnabled: isEditEnabled,
|
|
77
|
+
atributos: atributos.ancho,
|
|
78
|
+
setAtributos: setAtributos
|
|
58
79
|
}), boxAttributesActive && /*#__PURE__*/(0, _jsxRuntime.jsx)(_BoxAttribute.BoxAttribute, {
|
|
59
|
-
id: "
|
|
80
|
+
id: "peso",
|
|
60
81
|
borderType: "rectangle",
|
|
61
82
|
className: "caja",
|
|
62
83
|
text: "Peso",
|
|
63
|
-
isEditEnabled: isEditEnabled
|
|
84
|
+
isEditEnabled: isEditEnabled,
|
|
85
|
+
atributos: atributos.peso,
|
|
86
|
+
setAtributos: setAtributos
|
|
64
87
|
})]
|
|
65
88
|
})
|
|
66
89
|
});
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.InputGroup = void 0;
|
|
7
9
|
|
|
10
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/typeof"));
|
|
11
|
+
|
|
8
12
|
var _styles = require("./styles");
|
|
9
13
|
|
|
10
14
|
var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
@@ -15,6 +19,8 @@ var _BoxOnboarding = require("../BoxOnboarding");
|
|
|
15
19
|
|
|
16
20
|
var _Box = require("../Box");
|
|
17
21
|
|
|
22
|
+
var _react = require("react");
|
|
23
|
+
|
|
18
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
25
|
|
|
20
26
|
var InputGroup = function InputGroup(_ref) {
|
|
@@ -36,8 +42,13 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
36
42
|
version = _ref.version,
|
|
37
43
|
dinamicHeight = _ref.dinamicHeight,
|
|
38
44
|
compare = _ref.compare,
|
|
39
|
-
_ref$
|
|
40
|
-
|
|
45
|
+
_ref$groupData = _ref.groupData,
|
|
46
|
+
groupData = _ref$groupData === void 0 ? [] : _ref$groupData,
|
|
47
|
+
isShowbox = _ref.isShowbox,
|
|
48
|
+
index = _ref.index,
|
|
49
|
+
setUpdatedBoxData = _ref.setUpdatedBoxData;
|
|
50
|
+
console.log('groupData: ', (0, _typeof2.default)(groupData));
|
|
51
|
+
console.log('groupData: ', groupData);
|
|
41
52
|
|
|
42
53
|
var inputTypeValue = function inputTypeValue(type) {
|
|
43
54
|
switch (type) {
|
|
@@ -52,9 +63,19 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
52
63
|
}
|
|
53
64
|
};
|
|
54
65
|
|
|
55
|
-
var isOnboarding = function isOnboarding(
|
|
56
|
-
var
|
|
57
|
-
|
|
66
|
+
var isOnboarding = function isOnboarding() {
|
|
67
|
+
var contentBoxAttribute = groupData.find(function (_ref2) {
|
|
68
|
+
var dataGroup = _ref2.dataGroup;
|
|
69
|
+
return dataGroup === 'Caja';
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
if (contentBoxAttribute) {
|
|
73
|
+
console.log('content box attribute');
|
|
74
|
+
} else {
|
|
75
|
+
console.log('dont content box attribute');
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return contentBoxAttribute;
|
|
58
79
|
};
|
|
59
80
|
|
|
60
81
|
var isEquals = function isEquals(dataInputsVal, auditInputsVal) {
|
|
@@ -115,7 +136,9 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
115
136
|
})]
|
|
116
137
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
117
138
|
className: activeSection === "Ficha técnica" ? "datasheets-layout" : "descriptions-layout",
|
|
118
|
-
children: isOnboarding && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.Box, {
|
|
139
|
+
children: isShowbox && isOnboarding && index == 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.Box, {
|
|
140
|
+
onChange: setUpdatedBoxData
|
|
141
|
+
})
|
|
119
142
|
})]
|
|
120
143
|
});
|
|
121
144
|
};
|
|
@@ -32,128 +32,48 @@ ProviderProductEditionDefault.args = {
|
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
34
|
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIyM2Q1NTlmYi1jMzIwLTRhMjItYjJmNy1lOThhYTFhZGEyNmYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MzkyNjgyMSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2ODM5MzA0MjEsImlhdCI6MTY4MzkyNjgyMSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.TvCoaKoctj5mypXWMz3NyV1Vm1ToBV0vJmpVyZSQw4-ikTChkxcZ5tFYvqhk1GdvNCFttfSQIqM-14dAYYBc28YwwKP86gqOuzB1fG41rN5x1Yx3tkJq6hiVRgiBbSHWtThA9c8VnxNQbrJiaRTvvkDiM5KNTEst1oxQHL5Ct9_iKQMJMRFie7Xv0xnyS0qZ6QHK4Q2A9OHsnDkAuumALZJcE19Zh6VgSitgWrZiz3x5Text4Q-U-R48NUAzUFirAzYZzJN_fCme5pGf1AnUaZjeUjPsmrV5TBVzPEYwXO0KG8lYjL8id80D7tbGs28ZIK6B4rf3-eqI_ngmBB4CjQ",
|
|
35
|
-
articleId:
|
|
36
|
-
category:
|
|
37
|
-
version:
|
|
35
|
+
articleId: 39550,
|
|
36
|
+
category: 287,
|
|
37
|
+
version: 1,
|
|
38
38
|
productSelected: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
brand: null,
|
|
47
|
-
retailerOrder: 0,
|
|
48
|
-
missing: {
|
|
49
|
-
datasheet: null,
|
|
50
|
-
descriptions: null,
|
|
51
|
-
images: null
|
|
52
|
-
},
|
|
53
|
-
services: {
|
|
54
|
-
datasheets: 1,
|
|
55
|
-
descriptions: 1,
|
|
56
|
-
images: 1
|
|
57
|
-
},
|
|
58
|
-
article: {
|
|
59
|
-
category: "Abarrotes|Abarrotes Secos|Frutos Secos",
|
|
60
|
-
company_name: "GRUPO BRAHMA",
|
|
61
|
-
country: "México",
|
|
62
|
-
id_category: "11",
|
|
63
|
-
id_datasheet_especialist: 54,
|
|
64
|
-
id_datasheet_facilitator: 52,
|
|
65
|
-
id_description_especialist: 54,
|
|
66
|
-
id_description_facilitator: 52,
|
|
67
|
-
id_images_especialist: 55,
|
|
68
|
-
id_images_facilitator: 53,
|
|
69
|
-
id_order: 15275,
|
|
70
|
-
id_article: 39485,
|
|
71
|
-
id_auditor: 37,
|
|
72
|
-
name: "Mix de nueces",
|
|
73
|
-
timestamp: "2023-07-14T21:03:19.000Z",
|
|
74
|
-
upc: "7543453453"
|
|
75
|
-
},
|
|
76
|
-
retailers: [{
|
|
77
|
-
id: 34,
|
|
78
|
-
name: "San Pablo"
|
|
79
|
-
}],
|
|
80
|
-
statusByRetailer: {
|
|
81
|
-
34: {
|
|
82
|
-
datasheet: "AA",
|
|
83
|
-
description: "AA",
|
|
84
|
-
images: "AA"
|
|
85
|
-
}
|
|
86
|
-
},
|
|
39
|
+
id_article: 39550,
|
|
40
|
+
upc: 43654697,
|
|
41
|
+
name: "Campana de Cocina",
|
|
42
|
+
timestamp: "2023-08-04T22:23:40.000Z",
|
|
43
|
+
categoryName: "Ferretería|Ferretería General|Tornillos, Tuercas y Arandelas",
|
|
44
|
+
id_category: 287,
|
|
45
|
+
version: 1,
|
|
87
46
|
retailersAvailable: [{
|
|
88
|
-
|
|
89
|
-
|
|
47
|
+
name: "The Home Depot Golden",
|
|
48
|
+
"id": 58
|
|
49
|
+
}, {
|
|
50
|
+
name: "The Home Depot Onboarding",
|
|
51
|
+
"id": 68
|
|
90
52
|
}],
|
|
91
|
-
|
|
92
|
-
upc: "7543453453",
|
|
93
|
-
id_article: 39485,
|
|
94
|
-
id_order: 15275
|
|
53
|
+
percentage: "89"
|
|
95
54
|
},
|
|
96
55
|
productToEdit: {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
product: {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
brand: null,
|
|
108
|
-
retailerOrder: 0,
|
|
109
|
-
missing: {
|
|
110
|
-
datasheet: null,
|
|
111
|
-
descriptions: null,
|
|
112
|
-
images: null
|
|
113
|
-
},
|
|
114
|
-
services: {
|
|
115
|
-
datasheets: 1,
|
|
116
|
-
descriptions: 1,
|
|
117
|
-
images: 1
|
|
118
|
-
},
|
|
119
|
-
article: {
|
|
120
|
-
category: "Abarrotes|Abarrotes Secos|Frutos Secos",
|
|
121
|
-
company_name: "GRUPO BRAHMA",
|
|
122
|
-
country: "México",
|
|
123
|
-
id_category: "11",
|
|
124
|
-
id_datasheet_especialist: 54,
|
|
125
|
-
id_datasheet_facilitator: 52,
|
|
126
|
-
id_description_especialist: 54,
|
|
127
|
-
id_description_facilitator: 52,
|
|
128
|
-
id_images_especialist: 55,
|
|
129
|
-
id_images_facilitator: 53,
|
|
130
|
-
id_order: 15275,
|
|
131
|
-
id_article: 39485,
|
|
132
|
-
id_auditor: 37,
|
|
133
|
-
name: "Mix de nueces",
|
|
134
|
-
timestamp: "2023-07-14T21:03:19.000Z",
|
|
135
|
-
upc: "7543453453"
|
|
136
|
-
},
|
|
137
|
-
retailers: [{
|
|
138
|
-
id: 34,
|
|
139
|
-
name: "San Pablo"
|
|
140
|
-
}],
|
|
141
|
-
statusByRetailer: {
|
|
142
|
-
34: {
|
|
143
|
-
datasheet: "AA",
|
|
144
|
-
description: "AA",
|
|
145
|
-
images: "AA"
|
|
146
|
-
}
|
|
147
|
-
},
|
|
56
|
+
idCategory: 287,
|
|
57
|
+
ArticleId: 39550,
|
|
58
|
+
product: [{
|
|
59
|
+
id_article: 39550,
|
|
60
|
+
upc: 43654697,
|
|
61
|
+
name: "Campana de Cocina",
|
|
62
|
+
timestamp: "2023-08-04T22:23:40.000Z",
|
|
63
|
+
categoryName: "Ferretería|Ferretería General|Tornillos, Tuercas y Arandelas",
|
|
64
|
+
id_category: 287,
|
|
65
|
+
version: 1,
|
|
148
66
|
retailersAvailable: [{
|
|
149
|
-
|
|
150
|
-
|
|
67
|
+
name: "The Home Depot Golden",
|
|
68
|
+
id: 58,
|
|
69
|
+
percentage: 100
|
|
70
|
+
}, {
|
|
71
|
+
name: "The Home Depot Onboarding",
|
|
72
|
+
id: 68,
|
|
73
|
+
percentage: 78
|
|
151
74
|
}],
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
id_article: 39485,
|
|
155
|
-
id_order: 15275
|
|
156
|
-
}
|
|
75
|
+
percentage: "89"
|
|
76
|
+
}]
|
|
157
77
|
},
|
|
158
78
|
location: {
|
|
159
79
|
pathname: "/EditProducts",
|
|
@@ -167,30 +87,30 @@ ProviderProductEditionDefault.args = {
|
|
|
167
87
|
key: "24vwut"
|
|
168
88
|
},
|
|
169
89
|
user: {
|
|
170
|
-
id_user:
|
|
171
|
-
name: "
|
|
172
|
-
last_name: "
|
|
173
|
-
email: "
|
|
174
|
-
position: "Test
|
|
175
|
-
telephone: "+
|
|
90
|
+
id_user: 191,
|
|
91
|
+
name: "Demo",
|
|
92
|
+
last_name: "Demo",
|
|
93
|
+
email: "merchants24feb@allfreemail.net",
|
|
94
|
+
position: "Test",
|
|
95
|
+
telephone: "+52123456789",
|
|
176
96
|
country: "México",
|
|
177
|
-
id_company:
|
|
178
|
-
id_cognito: "
|
|
97
|
+
id_company: 923,
|
|
98
|
+
id_cognito: "c3cd160c-76c2-497c-9357-5ef949307e1e",
|
|
179
99
|
birth_Date: null,
|
|
180
|
-
about_me:
|
|
181
|
-
zip_code:
|
|
182
|
-
address:
|
|
183
|
-
job:
|
|
184
|
-
id_stripe:
|
|
100
|
+
about_me: null,
|
|
101
|
+
zip_code: null,
|
|
102
|
+
address: null,
|
|
103
|
+
job: null,
|
|
104
|
+
id_stripe: null,
|
|
185
105
|
id_role: 0,
|
|
186
106
|
active: 1,
|
|
187
107
|
is_retailer: 0,
|
|
188
108
|
email_notify: 1,
|
|
189
|
-
is_user_tech:
|
|
109
|
+
is_user_tech: null,
|
|
190
110
|
membership: {
|
|
191
|
-
id:
|
|
192
|
-
start_date: "
|
|
193
|
-
end_date: "
|
|
111
|
+
id: 114,
|
|
112
|
+
start_date: "2023-02-24T18:14:43.000Z",
|
|
113
|
+
end_date: "2024-02-24T18:14:43.000Z",
|
|
194
114
|
planID: 8,
|
|
195
115
|
plan: "prod_KtlhECVSFG2iro",
|
|
196
116
|
name: "Plan Pro",
|
|
@@ -198,23 +118,37 @@ ProviderProductEditionDefault.args = {
|
|
|
198
118
|
products_limit: "5000",
|
|
199
119
|
type: "Enterprise"
|
|
200
120
|
},
|
|
201
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
121
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-191/191.png?1697171804447"
|
|
202
122
|
},
|
|
203
123
|
company: {
|
|
204
|
-
id_company:
|
|
205
|
-
trade_name: "
|
|
206
|
-
company_name: "
|
|
207
|
-
rfc: "
|
|
208
|
-
adress: "
|
|
209
|
-
about_company:
|
|
210
|
-
telephone:
|
|
211
|
-
web_site:
|
|
212
|
-
zip_code:
|
|
124
|
+
id_company: 923,
|
|
125
|
+
trade_name: "Demo",
|
|
126
|
+
company_name: "Demo",
|
|
127
|
+
rfc: "Demo",
|
|
128
|
+
adress: "Demo",
|
|
129
|
+
about_company: null,
|
|
130
|
+
telephone: null,
|
|
131
|
+
web_site: null,
|
|
132
|
+
zip_code: null,
|
|
213
133
|
email: null,
|
|
214
|
-
social_link:
|
|
134
|
+
social_link: null,
|
|
215
135
|
is_retailer: 0,
|
|
216
|
-
financedRetailers: [
|
|
217
|
-
|
|
136
|
+
financedRetailers: [{
|
|
137
|
+
id: 68,
|
|
138
|
+
name: "The Home Depot Onboarding",
|
|
139
|
+
country: "México",
|
|
140
|
+
id_region: 1,
|
|
141
|
+
active: 1,
|
|
142
|
+
flow: 1
|
|
143
|
+
}],
|
|
144
|
+
retailers: [{
|
|
145
|
+
id: 68,
|
|
146
|
+
name: "The Home Depot Onboarding",
|
|
147
|
+
country: "México",
|
|
148
|
+
id_region: 1,
|
|
149
|
+
"active": 1,
|
|
150
|
+
flow: 1
|
|
151
|
+
}]
|
|
218
152
|
},
|
|
219
153
|
showSurvey: function showSurvey(v) {
|
|
220
154
|
return v && alert("se muestra");
|