@economic/taco 2.58.2-EC-64961.10 → 2.58.2-EC-64961.12

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 CHANGED
@@ -33309,7 +33309,7 @@ function globalFilterFn(row, columnId, searchQuery, localization) {
33309
33309
  var _a;
33310
33310
  try {
33311
33311
  if (row.original) {
33312
- const cellValue = row.original[columnId];
33312
+ const cellValue = row.getValue(columnId);
33313
33313
  const columnMeta = (_a = row._getAllCellsByColumnId()[columnId]) == null ? void 0 : _a.column.columnDef.meta;
33314
33314
  return isMatched(
33315
33315
  searchQuery,
@@ -33335,7 +33335,6 @@ function resetHighlightedColumnIndexes(searchQuery, table, localization) {
33335
33335
  columns.forEach((column, columnIndex) => {
33336
33336
  var _a, _b;
33337
33337
  try {
33338
- const key = column.columnDef.accessorKey;
33339
33338
  let allowSearch = true;
33340
33339
  if (rowGrouping == null ? void 0 : rowGrouping.length) {
33341
33340
  if (row.getIsGrouped()) {
@@ -33345,7 +33344,7 @@ function resetHighlightedColumnIndexes(searchQuery, table, localization) {
33345
33344
  }
33346
33345
  }
33347
33346
  if (column.getIsVisible() && column.columnDef.enableGlobalFilter && allowSearch) {
33348
- const cellValue = get(row.original, key);
33347
+ const cellValue = row.getValue(column.id);
33349
33348
  const dataType = (_a = column.columnDef.meta) == null ? void 0 : _a.dataType;
33350
33349
  const dataTypeOptions = (_b = column.columnDef.meta) == null ? void 0 : _b.dataTypeOptions;
33351
33350
  if (isMatched(searchQuery, cellValue, row.original, dataType, dataTypeOptions, localization)) {
@@ -33558,9 +33557,8 @@ function processChildren(child, columns, defaultSizing, defaultSorting, defaultV
33558
33557
  }
33559
33558
  const column = {
33560
33559
  id: id2,
33561
- accessorKey,
33562
- // dot notated accessors will throw if they return null or undefined, so we have to add an accessorFn to avoid that
33563
- accessorFn: accessorKey && String(accessorKey).includes(".") ? (row) => get(row, accessorKey) : void 0,
33560
+ // dot notated accessors will throw if they return null or undefined, so use accessorFn (instead of accessorKey) to avoid that
33561
+ accessorFn: (row) => get(row, accessorKey),
33564
33562
  // The header can be either a string or a JSX.Element, but react-table expects it to be a string or a
33565
33563
  // renderer function, so `() => header` ensures compatibility when header is a JSX.Element.
33566
33564
  // If we just pass `() => header`, then we will loose truncation for string headers.
@@ -36688,7 +36686,12 @@ function DisplayCell(props) {
36688
36686
  const columnMeta = cell.column.columnDef.meta;
36689
36687
  const attributes = getCellAttributes(cell, index2, isHighlighted);
36690
36688
  const isTruncated = !!columnMeta.enableTruncate;
36691
- const content = typeof cell.column.columnDef.cell === "function" ? cell.column.columnDef.cell(cell.getContext()) : cell.getValue();
36689
+ let content;
36690
+ if (isInternalColumn(cell.column.id)) {
36691
+ content = flexRender(cell.column.columnDef.cell, cell.getContext());
36692
+ } else {
36693
+ content = typeof cell.column.columnDef.cell === "function" ? cell.column.columnDef.cell(cell.getContext()) : cell.getValue();
36694
+ }
36692
36695
  return /* @__PURE__ */ React.createElement(MemoedDisplayCell, { ...cellAttributes, ...attributes, cellRef, isTruncated }, content);
36693
36696
  }
36694
36697
  const MemoedDisplayCell = React.memo(function MemoedDisplayCell2(props) {