contentoh-components-library 21.2.87 → 21.2.89
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/ButtonFileChooser/ButtonFileChooser.stories.js +3 -3
- package/dist/components/atoms/ButtonFileChooser/index.js +7 -5
- package/dist/components/atoms/ButtonV2/ButtonV2.stories.js +3 -3
- package/dist/components/atoms/ButtonV2/index.js +5 -3
- package/dist/components/atoms/CustomIcon/CustomIcon.stories.js +3 -3
- package/dist/components/atoms/CustomIcon/index.js +5 -3
- package/dist/components/atoms/IconFile/IconFile.stories.js +3 -3
- package/dist/components/atoms/IconFile/index.js +7 -9
- package/dist/components/atoms/Image/Image.stories.js +3 -3
- package/dist/components/atoms/Image/index.js +5 -3
- package/dist/components/atoms/ImageLink/ImageLink.stories.js +3 -3
- package/dist/components/atoms/ImageLink/index.js +5 -3
- package/dist/components/atoms/ImagePreview/ImagePreview.stories.js +3 -3
- package/dist/components/atoms/ImagePreview/index.js +13 -11
- package/dist/components/atoms/InputText/InputText.stories.js +3 -5
- package/dist/components/atoms/InputText/index.js +7 -5
- package/dist/components/atoms/NotFound/NotFound.stories.js +3 -3
- package/dist/components/atoms/NotFound/index.js +9 -7
- package/dist/components/atoms/Tooltip/Tooltip.stories.js +3 -3
- package/dist/components/atoms/Tooltip/index.js +5 -3
- package/dist/components/molecules/ButtonDownloadFile/DownloadFile.stories.js +3 -3
- package/dist/components/molecules/ButtonDownloadFile/index.js +9 -9
- package/dist/components/molecules/HeaderTop/index.js +1 -3
- package/dist/components/molecules/ImageTooltip/ImageTooltip.stories.js +3 -3
- package/dist/components/molecules/ImageTooltip/index.js +7 -7
- package/dist/components/organisms/Chat/Chat.stories.js +3 -3
- package/dist/components/organisms/Chat/ChatLists/ChatLists.stories.js +3 -3
- package/dist/components/organisms/Chat/ChatLists/index.js +12 -10
- package/dist/components/organisms/Chat/ContainerItems/ContainerItems.stories.js +3 -3
- package/dist/components/organisms/Chat/ContainerItems/index.js +24 -22
- package/dist/components/organisms/Chat/ContentChat/index.js +17 -17
- package/dist/components/organisms/Chat/Footer/Footer.stories.js +3 -3
- package/dist/components/organisms/Chat/Footer/index.js +26 -24
- package/dist/components/organisms/Chat/Header/Header.stories.js +3 -3
- package/dist/components/organisms/Chat/Header/index.js +13 -13
- package/dist/components/organisms/Chat/index.js +7 -5
- package/dist/components/organisms/Modal/Modal.stories.js +6 -6
- package/dist/components/organisms/Modal/index.js +9 -9
- package/dist/index.js +215 -46
- package/package.json +1 -1
- package/src/components/atoms/ButtonFileChooser/ButtonFileChooser.stories.js +1 -1
- package/src/components/atoms/ButtonFileChooser/index.js +3 -4
- package/src/components/atoms/ButtonV2/ButtonV2.stories.js +1 -1
- package/src/components/atoms/ButtonV2/index.js +2 -2
- package/src/components/atoms/CustomIcon/CustomIcon.stories.js +1 -1
- package/src/components/atoms/CustomIcon/index.js +2 -2
- package/src/components/atoms/IconFile/IconFile.stories.js +1 -1
- package/src/components/atoms/IconFile/index.js +3 -4
- package/src/components/atoms/Image/Image.stories.js +1 -1
- package/src/components/atoms/Image/index.js +2 -2
- package/src/components/atoms/ImageLink/ImageLink.stories.js +1 -1
- package/src/components/atoms/ImageLink/index.js +2 -3
- package/src/components/atoms/ImagePreview/ImagePreview.stories.js +1 -1
- package/src/components/atoms/ImagePreview/index.js +5 -6
- package/src/components/atoms/InputText/InputText.stories.js +1 -2
- package/src/components/atoms/InputText/index.js +2 -4
- package/src/components/atoms/NotFound/NotFound.stories.js +1 -1
- package/src/components/atoms/NotFound/index.js +4 -5
- package/src/components/atoms/Tooltip/Tooltip.stories.js +1 -1
- package/src/components/atoms/Tooltip/index.js +2 -2
- package/src/components/molecules/ButtonDownloadFile/DownloadFile.stories.js +1 -1
- package/src/components/molecules/ButtonDownloadFile/index.js +4 -6
- package/src/components/molecules/HeaderTop/index.js +1 -1
- package/src/components/molecules/ImageTooltip/ImageTooltip.stories.js +1 -1
- package/src/components/molecules/ImageTooltip/index.js +3 -5
- package/src/components/organisms/Chat/Chat.stories.js +1 -1
- package/src/components/organisms/Chat/ChatLists/ChatLists.stories.js +1 -1
- package/src/components/organisms/Chat/ChatLists/index.js +5 -5
- package/src/components/organisms/Chat/ContainerItems/ContainerItems.stories.js +1 -1
- package/src/components/organisms/Chat/ContainerItems/index.js +9 -9
- package/src/components/organisms/Chat/ContentChat/index.js +10 -10
- package/src/components/organisms/Chat/Footer/Footer.stories.js +1 -1
- package/src/components/organisms/Chat/Footer/index.js +11 -11
- package/src/components/organisms/Chat/Header/Header.stories.js +1 -1
- package/src/components/organisms/Chat/Header/index.js +5 -5
- package/src/components/organisms/Chat/index.js +3 -4
- package/src/components/organisms/Modal/Modal.stories.js +2 -2
- package/src/components/organisms/Modal/index.js +4 -4
- package/src/index.js +13 -0
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.ButtonDownloadFile = void 0;
|
|
9
9
|
|
|
10
10
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
11
|
|
|
@@ -15,15 +15,13 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm
|
|
|
15
15
|
|
|
16
16
|
var _styles = require("./styles");
|
|
17
17
|
|
|
18
|
-
var _reactFontawesome = require("@fortawesome/react-fontawesome");
|
|
19
|
-
|
|
20
18
|
var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
21
19
|
|
|
22
20
|
var _react = require("react");
|
|
23
21
|
|
|
24
|
-
var _ButtonV =
|
|
22
|
+
var _ButtonV = require("../../atoms/ButtonV2");
|
|
25
23
|
|
|
26
|
-
var _IconFile =
|
|
24
|
+
var _IconFile = require("../../atoms/IconFile");
|
|
27
25
|
|
|
28
26
|
var _axios = _interopRequireDefault(require("axios"));
|
|
29
27
|
|
|
@@ -31,7 +29,7 @@ var _utils = require("../../../global-files/utils");
|
|
|
31
29
|
|
|
32
30
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
31
|
|
|
34
|
-
function ButtonDownloadFile(props) {
|
|
32
|
+
var ButtonDownloadFile = function ButtonDownloadFile(props) {
|
|
35
33
|
var id = props.id,
|
|
36
34
|
key = props.key,
|
|
37
35
|
className = props.className,
|
|
@@ -138,7 +136,7 @@ function ButtonDownloadFile(props) {
|
|
|
138
136
|
setShowDownload(false); //console.log("showIconFile");
|
|
139
137
|
}
|
|
140
138
|
},
|
|
141
|
-
children: showDownload ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.
|
|
139
|
+
children: showDownload ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
142
140
|
className: "buttonDownload",
|
|
143
141
|
type: type,
|
|
144
142
|
transparent: transparent,
|
|
@@ -166,7 +164,7 @@ function ButtonDownloadFile(props) {
|
|
|
166
164
|
return _ref2.apply(this, arguments);
|
|
167
165
|
};
|
|
168
166
|
}()
|
|
169
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconFile.
|
|
167
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconFile.IconFile, {
|
|
170
168
|
className: "iconFile",
|
|
171
169
|
type: type,
|
|
172
170
|
transparent: transparent,
|
|
@@ -176,4 +174,6 @@ function ButtonDownloadFile(props) {
|
|
|
176
174
|
})
|
|
177
175
|
}, key)
|
|
178
176
|
});
|
|
179
|
-
}
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
exports.ButtonDownloadFile = ButtonDownloadFile;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
@@ -15,7 +13,7 @@ var _index2 = require("../../atoms/GeneralButton/index");
|
|
|
15
13
|
|
|
16
14
|
var _react = require("react");
|
|
17
15
|
|
|
18
|
-
var _Chat =
|
|
16
|
+
var _Chat = require("../../organisms/Chat");
|
|
19
17
|
|
|
20
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
19
|
|
|
@@ -9,19 +9,19 @@ exports.default = exports.ImageTooltipTest = exports.ImageTooltipOK = exports.Im
|
|
|
9
9
|
|
|
10
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
11
|
|
|
12
|
-
var _index =
|
|
12
|
+
var _index = require("./index");
|
|
13
13
|
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
|
|
16
16
|
var _default = {
|
|
17
17
|
title: "Components/molecules/ImageTooltip",
|
|
18
|
-
component: _index.
|
|
18
|
+
component: _index.ImageTooltip,
|
|
19
19
|
argTypes: {}
|
|
20
20
|
};
|
|
21
21
|
exports.default = _default;
|
|
22
22
|
|
|
23
23
|
var Template = function Template(args) {
|
|
24
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.
|
|
24
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ImageTooltip, (0, _objectSpread2.default)({}, args));
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
var keyS3_test = "84300/1/chat/playa-213f791b-d890-48e1-be19-28bf5a95d517.jpeg";
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.ImageTooltip = void 0;
|
|
9
9
|
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
11
|
|
|
@@ -15,15 +15,13 @@ var _reactFontawesome = require("@fortawesome/react-fontawesome");
|
|
|
15
15
|
|
|
16
16
|
var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
17
17
|
|
|
18
|
-
var _defaultUpdate = _interopRequireDefault(require("../../../assets/images/defaultImages/defaultUpdate.png"));
|
|
19
|
-
|
|
20
18
|
var _react = require("react");
|
|
21
19
|
|
|
22
|
-
var _Tooltip =
|
|
20
|
+
var _Tooltip = require("../../atoms/Tooltip");
|
|
23
21
|
|
|
24
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
23
|
|
|
26
|
-
function ImageTooltip(props) {
|
|
24
|
+
var ImageTooltip = function ImageTooltip(props) {
|
|
27
25
|
var className = props.className,
|
|
28
26
|
width = props.width,
|
|
29
27
|
sizeLoading = props.sizeLoading,
|
|
@@ -53,7 +51,7 @@ function ImageTooltip(props) {
|
|
|
53
51
|
*/
|
|
54
52
|
|
|
55
53
|
|
|
56
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Tooltip.
|
|
54
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Tooltip.Tooltip, {
|
|
57
55
|
position: "topCenter",
|
|
58
56
|
addArrow: false,
|
|
59
57
|
transitionType: "zoom",
|
|
@@ -81,4 +79,6 @@ function ImageTooltip(props) {
|
|
|
81
79
|
show: imgLoad === true && !loading
|
|
82
80
|
})]
|
|
83
81
|
});
|
|
84
|
-
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
exports.ImageTooltip = ImageTooltip;
|
|
@@ -9,13 +9,13 @@ exports.default = exports.chatTECH_ticketOpen_user65 = exports.chatTECH_ticketOp
|
|
|
9
9
|
|
|
10
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
11
|
|
|
12
|
-
var _index =
|
|
12
|
+
var _index = require("./index");
|
|
13
13
|
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
|
|
16
16
|
var _default = {
|
|
17
17
|
title: "Components/organisms/Chat",
|
|
18
|
-
component: _index.
|
|
18
|
+
component: _index.Chat,
|
|
19
19
|
argTypes: {
|
|
20
20
|
chatContainerType: {
|
|
21
21
|
options: ["popUp", "fixed"],
|
|
@@ -34,7 +34,7 @@ var _default = {
|
|
|
34
34
|
exports.default = _default;
|
|
35
35
|
|
|
36
36
|
var Template = function Template(args) {
|
|
37
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.
|
|
37
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Chat, (0, _objectSpread2.default)({}, args));
|
|
38
38
|
}; // ejemplo del chat orderProduct con user CADENA
|
|
39
39
|
|
|
40
40
|
|
|
@@ -9,7 +9,7 @@ exports.onlyOpenChatLists = exports.exampleChatLists = exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
11
|
|
|
12
|
-
var _index =
|
|
12
|
+
var _index = require("./index");
|
|
13
13
|
|
|
14
14
|
var _THD = _interopRequireDefault(require("./THD.png"));
|
|
15
15
|
|
|
@@ -19,12 +19,12 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
19
19
|
|
|
20
20
|
var _default = {
|
|
21
21
|
title: "Components/organisms/Chat/ChatLists",
|
|
22
|
-
component: _index.
|
|
22
|
+
component: _index.ChatLists
|
|
23
23
|
};
|
|
24
24
|
exports.default = _default;
|
|
25
25
|
|
|
26
26
|
var Template = function Template(args) {
|
|
27
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.
|
|
27
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ChatLists, (0, _objectSpread2.default)({}, args));
|
|
28
28
|
}; // companies de prueba
|
|
29
29
|
|
|
30
30
|
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.ChatLists = void 0;
|
|
9
9
|
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
11
|
|
|
@@ -17,15 +17,15 @@ var _utils = require("../../../../global-files/utils");
|
|
|
17
17
|
|
|
18
18
|
var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
19
19
|
|
|
20
|
-
var _CustomIcon =
|
|
20
|
+
var _CustomIcon = require("../../../atoms/CustomIcon");
|
|
21
21
|
|
|
22
|
-
var _Image =
|
|
22
|
+
var _Image = require("../../../atoms/Image");
|
|
23
23
|
|
|
24
|
-
var _Tooltip =
|
|
24
|
+
var _Tooltip = require("../../../atoms/Tooltip");
|
|
25
25
|
|
|
26
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
27
|
|
|
28
|
-
function ChatLists(props) {
|
|
28
|
+
var ChatLists = function ChatLists(props) {
|
|
29
29
|
var companies = props.companies,
|
|
30
30
|
currentCompanyId = props.currentCompanyId,
|
|
31
31
|
onClickCompany = props.onClickCompany;
|
|
@@ -56,13 +56,13 @@ function ChatLists(props) {
|
|
|
56
56
|
onClick: function onClick(event) {
|
|
57
57
|
onClickCompany && onClickCompany(companyId);
|
|
58
58
|
},
|
|
59
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Image.
|
|
59
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Image.Image, {
|
|
60
60
|
className: "img-logoCompany",
|
|
61
61
|
width: "34px",
|
|
62
62
|
sizeLoading: 24,
|
|
63
63
|
colorLoading: undefined,
|
|
64
64
|
src: company.src,
|
|
65
|
-
componentDefault: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.
|
|
65
|
+
componentDefault: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.CustomIcon, {
|
|
66
66
|
className: "icon-logoCompany",
|
|
67
67
|
type: "white",
|
|
68
68
|
borderType: "circle",
|
|
@@ -103,7 +103,7 @@ function ChatLists(props) {
|
|
|
103
103
|
children: [openChats.length !== 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)("section", {
|
|
104
104
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
105
105
|
className: "container-headerChats",
|
|
106
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.
|
|
106
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.Tooltip, {
|
|
107
107
|
className: "tooltip-title",
|
|
108
108
|
position: "topCenter",
|
|
109
109
|
addArrow: false,
|
|
@@ -129,7 +129,7 @@ function ChatLists(props) {
|
|
|
129
129
|
}), closedChats.length !== 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)("section", {
|
|
130
130
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
131
131
|
className: "container-headerChats",
|
|
132
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.
|
|
132
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.Tooltip, {
|
|
133
133
|
className: "tooltip-title",
|
|
134
134
|
position: "topCenter",
|
|
135
135
|
addArrow: false,
|
|
@@ -155,4 +155,6 @@ function ChatLists(props) {
|
|
|
155
155
|
})]
|
|
156
156
|
})
|
|
157
157
|
});
|
|
158
|
-
}
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
exports.ChatLists = ChatLists;
|
|
@@ -9,18 +9,18 @@ exports.exampleChat = exports.emptyChat = exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
11
|
|
|
12
|
-
var _index =
|
|
12
|
+
var _index = require("./index");
|
|
13
13
|
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
|
|
16
16
|
var _default = {
|
|
17
17
|
title: "Components/organisms/Chat/ContainerItems",
|
|
18
|
-
component: _index.
|
|
18
|
+
component: _index.ContainerItems
|
|
19
19
|
};
|
|
20
20
|
exports.default = _default;
|
|
21
21
|
|
|
22
22
|
var Template = function Template(args) {
|
|
23
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ContainerItems, (0, _objectSpread2.default)({}, args));
|
|
24
24
|
}; // items de prueba
|
|
25
25
|
|
|
26
26
|
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.ContainerItems = void 0;
|
|
9
9
|
|
|
10
10
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
11
|
|
|
@@ -23,29 +23,29 @@ var _react = require("react");
|
|
|
23
23
|
|
|
24
24
|
var _data = require("../../../../global-files/data");
|
|
25
25
|
|
|
26
|
-
var _ImageTooltip =
|
|
26
|
+
var _ImageTooltip = require("../../../molecules/ImageTooltip");
|
|
27
27
|
|
|
28
28
|
var _utils = require("../../../../global-files/utils");
|
|
29
29
|
|
|
30
30
|
var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
31
31
|
|
|
32
|
-
var _CustomIcon =
|
|
32
|
+
var _CustomIcon = require("../../../atoms/CustomIcon");
|
|
33
33
|
|
|
34
|
-
var _ButtonV =
|
|
34
|
+
var _ButtonV = require("../../../atoms/ButtonV2");
|
|
35
35
|
|
|
36
|
-
var _ButtonDownloadFile =
|
|
36
|
+
var _ButtonDownloadFile = require("../../../molecules/ButtonDownloadFile");
|
|
37
37
|
|
|
38
|
-
var _Modal =
|
|
38
|
+
var _Modal = require("../../Modal");
|
|
39
39
|
|
|
40
|
-
var _Tooltip =
|
|
40
|
+
var _Tooltip = require("../../../atoms/Tooltip");
|
|
41
41
|
|
|
42
42
|
var _material = require("@mui/material");
|
|
43
43
|
|
|
44
|
-
var _ImagePreview =
|
|
44
|
+
var _ImagePreview = require("../../../atoms/ImagePreview");
|
|
45
45
|
|
|
46
46
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
47
47
|
|
|
48
|
-
function ContainerItems(props) {
|
|
48
|
+
var ContainerItems = function ContainerItems(props) {
|
|
49
49
|
var items = props.items,
|
|
50
50
|
users = props.users,
|
|
51
51
|
currentUser = props.currentUser,
|
|
@@ -178,7 +178,7 @@ function ContainerItems(props) {
|
|
|
178
178
|
};
|
|
179
179
|
|
|
180
180
|
var renderStatusTicketNeutral = function renderStatusTicketNeutral(item) {
|
|
181
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.
|
|
181
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.Tooltip, {
|
|
182
182
|
componentTooltip: /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
183
183
|
children: users[item.userId].name
|
|
184
184
|
}),
|
|
@@ -220,7 +220,7 @@ function ContainerItems(props) {
|
|
|
220
220
|
var modalImgURL = (0, _utils.getImageURL)(process.env.REACT_APP_IMAGES_BUCKET, value.key, screen.width, modalImgHeight);
|
|
221
221
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
222
222
|
className: "item-img",
|
|
223
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImagePreview.
|
|
223
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImagePreview.ImagePreview, {
|
|
224
224
|
className: "container-ImagePreview",
|
|
225
225
|
width: "100%",
|
|
226
226
|
sizeLoading: 35,
|
|
@@ -230,7 +230,7 @@ function ContainerItems(props) {
|
|
|
230
230
|
downloadImgURL: originalImgURL,
|
|
231
231
|
imageName: value.name,
|
|
232
232
|
showButtonDownload: true,
|
|
233
|
-
componentDefault: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.
|
|
233
|
+
componentDefault: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.Tooltip, {
|
|
234
234
|
componentTooltip: /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
235
235
|
children: value.name
|
|
236
236
|
}),
|
|
@@ -239,7 +239,7 @@ function ContainerItems(props) {
|
|
|
239
239
|
addArrow: false,
|
|
240
240
|
transitionType: "zoom",
|
|
241
241
|
followCursor: false,
|
|
242
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.
|
|
242
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.CustomIcon, {
|
|
243
243
|
className: "iconDefaultImg",
|
|
244
244
|
type: "white",
|
|
245
245
|
size: 60,
|
|
@@ -247,7 +247,7 @@ function ContainerItems(props) {
|
|
|
247
247
|
icon: _freeSolidSvgIcons.faImage
|
|
248
248
|
})
|
|
249
249
|
}),
|
|
250
|
-
componentDefaultModal: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.
|
|
250
|
+
componentDefaultModal: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.Tooltip, {
|
|
251
251
|
componentTooltip: /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
252
252
|
children: value.name
|
|
253
253
|
}),
|
|
@@ -256,7 +256,7 @@ function ContainerItems(props) {
|
|
|
256
256
|
addArrow: false,
|
|
257
257
|
transitionType: "zoom",
|
|
258
258
|
followCursor: false,
|
|
259
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.
|
|
259
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.CustomIcon, {
|
|
260
260
|
className: "iconDefaultImgModal",
|
|
261
261
|
type: "white",
|
|
262
262
|
size: 100,
|
|
@@ -285,7 +285,7 @@ function ContainerItems(props) {
|
|
|
285
285
|
var url = "".concat(process.env.REACT_APP_IMAGES_ENDPOINT, "/").concat(value.key);
|
|
286
286
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
287
287
|
className: "item-file",
|
|
288
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonDownloadFile.
|
|
288
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonDownloadFile.ButtonDownloadFile, {
|
|
289
289
|
className: "btnDownloadFileItem",
|
|
290
290
|
size: 22,
|
|
291
291
|
type: ownMessage ? "black" : "white",
|
|
@@ -300,7 +300,7 @@ function ContainerItems(props) {
|
|
|
300
300
|
};
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.
|
|
303
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.Tooltip, {
|
|
304
304
|
componentTooltip: /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
305
305
|
children: value.name
|
|
306
306
|
}),
|
|
@@ -323,12 +323,12 @@ function ContainerItems(props) {
|
|
|
323
323
|
container: containerList.current,
|
|
324
324
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
325
325
|
className: (ownMessage ? "own-message " : "") + (lastUserId == item.userId ? "sameUser" : ""),
|
|
326
|
-
children: [lastUserId !== item.userId && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageTooltip.
|
|
326
|
+
children: [lastUserId !== item.userId && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageTooltip.ImageTooltip, {
|
|
327
327
|
className: "container-imgUser",
|
|
328
328
|
sizeLoading: 25,
|
|
329
329
|
colorLoading: undefined,
|
|
330
330
|
src: (0, _data.getProfilePicture)(item.userId, 34, 34),
|
|
331
|
-
componentDefault: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.
|
|
331
|
+
componentDefault: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.CustomIcon, {
|
|
332
332
|
className: "icon-imgUser",
|
|
333
333
|
type: "whiteS2",
|
|
334
334
|
size: 17,
|
|
@@ -495,7 +495,7 @@ function ContainerItems(props) {
|
|
|
495
495
|
id: "containerItems",
|
|
496
496
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
497
497
|
className: "btn-loadMore",
|
|
498
|
-
children: showBtnLoadMore && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.
|
|
498
|
+
children: showBtnLoadMore && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
499
499
|
className: "container-btnLoadMore",
|
|
500
500
|
type: "purple",
|
|
501
501
|
label: "cargar más",
|
|
@@ -553,7 +553,7 @@ function ContainerItems(props) {
|
|
|
553
553
|
ref: containerList,
|
|
554
554
|
children: customItems
|
|
555
555
|
})]
|
|
556
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.
|
|
556
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.Modal, {
|
|
557
557
|
show: modalAlert.show,
|
|
558
558
|
title: modalAlert.title,
|
|
559
559
|
message: modalAlert.message,
|
|
@@ -567,4 +567,6 @@ function ContainerItems(props) {
|
|
|
567
567
|
}
|
|
568
568
|
})]
|
|
569
569
|
});
|
|
570
|
-
}
|
|
570
|
+
};
|
|
571
|
+
|
|
572
|
+
exports.ContainerItems = ContainerItems;
|
|
@@ -23,29 +23,29 @@ var _styles = require("./styles");
|
|
|
23
23
|
|
|
24
24
|
var _react = require("react");
|
|
25
25
|
|
|
26
|
-
var _Tooltip =
|
|
26
|
+
var _Tooltip = require("../../../atoms/Tooltip");
|
|
27
27
|
|
|
28
|
-
var _NotFound =
|
|
28
|
+
var _NotFound = require("../../../atoms/NotFound");
|
|
29
29
|
|
|
30
|
-
var _ButtonV =
|
|
30
|
+
var _ButtonV = require("../../../atoms/ButtonV2");
|
|
31
31
|
|
|
32
|
-
var _Header =
|
|
32
|
+
var _Header = require("../Header");
|
|
33
33
|
|
|
34
34
|
var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
35
35
|
|
|
36
36
|
var _Loading = require("../../../atoms/Loading");
|
|
37
37
|
|
|
38
|
-
var _ContainerItems =
|
|
38
|
+
var _ContainerItems = require("../ContainerItems");
|
|
39
39
|
|
|
40
|
-
var _Footer =
|
|
40
|
+
var _Footer = require("../Footer");
|
|
41
41
|
|
|
42
|
-
var _ChatLists =
|
|
42
|
+
var _ChatLists = require("../ChatLists");
|
|
43
43
|
|
|
44
|
-
var _CustomIcon =
|
|
44
|
+
var _CustomIcon = require("../../../atoms/CustomIcon");
|
|
45
45
|
|
|
46
46
|
var _handle_http = require("../../../../global-files/handle_http");
|
|
47
47
|
|
|
48
|
-
var _Modal =
|
|
48
|
+
var _Modal = require("../../Modal");
|
|
49
49
|
|
|
50
50
|
var _utils = require("../../../../global-files/utils");
|
|
51
51
|
|
|
@@ -171,7 +171,7 @@ var ContentChat = function ContentChat(props) {
|
|
|
171
171
|
(0, _react.useEffect)(function () {
|
|
172
172
|
return function () {
|
|
173
173
|
console.log("componente chat desmontado");
|
|
174
|
-
|
|
174
|
+
if (processUpdateID !== undefined) clearTimeout(processUpdateID);
|
|
175
175
|
};
|
|
176
176
|
}, []); // al cargar el componente
|
|
177
177
|
|
|
@@ -1298,7 +1298,7 @@ var ContentChat = function ContentChat(props) {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
|
|
1300
1300
|
if (errorChat.existError) {
|
|
1301
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_NotFound.
|
|
1301
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_NotFound.NotFound, {
|
|
1302
1302
|
code: errorChat.code,
|
|
1303
1303
|
message: errorChat.message,
|
|
1304
1304
|
details: errorChat.errorDetail
|
|
@@ -1307,7 +1307,7 @@ var ContentChat = function ContentChat(props) {
|
|
|
1307
1307
|
|
|
1308
1308
|
|
|
1309
1309
|
if (showChatsList) {
|
|
1310
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChatLists.
|
|
1310
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChatLists.ChatLists, {
|
|
1311
1311
|
companies: companies,
|
|
1312
1312
|
currentCompanyId: currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyId,
|
|
1313
1313
|
onClickCompany: function onClickCompany(companyIdSelected) {
|
|
@@ -1330,7 +1330,7 @@ var ContentChat = function ContentChat(props) {
|
|
|
1330
1330
|
if (Object.keys(companies).length === 0) {
|
|
1331
1331
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1332
1332
|
className: "container-chatEmpty",
|
|
1333
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.
|
|
1333
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.CustomIcon, {
|
|
1334
1334
|
className: "icon-chat",
|
|
1335
1335
|
transparent: true,
|
|
1336
1336
|
size: 35,
|
|
@@ -1355,7 +1355,7 @@ var ContentChat = function ContentChat(props) {
|
|
|
1355
1355
|
var containerItems = null;
|
|
1356
1356
|
|
|
1357
1357
|
if (items.length) {
|
|
1358
|
-
containerItems = /*#__PURE__*/(0, _jsxRuntime.jsx)(_ContainerItems.
|
|
1358
|
+
containerItems = /*#__PURE__*/(0, _jsxRuntime.jsx)(_ContainerItems.ContainerItems, {
|
|
1359
1359
|
items: items,
|
|
1360
1360
|
users: allUsers,
|
|
1361
1361
|
showBtnLoadMore: enabledLoadMore,
|
|
@@ -1367,7 +1367,7 @@ var ContentChat = function ContentChat(props) {
|
|
|
1367
1367
|
} else {
|
|
1368
1368
|
containerItems = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1369
1369
|
className: "container-chatEmpty",
|
|
1370
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.
|
|
1370
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.CustomIcon, {
|
|
1371
1371
|
className: "icon-chat",
|
|
1372
1372
|
size: 35,
|
|
1373
1373
|
icon: _freeSolidSvgIcons.faComments,
|
|
@@ -1380,7 +1380,7 @@ var ContentChat = function ContentChat(props) {
|
|
|
1380
1380
|
}
|
|
1381
1381
|
|
|
1382
1382
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
1383
|
-
children: [containerItems, /*#__PURE__*/(0, _jsxRuntime.jsx)(_Footer.
|
|
1383
|
+
children: [containerItems, /*#__PURE__*/(0, _jsxRuntime.jsx)(_Footer.Footer, {
|
|
1384
1384
|
chatType: chatType,
|
|
1385
1385
|
dataChat: chatType === "merchant_product" ? {
|
|
1386
1386
|
id: dataChat.id,
|
|
@@ -1405,7 +1405,7 @@ var ContentChat = function ContentChat(props) {
|
|
|
1405
1405
|
|
|
1406
1406
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
1407
1407
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
1408
|
-
children: [(chatContainerType !== "fixed" || !isSingleChat()) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Header.
|
|
1408
|
+
children: [(chatContainerType !== "fixed" || !isSingleChat()) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Header.Header, {
|
|
1409
1409
|
showBtnClose: showBtnClose,
|
|
1410
1410
|
onClickBtnClose: onClickBtnClose,
|
|
1411
1411
|
showChatsList: showChatsList,
|
|
@@ -9,18 +9,18 @@ exports.exampleFooterChat = exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
11
|
|
|
12
|
-
var _index =
|
|
12
|
+
var _index = require("./index");
|
|
13
13
|
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
|
|
16
16
|
var _default = {
|
|
17
17
|
title: "Components/organisms/Chat/Footer",
|
|
18
|
-
component: _index.
|
|
18
|
+
component: _index.Footer
|
|
19
19
|
};
|
|
20
20
|
exports.default = _default;
|
|
21
21
|
|
|
22
22
|
var Template = function Template(args) {
|
|
23
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Footer, (0, _objectSpread2.default)({}, args));
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
var exampleFooterChat = Template.bind({});
|