contentoh-components-library 21.4.130 → 21.4.132

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.
@@ -15,34 +15,40 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
15
15
 
16
16
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
17
17
 
18
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n overflow-x: auto;\n width: 100%;\n margin-right: 30px;\n .checkbox_fixed {\n left: 0px;\n position: sticky;\n z-index: 5;\n }\n\n .custom-table {\n border-collapse: collapse;\n box-sizing: border-box;\n width: 100%;\n & > thead {\n top: 0;\n height: 45px;\n position: sticky;\n z-index: 5;\n & > tr {\n background-color: #f7f7fc;\n border-radius: 5px 5px 0px 0px;\n height: 45px;\n }\n }\n & > tbody > tr {\n height: 70px;\n &:last-child {\n border-radius: 0px 0px 5px 5px;\n }\n }\n }\n\n .custom-table th,\n .custom-table td {\n padding: 8px;\n border: 0;\n }\n\n .custom-table th {\n border-radius: 5px 0 0 5px;\n border: 0;\n color: var(--black-main, #262626);\n font-family: Roboto;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: normal;\n text-align: left;\n }\n\n .custom-table tr {\n background: var(--white-main, #fff);\n border-bottom: 1px solid var(--grey-light, #f0f0f0);\n border-left: 1px solid var(--grey-light, #f0f0f0);\n border-right: 1px solid var(--grey-light, #f0f0f0);\n & > td {\n color: var(--grey-main, #707070);\n font-family: Roboto;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n }\n display: flex;\n align-items: center;\n ", "\n }\n"])), function (_ref) {
18
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n overflow-x: auto;\n width: 100%;\n margin-right: 30px;\n .checkbox_fixed {\n left: 0px;\n position: sticky;\n z-index: 5;\n }\n\n .custom-table {\n border-collapse: collapse;\n box-sizing: border-box;\n width: 100%;\n & > thead {\n top: 0;\n height: 45px;\n position: sticky;\n z-index: 10;\n & > tr {\n background-color: #f7f7fc;\n border-radius: 5px 5px 0px 0px;\n height: 45px;\n }\n }\n & > tbody > tr {\n height: 70px;\n &:last-child {\n border-radius: 0px 0px 5px 5px;\n }\n }\n }\n\n .custom-table th,\n .custom-table td {\n padding: 8px;\n border: 0;\n }\n\n .custom-table th {\n border-radius: 5px 0 0 5px;\n border: 0;\n color: var(--black-main, #262626);\n font-family: Roboto;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: normal;\n text-align: left;\n }\n\n .custom-table tr {\n background: var(--white-main, #fff);\n border-bottom: 1px solid var(--grey-light, #f0f0f0);\n border-left: 1px solid var(--grey-light, #f0f0f0);\n border-right: 1px solid var(--grey-light, #f0f0f0);\n & > td {\n color: var(--grey-main, #707070);\n font-family: Roboto;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n gap:5px;\n }\n display: flex;\n align-items: center;\n ", "\n }\n"])), function (_ref) {
19
19
  var withCheckbox = _ref.withCheckbox;
20
20
  return withCheckbox && "padding-left: 10px;";
21
21
  });
22
22
 
23
23
  exports.Container = Container;
24
24
 
25
- var TH = _styledComponents.default.th(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n background: inherit;\n min-height: ", ";\n min-width: ", ";\n position: sticky;\n left: 20px;\n ", "\n"])), function (_ref2) {
25
+ var TH = _styledComponents.default.th(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n background: inherit;\n min-height: ", ";\n min-width: ", ";\n position: sticky;\n left: ", ";\n ", "\n"])), function (_ref2) {
26
26
  var height = _ref2.height;
27
27
  return height !== null && height !== void 0 ? height : "auto";
28
28
  }, function (_ref3) {
29
29
  var width = _ref3.width;
30
30
  return width !== null && width !== void 0 ? width : "auto";
31
31
  }, function (_ref4) {
32
- var fixedToLeft = _ref4.fixedToLeft,
33
- withCheckbox = _ref4.withCheckbox;
34
- return fixedToLeft >= 0 && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n left: ", "px;\n z-index: 5;\n "])), withCheckbox ? 20 + fixedToLeft : fixedToLeft);
32
+ var fixedToLeft = _ref4.fixedToLeft;
33
+ return fixedToLeft >= 0 ? "".concat(fixedToLeft, "px") : "20px";
34
+ }, function (_ref5) {
35
+ var fixedToLeft = _ref5.fixedToLeft,
36
+ withCheckbox = _ref5.withCheckbox;
37
+ return fixedToLeft >= 0 && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n left: ", "px;\n z-index: 10;\n "])), withCheckbox ? 20 + fixedToLeft : fixedToLeft);
35
38
  });
36
39
 
37
40
  exports.TH = TH;
38
41
 
39
- var TD = _styledComponents.default.td(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n background: inherit;\n box-sizing: border-box;\n display: flex;\n height: 100%;\n min-width: ", ";\n text-align: center;\n vertical-align: middle;\n z-index: 5;\n position: sticky;\n left: 20px;\n .content {\n white-space: nowrap;\n overflow: hidden;\n /* text-overflow: ellipsis; */\n }\n ", "\n"])), function (_ref5) {
40
- var width = _ref5.width;
42
+ var TD = _styledComponents.default.td(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n background: inherit;\n box-sizing: border-box;\n display: flex;\n height: 100%;\n min-width: ", ";\n text-align: center;\n vertical-align: middle;\n z-index: 5;\n position: sticky;\n left: ", ";\n .content {\n white-space: nowrap;\n overflow: hidden;\n /* text-overflow: ellipsis; */\n }\n ", "\n"])), function (_ref6) {
43
+ var width = _ref6.width;
41
44
  return width !== null && width !== void 0 ? width : "auto";
42
- }, function (_ref6) {
43
- var fixedToLeft = _ref6.fixedToLeft,
44
- withCheckbox = _ref6.withCheckbox;
45
- return fixedToLeft >= 0 && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n left: ", "px;\n z-index: 5;\n "])), withCheckbox ? 20 + fixedToLeft : fixedToLeft);
45
+ }, function (_ref7) {
46
+ var fixedToLeft = _ref7.fixedToLeft;
47
+ return fixedToLeft >= 0 ? "".concat(fixedToLeft, "px") : "20px";
48
+ }, function (_ref8) {
49
+ var fixedToLeft = _ref8.fixedToLeft,
50
+ withCheckbox = _ref8.withCheckbox;
51
+ return fixedToLeft >= 0 && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n left: ", "px;\n z-index: 10;\n "])), withCheckbox ? 20 + fixedToLeft : fixedToLeft);
46
52
  });
47
53
 
48
54
  exports.TD = TD;
@@ -174,8 +174,9 @@ var MultipleEdition = function MultipleEdition(_ref) {
174
174
  src: _closeMagenta.default,
175
175
  alt: "Cerrar",
176
176
  onClick: function onClick() {
177
- return onClose && onClose();
178
- }
177
+ window.location.href = "/products";
178
+ } //onClick={() => onClose && onClose()}
179
+
179
180
  }), " "]
180
181
  }), " ", /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
