@skalfa/skalfa-component 1.0.16 → 1.0.18
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.
|
@@ -92,7 +92,7 @@ function TableSupervisionComponent({ title, id, fetchControl, columnControl, for
|
|
|
92
92
|
} }, key));
|
|
93
93
|
}
|
|
94
94
|
if (typeof action == "object") {
|
|
95
|
-
if (action.on && action.on
|
|
95
|
+
if (action.on !== undefined && (typeof action.on === 'function' ? !action.on(item || {}) : !action.on))
|
|
96
96
|
return;
|
|
97
97
|
return ((0, jsx_runtime_1.jsx)(react_1.Fragment, { children: (0, jsx_runtime_1.jsx)(__1.ButtonComponent, { label: action?.button?.label || action?.label, variant: action?.button?.variant || "outline", paint: action?.button?.paint || "primary", size: action?.button?.size || options?.size || "xs", rounded: action?.button?.rounded || true, className: action?.button?.className, onClick: () => {
|
|
98
98
|
if (action?.button?.onClick) {
|
package/package.json
CHANGED
|
@@ -226,7 +226,7 @@ export function TableSupervisionComponent({
|
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
if(typeof action == "object") {
|
|
229
|
-
if (action.on && action.on
|
|
229
|
+
if (action.on !== undefined && (typeof action.on === 'function' ? !action.on(item || {}) : !action.on)) return
|
|
230
230
|
|
|
231
231
|
return (
|
|
232
232
|
<Fragment key={`action-object-${key}`}>
|