componenteshospitais 4.1.5 → 4.1.6
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,7 +16837,7 @@ 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)}
|
package/dist/esm/index.js
CHANGED
|
@@ -16835,7 +16835,7 @@ 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)}
|
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)}
|