181
182
  className: "table",
@@ -15,9 +15,9 @@ var _variables = require("../../../global-files/variables");
15
15
 
16
16
  var _templateObject;
17
17
 
18
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: grid;\n grid-template-columns: 75% 25%;\n grid-template-rows: 75px 1fr;\n grid-template-areas:\n \"tabs action_buttons\"\n \"table table\";\n margin: 0 30px;\n body{\n font-family: Roboto;\n }\n\n .tabs {\n grid-area: tabs;\n display: flex;\n align-items: center;\n gap: 0 10px;\n }\n .action_buttons {\n grid-area: action_buttons;\n display: flex;\n align-items: center;\n justify-content: end;\n gap: 0 10px;\n & > * {\n cursor: pointer;\n }\n }\n .table {\n grid-area: table;\n background: red;\n height: 100%;\n font-family: Raleway;\n }\n \n .buttons-container{\n background: white;\n width: max-content;\n padding: 8px;\n border: 1px solid ", ";\n box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);\n border-radius: 3px;\n position: absolute;\n top: -10%;\n left: 50px;\n z-index: 100;\n }\n\n .validation-button{\n width: 30px;\n height: 20px;\n display: flex;\n align-items: center;\n border: none;\n cursor: pointer;\n color: black;\n font-weight: 400;\n font-size: 13px;\n line-height: 18px;\n background-color: white;\n\n img {\n & + p {\n margin-left: 7px;\n }\n }\n\n &:hover {\n border-radius: 10px;\n }\n }\n\n .validation-option {\n width: 82px;\n height: 20px;\n align-items: center;\n border: none;\n cursor: pointer;\n color: black;\n font-weight: 400;\n font-size: 13px;\n line-height: 18px;\n background-color: white;\n left: 7px;\n\n img {\n & + p {\n margin-left: 7px;\n }\n }\n\n &:hover {\n border-radius: 10px;\n }\n\n & + * {\n margin-top: 8px;\n }\n }\n\n td{\n margin:0;\n }\n \n textarea {\n width: 100%;\n border: 1px solid\n ", ";\n\n font-family: ", ";\n color: ", ";\n font-weight: normal;\n font-size: 12px;\n line-height: 15px;\n padding: 10px;\n outline: none;\n border-radius: 5px;\n resize: none;\n\n &:focus {\n border: 1px solid ", ";\n }\n }\n\n .tooltip {\n position: relative;\n display: inline-block;\n }\n \n .tooltiptext {\n visibility: hidden;\n width: 200px;\n background-color: #ffffff;\n color: #000000;\n text-align: center;\n border-radius: 6px;\n position: absolute;\n z-index: 6 important!;\n bottom: 100%;\n left: 20%;\n margin-left: -80px;\n opacity: 0;\n transition: opacity 0.3s;\n box-shadow: 0px 2px 4px 0px #00000040;\n font-family: Roboto;\n font-size: 12px;\n padding: 10px;\n text-align: justify;\n }\n \n\n \n .tooltip:hover .tooltiptext {\n visibility: visible;\n opacity: 1;\n }\n"])), _variables.GlobalColors.s3, function (_ref) {
18
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: grid;\n grid-template-columns: 75% 25%;\n grid-template-rows: 75px 1fr;\n grid-template-areas:\n \"tabs action_buttons\"\n \"table table\";\n margin: 0 30px;\n body{\n font-family: Roboto;\n }\n\n .tabs {\n grid-area: tabs;\n display: flex;\n align-items: center;\n gap: 0 10px;\n }\n .action_buttons {\n grid-area: action_buttons;\n display: flex;\n align-items: center;\n justify-content: end;\n gap: 0 10px;\n & > * {\n cursor: pointer;\n }\n }\n .table {\n grid-area: table;\n background: red;\n height: 100%;\n font-family: Raleway;\n }\n \n .buttons-container{\n background: white;\n width: max-content;\n padding: 8px;\n border: 1px solid ", ";\n box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);\n border-radius: 3px;\n position: absolute;\n top: -10%;\n left: 50px;\n z-index: 100;\n }\n\n .validation-button{\n width: 30px;\n height: 20px;\n display: flex;\n align-items: center;\n border: none;\n cursor: pointer;\n color: black;\n font-weight: 400;\n font-size: 13px;\n line-height: 18px;\n background-color: white;\n\n img {\n & + p {\n margin-left: 7px;\n }\n }\n\n &:hover {\n border-radius: 10px;\n }\n }\n\n .validation-option {\n width: 82px;\n height: 20px;\n align-items: center;\n border: none;\n cursor: pointer;\n color: black;\n font-weight: 400;\n font-size: 13px;\n line-height: 18px;\n background-color: white;\n left: 7px;\n\n img {\n & + p {\n margin-left: 7px;\n }\n }\n\n &:hover {\n border-radius: 10px;\n }\n\n & + * {\n margin-top: 8px;\n }\n }\n\n td{\n margin:0;\n }\n \n textarea {\n width: 100%;\n border: 1px solid\n ", ";\n\n font-family: ", ";\n color: ", ";\n font-weight: normal;\n font-size: 12px;\n line-height: 15px;\n padding: 10px;\n outline: none;\n border-radius: 5px;\n resize: none;\n\n &:focus {\n border: 1px solid ", ";\n }\n }\n\n .general-input {\n width: 100%;\n height:27px;\n max-height:100px;\n }\n\n .select-edition-multiple {\n padding: 5px 10px;\n border-radius: 5px;\n gap: 10px;\n border:1px solid ", ";\n border-width: 1px 2px 1px 1px;\n outline: none;\n border-image: initial;\n width: 100%;\n min-height:27px;\n cursor: pointer;\n color: ", ";\n font-size: 12px;\n line-height: 21px;\n overflow:hidden; \n white-space:nowrap; \n text-overflow:ellipsis;\n :focus{\n border:1px solid ", ";\n }\n }\n\n .tooltip {\n position: relative;\n display: inline-block;\n }\n \n .tooltiptext {\n visibility: hidden;\n width: 200px;\n background-color: #ffffff;\n color: #000000;\n text-align: center;\n border-radius: 6px;\n position: absolute;\n z-index: 6 important!;\n bottom: 100%;\n left: 20%;\n margin-left: -80px;\n opacity: 0;\n transition: opacity 0.3s;\n box-shadow: 0px 2px 4px 0px #00000040;\n font-family: Roboto;\n font-size: 12px;\n padding: 10px;\n text-align: justify;\n }\n \n\n \n .tooltip:hover .tooltiptext {\n visibility: visible;\n opacity: 1;\n }\n"])), _variables.GlobalColors.s3, function (_ref) {
19
19
  var isRequired = _ref.isRequired;
20
20
  return isRequired ? "red" : "".concat(_variables.GlobalColors.s2);
21
- }, _variables.FontFamily.AvenirNext, _variables.GlobalColors.deep_gray, _variables.GlobalColors.magenta_s2);
21
+ }, _variables.FontFamily.AvenirNext, _variables.GlobalColors.deep_gray, _variables.GlobalColors.magenta_s2, _variables.GlobalColors.gray_light, _variables.GlobalColors.deep_gray, _variables.GlobalColors.magenta_s2);
22
22
 
