contentoh-components-library 21.2.105 → 21.3.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/.env.development +5 -2
- package/.env.production +25 -25
- package/dist/assets/fonts/{roboto → Roboto}/LICENSE.txt +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-Black.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-BlackItalic.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-Bold.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-BoldItalic.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-Italic.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-Light.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-LightItalic.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-Medium.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-MediumItalic.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-Regular.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-Thin.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-ThinItalic.ttf +0 -0
- package/dist/assets/images/chatPopup/Spinner.gif +0 -0
- package/dist/assets/images/chatPopup/close.svg +3 -0
- package/dist/assets/images/chatPopup/defaultImage.png +0 -0
- package/dist/assets/images/chatPopup/defaultProfile.png +0 -0
- package/dist/assets/images/chatPopup/doc.svg +1 -0
- package/dist/assets/images/chatPopup/document.svg +1 -0
- package/dist/assets/images/chatPopup/iconChat.svg +19 -0
- package/dist/assets/images/chatPopup/iconPlus.svg +3 -0
- package/dist/assets/images/chatPopup/pdf.svg +75 -0
- package/dist/assets/images/chatPopup/remove.svg +4 -0
- package/dist/assets/images/chatPopup/send.svg +3 -0
- package/dist/assets/images/chatPopup/svgIcon.svg +109 -0
- package/dist/assets/images/chatPopup/upload_file.svg +3 -0
- package/dist/assets/images/chatPopup/xls.svg +53 -0
- package/dist/assets/images/customSelect/starIcon.svg +14 -0
- package/dist/assets/images/defaultImages/Spinner.gif +0 -0
- package/dist/assets/images/defaultImages/notFound.svg +124 -0
- package/dist/components/atoms/ButtonFileChooser/ButtonFileChooser.stories.js +72 -0
- package/dist/components/atoms/ButtonFileChooser/index.js +118 -0
- package/dist/components/atoms/ButtonFileChooser/styles.js +20 -0
- package/dist/components/atoms/ButtonV2/ButtonV2.stories.js +66 -0
- package/dist/components/atoms/ButtonV2/index.js +110 -0
- package/dist/components/atoms/ButtonV2/styles.js +53 -0
- package/dist/components/atoms/ChatPopUp/ChatPopUp.stories.js +28 -0
- package/dist/components/atoms/ChatPopUp/index.js +841 -0
- package/dist/components/atoms/ChatPopUp/styles.js +27 -0
- package/dist/components/atoms/ChatPopUp/utils/handlersChat.js +182 -0
- package/dist/components/atoms/CustomIcon/CustomIcon.stories.js +50 -0
- package/dist/components/atoms/CustomIcon/index.js +40 -0
- package/dist/components/atoms/CustomIcon/styles.js +33 -0
- package/dist/components/atoms/GeneralButton/index.js +2 -6
- package/dist/components/atoms/IconFile/IconFile.stories.js +48 -0
- package/dist/components/atoms/IconFile/index.js +249 -0
- package/dist/components/atoms/IconFile/styles.js +23 -0
- package/dist/components/atoms/Image/Image.stories.js +73 -0
- package/dist/components/atoms/Image/index.js +76 -0
- package/dist/components/atoms/Image/styles.js +43 -0
- package/dist/components/atoms/ImageLink/ImageLink.stories.js +63 -0
- package/dist/components/atoms/ImageLink/index.js +77 -0
- package/dist/components/atoms/ImageLink/styles.js +40 -0
- package/dist/components/atoms/ImagePreview/ImagePreview.stories.js +70 -0
- package/dist/components/atoms/ImagePreview/index.js +222 -0
- package/dist/components/atoms/ImagePreview/styles.js +44 -0
- package/dist/components/atoms/InputText/InputText.stories.js +60 -0
- package/dist/components/atoms/InputText/index.js +66 -0
- package/dist/components/atoms/InputText/styles.js +32 -0
- package/dist/components/atoms/NotFound/NotFound.stories.js +36 -0
- package/dist/components/atoms/NotFound/index.js +75 -0
- package/dist/components/atoms/NotFound/styles.js +20 -0
- package/dist/components/atoms/Select/VersionSelect.js +1 -2
- package/dist/components/atoms/SelectItemV2/SelectItemV2.stories.js +45 -0
- package/dist/components/atoms/SelectItemV2/index.js +57 -0
- package/dist/components/atoms/SelectItemV2/styles.js +30 -0
- package/dist/components/atoms/StatusTag/StatusTag.stories.js +48 -0
- package/dist/components/atoms/StatusTag/index.js +58 -0
- package/dist/components/atoms/StatusTag/styles.js +20 -0
- package/dist/components/atoms/Tooltip/Tooltip.stories.js +66 -0
- package/dist/components/atoms/Tooltip/index.js +72 -0
- package/dist/components/atoms/Tooltip/styles.js +20 -0
- package/dist/components/molecules/ButtonDownloadFile/DownloadFile.stories.js +66 -0
- package/dist/components/molecules/ButtonDownloadFile/index.js +179 -0
- package/dist/components/molecules/ButtonDownloadFile/styles.js +23 -0
- package/dist/components/molecules/CustomSelect/CustomSelect.stories.js +21 -22
- package/dist/components/molecules/CustomSelect/SelectItem.js +10 -1
- package/dist/components/molecules/Dropdown/Dropdown.stories.js +98 -0
- package/dist/components/molecules/Dropdown/index.js +150 -0
- package/dist/components/molecules/Dropdown/styles.js +26 -0
- package/dist/components/molecules/HeaderTop/index.js +10 -5
- package/dist/components/molecules/HeaderTop/styles.js +1 -1
- package/dist/components/molecules/ImageTooltip/ImageTooltip.stories.js +82 -0
- package/dist/components/molecules/ImageTooltip/index.js +85 -0
- package/dist/components/molecules/ImageTooltip/styles.js +33 -0
- package/dist/components/molecules/SelectV2/SelectV2.stories.js +119 -0
- package/dist/components/molecules/SelectV2/index.js +298 -0
- package/dist/components/molecules/SelectV2/styles.js +42 -0
- package/dist/components/organisms/Chat/Chat.stories.js +215 -0
- package/dist/components/organisms/Chat/ChatLists/ChatLists.stories.js +83 -0
- package/dist/components/organisms/Chat/ChatLists/index.js +160 -0
- package/dist/components/organisms/Chat/ChatLists/styles.js +29 -0
- package/dist/components/organisms/Chat/ContainerItems/ContainerItems.stories.js +176 -0
- package/dist/components/organisms/Chat/ContainerItems/index.js +569 -0
- package/dist/components/organisms/Chat/ContainerItems/styles.js +20 -0
- package/dist/components/organisms/Chat/ContentChat/ContentChat.stories.js +142 -0
- package/dist/components/organisms/Chat/ContentChat/index.js +1422 -0
- package/dist/components/organisms/Chat/ContentChat/styles.js +20 -0
- package/dist/components/organisms/Chat/Footer/Footer.stories.js +43 -0
- package/dist/components/organisms/Chat/Footer/index.js +984 -0
- package/dist/components/organisms/Chat/Footer/styles.js +32 -0
- package/dist/components/organisms/Chat/Header/Header.stories.js +96 -0
- package/dist/components/organisms/Chat/Header/index.js +84 -0
- package/dist/components/organisms/Chat/Header/styles.js +20 -0
- package/dist/components/organisms/Chat/index.js +327 -0
- package/dist/components/organisms/Chat/styles.js +29 -0
- package/dist/components/organisms/CreateVersion/RenderChilds.js +11 -11
- package/dist/components/organisms/CreateVersion/index.js +89 -30
- package/dist/components/organisms/Modal/Modal.stories.js +66 -0
- package/dist/components/organisms/Modal/index.js +95 -0
- package/dist/components/organisms/Modal/styles.js +20 -0
- package/dist/components/organisms/OrderDetail/OrderDetail.stories.js +1 -1
- package/dist/components/organisms/OrderDetail/index.js +11 -20
- package/dist/components/organisms/OrderDetail/styles.js +1 -1
- package/dist/components/organisms/OrderDetail/utils/Table/styles.js +1 -1
- package/dist/components/organisms/OrderDetail/utils/Table/utils.js +15 -45
- package/dist/components/organisms/RangeCalendar/RangeCalendar.stories.js +28 -0
- package/dist/components/organisms/RangeCalendar/index.js +140 -0
- package/dist/components/organisms/RangeCalendar/styles.js +27 -0
- package/dist/components/organisms/VersionSelector/index.js +2 -28
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +147 -69
- package/dist/components/pages/ProviderProductEdition/index.js +22 -2
- package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +37 -0
- package/dist/components/pages/RegistrationLoginFirstStep/index.js +269 -0
- package/dist/components/pages/RegistrationLoginFirstStep/styles.js +20 -0
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +67 -77
- package/dist/components/pages/RetailerProductEdition/index.js +24 -5
- package/dist/global-files/fonts.css +15 -3
- package/dist/global-files/handle_http.js +383 -0
- package/dist/global-files/utils.js +472 -0
- package/dist/global-files/variables.js +2 -0
- package/dist/index.js +267 -46
- package/package.json +12 -1
- package/src/assets/fonts/{roboto → Roboto}/LICENSE.txt +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-Black.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-BlackItalic.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-Bold.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-BoldItalic.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-Italic.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-Light.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-LightItalic.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-Medium.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-MediumItalic.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-Regular.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-Thin.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-ThinItalic.ttf +0 -0
- package/src/assets/images/customSelect/starIcon.svg +14 -0
- package/src/assets/images/defaultImages/Spinner.gif +0 -0
- package/src/assets/images/defaultImages/notFound.svg +124 -0
- package/src/components/atoms/ButtonFileChooser/ButtonFileChooser.stories.js +47 -0
- package/src/components/atoms/ButtonFileChooser/index.js +69 -0
- package/src/components/atoms/ButtonFileChooser/styles.js +4 -0
- package/src/components/atoms/ButtonV2/ButtonV2.stories.js +53 -0
- package/src/components/atoms/ButtonV2/index.js +85 -0
- package/src/components/atoms/ButtonV2/styles.js +217 -0
- package/src/components/atoms/CustomIcon/CustomIcon.stories.js +36 -0
- package/src/components/atoms/CustomIcon/index.js +41 -0
- package/src/components/atoms/CustomIcon/styles.js +85 -0
- package/src/components/atoms/GeneralButton/index.js +1 -4
- package/src/components/atoms/IconFile/IconFile.stories.js +35 -0
- package/src/components/atoms/IconFile/index.js +119 -0
- package/src/components/atoms/IconFile/styles.js +67 -0
- package/src/components/atoms/Image/Image.stories.js +51 -0
- package/src/components/atoms/Image/index.js +55 -0
- package/src/components/atoms/Image/styles.js +34 -0
- package/src/components/atoms/ImageLink/ImageLink.stories.js +43 -0
- package/src/components/atoms/ImageLink/index.js +57 -0
- package/src/components/atoms/ImageLink/styles.js +30 -0
- package/src/components/atoms/ImagePreview/ImagePreview.stories.js +52 -0
- package/src/components/atoms/ImagePreview/index.js +191 -0
- package/src/components/atoms/ImagePreview/styles.js +77 -0
- package/src/components/atoms/InputText/InputText.stories.js +39 -0
- package/src/components/atoms/InputText/index.js +61 -0
- package/src/components/atoms/InputText/styles.js +89 -0
- package/src/components/atoms/NotFound/NotFound.stories.js +19 -0
- package/src/components/atoms/NotFound/index.js +52 -0
- package/src/components/atoms/NotFound/styles.js +55 -0
- package/src/components/atoms/Select/VersionSelect.js +2 -4
- package/src/components/atoms/SelectItemV2/SelectItemV2.stories.js +26 -0
- package/src/components/atoms/SelectItemV2/index.js +61 -0
- package/src/components/atoms/SelectItemV2/styles.js +90 -0
- package/src/components/atoms/Tooltip/Tooltip.stories.js +51 -0
- package/src/components/atoms/Tooltip/index.js +59 -0
- package/src/components/atoms/Tooltip/styles.js +42 -0
- package/src/components/molecules/ButtonDownloadFile/DownloadFile.stories.js +54 -0
- package/src/components/molecules/ButtonDownloadFile/index.js +111 -0
- package/src/components/molecules/ButtonDownloadFile/styles.js +66 -0
- package/src/components/molecules/CustomSelect/CustomSelect.stories.js +20 -12
- package/src/components/molecules/CustomSelect/SelectItem.js +7 -0
- package/src/components/molecules/Dropdown/Dropdown.stories.js +103 -0
- package/src/components/molecules/Dropdown/index.js +150 -0
- package/src/components/molecules/Dropdown/styles.js +75 -0
- package/src/components/molecules/HeaderTop/index.js +11 -6
- package/src/components/molecules/HeaderTop/styles.js +4 -0
- package/src/components/molecules/ImageTooltip/ImageTooltip.stories.js +68 -0
- package/src/components/molecules/ImageTooltip/index.js +63 -0
- package/src/components/molecules/ImageTooltip/styles.js +18 -0
- package/src/components/molecules/SelectV2/SelectV2.stories.js +114 -0
- package/src/components/molecules/SelectV2/index.js +335 -0
- package/src/components/molecules/SelectV2/styles.js +105 -0
- package/src/components/organisms/Chat/Chat.stories.js +199 -0
- package/src/components/organisms/Chat/ChatLists/ChatLists.stories.js +65 -0
- 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 +141 -0
- package/src/components/organisms/Chat/ChatLists/styles.js +162 -0
- package/src/components/organisms/Chat/ContainerItems/ContainerItems.stories.js +142 -0
- package/src/components/organisms/Chat/ContainerItems/index.js +549 -0
- package/src/components/organisms/Chat/ContainerItems/styles.js +328 -0
- package/src/components/organisms/Chat/ContentChat/ContentChat.stories.js +102 -0
- 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 +900 -0
- package/src/components/organisms/Chat/ContentChat/styles.js +41 -0
- package/src/components/organisms/Chat/Footer/Footer.stories.js +22 -0
- package/src/components/organisms/Chat/Footer/index.js +669 -0
- package/src/components/organisms/Chat/Footer/styles.js +286 -0
- package/src/components/organisms/Chat/Header/Header.stories.js +66 -0
- package/src/components/organisms/Chat/Header/index.js +94 -0
- package/src/components/organisms/Chat/Header/styles.js +49 -0
- package/src/components/organisms/Chat/index.js +294 -0
- package/src/components/organisms/Chat/styles.js +42 -0
- package/src/components/organisms/CreateVersion/RenderChilds.js +34 -28
- package/src/components/organisms/CreateVersion/index.js +36 -16
- package/src/components/organisms/Modal/Modal.stories.js +55 -0
- package/src/components/organisms/Modal/index.js +97 -0
- package/src/components/organisms/Modal/styles.js +103 -0
- package/src/components/organisms/OrderDetail/OrderDetail.stories.js +1 -1
- package/src/components/organisms/OrderDetail/index.js +12 -19
- package/src/components/organisms/OrderDetail/styles.js +0 -1
- package/src/components/organisms/OrderDetail/utils/Table/styles.js +0 -26
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +15 -30
- package/src/components/organisms/RangeCalendar/RangeCalendar.stories.js +11 -0
- package/src/components/organisms/RangeCalendar/index.js +117 -0
- package/src/components/organisms/RangeCalendar/styles.js +883 -0
- package/src/components/organisms/VersionSelector/index.js +3 -18
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +166 -75
- package/src/components/pages/ProviderProductEdition/index.js +21 -2
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +67 -79
- package/src/components/pages/RetailerProductEdition/index.js +14 -2
- package/src/global-files/customHooks.js +2 -2
- package/src/global-files/fonts.css +15 -3
- package/src/global-files/handle_http.js +231 -0
- package/src/global-files/utils.js +300 -0
- package/src/global-files/variables.js +2 -0
- package/src/index.js +17 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports.SelectV2 = void 0;
|
|
11
|
+
|
|
12
|
+
var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createForOfIteratorHelper"));
|
|
13
|
+
|
|
14
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
15
|
+
|
|
16
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
|
17
|
+
|
|
18
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
19
|
+
|
|
20
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
21
|
+
|
|
22
|
+
var _material = require("@mui/material");
|
|
23
|
+
|
|
24
|
+
var _styles = require("./styles");
|
|
25
|
+
|
|
26
|
+
var _ButtonV = require("../../atoms/ButtonV2");
|
|
27
|
+
|
|
28
|
+
var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
29
|
+
|
|
30
|
+
var _utils = require("../../../global-files/utils");
|
|
31
|
+
|
|
32
|
+
var _SelectItemV = require("../../atoms/SelectItemV2");
|
|
33
|
+
|
|
34
|
+
var _InputText = require("../../atoms/InputText");
|
|
35
|
+
|
|
36
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
37
|
+
|
|
38
|
+
var SelectV2 = function SelectV2(props) {
|
|
39
|
+
var _positions$positionDr;
|
|
40
|
+
|
|
41
|
+
var items = props.items,
|
|
42
|
+
triggerType = props.triggerType,
|
|
43
|
+
selectButton = props.selectButton,
|
|
44
|
+
defaultItem = props.defaultItem,
|
|
45
|
+
inputSearch = props.inputSearch,
|
|
46
|
+
maxWidthSelect = props.maxWidthSelect,
|
|
47
|
+
maxWidthDropdown = props.maxWidthDropdown,
|
|
48
|
+
maxHeightDropdown = props.maxHeightDropdown,
|
|
49
|
+
maxWidthItems = props.maxWidthItems,
|
|
50
|
+
alignmentItemsOverflow = props.alignmentItemsOverflow,
|
|
51
|
+
typeSelectItems = props.typeSelectItems,
|
|
52
|
+
multiple = props.multiple,
|
|
53
|
+
borderType = props.borderType,
|
|
54
|
+
classNameSelect = props.classNameSelect,
|
|
55
|
+
classNameDropdown = props.classNameDropdown,
|
|
56
|
+
positionDropdown = props.positionDropdown,
|
|
57
|
+
onChange = props.onChange;
|
|
58
|
+
var positions = {
|
|
59
|
+
topStart: "top-start",
|
|
60
|
+
topEnd: "top-end",
|
|
61
|
+
topCenter: "top",
|
|
62
|
+
rightStart: "right-start",
|
|
63
|
+
rightEnd: "right-end",
|
|
64
|
+
rightCenter: "right",
|
|
65
|
+
bottomStart: "bottom-start",
|
|
66
|
+
bottomEnd: "bottom-end",
|
|
67
|
+
bottomCenter: "bottom",
|
|
68
|
+
leftStart: "left-start",
|
|
69
|
+
leftEnd: "left-end",
|
|
70
|
+
leftCenter: "left"
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
var _useState = (0, _react.useState)(),
|
|
74
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
75
|
+
selectedItems = _useState2[0],
|
|
76
|
+
setSelectedItems = _useState2[1]; // { .. }
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
var _useState3 = (0, _react.useState)([]),
|
|
80
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
81
|
+
customItems = _useState4[0],
|
|
82
|
+
setCustomItems = _useState4[1];
|
|
83
|
+
|
|
84
|
+
var _useState5 = (0, _react.useState)(false),
|
|
85
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
86
|
+
showDropdown = _useState6[0],
|
|
87
|
+
setShowDropdown = _useState6[1];
|
|
88
|
+
|
|
89
|
+
var _useState7 = (0, _react.useState)("Sin titulo"),
|
|
90
|
+
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
91
|
+
labelSelect = _useState8[0],
|
|
92
|
+
setLabelSelect = _useState8[1];
|
|
93
|
+
|
|
94
|
+
var _useState9 = (0, _react.useState)(""),
|
|
95
|
+
_useState10 = (0, _slicedToArray2.default)(_useState9, 2),
|
|
96
|
+
textInputSearch = _useState10[0],
|
|
97
|
+
setTextInputSearch = _useState10[1];
|
|
98
|
+
|
|
99
|
+
var refInputTextSearch = (0, _react.useRef)(); // cada que cambie la lista de items
|
|
100
|
+
|
|
101
|
+
(0, _react.useEffect)(function () {
|
|
102
|
+
if ((0, _utils.isArrayEmpty)(items)) {
|
|
103
|
+
setSelectedItems({});
|
|
104
|
+
return;
|
|
105
|
+
} // items iniciales seleccionados
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
var initialSelectedItems = {};
|
|
109
|
+
items.forEach(function (item) {
|
|
110
|
+
if (item.selected) {
|
|
111
|
+
if (multiple) initialSelectedItems[item.value] = item.value;else initialSelectedItems = (0, _defineProperty2.default)({}, item.value, item.value);
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
setSelectedItems(initialSelectedItems);
|
|
115
|
+
}, [items]); // cada que cambien los items seleccionados
|
|
116
|
+
|
|
117
|
+
(0, _react.useEffect)(function () {
|
|
118
|
+
if (!selectedItems) return;
|
|
119
|
+
renderItems();
|
|
120
|
+
renderLabelSelect();
|
|
121
|
+
onChange && onChange(Object.values(selectedItems));
|
|
122
|
+
}, [selectedItems]); // evento click de cada item de la lista
|
|
123
|
+
|
|
124
|
+
var onClickItem = function onClickItem(isSelected, value) {
|
|
125
|
+
var selectedItemsCopy = (0, _objectSpread2.default)({}, selectedItems);
|
|
126
|
+
|
|
127
|
+
if (isSelected) {
|
|
128
|
+
multiple ? selectedItemsCopy[value] = value : selectedItemsCopy = (0, _defineProperty2.default)({}, value, value);
|
|
129
|
+
} else delete selectedItemsCopy[value];
|
|
130
|
+
|
|
131
|
+
setSelectedItems(selectedItemsCopy);
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
var onClickSearch = function onClickSearch() {
|
|
135
|
+
setTextInputSearch(textInputSearch.trim());
|
|
136
|
+
(refInputTextSearch === null || refInputTextSearch === void 0 ? void 0 : refInputTextSearch.current) && refInputTextSearch.current.blur();
|
|
137
|
+
renderItems(textInputSearch.trim());
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
var renderLabelSelect = function renderLabelSelect() {
|
|
141
|
+
if (!selectedItems) return;
|
|
142
|
+
var selectedItemsCopy = Object.values(selectedItems);
|
|
143
|
+
|
|
144
|
+
if (selectedItemsCopy.length > 1) {
|
|
145
|
+
setLabelSelect("Personalizado");
|
|
146
|
+
} else if (selectedItemsCopy.length === 1) {
|
|
147
|
+
var labelItem = undefined;
|
|
148
|
+
|
|
149
|
+
var _iterator = (0, _createForOfIteratorHelper2.default)(items),
|
|
150
|
+
_step;
|
|
151
|
+
|
|
152
|
+
try {
|
|
153
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
154
|
+
var item = _step.value;
|
|
155
|
+
|
|
156
|
+
if (item.value == selectedItemsCopy[0]) {
|
|
157
|
+
labelItem = item.label;
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
} catch (err) {
|
|
162
|
+
_iterator.e(err);
|
|
163
|
+
} finally {
|
|
164
|
+
_iterator.f();
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
!(0, _utils.isStringEmpty)(labelItem) ? setLabelSelect(labelItem) : setLabelSelect("Sin titulo");
|
|
168
|
+
} else {
|
|
169
|
+
if (!(0, _utils.isStringEmpty)(defaultItem === null || defaultItem === void 0 ? void 0 : defaultItem.label) && defaultItem !== null && defaultItem !== void 0 && defaultItem.showLabelInSelect) {
|
|
170
|
+
setLabelSelect(defaultItem.label);
|
|
171
|
+
} else if (!(0, _utils.isStringEmpty)(selectButton === null || selectButton === void 0 ? void 0 : selectButton.label)) {
|
|
172
|
+
setLabelSelect(selectButton.label);
|
|
173
|
+
} else {
|
|
174
|
+
setLabelSelect("Sin titulo");
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
var renderItems = function renderItems() {
|
|
180
|
+
var textSearch = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
181
|
+
if ((0, _utils.isArrayEmpty)(items)) setCustomItems([]);
|
|
182
|
+
setCustomItems(items.map(function (item, index) {
|
|
183
|
+
if (!(0, _utils.isStringEmpty)(textSearch) && !item.label.trim().toLowerCase().includes(textSearch.trim().toLowerCase())) {
|
|
184
|
+
return null;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectItemV.SelectItemV2, {
|
|
188
|
+
label: item.label,
|
|
189
|
+
value: item.value,
|
|
190
|
+
checkbox: typeSelectItems === "checkbox" ? true : typeSelectItems === "marginCheckbox" ? false : undefined,
|
|
191
|
+
selected: selectedItems && selectedItems[item.value] ? true : false,
|
|
192
|
+
onClick: onClickItem
|
|
193
|
+
}, classNameSelect + "_item" + index);
|
|
194
|
+
}));
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.ClickAwayListener, {
|
|
198
|
+
onClickAway: function onClickAway(event) {
|
|
199
|
+
if (triggerType !== "hover") setShowDropdown(false);
|
|
200
|
+
},
|
|
201
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
202
|
+
className: !(0, _utils.isStringEmpty)(classNameSelect) ? classNameSelect : "",
|
|
203
|
+
borderType: borderType,
|
|
204
|
+
maxWidthSelect: maxWidthSelect,
|
|
205
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Tooltip, {
|
|
206
|
+
placement: (_positions$positionDr = positions[positionDropdown]) !== null && _positions$positionDr !== void 0 ? _positions$positionDr : positions.bottomCenter,
|
|
207
|
+
open: triggerType !== "hover" ? showDropdown : undefined,
|
|
208
|
+
arrow: false,
|
|
209
|
+
componentsProps: {
|
|
210
|
+
tooltip: {
|
|
211
|
+
className: "dropdownSelect" + ((0, _utils.isStringEmpty)(classNameDropdown) ? "" : " " + classNameDropdown)
|
|
212
|
+
},
|
|
213
|
+
popper: {
|
|
214
|
+
disablePortal: true
|
|
215
|
+
},
|
|
216
|
+
transition: {
|
|
217
|
+
timeout: 300
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
TransitionComponent: _material.Fade,
|
|
221
|
+
enterDelay: 100,
|
|
222
|
+
followCursor: false,
|
|
223
|
+
disableFocusListener: true,
|
|
224
|
+
disableTouchListener: true,
|
|
225
|
+
disableHoverListener: triggerType !== "hover" || (selectButton === null || selectButton === void 0 ? void 0 : selectButton.disabled),
|
|
226
|
+
title: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
227
|
+
children: [inputSearch && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
228
|
+
className: "container-inputSearch" + (!(0, _utils.isStringEmpty)(inputSearch === null || inputSearch === void 0 ? void 0 : inputSearch.className) ? " " + inputSearch.className : ""),
|
|
229
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
230
|
+
className: "buttonSearch",
|
|
231
|
+
type: "gray",
|
|
232
|
+
transparent: true,
|
|
233
|
+
size: 14,
|
|
234
|
+
icon: _freeSolidSvgIcons.faSearch,
|
|
235
|
+
onClick: function onClick(event) {
|
|
236
|
+
if ((0, _utils.isStringEmpty)(textInputSearch) && refInputTextSearch !== null && refInputTextSearch !== void 0 && refInputTextSearch.current) {
|
|
237
|
+
setTextInputSearch("");
|
|
238
|
+
refInputTextSearch.current.focus();
|
|
239
|
+
} else {
|
|
240
|
+
onClickSearch();
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputText.InputText, {
|
|
244
|
+
className: "inputSearch",
|
|
245
|
+
type: "black",
|
|
246
|
+
transparent: true,
|
|
247
|
+
size: 12,
|
|
248
|
+
placeHolder: (0, _utils.isStringEmpty)(inputSearch === null || inputSearch === void 0 ? void 0 : inputSearch.defaultText) ? "Texto a buscar" : inputSearch.defaultText,
|
|
249
|
+
text: textInputSearch,
|
|
250
|
+
onChangeText: function onChangeText(newValue) {
|
|
251
|
+
return setTextInputSearch(newValue);
|
|
252
|
+
},
|
|
253
|
+
onEnter: function onEnter(event) {
|
|
254
|
+
return onClickSearch();
|
|
255
|
+
},
|
|
256
|
+
refInputText: refInputTextSearch
|
|
257
|
+
})]
|
|
258
|
+
}), defaultItem && /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectItemV.SelectItemV2, {
|
|
259
|
+
label: defaultItem.label,
|
|
260
|
+
value: null,
|
|
261
|
+
checkbox: defaultItem.itemType === "checkbox" ? true : defaultItem.itemType === "marginCheckbox" ? false : undefined,
|
|
262
|
+
selected: selectedItems && Object.keys(selectedItems).length ? false : true,
|
|
263
|
+
onClick: function onClick(isSelected, value) {
|
|
264
|
+
selectedItems && Object.keys(selectedItems).length && setSelectedItems({});
|
|
265
|
+
}
|
|
266
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
267
|
+
className: "container-items",
|
|
268
|
+
children: customItems
|
|
269
|
+
})]
|
|
270
|
+
}),
|
|
271
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.ContainerSelect, {
|
|
272
|
+
className: "container-buttonSelect",
|
|
273
|
+
maxWidthDropdown: maxWidthDropdown,
|
|
274
|
+
maxHeightDropdown: maxHeightDropdown,
|
|
275
|
+
alignmentItemsOverflow: alignmentItemsOverflow,
|
|
276
|
+
maxWidthItems: maxWidthItems,
|
|
277
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
278
|
+
className: "buttonSelect" + (!(0, _utils.isStringEmpty)(selectButton === null || selectButton === void 0 ? void 0 : selectButton.className) ? " " + selectButton.className : ""),
|
|
279
|
+
disabled: selectButton === null || selectButton === void 0 ? void 0 : selectButton.disabled,
|
|
280
|
+
type: selectButton === null || selectButton === void 0 ? void 0 : selectButton.type,
|
|
281
|
+
transparent: selectButton === null || selectButton === void 0 ? void 0 : selectButton.transparent,
|
|
282
|
+
label: labelSelect,
|
|
283
|
+
size: selectButton === null || selectButton === void 0 ? void 0 : selectButton.size,
|
|
284
|
+
icon: _freeSolidSvgIcons.faCaretDown,
|
|
285
|
+
iconPosition: "end",
|
|
286
|
+
onClick: function onClick(event) {
|
|
287
|
+
if (triggerType !== "hover") setShowDropdown(function (prev) {
|
|
288
|
+
return !prev;
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
})
|
|
292
|
+
})
|
|
293
|
+
})
|
|
294
|
+
})
|
|
295
|
+
});
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
exports.SelectV2 = SelectV2;
|
|
@@ -0,0 +1,42 @@
|
|
|
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.ContainerSelect = exports.Container = void 0;
|
|
9
|
+
|
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
+
|
|
12
|
+
var _variables = require("../../../global-files/variables");
|
|
13
|
+
|
|
14
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
15
|
+
|
|
16
|
+
var _templateObject, _templateObject2;
|
|
17
|
+
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n max-width: ", ";\n //border: 1px solid red;\n border-radius: ", ";\n"])), function (_ref) {
|
|
19
|
+
var maxWidthSelect = _ref.maxWidthSelect;
|
|
20
|
+
return maxWidthSelect ? maxWidthSelect : "unset";
|
|
21
|
+
}, function (_ref2) {
|
|
22
|
+
var borderType = _ref2.borderType;
|
|
23
|
+
return (borderType === null || borderType === void 0 ? void 0 : borderType.toLowerCase()) === "rectangle" ? "6px" : (borderType === null || borderType === void 0 ? void 0 : borderType.toLowerCase()) === "oval" ? "17px" : "0px"; // default none
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
exports.Container = Container;
|
|
27
|
+
|
|
28
|
+
var ContainerSelect = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n border-radius: inherit;\n\n .buttonSelect {\n width: 100%;\n border-radius: inherit;\n\n .button {\n padding: 10px 16px;\n gap: 10px;\n .icon {\n font-size: 13px;\n }\n }\n }\n\n + .MuiTooltip-popper {\n background-color: transparent;\n\n .dropdownSelect {\n --background: white;\n box-shadow: 0px 0px 10px 1px gray;\n background-color: var(--background);\n padding: 0px 0px;\n border-radius: 7px;\n display: flex;\n flex-direction: column;\n gap: 0px;\n overflow: hidden;\n max-width: ", ";\n max-height: ", ";\n\n .container-inputSearch {\n width: 100%;\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: center;\n gap: 0px;\n padding: 0px 10px 8px 10px;\n border-bottom: 1px solid #f0f0f0;\n\n .inputSearch {\n padding-left: 8px;\n flex-grow: 2;\n }\n }\n\n .selectItemV2 {\n width: 100%;\n\n .button {\n justify-content: flex-start;\n }\n }\n\n .container-items {\n flex-grow: 2;\n display: flex;\n flex-direction: column;\n flex-wrap: ", ";\n overflow: auto;\n\n .selectItemV2 {\n width: ", ";\n }\n }\n }\n\n &[data-popper-placement*=\"bottom\"] .dropdownSelect {\n margin-top: 10px;\n }\n &[data-popper-placement*=\"top\"] .dropdownSelect {\n margin-bottom: 10px;\n }\n &[data-popper-placement*=\"left\"] .dropdownSelect {\n margin-right: 10px;\n }\n &[data-popper-placement*=\"right\"] .dropdownSelect {\n margin-left: 10px;\n }\n }\n"])), function (_ref3) {
|
|
29
|
+
var maxWidthDropdown = _ref3.maxWidthDropdown;
|
|
30
|
+
return maxWidthDropdown ? maxWidthDropdown : "400px";
|
|
31
|
+
}, function (_ref4) {
|
|
32
|
+
var maxHeightDropdown = _ref4.maxHeightDropdown;
|
|
33
|
+
return maxHeightDropdown ? maxHeightDropdown : "80vh";
|
|
34
|
+
}, function (_ref5) {
|
|
35
|
+
var alignmentItemsOverflow = _ref5.alignmentItemsOverflow;
|
|
36
|
+
return alignmentItemsOverflow === "columns" ? "wrap" : "nowrap";
|
|
37
|
+
}, function (_ref6) {
|
|
38
|
+
var maxWidthItems = _ref6.maxWidthItems;
|
|
39
|
+
return maxWidthItems ? maxWidthItems : "100%";
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
exports.ContainerSelect = ContainerSelect;
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.chatTECH_ticketOpen_user65 = exports.chatTECH_ticketOpenOwn_user66 = exports.chatTECH_ticketClosed_user65 = exports.chatTECH_ticketClosedOwn_user66 = exports.chatPROV_orderProduct = exports.chatFAB_ticketOpen_user49 = exports.chatFAB_ticketClosed_user49 = exports.chatFAB_orderProduct_user49 = exports.chatFAB_orderProduct_user37 = exports.chatCAD_orderProduct = exports.chatCAD_merchantsProduct = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _index = require("./index");
|
|
13
|
+
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
title: "Components/organisms/Chat",
|
|
18
|
+
component: _index.Chat,
|
|
19
|
+
argTypes: {
|
|
20
|
+
chatContainerType: {
|
|
21
|
+
options: ["popUp", "fixed"],
|
|
22
|
+
control: {
|
|
23
|
+
type: "select"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
chatType: {
|
|
27
|
+
options: ["order_product", "merchant_product", "ticket"],
|
|
28
|
+
control: {
|
|
29
|
+
type: "select"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.default = _default;
|
|
35
|
+
|
|
36
|
+
var Template = function Template(args) {
|
|
37
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Chat, (0, _objectSpread2.default)({}, args));
|
|
38
|
+
}; // ejemplo del chat orderProduct con user CADENA
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
var chatCAD_orderProduct = Template.bind({});
|
|
42
|
+
exports.chatCAD_orderProduct = chatCAD_orderProduct;
|
|
43
|
+
chatCAD_orderProduct.args = {
|
|
44
|
+
chatType: "order_product",
|
|
45
|
+
chatContainerType: "popUp",
|
|
46
|
+
chatData: {
|
|
47
|
+
userToken: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI1ODg0YWUzNC01OWQ2LTQ0NTQtYjk4ZS04MjE1MThiY2MzYTciLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjU4ODRhZTM0LTU5ZDYtNDQ1NC1iOThlLTgyMTUxOGJjYzNhNyIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI2YmI0NzExMi03ZTNiLTRjYzUtYmVhZS02MzMxZjEwYjk3MzIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2NTYxNjI0MSwibmFtZSI6IkNhZGVuYSBJc21hZWwiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMzY2MzM2IiwiZXhwIjoxNjY1NjE5ODQxLCJpYXQiOjE2NjU2MTYyNDEsImVtYWlsIjoiY2FkZW5hLmlzbWFlbEBhbGxmcmVlbWFpbC5uZXQifQ.gi1Jiua_O175vHLy-CYXOR945IRcObIj5j1LNk4_EhcKPz-MzPnfWDLH7L3sTiNS-VUhIRtAhtUVPUSYv0oP1qfJwFHomerxJvYgJge8SLWPjL6yGBnTxAvHVbuLU8kcaoZup2eNMV6XOIAEBAHeCDm4vW0rYWwfrKADPyYGZQF2si14o3wtgSMX5a4ccxGwikT3to3HttWBhmJs_I1Xr_BvBxePc4WghjQr5GVGbq8vhr4HwdkTmlcJAnQsc_fmIdbJ_ACyTa1wr343KYYOQVwBjAmZDa6rU16y0yTr_J4IVWY3aS5UpBEBHy4XE0c76UaN-_DcGiVl4ayWQIUz8A",
|
|
48
|
+
id: 84311,
|
|
49
|
+
retailerId: 68,
|
|
50
|
+
orderId: 3118
|
|
51
|
+
}
|
|
52
|
+
}; // ejemplo del chat orderProduct con user PROVEEDOR
|
|
53
|
+
|
|
54
|
+
var chatPROV_orderProduct = Template.bind({});
|
|
55
|
+
exports.chatPROV_orderProduct = chatPROV_orderProduct;
|
|
56
|
+
chatPROV_orderProduct.args = {
|
|
57
|
+
chatType: "order_product",
|
|
58
|
+
chatContainerType: "popUp",
|
|
59
|
+
chatData: {
|
|
60
|
+
userToken: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI5ZDBjYzVjOC1hODllLTRiZGQtOWUyZC0zNThhMDFjYzlhNjIiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjp0cnVlLCJjb2duaXRvOnVzZXJuYW1lIjoiOWQwY2M1YzgtYTg5ZS00YmRkLTllMmQtMzU4YTAxY2M5YTYyIiwiYXVkIjoiNTJkOXNra2RjZzhxanA4OG9vazF1c2U2bWsiLCJldmVudF9pZCI6IjU1NDQ5NzhmLWExMGEtNGE5Ni05M2NkLWY5Y2ZmNTFlNWRlOCIsInRva2VuX3VzZSI6ImlkIiwiYXV0aF90aW1lIjoxNjY1NjI0MjYyLCJuYW1lIjoiSXNtYWVsIExvcGV6IiwicGhvbmVfbnVtYmVyIjoiKzUyMzExMTM2NjMzNiIsImV4cCI6MTY2NTYyNzg2MiwiaWF0IjoxNjY1NjI0MjYyLCJlbWFpbCI6Imlsb3BlekBjb250ZW50b2guY29tIn0.bIDIv57LRgafkymcUY4DqFRxR91iTBlZ7H7v1o3TnwJpIFPUEvzfvHObDR534xfa-R5ZRz46YCjsV6yQ-2hd8OA97VFLrqyC8Yqx_hjoIA1QxX_5_-b4UWaIib_1wSkrWd2gQtuKAUucfzAisZp1UNiY6Sm4VPGXsc5Lk6kLo1X_rctLUlQMhl5KaMNaSWqvbcYZLz5XSpbJR_MHegkdquKBaQJVKl76TkvDT8Eyr6rPUUAtnRBAPfnP4dW82HgT-aZp-0wUH5fYcb02agPg4-wqVsxPr8WxihATqn9rVfR5CjZWYOGPdSw7AUS33yYAkx5Nmnz4oIcRlPsvF5U62g",
|
|
61
|
+
id: 84311,
|
|
62
|
+
retailerId: 68,
|
|
63
|
+
orderId: 3118
|
|
64
|
+
}
|
|
65
|
+
}; // ejemplo del chat orderProduct con user FABRICA 37
|
|
66
|
+
|
|
67
|
+
var chatFAB_orderProduct_user37 = Template.bind({});
|
|
68
|
+
exports.chatFAB_orderProduct_user37 = chatFAB_orderProduct_user37;
|
|
69
|
+
chatFAB_orderProduct_user37.args = {
|
|
70
|
+
chatType: "order_product",
|
|
71
|
+
chatContainerType: "popUp",
|
|
72
|
+
chatData: {
|
|
73
|
+
userToken: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI5YTIxMzEyOC02NDgyLTRjMTYtYTRiNi02ZTY0ZjIyNWIxYmQiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjlhMjEzMTI4LTY0ODItNGMxNi1hNGI2LTZlNjRmMjI1YjFiZCIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI1YTg4MmFkMS04OWFjLTQwYTYtYWRhMi02NzgyNWNjMzNiZTciLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2NjIwNTg2NSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY2NjIwOTQ2NSwiaWF0IjoxNjY2MjA1ODY1LCJlbWFpbCI6ImlzbWFlbDk3bG9wZXpAZ21haWwuY29tIn0.HOsBuNBBeDL4Vwhi5Rou0jzZqOO_n_AIvoFOVRuFFiVppzaTDFNEVcapq9hCLIGQZT5NK8Arwo-nZkcVVAqHMsu8KKJsPQZIkGbHI6CVD7IkBBfm756e-tTuHHBYd4ND3HifVDWwno8mEODLZdaWRcy5MN3TErqCEy8cf1u7CQSguKmjeElL-8DHtNfLKMnxJOGGW_JAEa1JVWninzekPAeFKmWFOtByFCJZT1HBmL9XERIXXN6qWU_g0KlUm_wBWkmIDxuVRPorFEPinh0ETAGkGa5mf1SPaibXXSEoiF58DkFRyrOcTVKnV7Dixjo6DvBwN98fYW0zaeo3G5nSXw",
|
|
74
|
+
id: 84311,
|
|
75
|
+
retailerId: 68,
|
|
76
|
+
orderId: 3118
|
|
77
|
+
}
|
|
78
|
+
}; // ejemplo del chat orderProduct con user FABRICA 49
|
|
79
|
+
|
|
80
|
+
var chatFAB_orderProduct_user49 = Template.bind({});
|
|
81
|
+
exports.chatFAB_orderProduct_user49 = chatFAB_orderProduct_user49;
|
|
82
|
+
chatFAB_orderProduct_user49.args = {
|
|
83
|
+
chatType: "order_product",
|
|
84
|
+
chatContainerType: "popUp",
|
|
85
|
+
chatData: {
|
|
86
|
+
userToken: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIxODA1MDQ1Mi0xOGQ0LTQxM2ItYjg2MC1iMWMyMzZmMTM5OWYiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjE4MDUwNDUyLTE4ZDQtNDEzYi1iODYwLWIxYzIzNmYxMzk5ZiIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJkYmU1ODRmOS0xOTJmLTRkNDEtOWMxMS0xMzRkMDgzODVjMDQiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2NTcxNjI3NywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY2NTcxOTg3NywiaWF0IjoxNjY1NzE2Mjc3LCJlbWFpbCI6Im16dW5pZ2FAY29udGVudG9oLmNvbSJ9.KoPNFy9gZYoYjiCGanSe_MvnuX7rSvNTXqQVffXSzGYeb4R3G6yDWrWItjHfgFmmo1jLlTmLT_yiVC4g9Vpo9WxebPwZA9rFwKDbc3vKeAs1JSUfaatQOwIqS1NsHwEkAM-agsO2s2Rnqq4h-FCcURqjiknbvHXUjcXqSea-3JlxtVFw3x7NLG3bUPqfPyVV1N5jR-XMrDOSZctS2k4WvPqhxf75Iv77U23YNFRoOIUZIAYx8SmSw792h4YwmJqMUuZlo48aBaaZO3NE83KdMR-mYvvoa-TDIE2d9ww-vPctauVL9ydB5ISSB8gUz90o8IZIWjrwQgbzE7eRPKxPWw",
|
|
87
|
+
id: 84311,
|
|
88
|
+
retailerId: 68,
|
|
89
|
+
orderId: 3118
|
|
90
|
+
}
|
|
91
|
+
}; // ejemplo del chat merchantProduct con user CADENA
|
|
92
|
+
|
|
93
|
+
var chatCAD_merchantsProduct = Template.bind({});
|
|
94
|
+
exports.chatCAD_merchantsProduct = chatCAD_merchantsProduct;
|
|
95
|
+
chatCAD_merchantsProduct.args = {
|
|
96
|
+
chatType: "merchant_product",
|
|
97
|
+
chatContainerType: "popUp",
|
|
98
|
+
chatData: {
|
|
99
|
+
userToken: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI1ODg0YWUzNC01OWQ2LTQ0NTQtYjk4ZS04MjE1MThiY2MzYTciLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjU4ODRhZTM0LTU5ZDYtNDQ1NC1iOThlLTgyMTUxOGJjYzNhNyIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI2YmI0NzExMi03ZTNiLTRjYzUtYmVhZS02MzMxZjEwYjk3MzIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2NTYxNjI0MSwibmFtZSI6IkNhZGVuYSBJc21hZWwiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMzY2MzM2IiwiZXhwIjoxNjY1NjE5ODQxLCJpYXQiOjE2NjU2MTYyNDEsImVtYWlsIjoiY2FkZW5hLmlzbWFlbEBhbGxmcmVlbWFpbC5uZXQifQ.gi1Jiua_O175vHLy-CYXOR945IRcObIj5j1LNk4_EhcKPz-MzPnfWDLH7L3sTiNS-VUhIRtAhtUVPUSYv0oP1qfJwFHomerxJvYgJge8SLWPjL6yGBnTxAvHVbuLU8kcaoZup2eNMV6XOIAEBAHeCDm4vW0rYWwfrKADPyYGZQF2si14o3wtgSMX5a4ccxGwikT3to3HttWBhmJs_I1Xr_BvBxePc4WghjQr5GVGbq8vhr4HwdkTmlcJAnQsc_fmIdbJ_ACyTa1wr343KYYOQVwBjAmZDa6rU16y0yTr_J4IVWY3aS5UpBEBHy4XE0c76UaN-_DcGiVl4ayWQIUz8A",
|
|
100
|
+
id: 84300,
|
|
101
|
+
version: 1
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
/*
|
|
105
|
+
export const chatPROV_merchantsProduct = Template.bind({});
|
|
106
|
+
chatPROV_merchantsProduct.args = {
|
|
107
|
+
userToken:
|
|
108
|
+
"eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI5ZDBjYzVjOC1hODllLTRiZGQtOWUyZC0zNThhMDFjYzlhNjIiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjp0cnVlLCJjb2duaXRvOnVzZXJuYW1lIjoiOWQwY2M1YzgtYTg5ZS00YmRkLTllMmQtMzU4YTAxY2M5YTYyIiwiYXVkIjoiNTJkOXNra2RjZzhxanA4OG9vazF1c2U2bWsiLCJldmVudF9pZCI6IjU1NDQ5NzhmLWExMGEtNGE5Ni05M2NkLWY5Y2ZmNTFlNWRlOCIsInRva2VuX3VzZSI6ImlkIiwiYXV0aF90aW1lIjoxNjY1NjI0MjYyLCJuYW1lIjoiSXNtYWVsIExvcGV6IiwicGhvbmVfbnVtYmVyIjoiKzUyMzExMTM2NjMzNiIsImV4cCI6MTY2NTYyNzg2MiwiaWF0IjoxNjY1NjI0MjYyLCJlbWFpbCI6Imlsb3BlekBjb250ZW50b2guY29tIn0.bIDIv57LRgafkymcUY4DqFRxR91iTBlZ7H7v1o3TnwJpIFPUEvzfvHObDR534xfa-R5ZRz46YCjsV6yQ-2hd8OA97VFLrqyC8Yqx_hjoIA1QxX_5_-b4UWaIib_1wSkrWd2gQtuKAUucfzAisZp1UNiY6Sm4VPGXsc5Lk6kLo1X_rctLUlQMhl5KaMNaSWqvbcYZLz5XSpbJR_MHegkdquKBaQJVKl76TkvDT8Eyr6rPUUAtnRBAPfnP4dW82HgT-aZp-0wUH5fYcb02agPg4-wqVsxPr8WxihATqn9rVfR5CjZWYOGPdSw7AUS33yYAkx5Nmnz4oIcRlPsvF5U62g",
|
|
109
|
+
chatType: "merchants_products",
|
|
110
|
+
articleId: "84300",
|
|
111
|
+
articleVersion: "1",
|
|
112
|
+
};*/
|
|
113
|
+
// ejemplo del chat ticket con user FAB
|
|
114
|
+
|
|
115
|
+
var chatFAB_ticketClosed_user49 = Template.bind({});
|
|
116
|
+
exports.chatFAB_ticketClosed_user49 = chatFAB_ticketClosed_user49;
|
|
117
|
+
chatFAB_ticketClosed_user49.args = {
|
|
118
|
+
chatType: "ticket",
|
|
119
|
+
chatContainerType: "fixed",
|
|
120
|
+
chatData: {
|
|
121
|
+
id: 10,
|
|
122
|
+
ticketOwnerUserId: 23,
|
|
123
|
+
statusTicket: "COMPLETED",
|
|
124
|
+
currentUser: {
|
|
125
|
+
id: 49,
|
|
126
|
+
companyId: 2,
|
|
127
|
+
isUserTech: false
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}; // ejemplo del chat ticket con user TECH
|
|
131
|
+
|
|
132
|
+
var chatTECH_ticketClosed_user65 = Template.bind({});
|
|
133
|
+
exports.chatTECH_ticketClosed_user65 = chatTECH_ticketClosed_user65;
|
|
134
|
+
chatTECH_ticketClosed_user65.args = {
|
|
135
|
+
chatType: "ticket",
|
|
136
|
+
chatContainerType: "fixed",
|
|
137
|
+
chatData: {
|
|
138
|
+
id: 10,
|
|
139
|
+
ticketOwnerUserId: 23,
|
|
140
|
+
statusTicket: "COMPLETED",
|
|
141
|
+
currentUser: {
|
|
142
|
+
id: 65,
|
|
143
|
+
companyId: 2,
|
|
144
|
+
isUserTech: true
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}; // ejemplo del chat ticket con user TECH propietario del ticket
|
|
148
|
+
|
|
149
|
+
var chatTECH_ticketClosedOwn_user66 = Template.bind({});
|
|
150
|
+
exports.chatTECH_ticketClosedOwn_user66 = chatTECH_ticketClosedOwn_user66;
|
|
151
|
+
chatTECH_ticketClosedOwn_user66.args = {
|
|
152
|
+
chatType: "ticket",
|
|
153
|
+
chatContainerType: "fixed",
|
|
154
|
+
chatData: {
|
|
155
|
+
id: 10,
|
|
156
|
+
ticketOwnerUserId: 66,
|
|
157
|
+
statusTicket: "COMPLETED",
|
|
158
|
+
currentUser: {
|
|
159
|
+
id: 66,
|
|
160
|
+
companyId: 2,
|
|
161
|
+
isUserTech: true
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}; // ejemplo del chat ticket con user FAB
|
|
165
|
+
|
|
166
|
+
var chatFAB_ticketOpen_user49 = Template.bind({});
|
|
167
|
+
exports.chatFAB_ticketOpen_user49 = chatFAB_ticketOpen_user49;
|
|
168
|
+
chatFAB_ticketOpen_user49.args = {
|
|
169
|
+
chatType: "ticket",
|
|
170
|
+
chatContainerType: "fixed",
|
|
171
|
+
chatData: {
|
|
172
|
+
id: 11,
|
|
173
|
+
ticketOwnerUserId: 23,
|
|
174
|
+
statusTicket: "PENDING",
|
|
175
|
+
currentUser: {
|
|
176
|
+
id: 49,
|
|
177
|
+
companyId: 2,
|
|
178
|
+
isUserTech: false
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}; // ejemplo del chat ticket con user TECH
|
|
182
|
+
|
|
183
|
+
var chatTECH_ticketOpen_user65 = Template.bind({});
|
|
184
|
+
exports.chatTECH_ticketOpen_user65 = chatTECH_ticketOpen_user65;
|
|
185
|
+
chatTECH_ticketOpen_user65.args = {
|
|
186
|
+
chatType: "ticket",
|
|
187
|
+
chatContainerType: "fixed",
|
|
188
|
+
chatData: {
|
|
189
|
+
id: 11,
|
|
190
|
+
ticketOwnerUserId: 23,
|
|
191
|
+
statusTicket: "PENDING",
|
|
192
|
+
currentUser: {
|
|
193
|
+
id: 65,
|
|
194
|
+
companyId: 2,
|
|
195
|
+
isUserTech: true
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}; // ejemplo del chat ticket con user TECH propietario del ticket
|
|
199
|
+
|
|
200
|
+
var chatTECH_ticketOpenOwn_user66 = Template.bind({});
|
|
201
|
+
exports.chatTECH_ticketOpenOwn_user66 = chatTECH_ticketOpenOwn_user66;
|
|
202
|
+
chatTECH_ticketOpenOwn_user66.args = {
|
|
203
|
+
chatType: "ticket",
|
|
204
|
+
chatContainerType: "fixed",
|
|
205
|
+
chatData: {
|
|
206
|
+
id: 11,
|
|
207
|
+
ticketOwnerUserId: 66,
|
|
208
|
+
statusTicket: "PENDING",
|
|
209
|
+
currentUser: {
|
|
210
|
+
id: 66,
|
|
211
|
+
companyId: 2,
|
|
212
|
+
isUserTech: true
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
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.onlyOpenChatLists = exports.exampleChatLists = exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _index = require("./index");
|
|
13
|
+
|
|
14
|
+
var _THD = _interopRequireDefault(require("./THD.png"));
|
|
15
|
+
|
|
16
|
+
var _Rotoplas = _interopRequireDefault(require("./Rotoplas.jpeg"));
|
|
17
|
+
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
|
|
20
|
+
var _default = {
|
|
21
|
+
title: "Components/organisms/Chat/ChatLists",
|
|
22
|
+
component: _index.ChatLists
|
|
23
|
+
};
|
|
24
|
+
exports.default = _default;
|
|
25
|
+
|
|
26
|
+
var Template = function Template(args) {
|
|
27
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ChatLists, (0, _objectSpread2.default)({}, args));
|
|
28
|
+
}; // companies de prueba
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
var companies = {
|
|
32
|
+
200: {
|
|
33
|
+
name: "The Home Depot",
|
|
34
|
+
src: _THD.default,
|
|
35
|
+
lastChatDate: "2022-11-4 21:01:00",
|
|
36
|
+
statusChat: "disabled"
|
|
37
|
+
},
|
|
38
|
+
300: {
|
|
39
|
+
name: "Rotoplas",
|
|
40
|
+
src: _Rotoplas.default,
|
|
41
|
+
lastChatDate: "2022-11-03 21:01:00",
|
|
42
|
+
statusChat: "enabled"
|
|
43
|
+
},
|
|
44
|
+
100: {
|
|
45
|
+
name: "Content-oh!",
|
|
46
|
+
src: "",
|
|
47
|
+
lastChatDate: "2022-11-02 21:01:00",
|
|
48
|
+
statusChat: "current"
|
|
49
|
+
}
|
|
50
|
+
}; // companies de prueba sin chats cerrados
|
|
51
|
+
|
|
52
|
+
var companies2 = {
|
|
53
|
+
300: {
|
|
54
|
+
name: "Rotoplas",
|
|
55
|
+
src: _Rotoplas.default,
|
|
56
|
+
lastChatDate: "2022-10-27 21:01:00",
|
|
57
|
+
statusChat: "enabled"
|
|
58
|
+
},
|
|
59
|
+
100: {
|
|
60
|
+
name: "Content-oh!",
|
|
61
|
+
src: "",
|
|
62
|
+
lastChatDate: "2022-9-27 21:01:00",
|
|
63
|
+
statusChat: "current"
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
var exampleChatLists = Template.bind({});
|
|
67
|
+
exports.exampleChatLists = exampleChatLists;
|
|
68
|
+
exampleChatLists.args = {
|
|
69
|
+
companies: companies,
|
|
70
|
+
currentCompanyId: 100,
|
|
71
|
+
onClickCompany: function onClickCompany(companyId) {
|
|
72
|
+
console.log("click en company:", companyId);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
var onlyOpenChatLists = Template.bind({});
|
|
76
|
+
exports.onlyOpenChatLists = onlyOpenChatLists;
|
|
77
|
+
onlyOpenChatLists.args = {
|
|
78
|
+
companies: companies2,
|
|
79
|
+
currentCompanyId: 100,
|
|
80
|
+
onClickCompany: function onClickCompany(companyId) {
|
|
81
|
+
console.log("click en company:", companyId);
|
|
82
|
+
}
|
|
83
|
+
};
|