contentoh-components-library 21.3.94 → 21.3.96
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 +5 -0
- package/.env.production +3 -0
- package/dist/components/atoms/Avatar/index.js +3 -2
- package/dist/components/atoms/Card/index.js +46 -5
- package/dist/components/atoms/Card/styles.js +3 -1
- package/dist/components/atoms/CheckBox/index.js +7 -2
- package/dist/components/atoms/CheckBox/styles.js +1 -1
- package/dist/components/atoms/ImageCarousel/ImgeSlider.stories.js +90 -0
- package/dist/components/atoms/ImageCarousel/index.js +120 -0
- package/dist/components/atoms/ImageCarousel/styles.js +18 -0
- package/dist/components/atoms/InputFormatter/styles.js +1 -1
- package/dist/components/atoms/PercentTag/PercentTag.stories.js +31 -0
- package/dist/components/atoms/PercentTag/index.js +23 -0
- package/dist/components/atoms/PercentTag/styles.js +22 -0
- package/dist/components/atoms/RatingStars/RatingStars.stories.js +30 -0
- package/dist/components/atoms/RatingStars/index.js +53 -0
- package/dist/components/atoms/RatingStars/styles.js +18 -0
- package/dist/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +48 -0
- package/dist/components/atoms/RetailerCatalog/index.js +70 -0
- package/dist/components/atoms/RetailerCatalog/styles.js +20 -0
- package/dist/components/atoms/RetailerOption/RetailerOption.stories.js +33 -0
- package/dist/components/atoms/RetailerOption/index.js +62 -0
- package/dist/components/atoms/RetailerOption/styles.js +20 -0
- package/dist/components/atoms/RetailersList/RetailersList.stories.js +45 -0
- package/dist/components/atoms/RetailersList/index.js +44 -0
- package/dist/components/atoms/RetailersList/styles.js +18 -0
- package/dist/components/atoms/UserCatalog/UserCatalog.stories.js +72 -0
- package/dist/components/atoms/UserCatalog/index.js +89 -0
- package/dist/components/atoms/UserCatalog/styles.js +18 -0
- package/dist/components/atoms/UserOption/UserOption.stories.js +40 -0
- package/dist/components/atoms/UserOption/index.js +80 -0
- package/dist/components/atoms/UserOption/styles.js +20 -0
- package/dist/components/atoms/UserSelector/UserSelector.stories.js +40 -0
- package/dist/components/atoms/UserSelector/index.js +91 -0
- package/dist/components/atoms/UserSelector/styles.js +32 -0
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/GridItem/GridItem.stories.js +123 -0
- package/dist/components/molecules/GridItem/index.js +122 -0
- package/dist/components/molecules/GridItem/styles.js +20 -0
- package/dist/components/molecules/HeaderItem/ColumnItem.js +23 -0
- package/dist/components/molecules/HeaderItem/HeaderItem.stories.js +70 -0
- package/dist/components/molecules/HeaderItem/index.js +42 -0
- package/dist/components/molecules/HeaderItem/styles.js +30 -0
- package/dist/components/molecules/HeaderTop/index.js +68 -11
- package/dist/components/molecules/RowItem/ColumnItem.js +23 -0
- package/dist/components/molecules/RowItem/RowItem.stories.js +5242 -0
- package/dist/components/molecules/RowItem/index.js +59 -0
- package/dist/components/molecules/RowItem/styles.js +30 -0
- package/dist/components/molecules/TabsMenu/index.js +7 -13
- package/dist/components/molecules/TagAndInput/index.js +1 -1
- package/dist/components/organisms/Chat/Chat.stories.js +27 -8
- package/dist/components/organisms/Chat/ContainerItems/index.js +19 -3
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +350 -197
- package/dist/components/organisms/Chat/Footer/index.js +48 -39
- package/dist/components/organisms/Chat/index.js +49 -4
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/organisms/FullTabsMenu/index.js +1 -3
- package/dist/components/organisms/GridProducts/GridProducts.stories.js +5093 -0
- package/dist/components/organisms/GridProducts/index.js +68 -0
- package/dist/components/organisms/GridProducts/styles.js +18 -0
- package/dist/components/organisms/GridProducts/utils.js +139 -0
- package/dist/components/organisms/Modal/styles.js +1 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +171 -96
- package/dist/components/pages/ProviderProductEdition/index.js +190 -178
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +77 -52
- package/dist/components/pages/RetailerProductEdition/index.js +290 -276
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +61 -2
- package/dist/index.js +182 -52
- package/package.json +4 -1
- package/src/components/atoms/Avatar/index.js +8 -2
- package/src/components/atoms/Card/index.js +35 -2
- package/src/components/atoms/Card/styles.js +41 -5
- package/src/components/atoms/CheckBox/index.js +4 -1
- package/src/components/atoms/CheckBox/styles.js +2 -0
- package/src/components/atoms/ImageCarousel/ImgeSlider.stories.js +76 -0
- package/src/components/atoms/ImageCarousel/index.js +103 -0
- package/src/components/atoms/ImageCarousel/styles.js +79 -0
- package/src/components/atoms/InputFormatter/styles.js +2 -1
- package/src/components/atoms/PercentTag/PercentTag.stories.js +7 -0
- package/src/components/atoms/PercentTag/index.js +9 -0
- package/src/components/atoms/PercentTag/styles.js +69 -0
- package/src/components/atoms/RatingStars/RatingStars.stories.js +10 -0
- package/src/components/atoms/RatingStars/index.js +31 -0
- package/src/components/atoms/RatingStars/styles.js +28 -0
- package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +36 -0
- package/src/components/atoms/RetailerCatalog/index.js +50 -0
- package/src/components/atoms/RetailerCatalog/styles.js +30 -0
- package/src/components/atoms/RetailerOption/RetailerOption.stories.js +15 -0
- package/src/components/atoms/RetailerOption/index.js +53 -0
- package/src/components/atoms/RetailerOption/styles.js +41 -0
- package/src/components/atoms/RetailersList/RetailersList.stories.js +33 -0
- package/src/components/atoms/RetailersList/index.js +20 -0
- package/src/components/atoms/RetailersList/styles.js +19 -0
- package/src/components/atoms/UserCatalog/UserCatalog.stories.js +66 -0
- package/src/components/atoms/UserCatalog/index.js +77 -0
- package/src/components/atoms/UserCatalog/styles.js +24 -0
- package/src/components/atoms/UserOption/UserOption.stories.js +25 -0
- package/src/components/atoms/UserOption/index.js +49 -0
- package/src/components/atoms/UserOption/styles.js +54 -0
- package/src/components/atoms/UserSelector/UserSelector.stories.js +25 -0
- package/src/components/atoms/UserSelector/index.js +70 -0
- package/src/components/atoms/UserSelector/styles.js +55 -0
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/GridItem/GridItem.stories.js +126 -0
- package/src/components/molecules/GridItem/index.js +82 -0
- package/src/components/molecules/GridItem/styles.js +85 -0
- package/src/components/molecules/HeaderItem/ColumnItem.js +9 -0
- package/src/components/molecules/HeaderItem/HeaderItem.stories.js +24 -0
- package/src/components/molecules/HeaderItem/index.js +26 -0
- package/src/components/molecules/HeaderItem/styles.js +25 -0
- package/src/components/molecules/HeaderTop/index.js +52 -6
- package/src/components/molecules/RowItem/ColumnItem.js +9 -0
- package/src/components/molecules/RowItem/RowItem.stories.js +5660 -0
- package/src/components/molecules/RowItem/index.js +45 -0
- package/src/components/molecules/RowItem/styles.js +38 -0
- package/src/components/molecules/StripeCardForm/StripeCardForm.stories.js +13 -0
- package/src/components/molecules/StripeCardForm/index.js +42 -0
- package/src/components/molecules/StripeCardForm/paymentForm.js +124 -0
- package/src/components/molecules/StripeCardForm/styles.js +73 -0
- package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +12 -0
- package/src/components/molecules/StripeCardSelector/index.js +44 -0
- package/src/components/molecules/StripeCardSelector/styles.js +4 -0
- package/src/components/molecules/StripeCardSelector/utils.js +17 -0
- package/src/components/molecules/TabsMenu/index.js +10 -16
- package/src/components/molecules/TagAndInput/index.js +10 -8
- package/src/components/organisms/Chat/Chat.stories.js +27 -7
- package/src/components/organisms/Chat/ContainerItems/index.js +18 -2
- package/src/components/organisms/Chat/ContainerItems/styles.js +10 -2
- package/src/components/organisms/Chat/ContentChat/index.js +88 -12
- package/src/components/organisms/Chat/Footer/index.js +11 -0
- package/src/components/organisms/Chat/index.js +46 -4
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/FullTabsMenu/index.js +1 -3
- package/src/components/organisms/GridProducts/GridProducts.stories.js +5474 -0
- package/src/components/organisms/GridProducts/index.js +53 -0
- package/src/components/organisms/GridProducts/styles.js +15 -0
- package/src/components/organisms/GridProducts/utils.js +103 -0
- package/src/components/organisms/Modal/styles.js +4 -1
- package/src/components/organisms/SideModal/SideModal.stories.js +23 -0
- package/src/components/organisms/SideModal/index.js +50 -0
- package/src/components/organisms/SideModal/styles.js +30 -0
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +181 -98
- package/src/components/pages/ProviderProductEdition/index.js +134 -132
- package/src/components/pages/ProviderProductEdition/styles.js +5 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +76 -46
- package/src/components/pages/RetailerProductEdition/index.js +123 -138
- package/src/components/pages/RetailerProductEdition/styles.js +4 -0
- package/src/components/pages/RetailerProductEdition/utils.js +37 -0
- package/src/index.js +11 -0
- package/dist/assets/fonts/roboto/LICENSE.txt +0 -202
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.GridProducts = void 0;
|
|
7
|
+
|
|
8
|
+
var _styles = require("./styles");
|
|
9
|
+
|
|
10
|
+
var _GridItem = require("../../molecules/GridItem");
|
|
11
|
+
|
|
12
|
+
var _HeaderItem = require("../../molecules/HeaderItem");
|
|
13
|
+
|
|
14
|
+
var _utils = require("./utils");
|
|
15
|
+
|
|
16
|
+
var _react = require("react");
|
|
17
|
+
|
|
18
|
+
var _RowItem = require("../../molecules/RowItem");
|
|
19
|
+
|
|
20
|
+
var _CheckBox = require("../../atoms/CheckBox");
|
|
21
|
+
|
|
22
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
+
|
|
24
|
+
var GridProducts = function GridProducts(_ref) {
|
|
25
|
+
var _ref$products = _ref.products,
|
|
26
|
+
products = _ref$products === void 0 ? [] : _ref$products,
|
|
27
|
+
_ref$columnsArray = _ref.columnsArray,
|
|
28
|
+
columnsArray = _ref$columnsArray === void 0 ? [] : _ref$columnsArray,
|
|
29
|
+
_ref$gridView = _ref.gridView,
|
|
30
|
+
gridView = _ref$gridView === void 0 ? true : _ref$gridView,
|
|
31
|
+
chkOnChange = _ref.chkOnChange,
|
|
32
|
+
_ref$selected = _ref.selected,
|
|
33
|
+
selected = _ref$selected === void 0 ? [] : _ref$selected,
|
|
34
|
+
chkChecked = _ref.chkChecked,
|
|
35
|
+
checkAll = _ref.checkAll,
|
|
36
|
+
chkCheckedAll = _ref.chkCheckedAll,
|
|
37
|
+
onGridClick = _ref.onGridClick;
|
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
39
|
+
children: !gridView ? products === null || products === void 0 ? void 0 : products.map(function (_ref2, i) {
|
|
40
|
+
var gridElement = _ref2.gridElement,
|
|
41
|
+
product = _ref2.product,
|
|
42
|
+
id = _ref2.id;
|
|
43
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridItem.GridItem, {
|
|
44
|
+
id: id,
|
|
45
|
+
product: product,
|
|
46
|
+
gridElement: gridElement,
|
|
47
|
+
chkOnChange: chkOnChange,
|
|
48
|
+
onGridClick: onGridClick,
|
|
49
|
+
selected: selected,
|
|
50
|
+
chkChecked: chkChecked
|
|
51
|
+
}, i);
|
|
52
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
53
|
+
className: "table-view",
|
|
54
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_HeaderItem.HeaderItem, {
|
|
55
|
+
columnsArray: columnsArray,
|
|
56
|
+
checkAll: checkAll,
|
|
57
|
+
chkCheckedAll: chkCheckedAll
|
|
58
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_RowItem.RowItem, {
|
|
59
|
+
productsArray: products,
|
|
60
|
+
chkOnChange: chkOnChange,
|
|
61
|
+
onGridClick: onGridClick,
|
|
62
|
+
chkChecked: chkChecked
|
|
63
|
+
})]
|
|
64
|
+
})
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
exports.GridProducts = GridProducts;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 _templateObject;
|
|
15
|
+
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n height: 100%;\n overflow: auto;\n padding: 20px;\n\n .table-view {\n height: 100%;\n width: 100%;\n }\n"])));
|
|
17
|
+
|
|
18
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getProductsToTable = void 0;
|
|
7
|
+
|
|
8
|
+
var _RetailerCatalog = require("../../atoms/RetailerCatalog");
|
|
9
|
+
|
|
10
|
+
var _UserCatalog = require("../../atoms/UserCatalog");
|
|
11
|
+
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
|
|
14
|
+
var getProductsToTable = function getProductsToTable() {
|
|
15
|
+
var products = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
16
|
+
var textSpecialists = arguments.length > 1 ? arguments[1] : undefined;
|
|
17
|
+
var imagesSpecialists = arguments.length > 2 ? arguments[2] : undefined;
|
|
18
|
+
var auditors = arguments.length > 3 ? arguments[3] : undefined;
|
|
19
|
+
var images = arguments.length > 4 ? arguments[4] : undefined;
|
|
20
|
+
var productsTableArray = [];
|
|
21
|
+
products.forEach(function (product) {
|
|
22
|
+
var article = product.article,
|
|
23
|
+
orderId = product.orderId,
|
|
24
|
+
upc = product.upc,
|
|
25
|
+
status = product.status,
|
|
26
|
+
version = product.version;
|
|
27
|
+
var id = (article === null || article === void 0 ? void 0 : article.id_article) + "-" + orderId;
|
|
28
|
+
var imgArray = images[(article === null || article === void 0 ? void 0 : article.id_article) + "-" + version];
|
|
29
|
+
var element = {
|
|
30
|
+
id: id,
|
|
31
|
+
cols: [{
|
|
32
|
+
name: (article === null || article === void 0 ? void 0 : article.country) || "-",
|
|
33
|
+
flex: 1,
|
|
34
|
+
minWidth: 100
|
|
35
|
+
}, {
|
|
36
|
+
name: orderId || "-",
|
|
37
|
+
flex: 1,
|
|
38
|
+
minWidth: 100
|
|
39
|
+
}, {
|
|
40
|
+
name: upc || "-",
|
|
41
|
+
flex: 1,
|
|
42
|
+
minWidth: 100
|
|
43
|
+
}, {
|
|
44
|
+
name: (article === null || article === void 0 ? void 0 : article.name) || "-",
|
|
45
|
+
flex: 1,
|
|
46
|
+
minWidth: 200
|
|
47
|
+
}, {
|
|
48
|
+
name: "S/M" || "-",
|
|
49
|
+
flex: 1,
|
|
50
|
+
minWidth: 100
|
|
51
|
+
}, {
|
|
52
|
+
name: status || "-",
|
|
53
|
+
flex: 1,
|
|
54
|
+
minWidth: 100
|
|
55
|
+
}, {
|
|
56
|
+
name: /*#__PURE__*/(0, _jsxRuntime.jsx)(_RetailerCatalog.RetailerCatalog, {
|
|
57
|
+
id: "retailers-" + id,
|
|
58
|
+
article: product,
|
|
59
|
+
retailers: product.retailers
|
|
60
|
+
}),
|
|
61
|
+
flex: 1,
|
|
62
|
+
minWidth: 100
|
|
63
|
+
}, {
|
|
64
|
+
name: "none",
|
|
65
|
+
flex: 1,
|
|
66
|
+
minWidth: 100
|
|
67
|
+
}, {
|
|
68
|
+
name: /*#__PURE__*/(0, _jsxRuntime.jsx)(_UserCatalog.UserCatalog, {
|
|
69
|
+
datasheet: article.id_datasheet_especialist,
|
|
70
|
+
description: article.id_description_especialist,
|
|
71
|
+
images: article.id_images_especialist,
|
|
72
|
+
textSpecialists: textSpecialists,
|
|
73
|
+
imagesSpecialists: imagesSpecialists,
|
|
74
|
+
auditors: auditors,
|
|
75
|
+
id: "users-" + id
|
|
76
|
+
}),
|
|
77
|
+
flex: 1,
|
|
78
|
+
minWidth: 100
|
|
79
|
+
}, {
|
|
80
|
+
name: "Cont.",
|
|
81
|
+
flex: 1,
|
|
82
|
+
minWidth: 100
|
|
83
|
+
}],
|
|
84
|
+
gridElement: {
|
|
85
|
+
images: imgArray,
|
|
86
|
+
info: [{
|
|
87
|
+
title: "name",
|
|
88
|
+
value: (article === null || article === void 0 ? void 0 : article.name) || "-"
|
|
89
|
+
}, {
|
|
90
|
+
title: "category",
|
|
91
|
+
value: (article === null || article === void 0 ? void 0 : article.category) || "-"
|
|
92
|
+
}, {
|
|
93
|
+
title: "company",
|
|
94
|
+
value: (article === null || article === void 0 ? void 0 : article.company_name) || "-"
|
|
95
|
+
}, {
|
|
96
|
+
title: "price",
|
|
97
|
+
value: (article === null || article === void 0 ? void 0 : article.price) || "-"
|
|
98
|
+
}],
|
|
99
|
+
status: [{
|
|
100
|
+
title: "datasheet",
|
|
101
|
+
value: product === null || product === void 0 ? void 0 : product.datasheet_status,
|
|
102
|
+
percent: 80
|
|
103
|
+
}, {
|
|
104
|
+
title: "description",
|
|
105
|
+
value: product === null || product === void 0 ? void 0 : product.description_status,
|
|
106
|
+
percent: 80
|
|
107
|
+
}, {
|
|
108
|
+
title: "images",
|
|
109
|
+
value: product === null || product === void 0 ? void 0 : product.images_status,
|
|
110
|
+
percent: 80
|
|
111
|
+
}],
|
|
112
|
+
catalogs: {
|
|
113
|
+
leftSide: /*#__PURE__*/(0, _jsxRuntime.jsx)(_RetailerCatalog.RetailerCatalog, {
|
|
114
|
+
id: "retailers-" + id,
|
|
115
|
+
limit: 2,
|
|
116
|
+
article: product,
|
|
117
|
+
retailers: product.retailers
|
|
118
|
+
}),
|
|
119
|
+
rightSide: /*#__PURE__*/(0, _jsxRuntime.jsx)(_UserCatalog.UserCatalog, {
|
|
120
|
+
datasheet: article.id_datasheet_especialist,
|
|
121
|
+
description: article.id_description_especialist,
|
|
122
|
+
images: article.id_images_especialist,
|
|
123
|
+
textSpecialists: textSpecialists,
|
|
124
|
+
imagesSpecialists: imagesSpecialists,
|
|
125
|
+
auditors: auditors,
|
|
126
|
+
id: "users-" + id
|
|
127
|
+
})
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
showBottom: true,
|
|
131
|
+
product: product,
|
|
132
|
+
article: article
|
|
133
|
+
};
|
|
134
|
+
productsTableArray.push(element);
|
|
135
|
+
});
|
|
136
|
+
return productsTableArray;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
exports.getProductsToTable = getProductsToTable;
|
|
@@ -15,6 +15,6 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var ContainerModal = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 100%;\n overflow: auto;\n display: grid;\n place-items: center;\n background-color: rgba(0, 0, 0, 0.4);\n\n .contentModal {\n width: fit-content;\n max-width: 80%;\n min-width: 80px;\n height: fit-content;\n max-height: 90%;\n min-height: 120px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background-color: white;\n border-radius: 10px;\n padding: 25px 25px 20px 25px;\n box-shadow: 0px 2px 4px 0px #00000040;\n\n header {\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n gap: 6px;\n
|
|
18
|
+
var ContainerModal = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 100%;\n overflow: auto;\n display: grid;\n place-items: center;\n background-color: rgba(0, 0, 0, 0.4);\n\n .contentModal {\n width: fit-content;\n max-width: 80%;\n min-width: 80px;\n height: fit-content;\n max-height: 90%;\n min-height: 120px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background-color: white;\n border-radius: 10px;\n padding: 25px 25px 20px 25px;\n box-shadow: 0px 2px 4px 0px #00000040;\n\n header {\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n gap: 6px;\n\n .label-title {\n width: 100%;\n text-align: center;\n font-family: ", ", sans-serif;\n font-size: 17px;\n line-height: 1.2;\n color: #262626;\n white-space: pre-wrap;\n }\n\n & + * {\n margin-top: 20px;\n }\n }\n\n .iconModal {\n width: 50px;\n height: 50px;\n font-size: 30px;\n border-width: 4px;\n margin-bottom: 20px;\n overflow: hidden;\n\n &.iconModal-error {\n background-color: #953737;\n border-color: #953737;\n color: white;\n }\n &.iconModal-warning {\n font-size: 27px;\n padding-bottom: 8px;\n color: #af9647;\n border-color: #af9647;\n }\n &.iconModal-info {\n border-color: #9e3e26;\n color: #9e3e26;\n }\n &.iconModal-success {\n }\n }\n\n .label-message {\n width: 100%;\n text-align: center;\n font-family: ", ", sans-serif;\n font-size: 13px;\n color: #707070;\n white-space: pre-wrap;\n }\n\n .container-customComponent {\n width: 100%;\n max-height: 50vh;\n display: flex;\n flex-direction: column;\n margin-top: 20px;\n padding: 0px 0px;\n //border: 1px solid red;\n }\n\n .container-buttons {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 12px;\n margin-top: 20px;\n //border: 1px solid red;\n }\n }\n"])), _variables.FontFamily.RobotoMedium, _variables.FontFamily.RobotoRegular);
|
|
19
19
|
|
|
20
20
|
exports.ContainerModal = ContainerModal;
|
|
@@ -31,96 +31,174 @@ ProviderProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": false,
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
|
-
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
34
|
+
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIyM2Q1NTlmYi1jMzIwLTRhMjItYjJmNy1lOThhYTFhZGEyNmYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MzkyNjgyMSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2ODM5MzA0MjEsImlhdCI6MTY4MzkyNjgyMSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.TvCoaKoctj5mypXWMz3NyV1Vm1ToBV0vJmpVyZSQw4-ikTChkxcZ5tFYvqhk1GdvNCFttfSQIqM-14dAYYBc28YwwKP86gqOuzB1fG41rN5x1Yx3tkJq6hiVRgiBbSHWtThA9c8VnxNQbrJiaRTvvkDiM5KNTEst1oxQHL5Ct9_iKQMJMRFie7Xv0xnyS0qZ6QHK4Q2A9OHsnDkAuumALZJcE19Zh6VgSitgWrZiz3x5Text4Q-U-R48NUAzUFirAzYZzJN_fCme5pGf1AnUaZjeUjPsmrV5TBVzPEYwXO0KG8lYjL8id80D7tbGs28ZIK6B4rf3-eqI_ngmBB4CjQ",
|
|
35
35
|
articleId: 238,
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
orderId:
|
|
40
|
-
|
|
41
|
-
datasheet_status: "
|
|
42
|
-
description_status: "AP",
|
|
43
|
-
images_status: "AP",
|
|
39
|
+
orderId: 15142,
|
|
40
|
+
status: "AA",
|
|
41
|
+
datasheet_status: "AA",
|
|
44
42
|
prio: "none",
|
|
45
43
|
version: 3,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
name: "PRUEBA04BA",
|
|
55
|
-
upc: "001213"
|
|
44
|
+
description_status: "AA",
|
|
45
|
+
images_status: "AA",
|
|
46
|
+
brand: "Garnier",
|
|
47
|
+
retailerOrder: 0,
|
|
48
|
+
missing: {
|
|
49
|
+
datasheet: null,
|
|
50
|
+
descriptions: null,
|
|
51
|
+
images: null
|
|
56
52
|
},
|
|
57
|
-
retailers: [{
|
|
58
|
-
id: 70,
|
|
59
|
-
name: "Bodega Aurrera"
|
|
60
|
-
}],
|
|
61
53
|
services: {
|
|
62
54
|
datasheets: 1,
|
|
63
55
|
descriptions: 1,
|
|
64
56
|
images: 1
|
|
65
57
|
},
|
|
58
|
+
article: {
|
|
59
|
+
category: "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
|
|
60
|
+
company_name: "GRUPO BRAHMA",
|
|
61
|
+
country: "México",
|
|
62
|
+
id_category: "697",
|
|
63
|
+
id_datasheet_especialist: 54,
|
|
64
|
+
id_datasheet_facilitator: 52,
|
|
65
|
+
id_description_especialist: 54,
|
|
66
|
+
id_description_facilitator: 52,
|
|
67
|
+
id_images_especialist: 55,
|
|
68
|
+
id_images_facilitator: 53,
|
|
69
|
+
id_order: 15142,
|
|
70
|
+
id_article: 39270,
|
|
71
|
+
id_auditor: 37,
|
|
72
|
+
name: "Acondicionador Garnier Fructis 650 ml",
|
|
73
|
+
timestamp: "2023-03-27T18:37:48.000Z",
|
|
74
|
+
upc: "750955287656712"
|
|
75
|
+
},
|
|
76
|
+
retailers: [{
|
|
77
|
+
id: 12,
|
|
78
|
+
name: "La Comer"
|
|
79
|
+
}, {
|
|
80
|
+
id: 29,
|
|
81
|
+
name: "Farmacias del Ahorro"
|
|
82
|
+
}, {
|
|
83
|
+
id: 63,
|
|
84
|
+
name: "DAX"
|
|
85
|
+
}],
|
|
66
86
|
statusByRetailer: {
|
|
67
|
-
|
|
68
|
-
datasheet: "
|
|
69
|
-
description: "
|
|
70
|
-
images: "
|
|
87
|
+
12: {
|
|
88
|
+
datasheet: "AA",
|
|
89
|
+
description: "AA",
|
|
90
|
+
images: "AA"
|
|
91
|
+
},
|
|
92
|
+
29: {
|
|
93
|
+
datasheet: "AA",
|
|
94
|
+
description: "AA",
|
|
95
|
+
images: "AA"
|
|
96
|
+
},
|
|
97
|
+
63: {
|
|
98
|
+
datasheet: "AA",
|
|
99
|
+
description: "AA",
|
|
100
|
+
images: "AA"
|
|
71
101
|
}
|
|
72
102
|
},
|
|
73
|
-
|
|
74
|
-
id_article: 39372,
|
|
103
|
+
checked: false,
|
|
75
104
|
retailersAvailable: [{
|
|
76
|
-
id:
|
|
77
|
-
name: "
|
|
78
|
-
}
|
|
105
|
+
id: 12,
|
|
106
|
+
name: "La Comer"
|
|
107
|
+
}, {
|
|
108
|
+
id: 29,
|
|
109
|
+
name: "Farmacias del Ahorro"
|
|
110
|
+
}, {
|
|
111
|
+
id: 63,
|
|
112
|
+
name: "DAX"
|
|
113
|
+
}],
|
|
114
|
+
categoryName: "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
|
|
115
|
+
upc: "750955287656712",
|
|
116
|
+
id_article: 39270,
|
|
117
|
+
id_order: 15142
|
|
79
118
|
},
|
|
80
119
|
productToEdit: {
|
|
81
|
-
ArticleId:
|
|
82
|
-
idCategory: "
|
|
120
|
+
ArticleId: 39270,
|
|
121
|
+
idCategory: "697",
|
|
83
122
|
product: {
|
|
84
|
-
orderId:
|
|
85
|
-
|
|
86
|
-
datasheet_status: "
|
|
87
|
-
description_status: "AP",
|
|
88
|
-
images_status: "AP",
|
|
123
|
+
orderId: 15142,
|
|
124
|
+
status: "AA",
|
|
125
|
+
datasheet_status: "AA",
|
|
89
126
|
prio: "none",
|
|
90
127
|
version: 3,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
name: "PRUEBA04BA",
|
|
100
|
-
upc: "001213"
|
|
128
|
+
description_status: "AA",
|
|
129
|
+
images_status: "AA",
|
|
130
|
+
brand: "Garnier",
|
|
131
|
+
retailerOrder: 0,
|
|
132
|
+
missing: {
|
|
133
|
+
datasheet: null,
|
|
134
|
+
descriptions: null,
|
|
135
|
+
images: null
|
|
101
136
|
},
|
|
102
|
-
retailers: [{
|
|
103
|
-
id: 70,
|
|
104
|
-
name: "Bodega Aurrera"
|
|
105
|
-
}],
|
|
106
137
|
services: {
|
|
107
138
|
datasheets: 1,
|
|
108
139
|
descriptions: 1,
|
|
109
140
|
images: 1
|
|
110
141
|
},
|
|
142
|
+
article: {
|
|
143
|
+
category: "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
|
|
144
|
+
company_name: "GRUPO BRAHMA",
|
|
145
|
+
country: "México",
|
|
146
|
+
id_category: "697",
|
|
147
|
+
id_datasheet_especialist: 54,
|
|
148
|
+
id_datasheet_facilitator: 52,
|
|
149
|
+
id_description_especialist: 54,
|
|
150
|
+
id_description_facilitator: 52,
|
|
151
|
+
id_images_especialist: 55,
|
|
152
|
+
id_images_facilitator: 53,
|
|
153
|
+
id_order: 15142,
|
|
154
|
+
id_article: 39270,
|
|
155
|
+
id_auditor: 37,
|
|
156
|
+
name: "Acondicionador Garnier Fructis 650 ml",
|
|
157
|
+
timestamp: "2023-03-27T18:37:48.000Z",
|
|
158
|
+
upc: "750955287656712"
|
|
159
|
+
},
|
|
160
|
+
retailers: [{
|
|
161
|
+
id: 12,
|
|
162
|
+
name: "La Comer"
|
|
163
|
+
}, {
|
|
164
|
+
id: 29,
|
|
165
|
+
name: "Farmacias del Ahorro"
|
|
166
|
+
}, {
|
|
167
|
+
id: 63,
|
|
168
|
+
name: "DAX"
|
|
169
|
+
}],
|
|
111
170
|
statusByRetailer: {
|
|
112
|
-
|
|
113
|
-
datasheet: "
|
|
114
|
-
description: "
|
|
115
|
-
images: "
|
|
171
|
+
12: {
|
|
172
|
+
datasheet: "AA",
|
|
173
|
+
description: "AA",
|
|
174
|
+
images: "AA"
|
|
175
|
+
},
|
|
176
|
+
29: {
|
|
177
|
+
datasheet: "AA",
|
|
178
|
+
description: "AA",
|
|
179
|
+
images: "AA"
|
|
180
|
+
},
|
|
181
|
+
63: {
|
|
182
|
+
datasheet: "AA",
|
|
183
|
+
description: "AA",
|
|
184
|
+
images: "AA"
|
|
116
185
|
}
|
|
117
186
|
},
|
|
118
|
-
|
|
119
|
-
id_article: 39372,
|
|
187
|
+
checked: false,
|
|
120
188
|
retailersAvailable: [{
|
|
121
|
-
id:
|
|
122
|
-
name: "
|
|
123
|
-
}
|
|
189
|
+
id: 12,
|
|
190
|
+
name: "La Comer"
|
|
191
|
+
}, {
|
|
192
|
+
id: 29,
|
|
193
|
+
name: "Farmacias del Ahorro"
|
|
194
|
+
}, {
|
|
195
|
+
id: 63,
|
|
196
|
+
name: "DAX"
|
|
197
|
+
}],
|
|
198
|
+
categoryName: "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
|
|
199
|
+
upc: "750955287656712",
|
|
200
|
+
id_article: 39270,
|
|
201
|
+
id_order: 15142
|
|
124
202
|
}
|
|
125
203
|
},
|
|
126
204
|
location: {
|
|
@@ -128,35 +206,37 @@ ProviderProductEditionDefault.args = {
|
|
|
128
206
|
search: "",
|
|
129
207
|
hash: "",
|
|
130
208
|
state: {
|
|
209
|
+
withChat: true,
|
|
210
|
+
chatType: "product_status",
|
|
131
211
|
origin: "RequestWithContentoh"
|
|
132
212
|
},
|
|
133
213
|
key: "24vwut"
|
|
134
214
|
},
|
|
135
215
|
user: {
|
|
136
|
-
id_user:
|
|
137
|
-
name: "
|
|
138
|
-
last_name: "
|
|
139
|
-
email: "
|
|
140
|
-
position: "
|
|
141
|
-
telephone: "+
|
|
216
|
+
id_user: 28,
|
|
217
|
+
name: "Ismael",
|
|
218
|
+
last_name: "López",
|
|
219
|
+
email: "ilopez@contentoh.com",
|
|
220
|
+
position: "Test States",
|
|
221
|
+
telephone: "+523111366336",
|
|
142
222
|
country: "México",
|
|
143
|
-
id_company:
|
|
144
|
-
id_cognito: "
|
|
223
|
+
id_company: 1,
|
|
224
|
+
id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
|
|
145
225
|
birth_Date: null,
|
|
146
|
-
about_me:
|
|
147
|
-
zip_code:
|
|
148
|
-
address:
|
|
149
|
-
job:
|
|
150
|
-
id_stripe:
|
|
226
|
+
about_me: "",
|
|
227
|
+
zip_code: "",
|
|
228
|
+
address: "",
|
|
229
|
+
job: "",
|
|
230
|
+
id_stripe: "cus_KuEt6R6vwmN09f",
|
|
151
231
|
id_role: 0,
|
|
152
232
|
active: 1,
|
|
153
|
-
is_retailer:
|
|
233
|
+
is_retailer: 0,
|
|
154
234
|
email_notify: 1,
|
|
155
|
-
is_user_tech:
|
|
235
|
+
is_user_tech: "ADMIN-AS",
|
|
156
236
|
membership: {
|
|
157
|
-
id:
|
|
158
|
-
start_date: "2022-
|
|
159
|
-
end_date: "2023-
|
|
237
|
+
id: 76,
|
|
238
|
+
start_date: "2022-01-18T17:25:35.000Z",
|
|
239
|
+
end_date: "2023-01-18T17:25:35.000Z",
|
|
160
240
|
planID: 8,
|
|
161
241
|
plan: "prod_KtlhECVSFG2iro",
|
|
162
242
|
name: "Plan Pro",
|
|
@@ -164,30 +244,25 @@ ProviderProductEditionDefault.args = {
|
|
|
164
244
|
products_limit: "5000",
|
|
165
245
|
type: "Enterprise"
|
|
166
246
|
},
|
|
167
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
247
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1683926822779"
|
|
168
248
|
},
|
|
169
249
|
company: {
|
|
170
|
-
id_company:
|
|
171
|
-
trade_name: "
|
|
172
|
-
company_name: "
|
|
173
|
-
rfc: "
|
|
174
|
-
adress: "
|
|
175
|
-
about_company:
|
|
176
|
-
telephone:
|
|
177
|
-
web_site:
|
|
178
|
-
zip_code:
|
|
250
|
+
id_company: 1,
|
|
251
|
+
trade_name: "GRUPO BRAHMA",
|
|
252
|
+
company_name: "GRUPO BRAHMA",
|
|
253
|
+
rfc: "XAXX010101000",
|
|
254
|
+
adress: "AA",
|
|
255
|
+
about_company: "",
|
|
256
|
+
telephone: "",
|
|
257
|
+
web_site: "",
|
|
258
|
+
zip_code: "",
|
|
179
259
|
email: null,
|
|
180
|
-
social_link:
|
|
260
|
+
social_link: "",
|
|
181
261
|
is_retailer: 0,
|
|
182
|
-
financedRetailers: [{
|
|
183
|
-
id: 70,
|
|
184
|
-
name: "Bodega Aurrera",
|
|
185
|
-
country: "México"
|
|
186
|
-
}],
|
|
187
262
|
retailers: [{
|
|
188
|
-
id:
|
|
189
|
-
name:
|
|
190
|
-
country:
|
|
263
|
+
id: null,
|
|
264
|
+
name: null,
|
|
265
|
+
country: null
|
|
191
266
|
}]
|
|
192
267
|
},
|
|
193
268
|
showSurvey: function showSurvey(v) {
|