@qore-project/urshipper-custom-table-component
Advanced tools
Comparing version 1.5.34 to 1.5.35
@@ -5,3 +5,3 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; | ||
import { useActionTrigger, useEvaluate } from '@qorebase/app-component'; | ||
import { BiDotsHorizontal, BiEdit } from 'react-icons/bi'; | ||
import { BiDotsHorizontal, BiEdit, BiTrash } from 'react-icons/bi'; | ||
import { FaPrint, FaFileInvoice } from 'react-icons/fa'; | ||
@@ -47,3 +47,3 @@ const RowItem = (props) => { | ||
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(BiEdit, {}), 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 })), _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 })))] })) })] })) })), | ||
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.34", | ||
"version": "1.5.35", | ||
"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
644111
6694