componenteshospitais 4.1.5 → 4.1.7
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/cjs/index.js
CHANGED
|
@@ -16837,14 +16837,14 @@ var TableStandardButtons = function (_a) {
|
|
|
16837
16837
|
((_e = row[key]) === null || _e === void 0 ? void 0 : _e.value) && row[key].value),
|
|
16838
16838
|
(showMenu === ((_f = row['id']) === null || _f === void 0 ? void 0 : _f.value) && ((_g = row[key]) === null || _g === void 0 ? void 0 : _g.menus)) && (React.createElement("div", { className: styles$2.menuContainer }, (_j = (_h = row[key]) === null || _h === void 0 ? void 0 : _h.menus) === null || _j === void 0 ? void 0 : _j.map(function (m) { return (m.nome === 'hr' ? (React.createElement("hr", { key: m.nome, className: styles$2.hr }) // Renderiza uma linha horizontal
|
|
16839
16839
|
) : (React.createElement("div", { className: "".concat(styles$2.menu, " ").concat(m.disabled ? styles$2.menuDisabled : ''), key: m.nome, onClick: function () { var _a, _b; return m.disabled ? '' : (m.onClick && m.onClick(((_a = row['id']) === null || _a === void 0 ? void 0 : _a.value) ? (_b = row['id']) === null || _b === void 0 ? void 0 : _b.value : '')); } }, m.nome))); })))),
|
|
16840
|
-
row[key].typeColumn && row[key].typeColumn === 'icon' && (
|
|
16840
|
+
row[key].typeColumn && row[key].typeColumn === 'icon' && row[key].icon && (
|
|
16841
16841
|
// <i
|
|
16842
16842
|
// className={`${styles.icon} ${row[key].iconButton}`}
|
|
16843
16843
|
// title={key.charAt(0).toUpperCase() + key.slice(1)}
|
|
16844
16844
|
// onClick={() => handleClick(row, key)}
|
|
16845
16845
|
// style={{color: row[key].colorButton ? row[key].colorButton : ''}}>
|
|
16846
16846
|
// </i>
|
|
16847
|
-
React.createElement("div", { className: "".concat(styles$2.icon, " ").concat(row[key].iconButton), onClick: function () { return handleClick(row, key); }
|
|
16847
|
+
React.createElement("div", { className: "".concat(styles$2.icon, " ").concat(row[key].iconButton), onClick: function () { return handleClick(row, key); }, dangerouslySetInnerHTML: { __html: "".concat(row[key].icon) } })),
|
|
16848
16848
|
row[key].typeColumn && row[key].typeColumn === 'hidden' &&
|
|
16849
16849
|
React.createElement("input", { type: "hidden", value: row[key].value })
|
|
16850
16850
|
// <i
|
package/dist/esm/index.js
CHANGED
|
@@ -16835,14 +16835,14 @@ var TableStandardButtons = function (_a) {
|
|
|
16835
16835
|
((_e = row[key]) === null || _e === void 0 ? void 0 : _e.value) && row[key].value),
|
|
16836
16836
|
(showMenu === ((_f = row['id']) === null || _f === void 0 ? void 0 : _f.value) && ((_g = row[key]) === null || _g === void 0 ? void 0 : _g.menus)) && (React.createElement("div", { className: styles$2.menuContainer }, (_j = (_h = row[key]) === null || _h === void 0 ? void 0 : _h.menus) === null || _j === void 0 ? void 0 : _j.map(function (m) { return (m.nome === 'hr' ? (React.createElement("hr", { key: m.nome, className: styles$2.hr }) // Renderiza uma linha horizontal
|
|
16837
16837
|
) : (React.createElement("div", { className: "".concat(styles$2.menu, " ").concat(m.disabled ? styles$2.menuDisabled : ''), key: m.nome, onClick: function () { var _a, _b; return m.disabled ? '' : (m.onClick && m.onClick(((_a = row['id']) === null || _a === void 0 ? void 0 : _a.value) ? (_b = row['id']) === null || _b === void 0 ? void 0 : _b.value : '')); } }, m.nome))); })))),
|
|
16838
|
-
row[key].typeColumn && row[key].typeColumn === 'icon' && (
|
|
16838
|
+
row[key].typeColumn && row[key].typeColumn === 'icon' && row[key].icon && (
|
|
16839
16839
|
// <i
|
|
16840
16840
|
// className={`${styles.icon} ${row[key].iconButton}`}
|
|
16841
16841
|
// title={key.charAt(0).toUpperCase() + key.slice(1)}
|
|
16842
16842
|
// onClick={() => handleClick(row, key)}
|
|
16843
16843
|
// style={{color: row[key].colorButton ? row[key].colorButton : ''}}>
|
|
16844
16844
|
// </i>
|
|
16845
|
-
React.createElement("div", { className: "".concat(styles$2.icon, " ").concat(row[key].iconButton), onClick: function () { return handleClick(row, key); }
|
|
16845
|
+
React.createElement("div", { className: "".concat(styles$2.icon, " ").concat(row[key].iconButton), onClick: function () { return handleClick(row, key); }, dangerouslySetInnerHTML: { __html: "".concat(row[key].icon) } })),
|
|
16846
16846
|
row[key].typeColumn && row[key].typeColumn === 'hidden' &&
|
|
16847
16847
|
React.createElement("input", { type: "hidden", value: row[key].value })
|
|
16848
16848
|
// <i
|
package/package.json
CHANGED
|
@@ -327,7 +327,7 @@ const TableStandardButtons: React.FC<TableStandardButtonsProps> = ({
|
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
{/* Colunas do tipo icon - usar os icones do font awesome */}
|
|
330
|
-
{row[key].typeColumn && row[key].typeColumn === 'icon' && (
|
|
330
|
+
{row[key].typeColumn && row[key].typeColumn === 'icon' && row[key].icon && (
|
|
331
331
|
// <i
|
|
332
332
|
// className={`${styles.icon} ${row[key].iconButton}`}
|
|
333
333
|
// title={key.charAt(0).toUpperCase() + key.slice(1)}
|
|
@@ -335,9 +335,10 @@ const TableStandardButtons: React.FC<TableStandardButtonsProps> = ({
|
|
|
335
335
|
// style={{color: row[key].colorButton ? row[key].colorButton : ''}}>
|
|
336
336
|
// </i>
|
|
337
337
|
|
|
338
|
-
<div className={`${styles.icon} ${row[key].iconButton}`} onClick={()=>handleClick(row, key)}
|
|
339
|
-
|
|
338
|
+
<div className={`${styles.icon} ${row[key].iconButton}`} onClick={()=>handleClick(row, key)}
|
|
339
|
+
dangerouslySetInnerHTML={{ __html: `${row[key].icon}` }}>
|
|
340
340
|
</div>
|
|
341
|
+
|
|
341
342
|
)}
|
|
342
343
|
|
|
343
344
|
{/* Colunas do tipo hidden */}
|