contentoh-components-library 21.2.98 → 21.2.100
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/.env.development +0 -3
- package/.env.production +23 -23
- package/dist/components/molecules/CustomSelect/CustomSelect.stories.js +22 -21
- package/dist/components/molecules/CustomSelect/SelectItem.js +1 -10
- package/dist/components/molecules/HeaderTop/index.js +5 -10
- package/dist/components/molecules/HeaderTop/styles.js +1 -1
- package/dist/components/organisms/OrderDetail/OrderDetail.stories.js +1 -1
- package/dist/components/organisms/OrderDetail/index.js +20 -11
- package/dist/components/organisms/OrderDetail/styles.js +1 -1
- package/dist/global-files/fonts.css +0 -12
- package/dist/global-files/variables.js +0 -2
- package/dist/index.js +46 -241
- package/package.json +1 -12
- package/src/components/molecules/CustomSelect/CustomSelect.stories.js +12 -20
- package/src/components/molecules/CustomSelect/SelectItem.js +0 -7
- package/src/components/molecules/HeaderTop/index.js +6 -11
- package/src/components/molecules/HeaderTop/styles.js +0 -4
- package/src/components/organisms/OrderDetail/OrderDetail.stories.js +1 -1
- package/src/components/organisms/OrderDetail/index.js +19 -12
- package/src/components/organisms/OrderDetail/styles.js +1 -0
- package/src/global-files/fonts.css +0 -12
- package/src/global-files/variables.js +0 -2
- package/src/index.js +0 -15
- package/src/assets/images/customSelect/starIcon.svg +0 -14
- package/src/assets/images/defaultImages/Spinner.gif +0 -0
- package/src/assets/images/defaultImages/notFound.svg +0 -124
- package/src/components/atoms/ButtonFileChooser/ButtonFileChooser.stories.js +0 -47
- package/src/components/atoms/ButtonFileChooser/index.js +0 -69
- package/src/components/atoms/ButtonFileChooser/styles.js +0 -4
- package/src/components/atoms/ButtonV2/ButtonV2.stories.js +0 -51
- package/src/components/atoms/ButtonV2/index.js +0 -79
- package/src/components/atoms/ButtonV2/styles.js +0 -195
- package/src/components/atoms/CustomIcon/CustomIcon.stories.js +0 -36
- package/src/components/atoms/CustomIcon/index.js +0 -41
- package/src/components/atoms/CustomIcon/styles.js +0 -85
- package/src/components/atoms/IconFile/IconFile.stories.js +0 -35
- package/src/components/atoms/IconFile/index.js +0 -119
- package/src/components/atoms/IconFile/styles.js +0 -67
- package/src/components/atoms/Image/Image.stories.js +0 -51
- package/src/components/atoms/Image/index.js +0 -55
- package/src/components/atoms/Image/styles.js +0 -34
- package/src/components/atoms/ImageLink/ImageLink.stories.js +0 -43
- package/src/components/atoms/ImageLink/index.js +0 -57
- package/src/components/atoms/ImageLink/styles.js +0 -30
- package/src/components/atoms/ImagePreview/ImagePreview.stories.js +0 -52
- package/src/components/atoms/ImagePreview/index.js +0 -191
- package/src/components/atoms/ImagePreview/styles.js +0 -77
- package/src/components/atoms/InputText/InputText.stories.js +0 -39
- package/src/components/atoms/InputText/index.js +0 -61
- package/src/components/atoms/InputText/styles.js +0 -89
- package/src/components/atoms/NotFound/NotFound.stories.js +0 -19
- package/src/components/atoms/NotFound/index.js +0 -52
- package/src/components/atoms/NotFound/styles.js +0 -55
- package/src/components/atoms/SelectItemV2/SelectItemV2.stories.js +0 -26
- package/src/components/atoms/SelectItemV2/index.js +0 -45
- package/src/components/atoms/SelectItemV2/styles.js +0 -55
- package/src/components/atoms/Tooltip/Tooltip.stories.js +0 -51
- package/src/components/atoms/Tooltip/index.js +0 -59
- package/src/components/atoms/Tooltip/styles.js +0 -42
- package/src/components/molecules/ButtonDownloadFile/DownloadFile.stories.js +0 -54
- package/src/components/molecules/ButtonDownloadFile/index.js +0 -111
- package/src/components/molecules/ButtonDownloadFile/styles.js +0 -66
- package/src/components/molecules/ImageTooltip/ImageTooltip.stories.js +0 -46
- package/src/components/molecules/ImageTooltip/index.js +0 -62
- package/src/components/molecules/ImageTooltip/styles.js +0 -18
- package/src/components/molecules/SelectV2/SelectV2.stories.js +0 -114
- package/src/components/molecules/SelectV2/index.js +0 -332
- package/src/components/molecules/SelectV2/styles.js +0 -100
- package/src/components/organisms/Chat/Chat.stories.js +0 -199
- package/src/components/organisms/Chat/ChatLists/ChatLists.stories.js +0 -65
- package/src/components/organisms/Chat/ChatLists/Rotoplas.jpeg +0 -0
- package/src/components/organisms/Chat/ChatLists/THD.png +0 -0
- package/src/components/organisms/Chat/ChatLists/index.js +0 -141
- package/src/components/organisms/Chat/ChatLists/styles.js +0 -162
- package/src/components/organisms/Chat/ContainerItems/ContainerItems.stories.js +0 -142
- package/src/components/organisms/Chat/ContainerItems/index.js +0 -549
- package/src/components/organisms/Chat/ContainerItems/styles.js +0 -328
- package/src/components/organisms/Chat/ContentChat/ContentChat.stories.js +0 -102
- package/src/components/organisms/Chat/ContentChat/Rotoplas.jpeg +0 -0
- package/src/components/organisms/Chat/ContentChat/THD.png +0 -0
- package/src/components/organisms/Chat/ContentChat/index.js +0 -900
- package/src/components/organisms/Chat/ContentChat/styles.js +0 -41
- package/src/components/organisms/Chat/Footer/Footer.stories.js +0 -22
- package/src/components/organisms/Chat/Footer/index.js +0 -669
- package/src/components/organisms/Chat/Footer/styles.js +0 -286
- package/src/components/organisms/Chat/Header/Header.stories.js +0 -66
- package/src/components/organisms/Chat/Header/index.js +0 -94
- package/src/components/organisms/Chat/Header/styles.js +0 -49
- package/src/components/organisms/Chat/index.js +0 -294
- package/src/components/organisms/Chat/styles.js +0 -42
- package/src/components/organisms/Modal/Modal.stories.js +0 -55
- package/src/components/organisms/Modal/index.js +0 -97
- package/src/components/organisms/Modal/styles.js +0 -103
- package/src/global-files/handle_http.js +0 -231
- package/src/global-files/utils.js +0 -300
package/.env.development
CHANGED
|
@@ -21,9 +21,6 @@ REACT_APP_READ_REQUIRED_ORDERS=https://fc069ovhuk.execute-api.us-east-1.amazonaw
|
|
|
21
21
|
REACT_APP_CATEGORY_ENDPOINT=https://fc069ovhuk.execute-api.us-east-1.amazonaws.com/dev/categories
|
|
22
22
|
REACT_APP_READ_PROVIDERS=https://fc069ovhuk.execute-api.us-east-1.amazonaws.com/dev/providers
|
|
23
23
|
REACT_APP_PENDING_INVITATIONS=https://fc069ovhuk.execute-api.us-east-1.amazonaws.com/dev/pending-invitations
|
|
24
|
-
REACT_APP_PRODUCTS_CHAT_ENDPOINT=https://fc069ovhuk.execute-api.us-east-1.amazonaws.com/dev/products-chat
|
|
25
|
-
REACT_APP_TICKETS_CHAT_ENDPOINT=https://ocqbzaa4a2.execute-api.us-east-1.amazonaws.com/dev/ticket-chat
|
|
26
|
-
REACT_APP_IMAGES_ENDPOINT=https://content-management-images.s3.amazonaws.com
|
|
27
24
|
|
|
28
25
|
REACT_APP_IMAGES_BUCKET=content-management-images
|
|
29
26
|
REACT_APP_KEY_UPLOAD_TO_S3=AKIA5CPHLQTT46EQ5TIK
|
package/.env.production
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
REACT_APP_ARTICLE_DATA_ENDPOINT=https://
|
|
2
|
-
REACT_APP_ARTICLE_DATA_DATASHEET_ENDPOINT=https://
|
|
3
|
-
REACT_APP_ARTICLE_DATA_DESCRIPTION_ENDPOINT=https://
|
|
4
|
-
REACT_APP_ARTICLE_DATA_IMAGES_ENDPOINT=https://
|
|
5
|
-
REACT_APP_ARTICLE_DATA_ENDPOINT=https://
|
|
6
|
-
REACT_APP_VALID_EXPORT_ENDPOINT = https://
|
|
7
|
-
REACT_APP_SERVICES_ENDPOINT = https://
|
|
8
|
-
REACT_APP_EVALUATION_ENDPOINT = https://
|
|
9
|
-
REACT_APP_SEND_EVAL = https://
|
|
10
|
-
REACT_APP_COMMENTS_ENDPOINT = https://
|
|
11
|
-
REACT_APP_USER_ENDPOINT=https://
|
|
12
|
-
REACT_APP_ASSIGNATIONS_ENDPOINT = https://
|
|
13
|
-
REACT_APP_TASKS_ENDPOINT = https://
|
|
14
|
-
REACT_APP_USER_TASKS_ENDPOINT = https://
|
|
15
|
-
REACT_APP_CART = https://
|
|
16
|
-
REACT_APP_RETAILER_REQUEST = https://
|
|
17
|
-
REACT_APP_VERSIONS_ENDPOINT = https://
|
|
18
|
-
REACT_APP_RETAILER_ENDPOINT=https://
|
|
19
|
-
REACT_APP_READ_ORDERS_BY_STATUS=https://
|
|
20
|
-
REACT_APP_READ_REQUIRED_ORDERS=https://
|
|
21
|
-
REACT_APP_CATEGORY_ENDPOINT=https://
|
|
22
|
-
REACT_APP_READ_PROVIDERS=https://
|
|
23
|
-
REACT_APP_PENDING_INVITATIONS=https://
|
|
1
|
+
REACT_APP_ARTICLE_DATA_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/articles-data
|
|
2
|
+
REACT_APP_ARTICLE_DATA_DATASHEET_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/articles-data/datasheets
|
|
3
|
+
REACT_APP_ARTICLE_DATA_DESCRIPTION_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/articles-data/descriptions
|
|
4
|
+
REACT_APP_ARTICLE_DATA_IMAGES_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/articles-data/images
|
|
5
|
+
REACT_APP_ARTICLE_DATA_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/articles-data
|
|
6
|
+
REACT_APP_VALID_EXPORT_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/valid-export
|
|
7
|
+
REACT_APP_SERVICES_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/services
|
|
8
|
+
REACT_APP_EVALUATION_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/evaluations
|
|
9
|
+
REACT_APP_SEND_EVAL = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/eval-status
|
|
10
|
+
REACT_APP_COMMENTS_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/comments
|
|
11
|
+
REACT_APP_USER_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/users
|
|
12
|
+
REACT_APP_ASSIGNATIONS_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/assignations
|
|
13
|
+
REACT_APP_TASKS_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/tasks
|
|
14
|
+
REACT_APP_USER_TASKS_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/user-tasks
|
|
15
|
+
REACT_APP_CART = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/cart
|
|
16
|
+
REACT_APP_RETAILER_REQUEST = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/retailers-request
|
|
17
|
+
REACT_APP_VERSIONS_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/versions
|
|
18
|
+
REACT_APP_RETAILER_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/retailers
|
|
19
|
+
REACT_APP_READ_ORDERS_BY_STATUS=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/read-orders-by-status
|
|
20
|
+
REACT_APP_READ_REQUIRED_ORDERS=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/read-required-orders
|
|
21
|
+
REACT_APP_CATEGORY_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/categories
|
|
22
|
+
REACT_APP_READ_PROVIDERS=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/providers
|
|
23
|
+
REACT_APP_PENDING_INVITATIONS=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/pending-invitations
|
|
24
24
|
|
|
25
25
|
REACT_APP_IMAGES_BUCKET=content-management-images-prod
|
|
26
26
|
REACT_APP_KEY_UPLOAD_TO_S3=AKIA5CPHLQTT46EQ5TIK
|
|
@@ -11,8 +11,6 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/
|
|
|
11
11
|
|
|
12
12
|
var _index = require("./index");
|
|
13
13
|
|
|
14
|
-
var _starIcon = _interopRequireDefault(require("../../../assets/images/customSelect/starIcon.svg"));
|
|
15
|
-
|
|
16
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
15
|
|
|
18
16
|
var _default = {
|
|
@@ -28,26 +26,29 @@ var Template = function Template(args) {
|
|
|
28
26
|
var CustomSelectDefault = Template.bind({});
|
|
29
27
|
exports.CustomSelectDefault = CustomSelectDefault;
|
|
30
28
|
CustomSelectDefault.args = {
|
|
31
|
-
|
|
29
|
+
selectLabel: "Todos los departamentos",
|
|
32
30
|
defaultOption: "Todos los departamentos",
|
|
33
31
|
options: [{
|
|
34
|
-
id:
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
id: 1,
|
|
33
|
+
value: "Decoración",
|
|
34
|
+
subOptions: [{
|
|
35
|
+
id: 1,
|
|
36
|
+
value: "Espejos"
|
|
37
|
+
}, {
|
|
38
|
+
id: 2,
|
|
39
|
+
value: "Persianas"
|
|
40
|
+
}]
|
|
41
|
+
}, {
|
|
42
|
+
id: 2,
|
|
43
|
+
value: "Eléctrico"
|
|
44
|
+
}, {
|
|
45
|
+
id: 3,
|
|
46
|
+
value: "Ferretería"
|
|
47
|
+
}, {
|
|
48
|
+
id: 4,
|
|
49
|
+
value: "Herramientas"
|
|
37
50
|
}, {
|
|
38
|
-
id:
|
|
39
|
-
|
|
40
|
-
}]
|
|
41
|
-
onClickItem: function onClickItem(v, id) {
|
|
42
|
-
if (v) {
|
|
43
|
-
console.log("Agregar a la lista", id);
|
|
44
|
-
} else {
|
|
45
|
-
console.log("Eliminar a la lista", id);
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
icon: _starIcon.default,
|
|
49
|
-
showSearchBar: true,
|
|
50
|
-
customOptions: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
51
|
-
children: "Esto es un customOptions"
|
|
52
|
-
})
|
|
51
|
+
id: 5,
|
|
52
|
+
value: "Iluminación"
|
|
53
|
+
}]
|
|
53
54
|
};
|
|
@@ -26,8 +26,7 @@ var SelecItem = function SelecItem(_ref) {
|
|
|
26
26
|
customSelectId = _ref.customSelectId,
|
|
27
27
|
setParameterArray = _ref.setParameterArray,
|
|
28
28
|
activeFilters = _ref.activeFilters,
|
|
29
|
-
setActiveFilters = _ref.setActiveFilters
|
|
30
|
-
onClickItem = _ref.onClickItem;
|
|
29
|
+
setActiveFilters = _ref.setActiveFilters;
|
|
31
30
|
|
|
32
31
|
var _useState = (0, _react.useState)(false),
|
|
33
32
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -47,10 +46,6 @@ var SelecItem = function SelecItem(_ref) {
|
|
|
47
46
|
id: "main-item-" + option.id,
|
|
48
47
|
label: option.name,
|
|
49
48
|
onChange: function onChange(e) {
|
|
50
|
-
if (onClickItem) {
|
|
51
|
-
onClickItem(e.target.checked, option.id);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
49
|
var subOptions = option.subOptions;
|
|
55
50
|
var filtersCopy = (0, _objectSpread2.default)({}, activeFilters);
|
|
56
51
|
|
|
@@ -113,10 +108,6 @@ var SelecItem = function SelecItem(_ref) {
|
|
|
113
108
|
label: sub.name,
|
|
114
109
|
defaultChecked: activeFilters[option.name] && activeFilters[option.name][sub.name],
|
|
115
110
|
onChange: function onChange(e) {
|
|
116
|
-
if (onClickItem) {
|
|
117
|
-
onClickItem(e.target.checked, sub.id);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
111
|
if (e.target.checked) {
|
|
121
112
|
setParameterArray(function (current) {
|
|
122
113
|
return [].concat((0, _toConsumableArray2.default)(current), [sub.id]).sort(function (a, b) {
|
|
@@ -13,8 +13,6 @@ var _index2 = require("../../atoms/GeneralButton/index");
|
|
|
13
13
|
|
|
14
14
|
var _react = require("react");
|
|
15
15
|
|
|
16
|
-
var _Chat = require("../../organisms/Chat");
|
|
17
|
-
|
|
18
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
17
|
|
|
20
18
|
var HeaderTop = function HeaderTop(_ref) {
|
|
@@ -27,14 +25,11 @@ var HeaderTop = function HeaderTop(_ref) {
|
|
|
27
25
|
ref: headerTop,
|
|
28
26
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
29
27
|
text: "Edici\xF3n de producto"
|
|
30
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
window.location.href = "/products";
|
|
36
|
-
}
|
|
37
|
-
})
|
|
28
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Button, {
|
|
29
|
+
buttonType: "close-button",
|
|
30
|
+
onClick: function onClick() {
|
|
31
|
+
window.location.href = "/products";
|
|
32
|
+
}
|
|
38
33
|
})]
|
|
39
34
|
});
|
|
40
35
|
};
|
|
@@ -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
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n"])));
|
|
17
17
|
|
|
18
18
|
exports.Container = Container;
|
|
@@ -19,6 +19,8 @@ var _index = require("../../atoms/Status/index");
|
|
|
19
19
|
|
|
20
20
|
var _index2 = require("../../atoms/ProgressBar/index");
|
|
21
21
|
|
|
22
|
+
var _index3 = require("../../atoms/Loading/index");
|
|
23
|
+
|
|
22
24
|
var _moment = _interopRequireDefault(require("moment"));
|
|
23
25
|
|
|
24
26
|
require("moment/locale/es");
|
|
@@ -36,17 +38,22 @@ _moment.default.locale("es");
|
|
|
36
38
|
var OrderDetail = function OrderDetail(props) {
|
|
37
39
|
var order = props.order;
|
|
38
40
|
|
|
39
|
-
var _useState = (0, _react.useState)(
|
|
41
|
+
var _useState = (0, _react.useState)(true),
|
|
40
42
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
isLoading = _useState2[0],
|
|
44
|
+
setIsLoading = _useState2[1];
|
|
43
45
|
|
|
44
|
-
var _useState3 = (0, _react.useState)(
|
|
46
|
+
var _useState3 = (0, _react.useState)(order.payment !== "pagado"),
|
|
45
47
|
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
showPaymentButton = _useState4[0],
|
|
49
|
+
setShowPaymentButton = _useState4[1];
|
|
50
|
+
|
|
51
|
+
var _useState5 = (0, _react.useState)({}),
|
|
52
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
53
|
+
orderData = _useState6[0],
|
|
54
|
+
setOrderData = _useState6[1];
|
|
48
55
|
|
|
49
|
-
var
|
|
56
|
+
var _useState7 = (0, _react.useState)({
|
|
50
57
|
approved: "-",
|
|
51
58
|
rejected: "-",
|
|
52
59
|
in_progress: "-",
|
|
@@ -56,9 +63,9 @@ var OrderDetail = function OrderDetail(props) {
|
|
|
56
63
|
description: "-",
|
|
57
64
|
images: "-"
|
|
58
65
|
}),
|
|
59
|
-
|
|
60
|
-
dataGeneral =
|
|
61
|
-
setDataGeneral =
|
|
66
|
+
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
67
|
+
dataGeneral = _useState8[0],
|
|
68
|
+
setDataGeneral = _useState8[1];
|
|
62
69
|
|
|
63
70
|
var updBilling = function updBilling(articleId, newBillingStatus) {
|
|
64
71
|
props.updateBilling && props.updateBilling({
|
|
@@ -81,6 +88,7 @@ var OrderDetail = function OrderDetail(props) {
|
|
|
81
88
|
|
|
82
89
|
(0, _react.useEffect)(function () {
|
|
83
90
|
var ac = new AbortController();
|
|
91
|
+
setIsLoading(true);
|
|
84
92
|
props.getOrderDetail && props.getOrderDetail({
|
|
85
93
|
query: {
|
|
86
94
|
orderId: order.id_order
|
|
@@ -102,6 +110,7 @@ var OrderDetail = function OrderDetail(props) {
|
|
|
102
110
|
setDataGeneral((0, _objectSpread2.default)((0, _objectSpread2.default)({}, countArticles), {}, {
|
|
103
111
|
totalArticles: totalArticles
|
|
104
112
|
}));
|
|
113
|
+
setIsLoading(false);
|
|
105
114
|
});
|
|
106
115
|
return function () {
|
|
107
116
|
return ac.abort();
|
|
@@ -189,7 +198,7 @@ var OrderDetail = function OrderDetail(props) {
|
|
|
189
198
|
})]
|
|
190
199
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
191
200
|
className: "body",
|
|
192
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Table.default, {
|
|
201
|
+
children: isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Loading, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Table.default, {
|
|
193
202
|
headers: [{
|
|
194
203
|
width: 140,
|
|
195
204
|
name: "UPC"
|
|
@@ -15,7 +15,7 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
17
17
|
|
|
18
|
-
var MainContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: fixed;\n top: 0;\n right: 0;\n width: 785px;\n height: 100vh;\n z-index: 5;\n background: #ffffff;\n box-sizing: border-box;\n font-family: ", ";\n & > * {\n padding: 0 30px;\n }\n .headerTitle {\n font-weight: bold;\n font-size: 25px;\n }\n\n display: grid;\n grid-template-columns: 1fr;\n grid-template-rows: 101px 120px 1fr 115px;\n grid-column-gap: 0px;\n grid-row-gap: 0px;\n\n .body {\n overflow-y: auto;\n }\n .footer {\n width: 100%;\n display: flex;\n align-items: center;\n height: 115px;\n border-top: 1px solid #e6e6e6;\n position: sticky;\n bottom: 0;\n padding: 20px;\n box-sizing: border-box;\n > h2 {\n margin-right: 20px;\n }\n > div {\n margin-right: 10px;\n }\n }\n"])), _variables.FontFamily.Roboto);
|
|
18
|
+
var MainContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: fixed;\n top: 0;\n right: 0;\n width: 785px;\n height: 100vh;\n z-index: 5;\n background: #ffffff;\n box-sizing: border-box;\n font-family: ", ";\n & > * {\n padding: 0 30px;\n }\n box-shadow: -4px 0px 8px 0px rgba(0,0,0,0.1);\n .headerTitle {\n font-weight: bold;\n font-size: 25px;\n }\n\n display: grid;\n grid-template-columns: 1fr;\n grid-template-rows: 101px 120px 1fr 115px;\n grid-column-gap: 0px;\n grid-row-gap: 0px;\n\n .body {\n overflow-y: auto;\n }\n .footer {\n width: 100%;\n display: flex;\n align-items: center;\n height: 115px;\n border-top: 1px solid #e6e6e6;\n position: sticky;\n bottom: 0;\n padding: 20px;\n box-sizing: border-box;\n > h2 {\n margin-right: 20px;\n }\n > div {\n margin-right: 10px;\n }\n }\n"])), _variables.FontFamily.Roboto);
|
|
19
19
|
|
|
20
20
|
exports.MainContainer = MainContainer;
|
|
21
21
|
|
|
@@ -61,15 +61,3 @@
|
|
|
61
61
|
src: url("../assets/fonts/roboto/Roboto-Regular.ttf");
|
|
62
62
|
font-weight: 400;
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
@font-face {
|
|
66
|
-
font-family: "Roboto";
|
|
67
|
-
src: url("../assets/fonts/roboto/Roboto-Regular.ttf");
|
|
68
|
-
font-weight: 400;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.prueba {
|
|
72
|
-
color: #9e3e26;
|
|
73
|
-
color: #b42983;
|
|
74
|
-
color: #e7e7e7;
|
|
75
|
-
}
|