23
23
  exports.Container = Container;
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+
3
5
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
6
 
5
7
  Object.defineProperty(exports, "__esModule", {
@@ -48,6 +50,8 @@ var _saveWhiteGray = _interopRequireDefault(require("../../../assets/images/Icon
48
50
 
49
51
  var _iconsMaterial = require("@mui/icons-material");
50
52
 
53
+ var _react = _interopRequireWildcard(require("react"));
54
+
51
55
  var _jsxRuntime = require("react/jsx-runtime");
52
56
 
53
57
  // variables
@@ -558,6 +562,24 @@ function setDataColumns(section, dataService, token, setModalFromTable, setDataS
558
562
  value: des.value,
559
563
  inputType: inputTypeValue(des.type)
560
564
  };
565
+ var inputComponent;
566
+
567
+ if (des.option_list.length > 0) {
568
+ inputComponent = /*#__PURE__*/(0, _jsxRuntime.jsx)("select", {
569
+ id: item.id + "_" + rules[des.attributeId].attributeId + "_" + item.version,
570
+ name: item.id + "-" + rules[des.attributeId].attributeId + "-" + item.version,
571
+ className: "select-edition-multiple",
572
+ children: des.option_list.map(function (option, index) {
573
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
574
+ value: option,
575
+ children: option
576
+ }, index);
577
+ })
578
+ });
579
+ } else {
580
+ inputComponent = /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, (0, _objectSpread3.default)({}, props));
581
+ }
582
+
561
583
  if (!attributesReviewed.find(function (e) {
562
584
  return e.articleId == item.id && e.attributeId == des.attributeId && e.versionId == item.version;
563
585
  })) attributesReviewed.push({
@@ -629,7 +651,7 @@ function setDataColumns(section, dataService, token, setModalFromTable, setDataS
629
651
  }), " "]
630
652
  }), " ", des.comment && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
