contentoh-components-library 6.0.0 → 7.0.0
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/atoms/AsignationOption/index.js +10 -5
- package/dist/components/atoms/AsignationOption/styles.js +1 -1
- package/dist/components/atoms/AtomList/index.js +5 -3
- package/dist/components/atoms/AtomList/styles.js +1 -1
- package/dist/components/atoms/Avatar/index.js +4 -2
- package/dist/components/atoms/Card/Card.stories.js +22 -0
- package/dist/components/atoms/Card/index.js +19 -0
- package/dist/components/atoms/Card/styles.js +18 -0
- package/dist/components/atoms/CheckBox/index.js +3 -1
- package/dist/components/atoms/Commentary/Commentary.stories.js +1 -0
- package/dist/components/atoms/Commentary/index.js +15 -0
- package/dist/components/atoms/Commentary/styles.js +20 -0
- package/dist/components/atoms/CustomerTypeImage/index.js +2 -1
- package/dist/components/atoms/EditField/EditField.stories.js +24 -0
- package/dist/components/atoms/EditField/index.js +29 -0
- package/dist/components/atoms/EditField/styles.js +20 -0
- package/dist/components/atoms/GeneralButton/GeneralButton.stories.js +1 -1
- package/dist/components/atoms/GeneralButton/index.js +3 -1
- package/dist/components/atoms/GeneralButton/styles.js +12 -2
- package/dist/components/atoms/GeneralInput/index.js +60 -8
- package/dist/components/atoms/GeneralInput/styles.js +4 -1
- package/dist/components/atoms/GeneralTextBox/styles.js +1 -1
- package/dist/components/atoms/GenericModal/GenericModal.stories.js +171 -0
- package/dist/components/atoms/GenericModal/index.js +23 -0
- package/dist/components/atoms/GenericModal/styles.js +22 -0
- package/dist/components/atoms/GradientPanel/GradientPanel.stories.js +135 -4
- package/dist/components/atoms/GradientPanel/index.js +4 -2
- package/dist/components/atoms/GradientPanel/styles.js +2 -2
- package/dist/components/atoms/Graphic/Graphic.stories.js +30 -0
- package/dist/components/atoms/Graphic/index.js +30 -0
- package/dist/components/atoms/Graphic/styles.js +18 -0
- package/dist/components/atoms/Input/index.js +19 -0
- package/dist/components/atoms/Input/style.js +26 -0
- package/dist/components/atoms/LabelToInput/index.js +48 -0
- package/dist/components/atoms/LabelToInput/style.js +22 -0
- package/dist/components/atoms/LoadImageMenu/LoadImageMenu.stories.js +29 -0
- package/dist/components/atoms/LoadImageMenu/index.js +74 -0
- package/dist/components/atoms/LoadImageMenu/styles.js +20 -0
- package/dist/components/atoms/LogoImage/LogoImage.stories.js +22 -0
- package/dist/components/atoms/LogoImage/index.js +23 -0
- package/dist/components/atoms/LogoImage/styles.js +18 -0
- package/dist/components/atoms/MenuNotification/MenuNotification.stories.js +33 -0
- package/dist/components/atoms/MenuNotification/index.js +35 -0
- package/dist/components/atoms/MenuNotification/styles.js +20 -0
- package/dist/components/atoms/MenuProfile/MenuProfile.stories.js +24 -0
- package/dist/components/atoms/MenuProfile/index.js +47 -0
- package/dist/components/atoms/MenuProfile/styles.js +20 -0
- package/dist/components/atoms/Notification/Notification.stories.js +30 -0
- package/dist/components/atoms/Notification/index.js +27 -0
- package/dist/components/atoms/Notification/styles.js +20 -0
- package/dist/components/atoms/Percent/Percent.stories.js +33 -0
- package/dist/components/atoms/Percent/index.js +32 -0
- package/dist/components/atoms/Percent/styles.js +20 -0
- package/dist/components/atoms/PriorityFlag/index.js +1 -1
- package/dist/components/atoms/ProductImage/styles.js +1 -1
- package/dist/components/atoms/ProgressBar/index.js +2 -2
- package/dist/components/atoms/ProgressBar/styles.js +3 -5
- package/dist/components/atoms/ScreenHeader/ScreenHeader.stories.js +9 -2
- package/dist/components/atoms/ScreenHeader/index.js +5 -3
- package/dist/components/atoms/ScreenHeader/styles.js +17 -2
- package/dist/components/atoms/Select/index.js +32 -0
- package/dist/components/atoms/Select/style.js +32 -0
- package/dist/components/atoms/StatusTag/styles.js +1 -1
- package/dist/components/atoms/ValidationPanel/index.js +4 -3
- package/dist/components/molecules/AddProvidersAndProducts/AddProvidersAndProducts.stories.js +28 -0
- package/dist/components/molecules/AddProvidersAndProducts/index.js +36 -0
- package/dist/components/molecules/AddProvidersAndProducts/styles.js +20 -0
- package/dist/components/molecules/AssignedWork/AssignedWork.stories.js +44 -0
- package/dist/components/molecules/AssignedWork/index.js +55 -0
- package/dist/components/molecules/AssignedWork/styles.js +20 -0
- package/dist/components/molecules/AvatarAndValidation/index.js +17 -7
- package/dist/components/molecules/AvatarAndValidation/styles.js +1 -1
- package/dist/components/molecules/EditionActiveImage/index.js +6 -2
- package/dist/components/molecules/FeaturesBar/index.js +21 -2
- package/dist/components/molecules/FeaturesBar/styles.js +1 -1
- package/dist/components/molecules/GalleryElement/index.js +51 -20
- package/dist/components/molecules/GalleryElement/styles.js +1 -1
- package/dist/components/molecules/GalleryHeader/GalleryHeader.stories.js +22 -0
- package/dist/components/molecules/GalleryHeader/index.js +30 -0
- package/dist/components/molecules/GalleryHeader/styles.js +20 -0
- package/dist/components/molecules/ImageSelector/index.js +8 -5
- package/dist/components/molecules/ParentComponent/ParentComponent.stories.js +25 -0
- package/dist/components/molecules/ParentComponent/index.js +67 -0
- package/dist/components/molecules/ParentComponent/styles.js +18 -0
- package/dist/components/molecules/PayMethod/PayMethod.stories.js +22 -0
- package/dist/components/molecules/PayMethod/index.js +61 -0
- package/dist/components/molecules/PayMethod/styles.js +20 -0
- package/dist/components/molecules/PlanSelection/PlanSelection.stories.js +0 -3
- package/dist/components/molecules/PlanSelection/index.js +1 -1
- package/dist/components/molecules/PlanSelection/styles.js +1 -1
- package/dist/components/molecules/ProductNameHeader/index.js +1 -2
- package/dist/components/molecules/ProductNotification/ProductNotification.stories.js +24 -0
- package/dist/components/molecules/ProductNotification/index.js +71 -0
- package/dist/components/molecules/ProductNotification/styles.js +20 -0
- package/dist/components/molecules/ProfileHeader/ProfileHeader.stories.js +30 -0
- package/dist/components/molecules/ProfileHeader/index.js +73 -0
- package/dist/components/molecules/ProfileHeader/styles.js +20 -0
- package/dist/components/molecules/RetailerSelector/RetailerSelector.stories.js +42 -0
- package/dist/components/molecules/RetailerSelector/index.js +71 -0
- package/dist/components/molecules/RetailerSelector/styles.js +20 -0
- package/dist/components/molecules/SidebarNotification/SidebarNotification.stories.js +98 -0
- package/dist/components/molecules/SidebarNotification/index.js +105 -0
- package/dist/components/molecules/SidebarNotification/styles.js +20 -0
- package/dist/components/molecules/StatusAsignationInfo/index.js +51 -12
- package/dist/components/molecules/StatusAsignationInfo/styles.js +1 -1
- package/dist/components/molecules/TableHeader/index.js +5 -4
- package/dist/components/molecules/TabsMenu/index.js +4 -2
- package/dist/components/molecules/TagAndInput/index.js +28 -3
- package/dist/components/molecules/TagAndInput/styles.js +1 -1
- package/dist/components/organisms/FullProductNameHeader/index.js +32 -8
- package/dist/components/organisms/FullTabsMenu/index.js +17 -5
- package/dist/components/organisms/FullTabsMenu/styles.js +1 -1
- package/dist/components/organisms/Fullplan/FullPlan.stories.js +13 -15
- package/dist/components/organisms/Fullplan/index.js +1 -1
- package/dist/components/organisms/Fullplan/styles.js +1 -1
- package/dist/components/organisms/ImageDataTable/index.js +77 -15
- package/dist/components/organisms/ImageDataTable/styles.js +7 -1
- package/dist/components/organisms/ImagePreviewer/index.js +6 -19
- package/dist/components/organisms/InputGroup/index.js +53 -8
- package/dist/components/organisms/InputGroup/styles.js +1 -1
- package/dist/components/organisms/ProductImageModal/ProductImageModal.stories.js +122 -120
- package/dist/components/organisms/ProductImageModal/index.js +28 -12
- package/dist/components/organisms/ProductImageModal/styles.js +1 -1
- package/dist/components/pages/CustomerLogin/CustomerLogin.stories.js +95 -0
- package/dist/components/pages/CustomerLogin/index.js +29 -0
- package/dist/components/pages/CustomerLogin/styles.js +18 -0
- package/dist/components/pages/CustomerPayMethod/CustomerPayMethod.stories.js +72 -0
- package/dist/components/pages/CustomerPayMethod/index.js +29 -0
- package/dist/components/pages/CustomerPayMethod/styles.js +18 -0
- package/dist/components/pages/CustomerType/CustomerType.stories.js +16 -5
- package/dist/components/pages/CustomerType/styles.js +1 -3
- package/dist/components/pages/OnboardPlan/OnboardPlan.stories.js +24 -10
- package/dist/components/pages/OnboardPlan/index.js +8 -10
- package/dist/components/pages/OnboardPlan/styles.js +1 -1
- package/dist/components/pages/RetailerPlan/RetailerPlan.stories.js +59 -0
- package/dist/components/pages/RetailerPlan/index.js +31 -0
- package/dist/components/pages/RetailerPlan/styles.js +18 -0
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +101 -313
- package/dist/components/pages/RetailerProductEdition/index.js +1071 -39
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/global-files/data.js +219 -0
- package/dist/global-files/variables.js +1 -0
- package/dist/index.js +7 -2
- package/package.json +1 -1
- package/src/index.js +2 -1
|
@@ -0,0 +1,71 @@
|
|
|
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.RetailerSelector = void 0;
|
|
9
|
+
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
|
+
|
|
12
|
+
var _styles = require("./styles");
|
|
13
|
+
|
|
14
|
+
var _Avatar = require("../../atoms/Avatar");
|
|
15
|
+
|
|
16
|
+
var _react = require("react");
|
|
17
|
+
|
|
18
|
+
var _AsignationOption = require("../../atoms/AsignationOption");
|
|
19
|
+
|
|
20
|
+
var RetailerSelector = function RetailerSelector(_ref) {
|
|
21
|
+
var retailers = _ref.retailers,
|
|
22
|
+
activeRetailer = _ref.activeRetailer,
|
|
23
|
+
setActiveRetailer = _ref.setActiveRetailer;
|
|
24
|
+
|
|
25
|
+
var _useState = (0, _react.useState)(false),
|
|
26
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
27
|
+
retailersPanel = _useState2[0],
|
|
28
|
+
setRetailersPanel = _useState2[1];
|
|
29
|
+
|
|
30
|
+
var closeRetailersPanel = function closeRetailersPanel(e) {
|
|
31
|
+
if (!e.target.closest("#retailers-assignation") && retailersPanel) {
|
|
32
|
+
document.removeEventListener("click", closeRetailersPanel, false);
|
|
33
|
+
setRetailersPanel(false);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
(0, _react.useEffect)(function () {
|
|
38
|
+
if (retailersPanel) {
|
|
39
|
+
document.addEventListener("click", closeRetailersPanel, false);
|
|
40
|
+
}
|
|
41
|
+
}, [retailersPanel]);
|
|
42
|
+
return /*#__PURE__*/React.createElement(_styles.Container, {
|
|
43
|
+
id: "retailers-assignation"
|
|
44
|
+
}, /*#__PURE__*/React.createElement(_Avatar.Avatar, {
|
|
45
|
+
image: activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.image,
|
|
46
|
+
altText: activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.name,
|
|
47
|
+
imageType: "medium-image",
|
|
48
|
+
onClick: function onClick() {
|
|
49
|
+
retailers.length > 1 && setRetailersPanel(!retailersPanel);
|
|
50
|
+
if (retailersPanel) document.removeEventListener("click", closeRetailersPanel, false);
|
|
51
|
+
}
|
|
52
|
+
}), retailersPanel && /*#__PURE__*/React.createElement("div", {
|
|
53
|
+
className: "retailers-panel"
|
|
54
|
+
}, retailers.map(function (retailer, index) {
|
|
55
|
+
return /*#__PURE__*/React.createElement(_AsignationOption.AsignationOption, {
|
|
56
|
+
key: "".concat(index, "-").concat(retailer === null || retailer === void 0 ? void 0 : retailer.name),
|
|
57
|
+
profileImage: retailer === null || retailer === void 0 ? void 0 : retailer.image,
|
|
58
|
+
imageType: "medium-image",
|
|
59
|
+
asignationType: null,
|
|
60
|
+
name: retailer === null || retailer === void 0 ? void 0 : retailer.name,
|
|
61
|
+
team: retailer === null || retailer === void 0 ? void 0 : retailer.team,
|
|
62
|
+
onClick: function onClick() {
|
|
63
|
+
setActiveRetailer(retailer);
|
|
64
|
+
document.removeEventListener("click", closeRetailersPanel, false);
|
|
65
|
+
setRetailersPanel(false);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
})));
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
exports.RetailerSelector = RetailerSelector;
|
|
@@ -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 position: relative;\n .retailers-panel {\n background: ", ";\n border: 1px solid ", ";\n box-sizing: border-box;\n box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.25);\n border-radius: 4px;\n padding: 10px;\n position: absolute;\n top: calc(100% + 10px);\n right: 0;\n z-index: 10;\n }\n"])), _variables.GlobalColors.s2, _variables.GlobalColors.s3);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -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.default = exports.SidebarNotificationDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _index = require("./index");
|
|
11
|
+
|
|
12
|
+
var _defaultProfileImage = _interopRequireDefault(require("../../../assets/images/defaultImages/defaultProfileImage.svg"));
|
|
13
|
+
|
|
14
|
+
var _default = {
|
|
15
|
+
title: "Components/molecules/SidebarNotification",
|
|
16
|
+
component: _index.SidebarNotification,
|
|
17
|
+
argTypes: {
|
|
18
|
+
showSidebar: {
|
|
19
|
+
options: [true, false],
|
|
20
|
+
control: {
|
|
21
|
+
type: "boolean"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.default = _default;
|
|
27
|
+
var showSidebar = false;
|
|
28
|
+
|
|
29
|
+
var setShowSidebar = function setShowSidebar(value) {
|
|
30
|
+
showSidebar = value;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
var Template = function Template(args) {
|
|
34
|
+
return /*#__PURE__*/React.createElement(_index.SidebarNotification, args);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
var SidebarNotificationDefault = Template.bind({});
|
|
38
|
+
exports.SidebarNotificationDefault = SidebarNotificationDefault;
|
|
39
|
+
SidebarNotificationDefault.args = {
|
|
40
|
+
array: [{
|
|
41
|
+
dates: "2/18/2022",
|
|
42
|
+
notifications: [{
|
|
43
|
+
profilePicture: _defaultProfileImage.default,
|
|
44
|
+
notification: "ODT 23441244",
|
|
45
|
+
newNotification: true
|
|
46
|
+
}, {
|
|
47
|
+
profilePicture: _defaultProfileImage.default,
|
|
48
|
+
notification: "ODT 23441244",
|
|
49
|
+
newNotification: true
|
|
50
|
+
}]
|
|
51
|
+
}, {
|
|
52
|
+
dates: "2/17/2022",
|
|
53
|
+
notifications: [{
|
|
54
|
+
profilePicture: _defaultProfileImage.default,
|
|
55
|
+
notification: "ODT 23441244",
|
|
56
|
+
newNotification: true
|
|
57
|
+
}, {
|
|
58
|
+
profilePicture: _defaultProfileImage.default,
|
|
59
|
+
notification: "ODT 23441244",
|
|
60
|
+
newNotification: true
|
|
61
|
+
}]
|
|
62
|
+
}, {
|
|
63
|
+
dates: "2/16/2022",
|
|
64
|
+
notifications: [{
|
|
65
|
+
profilePicture: _defaultProfileImage.default,
|
|
66
|
+
notification: "ODT 23441244",
|
|
67
|
+
newNotification: true
|
|
68
|
+
}, {
|
|
69
|
+
profilePicture: _defaultProfileImage.default,
|
|
70
|
+
notification: "ODT 23441244",
|
|
71
|
+
newNotification: true
|
|
72
|
+
}]
|
|
73
|
+
}, {
|
|
74
|
+
dates: "2/14/2022",
|
|
75
|
+
notifications: [{
|
|
76
|
+
profilePicture: _defaultProfileImage.default,
|
|
77
|
+
notification: "ODT 23441244",
|
|
78
|
+
newNotification: true
|
|
79
|
+
}, {
|
|
80
|
+
profilePicture: _defaultProfileImage.default,
|
|
81
|
+
notification: "ODT 23441244",
|
|
82
|
+
newNotification: true
|
|
83
|
+
}]
|
|
84
|
+
}, {
|
|
85
|
+
dates: "2/17/2022",
|
|
86
|
+
notifications: [{
|
|
87
|
+
profilePicture: _defaultProfileImage.default,
|
|
88
|
+
notification: "ODT 23441244",
|
|
89
|
+
newNotification: true
|
|
90
|
+
}, {
|
|
91
|
+
profilePicture: _defaultProfileImage.default,
|
|
92
|
+
notification: "ODT 23441244",
|
|
93
|
+
newNotification: true
|
|
94
|
+
}]
|
|
95
|
+
}],
|
|
96
|
+
setShowSidebar: setShowSidebar,
|
|
97
|
+
showSidebar: showSidebar
|
|
98
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
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.SidebarNotification = void 0;
|
|
9
|
+
|
|
10
|
+
var _styles = require("./styles");
|
|
11
|
+
|
|
12
|
+
var _index = require("../../atoms/ScreenHeader/index");
|
|
13
|
+
|
|
14
|
+
var _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
16
|
+
var _index2 = require("../../atoms/Avatar/index");
|
|
17
|
+
|
|
18
|
+
var _productNotification = _interopRequireDefault(require("../../../assets/images/productNotification/productNotification.svg"));
|
|
19
|
+
|
|
20
|
+
var _GeneralButton = require("../../atoms/GeneralButton");
|
|
21
|
+
|
|
22
|
+
var _Notification = require("../../atoms/Notification");
|
|
23
|
+
|
|
24
|
+
var _react = require("react");
|
|
25
|
+
|
|
26
|
+
var SidebarNotification = function SidebarNotification(_ref) {
|
|
27
|
+
var _ref$array = _ref.array,
|
|
28
|
+
array = _ref$array === void 0 ? [] : _ref$array,
|
|
29
|
+
showSidebar = _ref.showSidebar,
|
|
30
|
+
setShowSidebar = _ref.setShowSidebar;
|
|
31
|
+
var sidebar = (0, _react.useRef)(null);
|
|
32
|
+
|
|
33
|
+
var closeSidebar = function closeSidebar(e) {
|
|
34
|
+
if (!e.target.closest("#side-bar") && showSidebar) {
|
|
35
|
+
document.removeEventListener("click", closeSidebar, false);
|
|
36
|
+
sidebar.current.classList.remove("active");
|
|
37
|
+
setTimeout(function () {
|
|
38
|
+
setShowSidebar(false);
|
|
39
|
+
}, 500);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
(0, _react.useEffect)(function () {
|
|
44
|
+
if (showSidebar) {
|
|
45
|
+
document.addEventListener("click", closeSidebar, false);
|
|
46
|
+
sidebar.current.classList.add("active");
|
|
47
|
+
}
|
|
48
|
+
}, [showSidebar]);
|
|
49
|
+
|
|
50
|
+
var comparisonDate = function comparisonDate(dates) {
|
|
51
|
+
var dateActual = new Date();
|
|
52
|
+
var dateComparison = new Date(dates);
|
|
53
|
+
var date = "";
|
|
54
|
+
|
|
55
|
+
if (dateActual.toDateString() === dateComparison.toDateString()) {
|
|
56
|
+
date = "Hoy";
|
|
57
|
+
} else if (dateActual.getFullYear() === dateComparison.getFullYear() && dateActual.getMonth() === dateComparison.getMonth() && dateActual.getDate() - 1 === dateComparison.getDate()) {
|
|
58
|
+
date = "Ayer";
|
|
59
|
+
} else {
|
|
60
|
+
date = dateComparison.toLocaleDateString();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return date;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, showSidebar && /*#__PURE__*/React.createElement(_styles.Container, {
|
|
67
|
+
id: "side-bar",
|
|
68
|
+
ref: sidebar
|
|
69
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
70
|
+
className: "notification-header"
|
|
71
|
+
}, /*#__PURE__*/React.createElement(_index2.Avatar, {
|
|
72
|
+
image: _productNotification.default,
|
|
73
|
+
imageType: "retailer-image",
|
|
74
|
+
altText: "Notification Picture"
|
|
75
|
+
}), /*#__PURE__*/React.createElement(_index.ScreenHeader, {
|
|
76
|
+
headerType: "product-name-header",
|
|
77
|
+
text: "Notificaciones",
|
|
78
|
+
color: "#867586"
|
|
79
|
+
}), /*#__PURE__*/React.createElement(_GeneralButton.Button, {
|
|
80
|
+
buttonType: "close-button"
|
|
81
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
82
|
+
className: "scroll"
|
|
83
|
+
}, array === null || array === void 0 ? void 0 : array.map(function (element, index) {
|
|
84
|
+
var _element$notification;
|
|
85
|
+
|
|
86
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
87
|
+
className: "date-notification",
|
|
88
|
+
key: index + "-" + (element === null || element === void 0 ? void 0 : element.dates)
|
|
89
|
+
}, /*#__PURE__*/React.createElement(_index.ScreenHeader, {
|
|
90
|
+
headerType: "input-name-header",
|
|
91
|
+
text: comparisonDate(element === null || element === void 0 ? void 0 : element.dates),
|
|
92
|
+
color: "#6A5880",
|
|
93
|
+
FontFamily: _variables.FontFamily.AvenirNext
|
|
94
|
+
}), element === null || element === void 0 ? void 0 : (_element$notification = element.notifications) === null || _element$notification === void 0 ? void 0 : _element$notification.map(function (notification, index) {
|
|
95
|
+
return /*#__PURE__*/React.createElement(_Notification.Notification, {
|
|
96
|
+
key: index,
|
|
97
|
+
profilePicture: notification === null || notification === void 0 ? void 0 : notification.profilePicture,
|
|
98
|
+
notification: notification === null || notification === void 0 ? void 0 : notification.notification,
|
|
99
|
+
newNotification: notification === null || notification === void 0 ? void 0 : notification.newNotification
|
|
100
|
+
});
|
|
101
|
+
}));
|
|
102
|
+
}))), " ");
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
exports.SidebarNotification = SidebarNotification;
|
|
@@ -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 position: absolute;\n right: 0;\n background-color: #f9f9fc;\n overflow: hidden;\n width: 380px;\n height: 100vh;\n padding: 10px;\n border: none;\n box-shadow: -3px 0px 4px rgba(0, 0, 0, 0.25);\n right: -100%;\n transition: right linear 1s;\n &.active {\n right: 0;\n } \n /*\n clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);\n transition: clip-path linear 1s;\n &.active {\n clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);\n } */\n .notification-header {\n display: flex;\n justify-content: space-between;\n .retailer-image {\n margin-left: 10px;\n }\n .product-name-header {\n text-align: left;\n flex: 1;\n line-height: 50px;\n margin-left: 13px;\n }\n .close-button {\n height: 23px;\n width: 23px;\n padding: 3px;\n border: 1px solid #ededed;\n border-radius: 3px;\n background-size: 23px;\n }\n }\n .scroll {\n overflow: auto;\n height: 85vh;\n .date-notification {\n margin-top: 10px;\n .input-name-header {\n font-weight: 600;\n display: flex;\n justify-content: flex-end;\n margin-right: 25px;\n }\n .new-notification {\n margin-top: 7px;\n width: 100%;\n }\n }\n }\n"])));
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -23,15 +23,22 @@ var _react = require("react");
|
|
|
23
23
|
|
|
24
24
|
var _index3 = require("../../atoms/AsignationOption/index");
|
|
25
25
|
|
|
26
|
+
var _data = require("../../../global-files/data");
|
|
27
|
+
|
|
26
28
|
var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
27
29
|
var _ref$status = _ref.status,
|
|
28
30
|
status = _ref$status === void 0 ? "-" : _ref$status,
|
|
29
|
-
src = _ref.src,
|
|
30
31
|
imagesSection = _ref.imagesSection,
|
|
31
32
|
setImageLayout = _ref.setImageLayout,
|
|
32
33
|
asignationsList = _ref.asignationsList,
|
|
33
34
|
_ref$percent = _ref.percent,
|
|
34
35
|
percent = _ref$percent === void 0 ? 0 : _ref$percent,
|
|
36
|
+
activeTab = _ref.activeTab,
|
|
37
|
+
deleteImages = _ref.deleteImages,
|
|
38
|
+
saveDatasheets = _ref.saveDatasheets,
|
|
39
|
+
saveDescriptions = _ref.saveDescriptions,
|
|
40
|
+
updateImages = _ref.updateImages,
|
|
41
|
+
assignationsImages = _ref.assignationsImages,
|
|
35
42
|
_ref$id = _ref.id,
|
|
36
43
|
id = _ref$id === void 0 ? "default-id" : _ref$id;
|
|
37
44
|
|
|
@@ -58,24 +65,56 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
|
58
65
|
}
|
|
59
66
|
}, [showAsignationPanel]);
|
|
60
67
|
return /*#__PURE__*/React.createElement(_styles.Container, {
|
|
61
|
-
onClick: function onClick() {
|
|
62
|
-
setShowAsignationPanel(true);
|
|
63
|
-
},
|
|
64
68
|
id: id
|
|
65
|
-
},
|
|
69
|
+
}, /*#__PURE__*/React.createElement(_GeneralButton.Button, {
|
|
70
|
+
buttonType: "circular-button save-button",
|
|
71
|
+
onClick: function onClick() {
|
|
72
|
+
switch (activeTab) {
|
|
73
|
+
case "Descripción":
|
|
74
|
+
saveDescriptions && saveDescriptions();
|
|
75
|
+
break;
|
|
76
|
+
|
|
77
|
+
case "Ficha técnica":
|
|
78
|
+
saveDatasheets && saveDatasheets();
|
|
79
|
+
break;
|
|
80
|
+
|
|
81
|
+
case "Imágenes":
|
|
82
|
+
updateImages && updateImages();
|
|
83
|
+
break;
|
|
84
|
+
|
|
85
|
+
default:
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}), imagesSection && /*#__PURE__*/React.createElement("div", {
|
|
90
|
+
className: "images-buttons"
|
|
91
|
+
}, /*#__PURE__*/React.createElement(_GeneralButton.Button, {
|
|
92
|
+
buttonType: "circular-button delete-button",
|
|
93
|
+
onClick: function onClick() {
|
|
94
|
+
deleteImages && deleteImages();
|
|
95
|
+
}
|
|
96
|
+
}), /*#__PURE__*/React.createElement(_GeneralButton.Button, {
|
|
66
97
|
buttonType: layout ? "grid-layout" : "row-layout",
|
|
67
98
|
onClick: function onClick() {
|
|
68
99
|
setLayout(!layout);
|
|
69
|
-
setImageLayout(!layout);
|
|
100
|
+
setImageLayout && setImageLayout(!layout);
|
|
70
101
|
}
|
|
71
|
-
}), /*#__PURE__*/React.createElement(_index2.StatusTag, {
|
|
102
|
+
})), /*#__PURE__*/React.createElement(_index2.StatusTag, {
|
|
72
103
|
statusType: status,
|
|
73
104
|
ovalForm: true
|
|
74
|
-
}), /*#__PURE__*/React.createElement(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
105
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
106
|
+
className: "assignations-container"
|
|
107
|
+
}, assignationsImages === null || assignationsImages === void 0 ? void 0 : assignationsImages.map(function (assignation, index) {
|
|
108
|
+
return /*#__PURE__*/React.createElement(_Avatar.Avatar, {
|
|
109
|
+
key: index + "-" + assignation,
|
|
110
|
+
imageType: "small-image",
|
|
111
|
+
image: (0, _data.getProfilePicture)(assignation, 20, 20),
|
|
112
|
+
altText: "user profile image",
|
|
113
|
+
onClick: function onClick() {
|
|
114
|
+
setShowAsignationPanel(true);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
})), /*#__PURE__*/React.createElement(_index.ScreenHeader, {
|
|
79
118
|
text: "Asig.",
|
|
80
119
|
color: "#969696",
|
|
81
120
|
fontFamily: "Avenir Next",
|
|
@@ -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 align-items: center;\n position: relative;\n\n > * + * {\n margin-left: 8px;\n }\n\n .asignation-panel {\n background: ", ";\n border: 1px solid ", ";\n box-sizing: border-box;\n box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.25);\n border-radius: 4px;\n padding: 10px;\n position: absolute;\n top: calc(100% + 10px);\n right: 0;\n\n .asignation-header {\n display: flex;\n justify-content: space-between;\n\n .asignation-status,\n .asignation-percent {\n & > p {\n font-family: ", ";\n font-weight: 500;\n font-size: 14px;\n line-height: 16px;\n color: ", ";\n }\n }\n\n .asignation-percent {\n text-align: right;\n }\n\n & + * {\n margin-top: 10px;\n }\n }\n\n .asignations-list {\n min-height: 40px;\n border-bottom: 1px solid ", ";\n\n .no-asignations {\n padding: 5px;\n font-family: ", ";\n font-weight: 500;\n font-size: 14px;\n line-height: 16px;\n color: ", ";\n }\n\n & + * {\n margin-top: 10px;\n }\n }\n }\n"])), _variables.GlobalColors.s2, _variables.GlobalColors.s3, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5, _variables.GlobalColors.s3, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5);
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n position: relative;\n\n > * + * {\n margin-left: 8px;\n }\n\n .images-buttons {\n button + * {\n margin-left: 8px;\n }\n }\n\n .assignations-container {\n display: flex;\n }\n\n .asignation-panel {\n background: ", ";\n border: 1px solid ", ";\n box-sizing: border-box;\n box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.25);\n border-radius: 4px;\n padding: 10px;\n position: absolute;\n top: calc(100% + 10px);\n right: 0;\n\n .asignation-header {\n display: flex;\n justify-content: space-between;\n\n .asignation-status,\n .asignation-percent {\n & > p {\n font-family: ", ";\n font-weight: 500;\n font-size: 14px;\n line-height: 16px;\n color: ", ";\n }\n }\n\n .asignation-percent {\n text-align: right;\n }\n\n & + * {\n margin-top: 10px;\n }\n }\n\n .asignations-list {\n min-height: 40px;\n border-bottom: 1px solid ", ";\n\n .no-asignations {\n padding: 5px;\n font-family: ", ";\n font-weight: 500;\n font-size: 14px;\n line-height: 16px;\n color: ", ";\n }\n\n & + * {\n margin-top: 10px;\n }\n }\n }\n"])), _variables.GlobalColors.s2, _variables.GlobalColors.s3, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5, _variables.GlobalColors.s3, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -14,15 +14,16 @@ var _StatusAsignationInfo = require("../StatusAsignationInfo");
|
|
|
14
14
|
var _variables = require("../../../global-files/variables");
|
|
15
15
|
|
|
16
16
|
var TableHeader = function TableHeader(_ref) {
|
|
17
|
-
var
|
|
18
|
-
activeImage = _ref.activeImage
|
|
17
|
+
var imagesStatus = _ref.imagesStatus,
|
|
18
|
+
activeImage = _ref.activeImage,
|
|
19
|
+
assignationsImages = _ref.assignationsImages;
|
|
19
20
|
return /*#__PURE__*/React.createElement(_styles.Container, null, /*#__PURE__*/React.createElement(_ScreenHeader.ScreenHeader, {
|
|
20
21
|
text: activeImage === null || activeImage === void 0 ? void 0 : activeImage.name,
|
|
21
22
|
color: _variables.GlobalColors.s5,
|
|
22
23
|
headerType: "input-name-header"
|
|
23
24
|
}), /*#__PURE__*/React.createElement(_StatusAsignationInfo.StatusAsignationInfo, {
|
|
24
|
-
status:
|
|
25
|
-
|
|
25
|
+
status: imagesStatus,
|
|
26
|
+
assignationsImages: assignationsImages
|
|
26
27
|
}));
|
|
27
28
|
};
|
|
28
29
|
|
|
@@ -16,7 +16,8 @@ var _TabSection = require("../../atoms/TabSection");
|
|
|
16
16
|
var _react = require("react");
|
|
17
17
|
|
|
18
18
|
var TabsMenu = function TabsMenu(_ref) {
|
|
19
|
-
var tabsSections = _ref.tabsSections,
|
|
19
|
+
var _ref$tabsSections = _ref.tabsSections,
|
|
20
|
+
tabsSections = _ref$tabsSections === void 0 ? {} : _ref$tabsSections,
|
|
20
21
|
setImagesSection = _ref.setImagesSection,
|
|
21
22
|
setActiveTab = _ref.setActiveTab;
|
|
22
23
|
|
|
@@ -25,7 +26,8 @@ var TabsMenu = function TabsMenu(_ref) {
|
|
|
25
26
|
sections = _useState2[0],
|
|
26
27
|
setSections = _useState2[1];
|
|
27
28
|
|
|
28
|
-
var activeSection = function activeSection(key
|
|
29
|
+
var activeSection = function activeSection(key) {
|
|
30
|
+
var array = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
29
31
|
var tempArray = {};
|
|
30
32
|
setImagesSection(key === "Imágenes");
|
|
31
33
|
Object.keys(array).forEach(function (section) {
|
|
@@ -15,17 +15,42 @@ var TagAndInput = function TagAndInput(_ref) {
|
|
|
15
15
|
var inputType = _ref.inputType,
|
|
16
16
|
label = _ref.label,
|
|
17
17
|
value = _ref.value,
|
|
18
|
-
inputPlaceHolder = _ref.inputPlaceHolder
|
|
18
|
+
inputPlaceHolder = _ref.inputPlaceHolder,
|
|
19
|
+
inputId = _ref.inputId,
|
|
20
|
+
updatedDescriptions = _ref.updatedDescriptions,
|
|
21
|
+
setUpdatedDescriptions = _ref.setUpdatedDescriptions,
|
|
22
|
+
updatedDatasheets = _ref.updatedDatasheets,
|
|
23
|
+
setUpdatedDatasheets = _ref.setUpdatedDatasheets,
|
|
24
|
+
articleId = _ref.articleId,
|
|
25
|
+
version = _ref.version,
|
|
26
|
+
index = _ref.index,
|
|
27
|
+
isRequired = _ref.isRequired,
|
|
28
|
+
dinamicHeight = _ref.dinamicHeight,
|
|
29
|
+
inputCols = _ref.inputCols,
|
|
30
|
+
inputRows = _ref.inputRows;
|
|
19
31
|
return /*#__PURE__*/React.createElement(_styles.Container, {
|
|
20
32
|
inputType: inputType,
|
|
21
|
-
className: "input-container"
|
|
33
|
+
className: "input-container",
|
|
34
|
+
key: "generalTagInput-".concat(inputType)
|
|
22
35
|
}, /*#__PURE__*/React.createElement(_index.ScreenHeader, {
|
|
23
36
|
text: label,
|
|
24
37
|
headerType: "input-name-header"
|
|
25
38
|
}), /*#__PURE__*/React.createElement(_index2.GeneralInput, {
|
|
39
|
+
inputId: inputId,
|
|
26
40
|
inputType: inputType,
|
|
27
41
|
inputValue: value,
|
|
28
|
-
|
|
42
|
+
index: index,
|
|
43
|
+
isRequired: isRequired,
|
|
44
|
+
inputPlaceholder: inputPlaceHolder,
|
|
45
|
+
updatedDescriptions: updatedDescriptions,
|
|
46
|
+
setUpdatedDescriptions: setUpdatedDescriptions,
|
|
47
|
+
updatedDatasheets: updatedDatasheets,
|
|
48
|
+
setUpdatedDatasheets: setUpdatedDatasheets,
|
|
49
|
+
articleId: articleId,
|
|
50
|
+
version: version,
|
|
51
|
+
dinamicHeight: dinamicHeight,
|
|
52
|
+
inputCols: inputCols,
|
|
53
|
+
inputRows: inputRows
|
|
29
54
|
}));
|
|
30
55
|
};
|
|
31
56
|
|
|
@@ -15,7 +15,7 @@ var _templateObject;
|
|
|
15
15
|
|
|
16
16
|
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n & > :first-child {\n & + * {\n margin-top: ", "px;\n }\n }\n"])), function (_ref) {
|
|
17
17
|
var inputType = _ref.inputType;
|
|
18
|
-
return inputType
|
|
18
|
+
return inputType !== "textarea" ? 4 : 15;
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
exports.Container = Container;
|
|
@@ -14,21 +14,45 @@ var _FeaturesBar = require("../../molecules/FeaturesBar");
|
|
|
14
14
|
var _AvatarAndValidation = require("../../molecules/AvatarAndValidation");
|
|
15
15
|
|
|
16
16
|
var FullProductNameHeader = function FullProductNameHeader(_ref) {
|
|
17
|
-
var
|
|
17
|
+
var _headerData$article, _headerData$article2, _headerData$article3, _headerData$article4, _headerData$article5;
|
|
18
|
+
|
|
19
|
+
var headerData = _ref.headerData,
|
|
20
|
+
percent = _ref.percent,
|
|
21
|
+
activeRetailer = _ref.activeRetailer,
|
|
22
|
+
setActiveRetailer = _ref.setActiveRetailer,
|
|
23
|
+
approveRejectButtons = _ref.approveRejectButtons,
|
|
24
|
+
sendToFacilitator = _ref.sendToFacilitator,
|
|
25
|
+
auditorAssigned = _ref.auditorAssigned,
|
|
26
|
+
userAssigned = _ref.userAssigned;
|
|
18
27
|
return /*#__PURE__*/React.createElement(_styles.Container, null, /*#__PURE__*/React.createElement(_ProductNameHeader.ProductNameHeader, {
|
|
19
|
-
productName: headerData === null || headerData === void 0 ? void 0 : headerData.name,
|
|
28
|
+
productName: headerData === null || headerData === void 0 ? void 0 : (_headerData$article = headerData.article) === null || _headerData$article === void 0 ? void 0 : _headerData$article.name,
|
|
20
29
|
statusType: headerData === null || headerData === void 0 ? void 0 : headerData.status,
|
|
21
|
-
percent:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
date: headerData === null || headerData === void 0 ? void 0 : headerData.date
|
|
30
|
+
percent: percent,
|
|
31
|
+
priority: headerData === null || headerData === void 0 ? void 0 : headerData.prio,
|
|
32
|
+
date: new Date(headerData === null || headerData === void 0 ? void 0 : (_headerData$article2 = headerData.article) === null || _headerData$article2 === void 0 ? void 0 : _headerData$article2.timestamp).toLocaleDateString()
|
|
25
33
|
}), /*#__PURE__*/React.createElement("div", {
|
|
26
34
|
className: "features-bar-container"
|
|
27
35
|
}, /*#__PURE__*/React.createElement(_FeaturesBar.FeaturesBar, {
|
|
28
|
-
features:
|
|
36
|
+
features: [{
|
|
37
|
+
feature: "Categoría",
|
|
38
|
+
value: headerData === null || headerData === void 0 ? void 0 : (_headerData$article3 = headerData.article) === null || _headerData$article3 === void 0 ? void 0 : _headerData$article3.category
|
|
39
|
+
}, {
|
|
40
|
+
feature: "Prov",
|
|
41
|
+
value: headerData === null || headerData === void 0 ? void 0 : (_headerData$article4 = headerData.article) === null || _headerData$article4 === void 0 ? void 0 : _headerData$article4.company_name
|
|
42
|
+
}, {
|
|
43
|
+
feature: "UPC",
|
|
44
|
+
value: headerData === null || headerData === void 0 ? void 0 : (_headerData$article5 = headerData.article) === null || _headerData$article5 === void 0 ? void 0 : _headerData$article5.upc
|
|
45
|
+
}]
|
|
29
46
|
}), /*#__PURE__*/React.createElement(_AvatarAndValidation.AvatarAndValidation, {
|
|
47
|
+
retailers: headerData === null || headerData === void 0 ? void 0 : headerData.retailers,
|
|
30
48
|
avatarData: headerData === null || headerData === void 0 ? void 0 : headerData.avatarData,
|
|
31
|
-
validation: headerData === null || headerData === void 0 ? void 0 : headerData.validation
|
|
49
|
+
validation: headerData === null || headerData === void 0 ? void 0 : headerData.validation,
|
|
50
|
+
activeRetailer: activeRetailer,
|
|
51
|
+
setActiveRetailer: setActiveRetailer,
|
|
52
|
+
approveRejectButtons: approveRejectButtons,
|
|
53
|
+
sendToFacilitator: sendToFacilitator,
|
|
54
|
+
auditorAssigned: auditorAssigned,
|
|
55
|
+
userAssigned: userAssigned
|
|
32
56
|
})));
|
|
33
57
|
};
|
|
34
58
|
|
|
@@ -19,25 +19,37 @@ var _react = require("react");
|
|
|
19
19
|
|
|
20
20
|
var FullTabsMenu = function FullTabsMenu(_ref) {
|
|
21
21
|
var tabsSections = _ref.tabsSections,
|
|
22
|
-
status = _ref.status,
|
|
22
|
+
_ref$status = _ref.status,
|
|
23
|
+
status = _ref$status === void 0 ? "" : _ref$status,
|
|
23
24
|
profileImage = _ref.profileImage,
|
|
25
|
+
activeTab = _ref.activeTab,
|
|
24
26
|
setActiveTab = _ref.setActiveTab,
|
|
25
|
-
setImageLayout = _ref.setImageLayout
|
|
27
|
+
setImageLayout = _ref.setImageLayout,
|
|
28
|
+
saveDatasheets = _ref.saveDatasheets,
|
|
29
|
+
saveDescriptions = _ref.saveDescriptions,
|
|
30
|
+
updateImages = _ref.updateImages,
|
|
31
|
+
assignations = _ref.assignations;
|
|
26
32
|
|
|
27
33
|
var _useState = (0, _react.useState)(false),
|
|
28
34
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
29
35
|
imagesSection = _useState2[0],
|
|
30
|
-
setImagesSection = _useState2[1];
|
|
36
|
+
setImagesSection = _useState2[1]; //console.log(status);
|
|
37
|
+
|
|
31
38
|
|
|
32
39
|
return /*#__PURE__*/React.createElement(_styles.Container, null, /*#__PURE__*/React.createElement(_index.TabsMenu, {
|
|
33
40
|
tabsSections: tabsSections,
|
|
34
41
|
setImagesSection: setImagesSection,
|
|
35
42
|
setActiveTab: setActiveTab
|
|
36
43
|
}), /*#__PURE__*/React.createElement(_index2.StatusAsignationInfo, {
|
|
37
|
-
status: status,
|
|
44
|
+
status: status[activeTab],
|
|
45
|
+
activeTab: activeTab,
|
|
38
46
|
image: profileImage,
|
|
39
47
|
setImageLayout: setImageLayout,
|
|
40
|
-
imagesSection: imagesSection
|
|
48
|
+
imagesSection: imagesSection,
|
|
49
|
+
saveDatasheets: saveDatasheets,
|
|
50
|
+
saveDescriptions: saveDescriptions,
|
|
51
|
+
updateImages: updateImages,
|
|
52
|
+
assignationsImages: assignations[activeTab]
|
|
41
53
|
}));
|
|
42
54
|
};
|
|
43
55
|
|
|
@@ -13,6 +13,6 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
13
13
|
|
|
14
14
|
var _templateObject;
|
|
15
15
|
|
|
16
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n\n & + * {\n margin-top:
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n\n & + * {\n margin-top: 14px;\n }\n"])));
|
|
17
17
|
|
|
18
18
|
exports.Container = Container;
|