contentoh-components-library 21.4.68 → 21.4.69
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/assets/fonts/roboto/LICENSE.txt +202 -0
- package/dist/components/atoms/Avatar/index.js +3 -2
- package/dist/components/atoms/CheckBox/styles.js +1 -1
- package/dist/components/atoms/ImageCarousel/ImgeSlider.stories.js +90 -0
- package/dist/components/atoms/ImageCarousel/index.js +120 -0
- package/dist/components/atoms/ImageCarousel/styles.js +18 -0
- package/dist/components/atoms/InputFormatter/styles.js +1 -1
- package/dist/components/atoms/PercentTag/PercentTag.stories.js +31 -0
- package/dist/components/atoms/PercentTag/index.js +23 -0
- package/dist/components/atoms/PercentTag/styles.js +22 -0
- package/dist/components/atoms/RatingStars/RatingStars.stories.js +30 -0
- package/dist/components/atoms/RatingStars/index.js +53 -0
- package/dist/components/atoms/RatingStars/styles.js +18 -0
- package/dist/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +48 -0
- package/dist/components/atoms/RetailerCatalog/index.js +69 -0
- package/dist/components/atoms/RetailerCatalog/styles.js +20 -0
- package/dist/components/atoms/RetailerOption/RetailerOption.stories.js +33 -0
- package/dist/components/atoms/RetailerOption/index.js +62 -0
- package/dist/components/atoms/RetailerOption/styles.js +20 -0
- package/dist/components/atoms/RetailersList/RetailersList.stories.js +45 -0
- package/dist/components/atoms/RetailersList/index.js +46 -0
- package/dist/components/atoms/RetailersList/styles.js +18 -0
- package/dist/components/atoms/SliderToolTip/styles.js +1 -1
- package/dist/components/atoms/UserCatalog/UserCatalog.stories.js +73 -0
- package/dist/components/atoms/UserCatalog/index.js +101 -0
- package/dist/components/atoms/UserCatalog/styles.js +18 -0
- package/dist/components/atoms/UserOption/UserOption.stories.js +40 -0
- package/dist/components/atoms/UserOption/index.js +130 -0
- package/dist/components/atoms/UserOption/styles.js +20 -0
- package/dist/components/atoms/UserSelector/UserSelector.stories.js +40 -0
- package/dist/components/atoms/UserSelector/index.js +98 -0
- package/dist/components/atoms/UserSelector/styles.js +32 -0
- package/dist/components/molecules/BoxAttribute/index.js +3 -3
- package/dist/components/molecules/BoxAttribute/styles.js +1 -1
- package/dist/components/molecules/BoxButtons/index.js +0 -1
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/GalleryElement/index.js +16 -12
- package/dist/components/molecules/GalleryElement/styles.js +1 -1
- package/dist/components/molecules/GalleryHeader/index.js +3 -0
- package/dist/components/molecules/GalleryHeader/styles.js +1 -1
- package/dist/components/molecules/GridItem/GridItem.stories.js +123 -0
- package/dist/components/molecules/GridItem/index.js +152 -0
- package/dist/components/molecules/GridItem/styles.js +20 -0
- package/dist/components/molecules/HeaderItem/ColumnItem.js +23 -0
- package/dist/components/molecules/HeaderItem/HeaderItem.stories.js +70 -0
- package/dist/components/molecules/HeaderItem/index.js +42 -0
- package/dist/components/molecules/HeaderItem/styles.js +30 -0
- package/dist/components/molecules/HeaderTop/index.js +68 -11
- package/dist/components/molecules/RowItem/ColumnItem.js +23 -0
- package/dist/components/molecules/RowItem/RowItem.stories.js +5242 -0
- package/dist/components/molecules/RowItem/index.js +58 -0
- package/dist/components/molecules/RowItem/styles.js +30 -0
- package/dist/components/molecules/SignInLogin/index.js +36 -28
- package/dist/components/molecules/StripeCardSelector/CardSelector.stories.js +1 -2
- package/dist/components/organisms/Chat/Chat.stories.js +27 -8
- package/dist/components/organisms/Chat/ContainerItems/index.js +19 -3
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +350 -197
- package/dist/components/organisms/Chat/Footer/index.js +48 -39
- package/dist/components/organisms/Chat/index.js +49 -4
- package/dist/components/organisms/Chat/styles.js +1 -1
- package/dist/components/organisms/DashboardMetric/index.js +12 -6
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/organisms/GridProducts/GridProducts.stories.js +5097 -0
- package/dist/components/organisms/GridProducts/index.js +63 -0
- package/dist/components/organisms/GridProducts/styles.js +18 -0
- package/dist/components/organisms/GridProducts/utils.js +149 -0
- package/dist/components/organisms/InputGroup/index.js +1 -10
- package/dist/components/organisms/Modal/styles.js +1 -1
- package/dist/components/organisms/VersionSelector/index.js +1 -1
- package/dist/components/pages/Dashboard/Dashboard.stories.js +33 -36
- package/dist/components/pages/Dashboard/index.js +37 -9
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +3 -3
- package/dist/components/pages/ProviderProductEdition/index.js +120 -144
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +7 -3
- package/dist/components/pages/RetailerProductEdition/index.js +279 -274
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +61 -2
- package/dist/global-files/data.js +11 -3
- package/dist/global-files/variables.js +5 -1
- package/dist/index.js +201 -58
- package/package.json +2 -3
- package/src/components/atoms/Avatar/index.js +8 -2
- package/src/components/atoms/CheckBox/styles.js +2 -0
- package/src/components/atoms/ImageCarousel/ImgeSlider.stories.js +76 -0
- package/src/components/atoms/ImageCarousel/index.js +103 -0
- package/src/components/atoms/ImageCarousel/styles.js +79 -0
- package/src/components/atoms/InputFormatter/styles.js +2 -1
- package/src/components/atoms/PercentTag/PercentTag.stories.js +7 -0
- package/src/components/atoms/PercentTag/index.js +9 -0
- package/src/components/atoms/PercentTag/styles.js +69 -0
- package/src/components/atoms/RatingStars/RatingStars.stories.js +10 -0
- package/src/components/atoms/RatingStars/index.js +31 -0
- package/src/components/atoms/RatingStars/styles.js +28 -0
- package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +36 -0
- package/src/components/atoms/RetailerCatalog/index.js +49 -0
- package/src/components/atoms/RetailerCatalog/styles.js +30 -0
- package/src/components/atoms/RetailerOption/RetailerOption.stories.js +15 -0
- package/src/components/atoms/RetailerOption/index.js +53 -0
- package/src/components/atoms/RetailerOption/styles.js +41 -0
- package/src/components/atoms/RetailersList/RetailersList.stories.js +33 -0
- package/src/components/atoms/RetailersList/index.js +20 -0
- package/src/components/atoms/RetailersList/styles.js +19 -0
- package/src/components/atoms/SliderToolTip/styles.js +1 -1
- package/src/components/atoms/TabSection/styles.js +1 -1
- package/src/components/atoms/UserCatalog/UserCatalog.stories.js +67 -0
- package/src/components/atoms/UserCatalog/index.js +100 -0
- package/src/components/atoms/UserCatalog/styles.js +24 -0
- package/src/components/atoms/UserOption/UserOption.stories.js +25 -0
- package/src/components/atoms/UserOption/index.js +95 -0
- package/src/components/atoms/UserOption/styles.js +61 -0
- package/src/components/atoms/UserSelector/UserSelector.stories.js +25 -0
- package/src/components/atoms/UserSelector/index.js +86 -0
- package/src/components/atoms/UserSelector/styles.js +55 -0
- package/src/components/molecules/BoxAttribute/index.js +32 -25
- package/src/components/molecules/BoxAttribute/styles.js +1 -1
- package/src/components/molecules/BoxButtons/index.js +23 -22
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/GalleryElement/index.js +14 -8
- package/src/components/molecules/GalleryElement/styles.js +7 -0
- package/src/components/molecules/GalleryHeader/index.js +1 -0
- package/src/components/molecules/GalleryHeader/styles.js +4 -0
- package/src/components/molecules/GridItem/GridItem.stories.js +126 -0
- package/src/components/molecules/GridItem/index.js +105 -0
- package/src/components/molecules/GridItem/styles.js +104 -0
- package/src/components/molecules/HeaderItem/ColumnItem.js +9 -0
- package/src/components/molecules/HeaderItem/HeaderItem.stories.js +24 -0
- package/src/components/molecules/HeaderItem/index.js +26 -0
- package/src/components/molecules/HeaderItem/styles.js +27 -0
- package/src/components/molecules/HeaderTop/index.js +52 -6
- package/src/components/molecules/RowItem/ColumnItem.js +9 -0
- package/src/components/molecules/RowItem/RowItem.stories.js +5660 -0
- package/src/components/molecules/RowItem/index.js +45 -0
- package/src/components/molecules/RowItem/styles.js +40 -0
- package/src/components/molecules/SignInLogin/index.js +11 -11
- package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +1 -2
- package/src/components/molecules/TagAndInput/index.js +6 -5
- package/src/components/organisms/Chat/Chat.stories.js +27 -7
- package/src/components/organisms/Chat/ContainerItems/index.js +18 -2
- package/src/components/organisms/Chat/ContainerItems/styles.js +14 -2
- package/src/components/organisms/Chat/ContentChat/index.js +88 -12
- package/src/components/organisms/Chat/Footer/index.js +11 -0
- package/src/components/organisms/Chat/index.js +46 -4
- package/src/components/organisms/Chat/styles.js +4 -0
- package/src/components/organisms/DashboardMetric/index.js +6 -3
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/GridProducts/GridProducts.stories.js +5485 -0
- package/src/components/organisms/GridProducts/index.js +50 -0
- package/src/components/organisms/GridProducts/styles.js +14 -0
- package/src/components/organisms/GridProducts/utils.js +111 -0
- package/src/components/organisms/InputGroup/index.js +131 -119
- package/src/components/organisms/Modal/styles.js +4 -1
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +6 -16
- package/src/components/organisms/VersionSelector/index.js +1 -1
- package/src/components/pages/Dashboard/Dashboard.stories.js +33 -38
- package/src/components/pages/Dashboard/index.js +36 -7
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +100 -83
- package/src/components/pages/ProviderProductEdition/index.js +100 -131
- package/src/components/pages/ProviderProductEdition/styles.js +5 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +6 -2
- package/src/components/pages/RetailerProductEdition/index.js +107 -137
- package/src/components/pages/RetailerProductEdition/styles.js +4 -0
- package/src/components/pages/RetailerProductEdition/utils.js +37 -0
- package/src/global-files/data.js +7 -13
- package/src/global-files/variables.js +4 -0
- package/src/index.js +11 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.UserOption = void 0;
|
|
9
|
+
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
|
+
|
|
12
|
+
var _styles = require("./styles");
|
|
13
|
+
|
|
14
|
+
var _Avatar = require("../Avatar");
|
|
15
|
+
|
|
16
|
+
var _react = require("react");
|
|
17
|
+
|
|
18
|
+
var _data = require("../../../global-files/data");
|
|
19
|
+
|
|
20
|
+
var _utils = require("../../organisms/OrderDetail/utils/Table/utils");
|
|
21
|
+
|
|
22
|
+
var _UserSelector = require("../UserSelector");
|
|
23
|
+
|
|
24
|
+
var _customHooks = require("../../../global-files/customHooks");
|
|
25
|
+
|
|
26
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
|
+
|
|
28
|
+
var UserOption = function UserOption(_ref) {
|
|
29
|
+
var userId = _ref.userId,
|
|
30
|
+
index = _ref.index,
|
|
31
|
+
usersArray = _ref.usersArray,
|
|
32
|
+
id = _ref.id,
|
|
33
|
+
onAssign = _ref.onAssign,
|
|
34
|
+
product = _ref.product;
|
|
35
|
+
index === "auditor" && console.log(userId);
|
|
36
|
+
|
|
37
|
+
var _useState = (0, _react.useState)({}),
|
|
38
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
39
|
+
userAssigned = _useState2[0],
|
|
40
|
+
setUserAssigned = _useState2[1];
|
|
41
|
+
|
|
42
|
+
var _useCloseModal = (0, _customHooks.useCloseModal)(id),
|
|
43
|
+
_useCloseModal2 = (0, _slicedToArray2.default)(_useCloseModal, 2),
|
|
44
|
+
showSelector = _useCloseModal2[0],
|
|
45
|
+
setShowSelector = _useCloseModal2[1];
|
|
46
|
+
|
|
47
|
+
var _useState3 = (0, _react.useState)(""),
|
|
48
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
49
|
+
assignationTarget = _useState4[0],
|
|
50
|
+
setAssignationTarget = _useState4[1];
|
|
51
|
+
|
|
52
|
+
var _useState5 = (0, _react.useState)(""),
|
|
53
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
54
|
+
concept = _useState6[0],
|
|
55
|
+
setConcept = _useState6[1];
|
|
56
|
+
|
|
57
|
+
var _useState7 = (0, _react.useState)(""),
|
|
58
|
+
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
59
|
+
target = _useState8[0],
|
|
60
|
+
setTarget = _useState8[1];
|
|
61
|
+
|
|
62
|
+
var icons = _utils.servicesCodeIcon;
|
|
63
|
+
(0, _react.useEffect)(function () {
|
|
64
|
+
if (usersArray) {
|
|
65
|
+
usersArray.forEach(function (user) {
|
|
66
|
+
if (user.id_user === userId) {
|
|
67
|
+
setUserAssigned(user);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}, [userId, usersArray]);
|
|
72
|
+
(0, _react.useEffect)(function () {
|
|
73
|
+
switch (index) {
|
|
74
|
+
case "datasheet":
|
|
75
|
+
case "description":
|
|
76
|
+
setAssignationTarget("id_".concat(index, "_especialist"));
|
|
77
|
+
setConcept(index);
|
|
78
|
+
setTarget("especialist");
|
|
79
|
+
break;
|
|
80
|
+
|
|
81
|
+
case "image":
|
|
82
|
+
setAssignationTarget("id_".concat(index, "s_especialist"));
|
|
83
|
+
setConcept(index + "s");
|
|
84
|
+
setTarget("especialist");
|
|
85
|
+
break;
|
|
86
|
+
|
|
87
|
+
case "auditor":
|
|
88
|
+
setAssignationTarget("id_".concat(index));
|
|
89
|
+
setConcept(index);
|
|
90
|
+
setTarget(index);
|
|
91
|
+
break;
|
|
92
|
+
|
|
93
|
+
default:
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
}, [index]);
|
|
97
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
98
|
+
onClick: function onClick(e) {
|
|
99
|
+
setShowSelector(!showSelector);
|
|
100
|
+
e.stopPropagation();
|
|
101
|
+
},
|
|
102
|
+
id: id,
|
|
103
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
104
|
+
className: "image-and-name",
|
|
105
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
|
|
106
|
+
image: (0, _data.getProfilePicture)(userAssigned === null || userAssigned === void 0 ? void 0 : userAssigned.id_user, 26, 26),
|
|
107
|
+
altText: "datasheet especialist",
|
|
108
|
+
imageType: "medium-image"
|
|
109
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
110
|
+
children: [userAssigned === null || userAssigned === void 0 ? void 0 : userAssigned.name, " ", userAssigned === null || userAssigned === void 0 ? void 0 : userAssigned.last_name]
|
|
111
|
+
})]
|
|
112
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
113
|
+
className: "icon-container",
|
|
114
|
+
children: icons[index]
|
|
115
|
+
}), showSelector && /*#__PURE__*/(0, _jsxRuntime.jsx)(_UserSelector.UserSelector, {
|
|
116
|
+
id: id,
|
|
117
|
+
searchLabel: "Buscar Usuario",
|
|
118
|
+
index: index,
|
|
119
|
+
usersArray: usersArray,
|
|
120
|
+
position: "absolute",
|
|
121
|
+
onAssign: onAssign,
|
|
122
|
+
product: product,
|
|
123
|
+
assignationTarget: assignationTarget,
|
|
124
|
+
target: target,
|
|
125
|
+
concept: concept
|
|
126
|
+
})]
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
exports.UserOption = UserOption;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Container = void 0;
|
|
9
|
+
|
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
+
|
|
12
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
+
|
|
14
|
+
var _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
16
|
+
var _templateObject;
|
|
17
|
+
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border: 1px solid #f0f0f0;\n border-radius: 5px;\n color: #262626;\n font-size: 12px;\n font-family: ", ";\n display: flex;\n align-items: center;\n padding: 5px 10px;\n justify-content: space-between;\n cursor: pointer;\n position: relative;\n background-color: white;\n\n .image-and-name {\n display: flex;\n align-items: center;\n\n div + p {\n margin-left: 10px;\n white-space: nowrap;\n }\n\n & + * {\n margin-left: 10px;\n }\n }\n\n .icon-container {\n position: relative;\n span {\n color: #808080;\n cursor: pointer;\n\n & + span {\n display: none;\n position: absolute;\n right: 120%;\n top: 50%;\n transform: translateY(-50%);\n white-space: nowrap;\n border: 1px solid #f0f0f0;\n padding: 5px;\n background-color: white;\n }\n\n &:hover {\n & + span {\n display: block;\n }\n }\n }\n }\n\n & + * {\n margin-top: 5px;\n }\n"])), _variables.FontFamily.Lato);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.UserSelectorDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _ = require(".");
|
|
13
|
+
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
title: "Components/atoms/UserSelector",
|
|
18
|
+
component: _.UserSelector
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_.UserSelector, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var UserSelectorDefault = Template.bind({});
|
|
27
|
+
exports.UserSelectorDefault = UserSelectorDefault;
|
|
28
|
+
UserSelectorDefault.args = {
|
|
29
|
+
searchLabel: "Buscar auditor",
|
|
30
|
+
index: "auditor",
|
|
31
|
+
usersArray: [{
|
|
32
|
+
name: "José",
|
|
33
|
+
last_name: "Castañeda",
|
|
34
|
+
id_user: 37
|
|
35
|
+
}, {
|
|
36
|
+
name: "Eduardo ",
|
|
37
|
+
last_name: " Reyes",
|
|
38
|
+
id_user: 195
|
|
39
|
+
}]
|
|
40
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.UserSelector = void 0;
|
|
9
|
+
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
|
+
|
|
12
|
+
var _styles = require("./styles");
|
|
13
|
+
|
|
14
|
+
var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
15
|
+
|
|
16
|
+
var _reactFontawesome = require("@fortawesome/react-fontawesome");
|
|
17
|
+
|
|
18
|
+
var _Avatar = require("../Avatar");
|
|
19
|
+
|
|
20
|
+
var _data = require("../../../global-files/data");
|
|
21
|
+
|
|
22
|
+
var _react = require("react");
|
|
23
|
+
|
|
24
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
|
+
|
|
26
|
+
var UserSelector = function UserSelector(_ref) {
|
|
27
|
+
var searchLabel = _ref.searchLabel,
|
|
28
|
+
usersArray = _ref.usersArray,
|
|
29
|
+
position = _ref.position,
|
|
30
|
+
id = _ref.id,
|
|
31
|
+
onAssign = _ref.onAssign,
|
|
32
|
+
product = _ref.product,
|
|
33
|
+
assignationTarget = _ref.assignationTarget,
|
|
34
|
+
target = _ref.target,
|
|
35
|
+
concept = _ref.concept;
|
|
36
|
+
|
|
37
|
+
var _useState = (0, _react.useState)([]),
|
|
38
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
39
|
+
text = _useState2[0],
|
|
40
|
+
setText = _useState2[1];
|
|
41
|
+
|
|
42
|
+
var _useState3 = (0, _react.useState)([]),
|
|
43
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
44
|
+
userFiltered = _useState4[0],
|
|
45
|
+
setUsersFiltered = _useState4[1];
|
|
46
|
+
|
|
47
|
+
(0, _react.useEffect)(function () {
|
|
48
|
+
if (usersArray) setUsersFiltered(usersArray);
|
|
49
|
+
}, [usersArray]);
|
|
50
|
+
|
|
51
|
+
var onChangeText = function onChangeText(e) {
|
|
52
|
+
setText(e.target.value);
|
|
53
|
+
if (usersArray) setUsersFiltered(usersArray.filter(function (user) {
|
|
54
|
+
return (user.name + " " + user.last_name).toLowerCase().includes(e.target.value.toLowerCase());
|
|
55
|
+
}));
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
59
|
+
position: position,
|
|
60
|
+
id: id + "users-list",
|
|
61
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
62
|
+
className: "search-cotainer",
|
|
63
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFontawesome.FontAwesomeIcon, {
|
|
64
|
+
icon: _freeSolidSvgIcons.faSearch
|
|
65
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
66
|
+
type: "text",
|
|
67
|
+
className: "search",
|
|
68
|
+
placeholder: searchLabel,
|
|
69
|
+
value: text,
|
|
70
|
+
onChange: onChangeText,
|
|
71
|
+
autoFocus: true
|
|
72
|
+
})]
|
|
73
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
74
|
+
className: "selector-container",
|
|
75
|
+
children: userFiltered.length ? userFiltered.map(function (user, i) {
|
|
76
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
77
|
+
className: "user-item",
|
|
78
|
+
onClick: function onClick() {
|
|
79
|
+
onAssign(product, user.id_user, assignationTarget, target, concept);
|
|
80
|
+
},
|
|
81
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
|
|
82
|
+
image: (0, _data.getProfilePicture)(user.id_user, 26, 26),
|
|
83
|
+
altText: "profile image",
|
|
84
|
+
imageType: "medium-image"
|
|
85
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
86
|
+
children: [user.name, " ", user.last_name]
|
|
87
|
+
})]
|
|
88
|
+
}, user.id_user + "-" + i);
|
|
89
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
90
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
91
|
+
children: "Sin usuarios para asignar"
|
|
92
|
+
})
|
|
93
|
+
})
|
|
94
|
+
})]
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
exports.UserSelector = UserSelector;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Container = void 0;
|
|
9
|
+
|
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
+
|
|
12
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
+
|
|
14
|
+
var _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
16
|
+
var _templateObject;
|
|
17
|
+
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n box-shadow: 0px 2px 4px #00000040;\n width: 197px;\n border-radius: 5px;\n position: ", ";\n top: ", ";\n left: ", ";\n transform: ", ";\n z-index: 500;\n background-color: white;\n\n .search-cotainer {\n display: flex;\n padding-left: 10px;\n align-items: center;\n border-bottom: 1px solid #f0f0f0;\n\n svg {\n & + * {\n margin-left: 10px;\n }\n }\n\n input {\n border: none;\n width: 100%;\n padding: 10px;\n outline: none;\n }\n }\n\n .selector-container {\n max-height: 184px;\n overflow: auto;\n .user-item {\n display: flex;\n font-family: ", ";\n font-size: 12px;\n align-items: center;\n padding: 10px;\n cursor: pointer;\n\n &:hover {\n background-color: #f0f0f0;\n }\n\n > * + * {\n margin-left: 10px;\n }\n }\n }\n"])), function (_ref) {
|
|
19
|
+
var position = _ref.position;
|
|
20
|
+
return position ? position : "initial";
|
|
21
|
+
}, function (_ref2) {
|
|
22
|
+
var position = _ref2.position;
|
|
23
|
+
return position ? "100%" : "initial";
|
|
24
|
+
}, function (_ref3) {
|
|
25
|
+
var position = _ref3.position;
|
|
26
|
+
return position ? "50%" : "initial";
|
|
27
|
+
}, function (_ref4) {
|
|
28
|
+
var position = _ref4.position;
|
|
29
|
+
return position ? "translateX(-50%)" : "initial";
|
|
30
|
+
}, _variables.FontFamily.Lato);
|
|
31
|
+
|
|
32
|
+
exports.Container = Container;
|
|
@@ -63,7 +63,7 @@ var BoxAttribute = function BoxAttribute(props) {
|
|
|
63
63
|
var theme = _ref2.theme;
|
|
64
64
|
return (0, _defineProperty2.default)({}, "& .".concat(_Tooltip.tooltipClasses.tooltip), {
|
|
65
65
|
backgroundColor: _variables.GlobalColors.white,
|
|
66
|
-
color:
|
|
66
|
+
color: "rgba(0, 0, 0, 0.87)",
|
|
67
67
|
boxShadow: theme.shadows[1],
|
|
68
68
|
fontSize: 11,
|
|
69
69
|
fontFamily: "".concat(_variables.FontFamily.Roboto, ", sans-serif")
|
|
@@ -92,8 +92,8 @@ var BoxAttribute = function BoxAttribute(props) {
|
|
|
92
92
|
})
|
|
93
93
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
94
94
|
children: [text, /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
95
|
-
className: required ?
|
|
96
|
-
children: required ?
|
|
95
|
+
className: required ? "required-text" : "",
|
|
96
|
+
children: required ? "*" : ""
|
|
97
97
|
})]
|
|
98
98
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextField.default, {
|
|
99
99
|
hiddenLabel: 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 .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 .required-text {\n color: red;\n }\n"])), _variables.FontFamily.RobotoMedium, function (_ref) {
|
|
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 .required-text {\n color: red;\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);
|
|
@@ -17,7 +17,6 @@ var BoxButtons = function BoxButtons(_ref) {
|
|
|
17
17
|
onDelete = _ref.onDelete,
|
|
18
18
|
isTheFirstBox = _ref.isTheFirstBox,
|
|
19
19
|
index = _ref.index;
|
|
20
|
-
console.log("index", index);
|
|
21
20
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
22
21
|
index: index,
|
|
23
22
|
children: [!isTheFirstBox && /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
@@ -47,7 +47,7 @@ var CarouselImagesLogin = function CarouselImagesLogin(_ref) {
|
|
|
47
47
|
Array.from(circulos).forEach(function (cir) {
|
|
48
48
|
return cir.classList.remove("resaltado");
|
|
49
49
|
});
|
|
50
|
-
circulo_actual.classList.add("resaltado");
|
|
50
|
+
circulo_actual === null || circulo_actual === void 0 ? void 0 : circulo_actual.classList.add("resaltado");
|
|
51
51
|
img1.classList.add("right");
|
|
52
52
|
img2.classList.add("active");
|
|
53
53
|
i++;
|
|
@@ -28,9 +28,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
28
28
|
var GalleryElement = function GalleryElement(_ref) {
|
|
29
29
|
var _auditImages$values$n, _auditImages$values$n2;
|
|
30
30
|
|
|
31
|
-
var
|
|
32
|
-
validation = _ref$validation === void 0 ? "null-button" : _ref$validation,
|
|
33
|
-
image = _ref.image,
|
|
31
|
+
var image = _ref.image,
|
|
34
32
|
_ref$gridLayout = _ref.gridLayout,
|
|
35
33
|
gridLayout = _ref$gridLayout === void 0 ? false : _ref$gridLayout,
|
|
36
34
|
_ref$id = _ref.id,
|
|
@@ -40,7 +38,6 @@ var GalleryElement = function GalleryElement(_ref) {
|
|
|
40
38
|
imageInputs = _ref.imageInputs,
|
|
41
39
|
imageType = _ref.imageType,
|
|
42
40
|
imagePackagingType = _ref.imagePackagingType,
|
|
43
|
-
imageShotType = _ref.imageShotType,
|
|
44
41
|
changeImage = _ref.changeImage,
|
|
45
42
|
selectedImages = _ref.selectedImages,
|
|
46
43
|
setSelectedImages = _ref.setSelectedImages,
|
|
@@ -48,15 +45,10 @@ var GalleryElement = function GalleryElement(_ref) {
|
|
|
48
45
|
auditImages = _ref.auditImages,
|
|
49
46
|
compare = _ref.compare;
|
|
50
47
|
|
|
51
|
-
var _useState = (0, _react.useState)(
|
|
48
|
+
var _useState = (0, _react.useState)(false),
|
|
52
49
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
var _useState3 = (0, _react.useState)(false),
|
|
57
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
58
|
-
showValidationPanel = _useState4[0],
|
|
59
|
-
setShowValidationPanel = _useState4[1];
|
|
50
|
+
showValidationPanel = _useState2[0],
|
|
51
|
+
setShowValidationPanel = _useState2[1];
|
|
60
52
|
|
|
61
53
|
var closeValidationPanel = function closeValidationPanel(e) {
|
|
62
54
|
if (!e.target.closest("#validation-panel") || e.target.closest(".validation-option") && showValidationPanel) {
|
|
@@ -117,6 +109,18 @@ var GalleryElement = function GalleryElement(_ref) {
|
|
|
117
109
|
children: [image.width, "x", image.height]
|
|
118
110
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
119
111
|
children: image.ext
|
|
112
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckBox.CheckBox, {
|
|
113
|
+
className: "center",
|
|
114
|
+
id: "has-description-".concat(image.id),
|
|
115
|
+
defaultChecked: image.has_leyend,
|
|
116
|
+
onChange: function onChange(e) {
|
|
117
|
+
changeImage({
|
|
118
|
+
action: "changeImageInfo",
|
|
119
|
+
attribute: "has_leyend",
|
|
120
|
+
value: e.target.checked,
|
|
121
|
+
index: number
|
|
122
|
+
});
|
|
123
|
+
}
|
|
120
124
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Select.default, {
|
|
121
125
|
width: "100%",
|
|
122
126
|
placeholder: "Tipo de toma",
|
|
@@ -15,6 +15,6 @@ 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 &.grid-gallery {\n position: relative;\n width: 179px;\n border-radius: 3px;\n overflow: hidden;\n\n .buttons-container {\n position: absolute;\n top: 5px;\n left: 5px;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .image-container {\n border: 1px solid #f0eef2;\n\n .information-container {\n background-color: ", ";\n display: flex;\n justify-content: space-between;\n padding: 0 2px;\n\n p {\n font-family: ", ";\n color: ", ";\n font-size: 11px;\n line-height: 17px;\n }\n }\n }\n }\n\n &.row-gallery {\n display: flex;\n align-items: center;\n padding-right: 10px;\n\n .buttons-container {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .image-container {\n display: flex;\n align-items: center;\n flex: 1;\n .information-container {\n display: flex;\n flex: 1;\n\n p {\n font-family: ", ";\n color: ", ";\n font-size: 14px;\n line-height: 17px;\n text-align: center;\n\n &.highlighted-data {\n font-family: ", ";\n color: ", ";\n background-color: ", ";\n border-radius: 3px;\n font-weight: 600;\n font-size: 11px;\n line-height: 18px;\n padding: 0 10px;\n }\n\n &:nth-child(1) {\n //min-width: calc(20% - 76px);\n //flex: 1 0 20%;\n min-width: 22%;\n }\n\n &:nth-child(2),\n &:nth-child(3) {\n text-align: center;\n }\n &:nth-child(2) {\n max-width: 90px;\n min-width: 90px;\n }\n &:nth-child(3) {\n max-width: 60px;\n min-width: 60px;\n }\n /* &:nth-child(4) {\n max-width: 90px;\n min-width: 90px;\n }\n &:nth-child(5) {\n max-width: 80px;\n min-width: 80px;\n } */\n }\n\n & > * {\n flex: 1;\n padding: 5px;\n }\n }\n }\n }\n\n &.audit-class{\n border: 1px solid #8a6caa;\n background-color: #ededfc;\n }\n"])), _variables.GlobalColors.s2, _variables.FontFamily.Lato, _variables.GlobalColors.s4, _variables.FontFamily.Lato, _variables.GlobalColors.s4, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5, _variables.GlobalColors.s2);
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n &.grid-gallery {\n position: relative;\n width: 179px;\n border-radius: 3px;\n overflow: hidden;\n\n .buttons-container {\n position: absolute;\n top: 5px;\n left: 5px;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .image-container {\n border: 1px solid #f0eef2;\n\n .information-container {\n background-color: ", ";\n display: flex;\n justify-content: space-between;\n padding: 0 2px;\n\n p {\n font-family: ", ";\n color: ", ";\n font-size: 11px;\n line-height: 17px;\n }\n }\n }\n }\n\n &.row-gallery {\n display: flex;\n align-items: center;\n padding-right: 10px;\n\n .buttons-container {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .image-container {\n display: flex;\n align-items: center;\n flex: 1;\n .information-container {\n display: flex;\n flex: 1;\n\n .center {\n max-width: 120px;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n p {\n font-family: ", ";\n color: ", ";\n font-size: 14px;\n line-height: 17px;\n text-align: center;\n\n &.highlighted-data {\n font-family: ", ";\n color: ", ";\n background-color: ", ";\n border-radius: 3px;\n font-weight: 600;\n font-size: 11px;\n line-height: 18px;\n padding: 0 10px;\n }\n\n &:nth-child(1) {\n //min-width: calc(20% - 76px);\n //flex: 1 0 20%;\n min-width: 22%;\n }\n\n &:nth-child(2),\n &:nth-child(3) {\n text-align: center;\n }\n &:nth-child(2) {\n max-width: 90px;\n min-width: 90px;\n }\n &:nth-child(3) {\n max-width: 60px;\n min-width: 60px;\n }\n /* &:nth-child(4) {\n max-width: 90px;\n min-width: 90px;\n }\n &:nth-child(5) {\n max-width: 80px;\n min-width: 80px;\n } */\n }\n\n & > * {\n flex: 1;\n padding: 5px;\n }\n }\n }\n }\n\n &.audit-class{\n border: 1px solid #8a6caa;\n background-color: #ededfc;\n }\n"])), _variables.GlobalColors.s2, _variables.FontFamily.Lato, _variables.GlobalColors.s4, _variables.FontFamily.Lato, _variables.GlobalColors.s4, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5, _variables.GlobalColors.s2);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -45,6 +45,9 @@ var GalleryHeader = function GalleryHeader(_ref) {
|
|
|
45
45
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
46
46
|
className: "image-format",
|
|
47
47
|
children: "Formato"
|
|
48
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
49
|
+
className: "image-description",
|
|
50
|
+
children: "\xBFTiene leyenda?"
|
|
48
51
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
49
52
|
className: "",
|
|
50
53
|
children: "Tipo de toma"
|
|
@@ -15,6 +15,6 @@ 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 padding: 10px;\n padding-left: 0;\n align-items: center;\n\n p {\n font-family: ", ";\n font-style: normal;\n font-weight: 600;\n font-size: 14px;\n line-height: 21px;\n letter-spacing: -0.015em;\n color: ", ";\n flex: 1;\n text-align: center;\n\n &.value-header {\n max-width: 60px;\n }\n\n &.image-header {\n max-width: 60px;\n }\n\n &.image-name {\n min-width: 20%;\n }\n\n &.image-format {\n max-width: 60px;\n }\n\n &.image-size {\n max-width: 90px;\n }\n\n &.image-identifier {\n max-width: 80px;\n }\n }\n"])), _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5);
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n padding: 10px;\n padding-left: 0;\n align-items: center;\n\n p {\n font-family: ", ";\n font-style: normal;\n font-weight: 600;\n font-size: 14px;\n line-height: 21px;\n letter-spacing: -0.015em;\n color: ", ";\n flex: 1;\n text-align: center;\n\n &.value-header {\n max-width: 60px;\n }\n\n &.image-header {\n max-width: 60px;\n }\n\n &.image-name {\n min-width: 20%;\n }\n\n &.image-format {\n max-width: 60px;\n }\n\n &.image-size {\n max-width: 90px;\n }\n\n &.image-identifier {\n max-width: 80px;\n }\n\n &.image-description {\n max-width: 120px;\n }\n }\n"])), _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.GridItemDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
|
11
|
+
|
|
12
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
13
|
+
|
|
14
|
+
var _ = require(".");
|
|
15
|
+
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
|
|
18
|
+
var _article;
|
|
19
|
+
|
|
20
|
+
var _default = {
|
|
21
|
+
title: "Components/molecules/GridItem",
|
|
22
|
+
component: _.GridItem
|
|
23
|
+
};
|
|
24
|
+
exports.default = _default;
|
|
25
|
+
|
|
26
|
+
var Template = function Template(args) {
|
|
27
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_.GridItem, (0, _objectSpread2.default)({}, args));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
var GridItemDefault = Template.bind({});
|
|
31
|
+
exports.GridItemDefault = GridItemDefault;
|
|
32
|
+
GridItemDefault.args = {
|
|
33
|
+
article: (_article = {
|
|
34
|
+
services: {
|
|
35
|
+
datasheets: 1,
|
|
36
|
+
descriptions: 1,
|
|
37
|
+
images: 1
|
|
38
|
+
},
|
|
39
|
+
orderId: 15254,
|
|
40
|
+
status: "Ex",
|
|
41
|
+
datasheet_status: "Ex",
|
|
42
|
+
prio: "none",
|
|
43
|
+
version: 15,
|
|
44
|
+
description_status: "Ex",
|
|
45
|
+
images_status: "Ex",
|
|
46
|
+
statusByRetailer: {
|
|
47
|
+
70: {
|
|
48
|
+
datasheet: "Ex",
|
|
49
|
+
description: "Ex",
|
|
50
|
+
images: "Ex"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
id_article: 38443,
|
|
54
|
+
id_category: "4319",
|
|
55
|
+
name: "Im Polvo Compacto Natural 2",
|
|
56
|
+
upc: "7501611823017",
|
|
57
|
+
timestamp: "2023-03-15T05:54:54.000Z",
|
|
58
|
+
id_user: 133
|
|
59
|
+
}, (0, _defineProperty2.default)(_article, "status", "Ex"), (0, _defineProperty2.default)(_article, "active", 1), (0, _defineProperty2.default)(_article, "company_id", 912), (0, _defineProperty2.default)(_article, "company_name", "GRUPO BRAHMA"), (0, _defineProperty2.default)(_article, "country", "México"), (0, _defineProperty2.default)(_article, "id_order", 15254), (0, _defineProperty2.default)(_article, "id_datasheet_especialist", 1841), (0, _defineProperty2.default)(_article, "id_datasheet_facilitator", null), (0, _defineProperty2.default)(_article, "id_description_especialist", 509), (0, _defineProperty2.default)(_article, "id_description_facilitator", null), (0, _defineProperty2.default)(_article, "id_images_especialist", 289), (0, _defineProperty2.default)(_article, "id_images_facilitator", 160), (0, _defineProperty2.default)(_article, "id_auditor", 493), (0, _defineProperty2.default)(_article, "id_recepcionist", null), (0, _defineProperty2.default)(_article, "category", "Salud y Belleza|Cosméticos|Cosméticos"), (0, _defineProperty2.default)(_article, "missingAttributes", 0), (0, _defineProperty2.default)(_article, "missingDescriptions", 0), (0, _defineProperty2.default)(_article, "missingImages", 0), (0, _defineProperty2.default)(_article, "retailers", [{
|
|
60
|
+
id: 70,
|
|
61
|
+
name: "Bodega Aurrera"
|
|
62
|
+
}]), (0, _defineProperty2.default)(_article, "country", "México"), (0, _defineProperty2.default)(_article, "upc", "7501611823017"), (0, _defineProperty2.default)(_article, "imageArray", [{
|
|
63
|
+
id: 35596,
|
|
64
|
+
status: null,
|
|
65
|
+
image_id: 1,
|
|
66
|
+
packing_type: "3",
|
|
67
|
+
image_type: "1",
|
|
68
|
+
article_id: "38443",
|
|
69
|
+
src: "https://d24s337exbt5zr.cloudfront.net/eyJidWNrZXQiOiJjb250ZW50LW1hbmFnZW1lbnQtaW1hZ2VzIiwia2V5IjoiaWQtMzg0NDMvMTUvMS1kNDQ2ZjIwNy0wYTkzLTQyNzgtYWZjNi01MTY2ZjIyY2EzNDMucG5nIiwiZWRpdHMiOnsicmVzaXplIjp7IndpZHRoIjoxMDAwLCJoZWlnaHQiOjEwMDAsImZpdCI6ImNvbnRhaW4iLCJiYWNrZ3JvdW5kIjp7InIiOjI1NSwiZyI6MjU1LCJiIjoyNTUsImFscGhhIjoxfX19fQ==",
|
|
70
|
+
timestamp: "2023-05-30T03:01:12.000Z",
|
|
71
|
+
id_version: 15,
|
|
72
|
+
width: null,
|
|
73
|
+
height: null,
|
|
74
|
+
scene_type: null,
|
|
75
|
+
image_shot_type: null,
|
|
76
|
+
last_modified: "2023-06-05T23:49:49.000Z",
|
|
77
|
+
name: "Central (Frente Comercial)",
|
|
78
|
+
version: 15,
|
|
79
|
+
ext: "png",
|
|
80
|
+
uuid: "d446f207-0a93-4278-afc6-5166f22ca343",
|
|
81
|
+
srcDB: "id-38443/15/1-d446f207-0a93-4278-afc6-5166f22ca343.png"
|
|
82
|
+
}, {
|
|
83
|
+
id: 35597,
|
|
84
|
+
status: null,
|
|
85
|
+
image_id: 3,
|
|
86
|
+
packing_type: "3",
|
|
87
|
+
image_type: "1",
|
|
88
|
+
article_id: "38443",
|
|
89
|
+
src: "https://d24s337exbt5zr.cloudfront.net/eyJidWNrZXQiOiJjb250ZW50LW1hbmFnZW1lbnQtaW1hZ2VzIiwia2V5IjoiaWQtMzg0NDMvMTUvMy0yOTZkMzU3ZC00OTUzLTRiMzktYjFjMy04YWZmZDI2NDgwMWIucG5nIiwiZWRpdHMiOnsicmVzaXplIjp7IndpZHRoIjoxMDAwLCJoZWlnaHQiOjEwMDAsImZpdCI6ImNvbnRhaW4iLCJiYWNrZ3JvdW5kIjp7InIiOjI1NSwiZyI6MjU1LCJiIjoyNTUsImFscGhhIjoxfX19fQ==",
|
|
90
|
+
timestamp: "2023-05-30T03:01:12.000Z",
|
|
91
|
+
id_version: 15,
|
|
92
|
+
width: null,
|
|
93
|
+
height: null,
|
|
94
|
+
scene_type: null,
|
|
95
|
+
image_shot_type: null,
|
|
96
|
+
last_modified: "2023-06-05T23:49:49.000Z",
|
|
97
|
+
name: "Trasera (Back)",
|
|
98
|
+
version: 15,
|
|
99
|
+
ext: "png",
|
|
100
|
+
uuid: "296d357d-4953-4b39-b1c3-8affd264801b",
|
|
101
|
+
srcDB: "id-38443/15/3-296d357d-4953-4b39-b1c3-8affd264801b.png"
|
|
102
|
+
}, {
|
|
103
|
+
id: 35598,
|
|
104
|
+
status: null,
|
|
105
|
+
image_id: 16,
|
|
106
|
+
packing_type: "3",
|
|
107
|
+
image_type: "1",
|
|
108
|
+
article_id: "38443",
|
|
109
|
+
src: "https://d24s337exbt5zr.cloudfront.net/eyJidWNrZXQiOiJjb250ZW50LW1hbmFnZW1lbnQtaW1hZ2VzIiwia2V5IjoiaWQtMzg0NDMvMTUvMTYtOGMzNDIzM2YtZTRiMC00MjU0LWFlYzUtZjEyN2ZiYjhkYmVkLnBuZyIsImVkaXRzIjp7InJlc2l6ZSI6eyJ3aWR0aCI6MTAwMCwiaGVpZ2h0IjoxMDAwLCJmaXQiOiJjb250YWluIiwiYmFja2dyb3VuZCI6eyJyIjoyNTUsImciOjI1NSwiYiI6MjU1LCJhbHBoYSI6MX19fX0=",
|
|
110
|
+
timestamp: "2023-05-30T03:01:12.000Z",
|
|
111
|
+
id_version: 15,
|
|
112
|
+
width: null,
|
|
113
|
+
height: null,
|
|
114
|
+
scene_type: null,
|
|
115
|
+
image_shot_type: null,
|
|
116
|
+
last_modified: "2023-06-05T23:49:49.000Z",
|
|
117
|
+
name: "Detalle / Características 1",
|
|
118
|
+
version: 15,
|
|
119
|
+
ext: "png",
|
|
120
|
+
uuid: "8c34233f-e4b0-4254-aec5-f127fbb8dbed",
|
|
121
|
+
srcDB: "id-38443/15/16-8c34233f-e4b0-4254-aec5-f127fbb8dbed.png"
|
|
122
|
+
}]), _article)
|
|
123
|
+
};
|