karsten-design-system 2.0.10 → 2.0.11
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.
package/dist/index.js
CHANGED
|
@@ -5110,7 +5110,15 @@ function Table({ columns, data, totalRecords, actions = [], actionsHeaderClassNa
|
|
|
5110
5110
|
: column.style), children: jsx(Tooltip, { text: column?.tooltipText?.(value, row), children: column.render
|
|
5111
5111
|
? column.render(value, row)
|
|
5112
5112
|
: String(value) }) }, String(column.dataIndex)));
|
|
5113
|
-
}), actions.length > 0 && (jsx("td", { className: clsx('p-2 text-sm text-right gap-2', actionsColumnsClassName), children: jsx("div", { className: "flex flex-row justify-end gap-2", children: actions
|
|
5113
|
+
}), actions.length > 0 && (jsx("td", { className: clsx('p-2 text-sm text-right gap-2', actionsColumnsClassName), children: jsx("div", { className: "flex flex-row justify-end gap-2", children: actions
|
|
5114
|
+
.filter((action) => {
|
|
5115
|
+
if (action.render === undefined)
|
|
5116
|
+
return true;
|
|
5117
|
+
return typeof action.render === 'function'
|
|
5118
|
+
? action.render(row)
|
|
5119
|
+
: action.render;
|
|
5120
|
+
})
|
|
5121
|
+
.map((action, idx) => {
|
|
5114
5122
|
const isDisabled = typeof action.disabled === 'function'
|
|
5115
5123
|
? action.disabled(row)
|
|
5116
5124
|
: action.disabled;
|
|
@@ -5138,7 +5146,16 @@ function Table({ columns, data, totalRecords, actions = [], actionsHeaderClassNa
|
|
|
5138
5146
|
: subCol.style), children: jsx(Tooltip, { text: subCol?.tooltipText?.(subValue, subRow), children: subCol.render
|
|
5139
5147
|
? subCol.render(subValue, subRow)
|
|
5140
5148
|
: String(subValue) }) }, String(subCol.dataIndex)));
|
|
5141
|
-
}), subTableActions.length > 0 && (jsx("td", { className: clsx('text-xs text-right gap-2', subTableActionsColumnsClassName), children: jsx("div", { className: "flex flex-row justify-end gap-2", children: subTableActions
|
|
5149
|
+
}), subTableActions.length > 0 && (jsx("td", { className: clsx('text-xs text-right gap-2', subTableActionsColumnsClassName), children: jsx("div", { className: "flex flex-row justify-end gap-2", children: subTableActions
|
|
5150
|
+
.filter((subAction) => {
|
|
5151
|
+
if (subAction.render === undefined)
|
|
5152
|
+
return true;
|
|
5153
|
+
return typeof subAction.render ===
|
|
5154
|
+
'function'
|
|
5155
|
+
? subAction.render(subRow)
|
|
5156
|
+
: subAction.render;
|
|
5157
|
+
})
|
|
5158
|
+
.map((subAction, subIdx) => {
|
|
5142
5159
|
const isSubDisabled = typeof subAction.disabled ===
|
|
5143
5160
|
'function'
|
|
5144
5161
|
? subAction.disabled(subRow)
|