@skalfa/skalfa-component 1.0.13 → 1.0.14
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,15 +92,15 @@ function TableSupervisionComponent({ title, id, fetchControl, columnControl, for
|
|
|
92
92
|
} }, key));
|
|
93
93
|
}
|
|
94
94
|
if (typeof action == "object") {
|
|
95
|
-
return ((0, jsx_runtime_1.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
95
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_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: () => {
|
|
96
|
+
if (action?.button?.onClick) {
|
|
97
|
+
action?.button?.onClick(item);
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
setToggle(`MODAL_${_utils_1.conversion.strSnake(action?.label).toUpperCase()}_${toggleKey}`);
|
|
101
|
+
item && setSelected?.(item);
|
|
102
|
+
}
|
|
103
|
+
}, ...action.button }, `action-object-${key}`) }));
|
|
104
104
|
}
|
|
105
105
|
if (typeof action == "function") {
|
|
106
106
|
return ((0, jsx_runtime_1.jsx)("span", { children: action(item || {}, (type) => {
|
package/package.json
CHANGED