contentoh-components-library 10.0.0 → 11.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/ActivedFilter/ActivedFilter.stories.js +7 -1
- package/dist/components/atoms/ActivedFilter/index.js +12 -4
- package/dist/components/atoms/AsignationOption/AsignationOptions.stories.js +7 -1
- package/dist/components/atoms/AsignationOption/index.js +29 -22
- package/dist/components/atoms/AtomList/AtomList.stories.js +7 -1
- package/dist/components/atoms/AtomList/index.js +14 -9
- package/dist/components/atoms/Avatar/AsignationImage.stories.js +7 -1
- package/dist/components/atoms/Avatar/index.js +11 -8
- package/dist/components/atoms/Card/Card.stories.js +7 -1
- package/dist/components/atoms/Card/index.js +8 -4
- package/dist/components/atoms/CheckBox/CheckBox.stories.js +7 -1
- package/dist/components/atoms/CheckBox/index.js +16 -12
- package/dist/components/atoms/Commentary/index.js +7 -1
- package/dist/components/atoms/CustomerTypeImage/CustomerTypeImage.stories.js +7 -1
- package/dist/components/atoms/CustomerTypeImage/index.js +8 -6
- package/dist/components/atoms/DropDownButton/DropDownButton.stories.js +7 -1
- package/dist/components/atoms/DropDownButton/index.js +9 -6
- package/dist/components/atoms/EditField/EditField.stories.js +7 -1
- package/dist/components/atoms/EditField/index.js +17 -10
- package/dist/components/atoms/FeatureTag/FeatureTag.stories.js +7 -1
- package/dist/components/atoms/FeatureTag/index.js +11 -5
- package/dist/components/atoms/GeneralButton/GeneralButton.stories.js +7 -1
- package/dist/components/atoms/GeneralButton/index.js +13 -7
- package/dist/components/atoms/GeneralInput/GeneralInput.stories.js +7 -1
- package/dist/components/atoms/GeneralInput/index.js +21 -18
- package/dist/components/atoms/GeneralTextBox/GeneralTextBox.stories.js +7 -1
- package/dist/components/atoms/GeneralTextBox/index.js +12 -7
- package/dist/components/atoms/GenericModal/GenericModal.stories.js +46 -59
- package/dist/components/atoms/GenericModal/index.js +12 -7
- package/dist/components/atoms/GradientPanel/GradientPanel.stories.js +85 -80
- package/dist/components/atoms/GradientPanel/index.js +11 -7
- package/dist/components/atoms/Graphic/Graphic.stories.js +7 -1
- package/dist/components/atoms/Graphic/index.js +9 -5
- package/dist/components/atoms/Input/index.js +14 -7
- package/dist/components/atoms/LabelToInput/index.js +19 -13
- package/dist/components/atoms/LoadImageMenu/LoadImageMenu.stories.js +7 -1
- package/dist/components/atoms/LoadImageMenu/index.js +33 -22
- package/dist/components/atoms/LogoImage/LogoImage.stories.js +7 -1
- package/dist/components/atoms/LogoImage/index.js +8 -6
- package/dist/components/atoms/MenuNotification/MenuNotification.stories.js +7 -1
- package/dist/components/atoms/MenuNotification/index.js +21 -15
- package/dist/components/atoms/MenuProfile/MenuProfile.stories.js +7 -1
- package/dist/components/atoms/MenuProfile/index.js +25 -15
- package/dist/components/atoms/Notification/Notification.stories.js +5 -1
- package/dist/components/atoms/Notification/index.js +15 -9
- package/dist/components/atoms/Percent/Percent.stories.js +7 -1
- package/dist/components/atoms/Percent/index.js +21 -14
- package/dist/components/atoms/PriorityFlag/PriorityFlag.stories.js +7 -1
- package/dist/components/atoms/PriorityFlag/index.js +8 -4
- package/dist/components/atoms/ProductImage/ProductImage.stories.js +7 -1
- package/dist/components/atoms/ProductImage/index.js +11 -8
- package/dist/components/atoms/ProgressBar/ProgressBar.stories.js +7 -1
- package/dist/components/atoms/ProgressBar/index.js +8 -3
- package/dist/components/atoms/ScreenHeader/ScreenHeader.stories.js +7 -1
- package/dist/components/atoms/ScreenHeader/index.js +9 -3
- package/dist/components/atoms/Select/index.js +25 -20
- package/dist/components/atoms/SideMenuButton/SideMenuButton.stories.js +5 -1
- package/dist/components/atoms/SideMenuButton/index.js +10 -4
- package/dist/components/atoms/StatusTag/StatusTag.stories.js +7 -1
- package/dist/components/atoms/StatusTag/index.js +8 -3
- package/dist/components/atoms/TabSection/TabSection.stories.js +7 -1
- package/dist/components/atoms/TabSection/index.js +8 -3
- package/dist/components/atoms/ValidationPanel/ValidationPanel.stories.js +7 -1
- package/dist/components/atoms/ValidationPanel/index.js +39 -27
- package/dist/components/molecules/AddProvidersAndProducts/AddProvidersAndProducts.stories.js +5 -1
- package/dist/components/molecules/AddProvidersAndProducts/index.js +18 -12
- package/dist/components/molecules/AssignedWork/AssignedWork.stories.js +5 -1
- package/dist/components/molecules/AssignedWork/index.js +36 -30
- package/dist/components/molecules/AvatarAndValidation/AvatarAndValidation.stories.js +7 -1
- package/dist/components/molecules/AvatarAndValidation/index.js +22 -17
- package/dist/components/molecules/EditionActiveImage/EditionActiveImage.stories.js +7 -1
- package/dist/components/molecules/EditionActiveImage/index.js +14 -10
- package/dist/components/molecules/FeaturesBar/FeaturesBar.stories.js +7 -1
- package/dist/components/molecules/FeaturesBar/index.js +11 -9
- package/dist/components/molecules/GalleryElement/GalleryElement.stories.js +7 -1
- package/dist/components/molecules/GalleryElement/index.js +69 -55
- package/dist/components/molecules/GalleryHeader/GalleryHeader.stories.js +7 -1
- package/dist/components/molecules/GalleryHeader/index.js +28 -15
- package/dist/components/molecules/HeaderTop/HeaderTop.stories.js +7 -1
- package/dist/components/molecules/HeaderTop/index.js +10 -7
- package/dist/components/molecules/ImageSelector/ImageSelector.stories.js +7 -1
- package/dist/components/molecules/ImageSelector/index.js +15 -13
- package/dist/components/molecules/ParentComponent/ParentComponent.stories.js +10 -2
- package/dist/components/molecules/ParentComponent/index.js +9 -5
- package/dist/components/molecules/PayMethod/PayMethod.stories.js +7 -1
- package/dist/components/molecules/PayMethod/index.js +38 -33
- package/dist/components/molecules/PlanSelection/PlanSelection.stories.js +7 -1
- package/dist/components/molecules/PlanSelection/index.js +14 -11
- package/dist/components/molecules/ProductNameHeader/ProductNameHeader.stories.js +7 -1
- package/dist/components/molecules/ProductNameHeader/index.js +18 -14
- package/dist/components/molecules/ProductNotification/ProductNotification.stories.js +7 -1
- package/dist/components/molecules/ProductNotification/index.js +12 -9
- package/dist/components/molecules/ProfileHeader/ProfileHeader.stories.js +5 -1
- package/dist/components/molecules/ProfileHeader/index.js +21 -15
- package/dist/components/molecules/RetailerSelector/RetailerSelector.stories.js +7 -1
- package/dist/components/molecules/RetailerSelector/index.js +27 -24
- package/dist/components/molecules/SidebarNotification/SidebarNotification.stories.js +5 -1
- package/dist/components/molecules/SidebarNotification/index.js +43 -37
- package/dist/components/molecules/StatusAsignationInfo/StatusAsignationInfo.stories.js +7 -1
- package/dist/components/molecules/StatusAsignationInfo/index.js +104 -88
- package/dist/components/molecules/TableHeader/TableHeader.stories.js +7 -1
- package/dist/components/molecules/TableHeader/index.js +12 -8
- package/dist/components/molecules/TableRow/TableRow.stories.js +7 -1
- package/dist/components/molecules/TableRow/index.js +11 -7
- package/dist/components/molecules/TabsMenu/TabsMenu.stories.js +7 -1
- package/dist/components/molecules/TabsMenu/index.js +13 -10
- package/dist/components/molecules/TagAndInput/TagAndInput.stories.js +7 -1
- package/dist/components/molecules/TagAndInput/index.js +24 -22
- package/dist/components/organisms/FullProductNameHeader/FullProductNameHeader.stories.js +7 -1
- package/dist/components/organisms/FullProductNameHeader/index.js +35 -30
- package/dist/components/organisms/FullTabsMenu/FullTabsMenu.stories.js +7 -1
- package/dist/components/organisms/FullTabsMenu/index.js +19 -15
- package/dist/components/organisms/Fullplan/FullPlan.stories.js +7 -1
- package/dist/components/organisms/Fullplan/index.js +23 -15
- package/dist/components/organisms/ImageDataTable/ImageDataTable.stories.js +7 -1
- package/dist/components/organisms/ImageDataTable/index.js +74 -61
- package/dist/components/organisms/ImagePreviewer/ImagePreviewer.stories.js +7 -1
- package/dist/components/organisms/ImagePreviewer/index.js +12 -8
- package/dist/components/organisms/ImagesGroup/index.js +5 -1
- package/dist/components/organisms/InputGroup/InputGroup.stories.js +7 -1
- package/dist/components/organisms/InputGroup/index.js +39 -37
- package/dist/components/organisms/ProductImageModal/ProductImageModal.stories.js +7 -1
- package/dist/components/organisms/ProductImageModal/index.js +49 -40
- package/dist/components/pages/CustomerLogin/CustomerLogin.stories.js +52 -47
- package/dist/components/pages/CustomerLogin/index.js +18 -12
- package/dist/components/pages/CustomerPayMethod/CustomerPayMethod.stories.js +36 -28
- package/dist/components/pages/CustomerPayMethod/index.js +18 -12
- package/dist/components/pages/CustomerType/CustomerType.stories.js +21 -22
- package/dist/components/pages/CustomerType/index.js +18 -12
- package/dist/components/pages/OnboardPlan/OnboardPlan.stories.js +12 -9
- package/dist/components/pages/OnboardPlan/index.js +18 -12
- package/dist/components/pages/RetailerPlan/RetailerPlan.stories.js +13 -10
- package/dist/components/pages/RetailerPlan/index.js +18 -12
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +7 -1
- package/dist/components/pages/RetailerProductEdition/index.js +129 -110
- package/package.json +8 -1
- package/src/components/atoms/GeneralButton/index.js +1 -0
|
@@ -25,6 +25,8 @@ var _index3 = require("../../atoms/AsignationOption/index");
|
|
|
25
25
|
|
|
26
26
|
var _data = require("../../../global-files/data");
|
|
27
27
|
|
|
28
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
29
|
+
|
|
28
30
|
var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
29
31
|
var _ref$status = _ref.status,
|
|
30
32
|
status = _ref$status === void 0 ? "-" : _ref$status,
|
|
@@ -64,96 +66,110 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
|
64
66
|
document.addEventListener("click", closeAsignations, false);
|
|
65
67
|
}
|
|
66
68
|
}, [showAsignationPanel]);
|
|
67
|
-
return /*#__PURE__*/
|
|
68
|
-
id: id
|
|
69
|
-
|
|
70
|
-
|
|
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, {
|
|
97
|
-
buttonType: layout ? "grid-layout" : "row-layout",
|
|
98
|
-
onClick: function onClick() {
|
|
99
|
-
setLayout(!layout);
|
|
100
|
-
setImageLayout && setImageLayout(!layout);
|
|
101
|
-
}
|
|
102
|
-
})), /*#__PURE__*/React.createElement(_index2.StatusTag, {
|
|
103
|
-
statusType: status,
|
|
104
|
-
ovalForm: true
|
|
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",
|
|
69
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
70
|
+
id: id,
|
|
71
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
72
|
+
buttonType: "circular-button save-button",
|
|
113
73
|
onClick: function onClick() {
|
|
114
|
-
|
|
74
|
+
switch (activeTab) {
|
|
75
|
+
case "Descripción":
|
|
76
|
+
saveDescriptions && saveDescriptions();
|
|
77
|
+
break;
|
|
78
|
+
|
|
79
|
+
case "Ficha técnica":
|
|
80
|
+
saveDatasheets && saveDatasheets();
|
|
81
|
+
break;
|
|
82
|
+
|
|
83
|
+
case "Imágenes":
|
|
84
|
+
updateImages && updateImages();
|
|
85
|
+
break;
|
|
86
|
+
|
|
87
|
+
default:
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
115
90
|
}
|
|
116
|
-
})
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
91
|
+
}), imagesSection && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
92
|
+
className: "images-buttons",
|
|
93
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
94
|
+
buttonType: "circular-button delete-button",
|
|
95
|
+
onClick: function onClick() {
|
|
96
|
+
deleteImages && deleteImages();
|
|
97
|
+
}
|
|
98
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
99
|
+
buttonType: layout ? "grid-layout" : "row-layout",
|
|
100
|
+
onClick: function onClick() {
|
|
101
|
+
setLayout(!layout);
|
|
102
|
+
setImageLayout && setImageLayout(!layout);
|
|
103
|
+
}
|
|
104
|
+
})]
|
|
105
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StatusTag, {
|
|
106
|
+
statusType: status,
|
|
107
|
+
ovalForm: true
|
|
108
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
109
|
+
className: "assignations-container",
|
|
110
|
+
children: assignationsImages === null || assignationsImages === void 0 ? void 0 : assignationsImages.map(function (assignation, index) {
|
|
111
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
|
|
112
|
+
imageType: "small-image",
|
|
113
|
+
image: (0, _data.getProfilePicture)(assignation, 20, 20),
|
|
114
|
+
altText: "user profile image",
|
|
115
|
+
onClick: function onClick() {
|
|
116
|
+
setShowAsignationPanel(true);
|
|
117
|
+
}
|
|
118
|
+
}, index + "-" + assignation);
|
|
119
|
+
})
|
|
120
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
121
|
+
text: "Asig.",
|
|
122
|
+
color: "#969696",
|
|
123
|
+
fontFamily: "Avenir Next",
|
|
124
|
+
headerType: "input-name-header"
|
|
125
|
+
}), showAsignationPanel && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
126
|
+
className: "asignation-panel",
|
|
127
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
128
|
+
className: "asignation-header",
|
|
129
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
130
|
+
className: "asignation-status",
|
|
131
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
132
|
+
children: "Estatus"
|
|
133
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StatusTag, {
|
|
134
|
+
statusType: status,
|
|
135
|
+
ovalForm: true
|
|
136
|
+
})]
|
|
137
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
138
|
+
className: "asignation-percent",
|
|
139
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
140
|
+
children: "Estatus"
|
|
141
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
142
|
+
className: "percent",
|
|
143
|
+
children: [percent, "%"]
|
|
144
|
+
})]
|
|
145
|
+
})]
|
|
146
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
147
|
+
className: "asignations-list",
|
|
148
|
+
children: asignationsList !== undefined ? asignationsList.map(function (asigantion, index) {
|
|
149
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.AsignationOption, {
|
|
150
|
+
profileImage: asignation.image,
|
|
151
|
+
asignationType: asignation.asignationType,
|
|
152
|
+
name: asignation.name,
|
|
153
|
+
team: asigantion.team
|
|
154
|
+
});
|
|
155
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
156
|
+
className: "no-asignations",
|
|
157
|
+
children: "Sin personas para asignar"
|
|
158
|
+
})
|
|
159
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
160
|
+
className: "default-asignations-list",
|
|
161
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.AsignationOption, {
|
|
162
|
+
asignationType: "provider",
|
|
163
|
+
name: "Solicitar a",
|
|
164
|
+
team: "Proveedor"
|
|
165
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.AsignationOption, {
|
|
166
|
+
asignationType: "team",
|
|
167
|
+
name: "Solicitar a",
|
|
168
|
+
team: "Content-oh!"
|
|
169
|
+
})]
|
|
170
|
+
})]
|
|
171
|
+
})]
|
|
172
|
+
});
|
|
157
173
|
};
|
|
158
174
|
|
|
159
175
|
exports.StatusAsignationInfo = StatusAsignationInfo;
|
|
@@ -1,12 +1,18 @@
|
|
|
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.default = exports.TableHeaderDefault = void 0;
|
|
7
9
|
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
8
12
|
var _index = require("./index");
|
|
9
13
|
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
10
16
|
var _default = {
|
|
11
17
|
title: "Components/molecules/TableHeader",
|
|
12
18
|
component: _index.TableHeader
|
|
@@ -14,7 +20,7 @@ var _default = {
|
|
|
14
20
|
exports.default = _default;
|
|
15
21
|
|
|
16
22
|
var Template = function Template(args) {
|
|
17
|
-
return /*#__PURE__*/
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.TableHeader, (0, _objectSpread2.default)({}, args));
|
|
18
24
|
};
|
|
19
25
|
|
|
20
26
|
var TableHeaderDefault = Template.bind({});
|
|
@@ -13,18 +13,22 @@ var _StatusAsignationInfo = require("../StatusAsignationInfo");
|
|
|
13
13
|
|
|
14
14
|
var _variables = require("../../../global-files/variables");
|
|
15
15
|
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
|
|
16
18
|
var TableHeader = function TableHeader(_ref) {
|
|
17
19
|
var imagesStatus = _ref.imagesStatus,
|
|
18
20
|
activeImage = _ref.activeImage,
|
|
19
21
|
assignationsImages = _ref.assignationsImages;
|
|
20
|
-
return /*#__PURE__*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
23
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
24
|
+
text: activeImage === null || activeImage === void 0 ? void 0 : activeImage.name,
|
|
25
|
+
color: _variables.GlobalColors.s5,
|
|
26
|
+
headerType: "input-name-header"
|
|
27
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_StatusAsignationInfo.StatusAsignationInfo, {
|
|
28
|
+
status: imagesStatus,
|
|
29
|
+
assignationsImages: assignationsImages
|
|
30
|
+
})]
|
|
31
|
+
});
|
|
28
32
|
};
|
|
29
33
|
|
|
30
34
|
exports.TableHeader = TableHeader;
|
|
@@ -1,12 +1,18 @@
|
|
|
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.default = exports.TableRowDefault = void 0;
|
|
7
9
|
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
8
12
|
var _ = require(".");
|
|
9
13
|
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
10
16
|
var _default = {
|
|
11
17
|
title: "Components/molecules/TableRow",
|
|
12
18
|
component: _.TableRow,
|
|
@@ -22,7 +28,7 @@ var _default = {
|
|
|
22
28
|
exports.default = _default;
|
|
23
29
|
|
|
24
30
|
var Template = function Template(args) {
|
|
25
|
-
return /*#__PURE__*/
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_.TableRow, (0, _objectSpread2.default)({}, args));
|
|
26
32
|
};
|
|
27
33
|
|
|
28
34
|
var TableRowDefault = Template.bind({});
|
|
@@ -9,17 +9,21 @@ var _styles = require("./styles");
|
|
|
9
9
|
|
|
10
10
|
var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
11
11
|
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
|
|
12
14
|
var TableRow = function TableRow(_ref) {
|
|
13
15
|
var feature = _ref.feature,
|
|
14
16
|
value = _ref.value,
|
|
15
17
|
valueType = _ref.valueType;
|
|
16
|
-
return /*#__PURE__*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
19
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
20
|
+
headerType: "table-row-text",
|
|
21
|
+
text: feature
|
|
22
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
23
|
+
headerType: "table-row-text " + (valueType && "gray-table-row"),
|
|
24
|
+
text: value
|
|
25
|
+
})]
|
|
26
|
+
});
|
|
23
27
|
};
|
|
24
28
|
|
|
25
29
|
exports.TableRow = TableRow;
|
|
@@ -1,12 +1,18 @@
|
|
|
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.default = exports.TabsSectionDefault = void 0;
|
|
7
9
|
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
8
12
|
var _index = require("./index");
|
|
9
13
|
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
10
16
|
var _default = {
|
|
11
17
|
title: "Components/molecules/TabsMenu",
|
|
12
18
|
component: _index.TabsMenu
|
|
@@ -14,7 +20,7 @@ var _default = {
|
|
|
14
20
|
exports.default = _default;
|
|
15
21
|
|
|
16
22
|
var Template = function Template(args) {
|
|
17
|
-
return /*#__PURE__*/
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.TabsMenu, (0, _objectSpread2.default)({}, args));
|
|
18
24
|
};
|
|
19
25
|
|
|
20
26
|
var TabsSectionDefault = Template.bind({});
|
|
@@ -15,6 +15,8 @@ var _TabSection = require("../../atoms/TabSection");
|
|
|
15
15
|
|
|
16
16
|
var _react = require("react");
|
|
17
17
|
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
|
|
18
20
|
var TabsMenu = function TabsMenu(_ref) {
|
|
19
21
|
var _ref$tabsSections = _ref.tabsSections,
|
|
20
22
|
tabsSections = _ref$tabsSections === void 0 ? {} : _ref$tabsSections,
|
|
@@ -37,16 +39,17 @@ var TabsMenu = function TabsMenu(_ref) {
|
|
|
37
39
|
setSections(tempArray);
|
|
38
40
|
};
|
|
39
41
|
|
|
40
|
-
return /*#__PURE__*/
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
43
|
+
children: Object.keys(sections).map(function (key, index) {
|
|
44
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TabSection.TabSection, {
|
|
45
|
+
label: key,
|
|
46
|
+
active: sections[key],
|
|
47
|
+
onClick: function onClick() {
|
|
48
|
+
return activeSection(key, sections);
|
|
49
|
+
}
|
|
50
|
+
}, index);
|
|
51
|
+
})
|
|
52
|
+
});
|
|
50
53
|
};
|
|
51
54
|
|
|
52
55
|
exports.TabsMenu = TabsMenu;
|
|
@@ -1,12 +1,18 @@
|
|
|
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.default = exports.TextAreaType = exports.InputType = void 0;
|
|
7
9
|
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
8
12
|
var _index = require("./index");
|
|
9
13
|
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
10
16
|
var _default = {
|
|
11
17
|
title: "Components/molecules/TagAndInput",
|
|
12
18
|
component: _index.TagAndInput
|
|
@@ -14,7 +20,7 @@ var _default = {
|
|
|
14
20
|
exports.default = _default;
|
|
15
21
|
|
|
16
22
|
var Template = function Template(args) {
|
|
17
|
-
return /*#__PURE__*/
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.TagAndInput, (0, _objectSpread2.default)({}, args));
|
|
18
24
|
};
|
|
19
25
|
|
|
20
26
|
var InputType = Template.bind({});
|
|
@@ -11,6 +11,8 @@ var _index = require("../../atoms/ScreenHeader/index");
|
|
|
11
11
|
|
|
12
12
|
var _index2 = require("../../atoms/GeneralInput/index");
|
|
13
13
|
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
14
16
|
var TagAndInput = function TagAndInput(_ref) {
|
|
15
17
|
var inputType = _ref.inputType,
|
|
16
18
|
label = _ref.label,
|
|
@@ -28,30 +30,30 @@ var TagAndInput = function TagAndInput(_ref) {
|
|
|
28
30
|
dinamicHeight = _ref.dinamicHeight,
|
|
29
31
|
inputCols = _ref.inputCols,
|
|
30
32
|
inputRows = _ref.inputRows;
|
|
31
|
-
return /*#__PURE__*/
|
|
33
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
32
34
|
inputType: inputType,
|
|
33
35
|
className: "input-container",
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}));
|
|
36
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
37
|
+
text: label,
|
|
38
|
+
headerType: "input-name-header"
|
|
39
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.GeneralInput, {
|
|
40
|
+
inputId: inputId,
|
|
41
|
+
inputType: inputType,
|
|
42
|
+
inputValue: value,
|
|
43
|
+
index: index,
|
|
44
|
+
isRequired: isRequired,
|
|
45
|
+
inputPlaceholder: inputPlaceHolder,
|
|
46
|
+
updatedDescriptions: updatedDescriptions,
|
|
47
|
+
setUpdatedDescriptions: setUpdatedDescriptions,
|
|
48
|
+
updatedDatasheets: updatedDatasheets,
|
|
49
|
+
setUpdatedDatasheets: setUpdatedDatasheets,
|
|
50
|
+
articleId: articleId,
|
|
51
|
+
version: version,
|
|
52
|
+
dinamicHeight: dinamicHeight,
|
|
53
|
+
inputCols: inputCols,
|
|
54
|
+
inputRows: inputRows
|
|
55
|
+
})]
|
|
56
|
+
}, "generalTagInput-".concat(inputType));
|
|
55
57
|
};
|
|
56
58
|
|
|
57
59
|
exports.TagAndInput = TagAndInput;
|
|
@@ -1,12 +1,18 @@
|
|
|
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.default = exports.FullProductNameHeaderDefault = void 0;
|
|
7
9
|
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
8
12
|
var _index = require("./index");
|
|
9
13
|
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
10
16
|
var _default = {
|
|
11
17
|
title: "Components/organisms/FullProductNameHeader",
|
|
12
18
|
component: _index.FullProductNameHeader
|
|
@@ -14,7 +20,7 @@ var _default = {
|
|
|
14
20
|
exports.default = _default;
|
|
15
21
|
|
|
16
22
|
var Template = function Template(args) {
|
|
17
|
-
return /*#__PURE__*/
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.FullProductNameHeader, (0, _objectSpread2.default)({}, args));
|
|
18
24
|
};
|
|
19
25
|
|
|
20
26
|
var FullProductNameHeaderDefault = Template.bind({});
|
|
@@ -13,6 +13,8 @@ var _FeaturesBar = require("../../molecules/FeaturesBar");
|
|
|
13
13
|
|
|
14
14
|
var _AvatarAndValidation = require("../../molecules/AvatarAndValidation");
|
|
15
15
|
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
|
|
16
18
|
var FullProductNameHeader = function FullProductNameHeader(_ref) {
|
|
17
19
|
var _headerData$article, _headerData$article2, _headerData$article3, _headerData$article4, _headerData$article5;
|
|
18
20
|
|
|
@@ -24,36 +26,39 @@ var FullProductNameHeader = function FullProductNameHeader(_ref) {
|
|
|
24
26
|
sendToFacilitator = _ref.sendToFacilitator,
|
|
25
27
|
auditorAssigned = _ref.auditorAssigned,
|
|
26
28
|
userAssigned = _ref.userAssigned;
|
|
27
|
-
return /*#__PURE__*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
29
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
30
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProductNameHeader.ProductNameHeader, {
|
|
31
|
+
productName: headerData === null || headerData === void 0 ? void 0 : (_headerData$article = headerData.article) === null || _headerData$article === void 0 ? void 0 : _headerData$article.name,
|
|
32
|
+
statusType: headerData === null || headerData === void 0 ? void 0 : headerData.status,
|
|
33
|
+
percent: percent,
|
|
34
|
+
priority: headerData === null || headerData === void 0 ? void 0 : headerData.prio,
|
|
35
|
+
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()
|
|
36
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
37
|
+
className: "features-bar-container",
|
|
38
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_FeaturesBar.FeaturesBar, {
|
|
39
|
+
features: [{
|
|
40
|
+
feature: "Categoría",
|
|
41
|
+
value: headerData === null || headerData === void 0 ? void 0 : (_headerData$article3 = headerData.article) === null || _headerData$article3 === void 0 ? void 0 : _headerData$article3.category
|
|
42
|
+
}, {
|
|
43
|
+
feature: "Prov",
|
|
44
|
+
value: headerData === null || headerData === void 0 ? void 0 : (_headerData$article4 = headerData.article) === null || _headerData$article4 === void 0 ? void 0 : _headerData$article4.company_name
|
|
45
|
+
}, {
|
|
46
|
+
feature: "UPC",
|
|
47
|
+
value: headerData === null || headerData === void 0 ? void 0 : (_headerData$article5 = headerData.article) === null || _headerData$article5 === void 0 ? void 0 : _headerData$article5.upc
|
|
48
|
+
}]
|
|
49
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_AvatarAndValidation.AvatarAndValidation, {
|
|
50
|
+
retailers: headerData === null || headerData === void 0 ? void 0 : headerData.retailers,
|
|
51
|
+
avatarData: headerData === null || headerData === void 0 ? void 0 : headerData.avatarData,
|
|
52
|
+
validation: headerData === null || headerData === void 0 ? void 0 : headerData.validation,
|
|
53
|
+
activeRetailer: activeRetailer,
|
|
54
|
+
setActiveRetailer: setActiveRetailer,
|
|
55
|
+
approveRejectButtons: approveRejectButtons,
|
|
56
|
+
sendToFacilitator: sendToFacilitator,
|
|
57
|
+
auditorAssigned: auditorAssigned,
|
|
58
|
+
userAssigned: userAssigned
|
|
59
|
+
})]
|
|
60
|
+
})]
|
|
61
|
+
});
|
|
57
62
|
};
|
|
58
63
|
|
|
59
64
|
exports.FullProductNameHeader = FullProductNameHeader;
|
|
@@ -1,12 +1,18 @@
|
|
|
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.default = exports.FullTabsMenuDefault = void 0;
|
|
7
9
|
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
8
12
|
var _index = require("./index");
|
|
9
13
|
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
10
16
|
var _default = {
|
|
11
17
|
title: "Components/organisms/FullTabsMenu",
|
|
12
18
|
component: _index.FullTabsMenu
|
|
@@ -14,7 +20,7 @@ var _default = {
|
|
|
14
20
|
exports.default = _default;
|
|
15
21
|
|
|
16
22
|
var Template = function Template(args) {
|
|
17
|
-
return /*#__PURE__*/
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.FullTabsMenu, (0, _objectSpread2.default)({}, args));
|
|
18
24
|
};
|
|
19
25
|
|
|
20
26
|
var FullTabsMenuDefault = Template.bind({});
|