@economic/taco 2.58.2-EC-64961.8 → 2.58.2-EC-64961.10
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/taco.cjs +4 -2
- package/dist/taco.cjs.map +1 -1
- package/dist/taco.d.ts +7 -3
- package/dist/taco.js +4 -2
- package/dist/taco.js.map +1 -1
- package/package.json +2 -2
package/dist/taco.d.ts
CHANGED
@@ -3182,8 +3182,8 @@ export declare type TableColumnIdentifierProps<TType = unknown> = {
|
|
3182
3182
|
}[keyof TType] | {
|
3183
3183
|
accessor?: never;
|
3184
3184
|
id: string;
|
3185
|
-
renderer?: TableColumnRenderer<TType,
|
3186
|
-
aggregate?: TableColumnRendererAggregate<TType,
|
3185
|
+
renderer?: TableColumnRenderer<TType, undefined> | undefined;
|
3186
|
+
aggregate?: TableColumnRendererAggregate<TType, undefined> | undefined;
|
3187
3187
|
};
|
3188
3188
|
|
3189
3189
|
export declare type TableColumnMenu = ((columnId: string) => React.ReactNode | null)[];
|
@@ -3222,7 +3222,11 @@ export declare type TableColumnRenderer<TType, TValue = unknown> = (args: TableC
|
|
3222
3222
|
|
3223
3223
|
export declare type TableColumnRendererAggregate<TType, TValue = unknown> = (args: TableColumnRendererArgs<TType, TValue>) => JSX.Element | string | number | unknown | null;
|
3224
3224
|
|
3225
|
-
export declare type TableColumnRendererArgs<TType, TValue> = {
|
3225
|
+
export declare type TableColumnRendererArgs<TType, TValue> = TValue extends undefined ? {
|
3226
|
+
formattedValue: undefined;
|
3227
|
+
row: TType;
|
3228
|
+
value: undefined;
|
3229
|
+
} : {
|
3226
3230
|
formattedValue: string;
|
3227
3231
|
row: TType;
|
3228
3232
|
value: TValue;
|
package/dist/taco.js
CHANGED
@@ -36507,6 +36507,7 @@ function GroupedCell(props) {
|
|
36507
36507
|
const canShowActions = isActiveRow || isHovered && !tableMeta.rowActive.isHoverStatePaused;
|
36508
36508
|
const colSpan = cell.row.getVisibleCells().filter((c3) => c3.column.id === "__actions" || !isInternalColumn(c3.column.id)).length - 1;
|
36509
36509
|
const subRows = cell.getContext().row.subRows.map((row) => row.original);
|
36510
|
+
const content = typeof cell.column.columnDef.cell === "function" ? cell.column.columnDef.cell(cell.getContext()) : null;
|
36510
36511
|
return /* @__PURE__ */ React__default.createElement(
|
36511
36512
|
MemoedGroupedCell,
|
36512
36513
|
{
|
@@ -36519,7 +36520,7 @@ function GroupedCell(props) {
|
|
36519
36520
|
subRows,
|
36520
36521
|
table
|
36521
36522
|
},
|
36522
|
-
|
36523
|
+
content
|
36523
36524
|
);
|
36524
36525
|
}
|
36525
36526
|
const MemoedGroupedCell = React__default.memo(function MemoedGroupedCell2(props) {
|
@@ -36669,7 +36670,8 @@ function DisplayCell(props) {
|
|
36669
36670
|
const columnMeta = cell.column.columnDef.meta;
|
36670
36671
|
const attributes = getCellAttributes(cell, index2, isHighlighted);
|
36671
36672
|
const isTruncated = !!columnMeta.enableTruncate;
|
36672
|
-
|
36673
|
+
const content = typeof cell.column.columnDef.cell === "function" ? cell.column.columnDef.cell(cell.getContext()) : cell.getValue();
|
36674
|
+
return /* @__PURE__ */ React__default.createElement(MemoedDisplayCell, { ...cellAttributes, ...attributes, cellRef, isTruncated }, content);
|
36673
36675
|
}
|
36674
36676
|
const MemoedDisplayCell = React__default.memo(function MemoedDisplayCell2(props) {
|
36675
36677
|
const { cellRef, children, isTruncated, ...cellAttributes } = props;
|