@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.js CHANGED
@@ -33291,7 +33291,7 @@ function globalFilterFn(row, columnId, searchQuery, localization) {
33291
33291
  var _a;
33292
33292
  try {
33293
33293
  if (row.original) {
33294
- const cellValue = row.original[columnId];
33294
+ const cellValue = row.getValue(columnId);
33295
33295
  const columnMeta = (_a = row._getAllCellsByColumnId()[columnId]) == null ? void 0 : _a.column.columnDef.meta;
33296
33296
  return isMatched(
33297
33297
  searchQuery,
@@ -33317,7 +33317,6 @@ function resetHighlightedColumnIndexes(searchQuery, table, localization) {
33317
33317
  columns.forEach((column, columnIndex) => {
33318
33318
  var _a, _b;
33319
33319
  try {
33320
- const key = column.columnDef.accessorKey;
33321
33320
  let allowSearch = true;
33322
33321
  if (rowGrouping == null ? void 0 : rowGrouping.length) {
33323
33322
  if (row.getIsGrouped()) {
@@ -33327,7 +33326,7 @@ function resetHighlightedColumnIndexes(searchQuery, table, localization) {
33327
33326
  }
33328
33327
  }
33329
33328
  if (column.getIsVisible() && column.columnDef.enableGlobalFilter && allowSearch) {
33330
- const cellValue = get(row.original, key);
33329
+ const cellValue = row.getValue(column.id);
33331
33330
  const dataType = (_a = column.columnDef.meta) == null ? void 0 : _a.dataType;
33332
33331
  const dataTypeOptions = (_b = column.columnDef.meta) == null ? void 0 : _b.dataTypeOptions;
33333
33332
  if (isMatched(searchQuery, cellValue, row.original, dataType, dataTypeOptions, localization)) {
@@ -33540,9 +33539,8 @@ function processChildren(child, columns, defaultSizing, defaultSorting, defaultV
33540
33539
  }
33541
33540
  const column = {
33542
33541
  id: id2,
33543
- accessorKey,
33544
- // dot notated accessors will throw if they return null or undefined, so we have to add an accessorFn to avoid that
33545
- accessorFn: accessorKey && String(accessorKey).includes(".") ? (row) => get(row, accessorKey) : void 0,
33542
+ // dot notated accessors will throw if they return null or undefined, so use accessorFn (instead of accessorKey) to avoid that
33543
+ accessorFn: (row) => get(row, accessorKey),
33546
33544
  // The header can be either a string or a JSX.Element, but react-table expects it to be a string or a
33547
33545
  // renderer function, so `() => header` ensures compatibility when header is a JSX.Element.
33548
33546
  // If we just pass `() => header`, then we will loose truncation for string headers.
@@ -36670,7 +36668,12 @@ function DisplayCell(props) {
36670
36668
  const columnMeta = cell.column.columnDef.meta;
36671
36669
  const attributes = getCellAttributes(cell, index2, isHighlighted);
36672
36670
  const isTruncated = !!columnMeta.enableTruncate;
36673
- const content = typeof cell.column.columnDef.cell === "function" ? cell.column.columnDef.cell(cell.getContext()) : cell.getValue();
36671
+ let content;
36672
+ if (isInternalColumn(cell.column.id)) {
36673
+ content = flexRender(cell.column.columnDef.cell, cell.getContext());
36674
+ } else {
36675
+ content = typeof cell.column.columnDef.cell === "function" ? cell.column.columnDef.cell(cell.getContext()) : cell.getValue();
36676
+ }
36674
36677
  return /* @__PURE__ */ React__default.createElement(MemoedDisplayCell, { ...cellAttributes, ...attributes, cellRef, isTruncated }, content);
36675
36678
  }
36676
36679
  const MemoedDisplayCell = React__default.memo(function MemoedDisplayCell2(props) {