@qore-project/urshipper-custom-table-component
Advanced tools
Comparing version 1.5.35 to 1.5.36
@@ -8,3 +8,3 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; | ||
const RowItem = (props) => { | ||
var _a; | ||
var _a, _b; | ||
const { row, type, selectedRow } = props; | ||
@@ -47,3 +47,3 @@ const itemId = useEvaluate(row.id || props.source.itemId); | ||
return (_createElement(Tr, Object.assign({}, row.getRowProps(), { key: itemId }), | ||
_jsx(Td, Object.assign({ bgColor: "surface.900", zIndex: 0 }, { children: _jsxs(Menu, Object.assign({ isLazy: true }, { children: [_jsx(MenuButton, { as: IconButton, "aria-label": "Options", icon: _jsx(BiDotsHorizontal, {}), variant: "outline", size: "xs" }), _jsx(Portal, { children: _jsxs(MenuList, Object.assign({ zIndex: 10, color: 'text.900' }, { children: [_jsx(MenuItem, Object.assign({ icon: _jsx(BiEdit, {}), onClick: () => actionOnEdit.handleClick() }, { children: "Edit" })), _jsx(MenuItem, Object.assign({ icon: _jsx(FaPrint, { color: "rgba(162, 162, 162, 1)", fontSize: "16px" }), onClick: () => actionIntegrationOne.handleClick() }, { children: labelActionFour })), _jsx(MenuItem, Object.assign({ icon: _jsx(BiTrash, {}), onClick: () => actionOnRemove.handleClick() }, { children: "Remove" })), type == 'admin' && (_jsx(MenuItem, Object.assign({ isDisabled: ((_a = row.values) === null || _a === void 0 ? void 0 : _a.status_form) !== 'Completed', icon: _jsx(FaFileInvoice, { color: "rgba(162, 162, 162, 1)", fontSize: "16px" }), onClick: () => actionIntegrationTwo.handleClick() }, { children: labelActionFive })))] })) })] })) })), | ||
_jsx(Td, Object.assign({ bgColor: "surface.900", zIndex: 0 }, { children: _jsxs(Menu, Object.assign({ isLazy: true }, { children: [_jsx(MenuButton, { as: IconButton, "aria-label": "Options", icon: _jsx(BiDotsHorizontal, {}), variant: "outline", size: "xs" }), _jsx(Portal, { children: _jsxs(MenuList, Object.assign({ zIndex: 10, color: 'text.900' }, { children: [_jsx(MenuItem, Object.assign({ icon: _jsx(BiEdit, {}), onClick: () => actionOnEdit.handleClick() }, { children: "Edit" })), _jsx(MenuItem, Object.assign({ icon: _jsx(FaPrint, { color: "rgba(162, 162, 162, 1)", fontSize: "16px" }), onClick: () => actionIntegrationOne.handleClick() }, { children: labelActionFour })), ((_a = row.values) === null || _a === void 0 ? void 0 : _a.status_form) !== 'Completed' && (_jsx(MenuItem, Object.assign({ icon: _jsx(BiTrash, {}), onClick: () => actionOnRemove.handleClick() }, { children: "Remove" }))), type == 'admin' && (_jsx(MenuItem, Object.assign({ isDisabled: ((_b = row.values) === null || _b === void 0 ? void 0 : _b.status_form) !== 'Completed', icon: _jsx(FaFileInvoice, { color: "rgba(162, 162, 162, 1)", fontSize: "16px" }), onClick: () => actionIntegrationTwo.handleClick() }, { children: labelActionFive })))] })) })] })) })), | ||
row.cells.map((cell, idx) => { | ||
@@ -50,0 +50,0 @@ return (_jsx(Td, Object.assign({}, cell.getCellProps(), { cursor: idx === 1 && 'pointer', onClick: () => idx === 1 && actionOnClick.handleClick() }, { children: cell.render('Cell') }), idx)); |
{ | ||
"name": "@qore-project/urshipper-custom-table-component", | ||
"version": "1.5.35", | ||
"version": "1.5.36", | ||
"module": "lib/urshipper-custom-table.js", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
644623
6700