@apia/table 4.0.58 → 4.0.63
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 +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -2283,13 +2283,15 @@ const NoMemoAccordionElement = ({ row, rowIndex }) => {
|
|
|
2283
2283
|
const title = React.useMemo(() => {
|
|
2284
2284
|
if (row.title)
|
|
2285
2285
|
return row.title;
|
|
2286
|
-
if (Array.isArray(indexColumns))
|
|
2286
|
+
if (Array.isArray(indexColumns)) {
|
|
2287
|
+
console.log(indexColumns);
|
|
2287
2288
|
return indexColumns.map(
|
|
2288
2289
|
(current) => (
|
|
2289
2290
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
2290
2291
|
row.cells[current.index].title || row.cells[current.index].children
|
|
2291
2292
|
)
|
|
2292
2293
|
).join(" | ");
|
|
2294
|
+
}
|
|
2293
2295
|
return row.cells[0].title ?? row.cells[0].children;
|
|
2294
2296
|
}, [indexColumns, row.cells, row.title]);
|
|
2295
2297
|
const isSelected = useResponsiveTable(
|
|
@@ -2299,8 +2301,11 @@ const NoMemoAccordionElement = ({ row, rowIndex }) => {
|
|
|
2299
2301
|
(global) => global.responsiveTableSlice[name].focusedRow === rowIndex
|
|
2300
2302
|
);
|
|
2301
2303
|
const buttonProps = useMemo(() => {
|
|
2302
|
-
const htmlTitles =
|
|
2303
|
-
|
|
2304
|
+
const htmlTitles = [];
|
|
2305
|
+
row.cells.forEach((cell, i) => {
|
|
2306
|
+
if (columns[i].showInAccordionTitle && cell.isHtml) {
|
|
2307
|
+
htmlTitles.push(true);
|
|
2308
|
+
}
|
|
2304
2309
|
});
|
|
2305
2310
|
return {
|
|
2306
2311
|
title,
|