genesys-react-components 0.4.1-devengage-1573-implementing-tables.245 → 0.4.1-devengage-1573-implementing-tables.246

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/build/index.d.ts CHANGED
@@ -113,8 +113,7 @@ export interface DataTableRow {
113
113
  cells: DataTableCell[];
114
114
  }
115
115
  export interface DataTableCell {
116
- raw?: string;
117
- renderedContent: React.ReactNode;
116
+ renderedContent?: React.ReactNode;
118
117
  content: string;
119
118
  parsedContent?: string | number | Date;
120
119
  align?: 'left' | 'center' | 'right';
package/build/index.js CHANGED
@@ -6554,7 +6554,7 @@ function DataTable(props) {
6554
6554
  if (props.headerRow) {
6555
6555
  columnHeaders = (React.createElement("tr", null, props.headerRow.cells.map((cell, i) => (React.createElement("td", { key: i, align: (cell === null || cell === void 0 ? void 0 : cell.align) || 'left', className: colsort.colId === i && colsort.sort !== 'none' ? '' : 'unsorted', onClick: isSortable ? () => sortChanged(i.toString()) : undefined },
6556
6556
  React.createElement("div", { className: `header-container align-${(cell === null || cell === void 0 ? void 0 : cell.align) || 'left'}` },
6557
- (cell === null || cell === void 0 ? void 0 : cell.content) ? cell.renderedContent : null,
6557
+ cell.renderedContent || cell.content,
6558
6558
  filters[i] && filters[i].filter !== '' && filters[i].filter !== undefined ? (React.createElement(GenesysDevIcon, { icon: GenesysDevIcons.AppFilter, className: "filter-active-icon" })) : (''),
6559
6559
  isSortable ? React.createElement(GenesysDevIcon, { icon: getSortCaret(i), className: "sort-icon" }) : null))))));
6560
6560
  }
@@ -6606,7 +6606,7 @@ function DataTable(props) {
6606
6606
  React.createElement("table", { className: tableClassName, cellSpacing: "0" },
6607
6607
  thead,
6608
6608
  React.createElement("tbody", null, rows.map((row, i) => (React.createElement("tr", { key: i }, row.cells.map((cell, ii) => (React.createElement("td", { key: ii, align: (cell === null || cell === void 0 ? void 0 : cell.align) || 'left' }, (cell === null || cell === void 0 ? void 0 : cell.content) ? (React.createElement("div", { className: `align-${(cell === null || cell === void 0 ? void 0 : cell.align) || 'left'}` },
6609
- cell.renderedContent,
6609
+ cell.renderedContent || cell.content,
6610
6610
  cell.copyButton ? React.createElement(CopyButton, { copyText: cell.content }) : undefined)) : null)))))))))));
6611
6611
  }
6612
6612