631
653
  class: "tooltip",
632
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, (0, _objectSpread3.default)({}, props)), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
654
+ children: [inputComponent, /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
633
655
  class: "tooltiptext",
634
656
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
635
657
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("b", {
@@ -640,7 +662,7 @@ function setDataColumns(section, dataService, token, setModalFromTable, setDataS
640
662
  })]
641
663
  })]
642
664
  }), !des.comment && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
643
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, (0, _objectSpread3.default)({}, props))
665
+ children: inputComponent
644
666
  })]
645
667
  });
646
668
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.4.130",
3
+ "version": "21.4.132",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -21,7 +21,7 @@ export const Container = styled.div`
21
21
  top: 0;
22
22
  height: 45px;
23
23
  position: sticky;
24
- z-index: 5;
24
+ z-index: 10;
25
25
  & > tr {
26
26
  background-color: #f7f7fc;
27
27
  border-radius: 5px 5px 0px 0px;
@@ -66,6 +66,7 @@ export const Container = styled.div`
66
66
  font-style: normal;
67
67
  font-weight: 400;
68
68
  line-height: normal;
69
+ gap:5px;
69
70
  }
70
71
  display: flex;
71
72
  align-items: center;
@@ -78,12 +79,12 @@ export const TH = styled.th`
78
79
  min-height: ${({ height }) => height ?? "auto"};
79
80
  min-width: ${({ width }) => width ?? "auto"};
80
81
  position: sticky;
81
- left: 20px;
82
+ left: ${({ fixedToLeft }) => (fixedToLeft >= 0 ? `${fixedToLeft}px` : "20px")};
82
83
  ${({ fixedToLeft, withCheckbox }) =>
83
84
  fixedToLeft >= 0 &&
84
85
  css`
