@qore-project/urshipper-custom-table-component
Advanced tools
Comparing version 1.5.33 to 1.5.34
@@ -15,4 +15,4 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; | ||
const actionOnEdit = useActionTrigger(props.properties.action_3, props.row.original, props.pageSource); | ||
const actionOnRemove = useActionTrigger(props.properties.action_6, props.row.original, props.pageSource); | ||
const actionIntegrationOne = props.hooks.useActionTrigger(props.properties.action_4, props.data.page.row, props.pageSource); | ||
console.log(row.values, 'single'); | ||
// fixed action example | ||
@@ -47,3 +47,3 @@ const actionIntegrationTwo = props.hooks.useActionTrigger([ | ||
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 })), 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(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 })))] })) })] })) })), | ||
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)); |
@@ -40,2 +40,3 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; | ||
action_5: [{ type: 'none' }], | ||
action_6: [{ type: 'none' }], | ||
}, | ||
@@ -88,2 +89,8 @@ propDefinition: { | ||
label_action_5: { group: 'Integration_2', type: 'expression', options: {} }, | ||
action_6: { | ||
group: 'On Remove', | ||
label: 'On Remove', | ||
type: 'action', | ||
options: [{ type: 'none' }], | ||
}, | ||
}, | ||
@@ -90,0 +97,0 @@ Component: (props) => { |
{ | ||
"name": "@qore-project/urshipper-custom-table-component", | ||
"version": "1.5.33", | ||
"version": "1.5.34", | ||
"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 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
Sorry, the diff of this file is not supported yet
643764
6692