85
86
  left: ${withCheckbox ? 20 + fixedToLeft : fixedToLeft}px;
86
- z-index: 5;
87
+ z-index: 10;
87
88
  `}
88
89
  `;
89
90
 
@@ -98,7 +99,7 @@ export const TD = styled.td`
98
99
  vertical-align: middle;
99
100
  z-index: 5;
100
101
  position: sticky;
101
- left: 20px;
102
+ left: ${({ fixedToLeft }) => (fixedToLeft >= 0 ? `${fixedToLeft}px` : "20px")};
102
103
  .content {
103
104
  white-space: nowrap;
104
105
  overflow: hidden;
@@ -108,6 +109,6 @@ export const TD = styled.td`
108
109
  fixedToLeft >= 0 &&
109
110
  css`
110
111
  left: ${withCheckbox ? 20 + fixedToLeft : fixedToLeft}px;
111
- z-index: 5;
112
+ z-index: 10;
112
113
  `}
113
114
  `;
@@ -111,7 +111,10 @@ export const MultipleEdition = ({ articles, versions, onClose, token }) => {
111
111
  <img
112
112
  src={closeMagenta}
113
113
  alt="Cerrar"
114
- onClick={() => onClose && onClose()}
114
+ onClick={() => {
115
+ window.location.href = `/products`;
116
+ }}
117
+ //onClick={() => onClose && onClose()}
115
118
  />{" "}
116
119
  </div>{" "}
117
120
  <div className="table">
@@ -125,6 +125,34 @@ export const Container = styled.div`
125
125
  }
126
126
  }
127
127
 
128
+ .general-input {
129
+ width: 100%;
130
+ height:27px;
131
+ max-height:100px;
132
+ }
133
+
134
+ .select-edition-multiple {
135
+ padding: 5px 10px;
136
+ border-radius: 5px;
137
+ gap: 10px;
138
+ border:1px solid ${GlobalColors.gray_light};
139
+ border-width: 1px 2px 1px 1px;
140
+ outline: none;
141
+ border-image: initial;
142
+ width: 100%;
143
+ min-height:27px;
144
+ cursor: pointer;
145
+ color: ${GlobalColors.deep_gray};
146
+ font-size: 12px;
147
+ line-height: 21px;
148
+ overflow:hidden;
149
+ white-space:nowrap;
150
+ text-overflow:ellipsis;
151
+ :focus{
152
+ border:1px solid ${GlobalColors.magenta_s2};
153
+ }
154
+ }
155
+
128
156
  .tooltip {
129
157
  position: relative;
130
158
  display: inline-block;
@@ -11,6 +11,7 @@ import infoIcon from "../../../assets/images/Icons/info.svg";
11
11
  import saveWhite from "../../../assets/images/Icons/save-white.svg";
12
12
  import saveWhiteGray from "../../../assets/images/Icons/save-white-gray.svg";
13
13
  import { DockSharp } from "@mui/icons-material";
14
+ import React, { useState } from 'react';
14
15
 
15
16
  // variables
16
17
  export const optionsSelect = [
@@ -533,6 +534,26 @@ export function setDataColumns(
533
534
  inputType:inputTypeValue(des.type),
534
535
  };
535
536
 
537
+
538
+ let inputComponent;
539
+ if (des.option_list.length>0) {
540
+ inputComponent = (
541
+ <select id={item.id + "_" + rules[des.attributeId].attributeId + "_" + item.version}
542
+ name={item.id + "-" + rules[des.attributeId].attributeId + "-" + item.version}
543
+ className="select-edition-multiple"
544
+ >
545
+ {des.option_list.map((option, index) => (
546
+ <option key={index} value={option}>
547
+ {option}
548
+ </option>
549
+ ))}
550
+ </select>
551
+ );
552
+
553
+ } else {
554
+ inputComponent = <TagAndInput {...props} />;
555
+ }
556
+
536
557
  if (
537
558
  !attributesReviewed.find(
538
559
  (e) =>
@@ -644,11 +665,11 @@ export function setDataColumns(
644
665
  </div>
645
666
  )}{" "}
646
667
  {des.comment && <div class="tooltip">
647
- <TagAndInput {...props} />
668
+ {inputComponent}
648
669
  <span class="tooltiptext"><p><b>Comentarios del rechazo</b></p><p>{des.comment}</p></span>
649
670
  </div>}
650
671
  {!des.comment && <div>
651
- <TagAndInput {...props} />
672
+ {inputComponent}
652
673
  </div>}
653
674
  </>
654
675
  );