@cellaware/utils 8.6.7 → 8.6.8

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.
@@ -998,6 +998,7 @@ function createTeamsTableCellText(value, columnStyle) {
998
998
  isSubtle = styles.isSubtle;
999
999
  }
1000
1000
  }
1001
+ console.log('HERE: ' + columnStyle);
1001
1002
  return {
1002
1003
  type: "TextBlock",
1003
1004
  text: italic ? `*${value}*` : value,
@@ -1010,17 +1011,19 @@ function createTeamsTableCellText(value, columnStyle) {
1010
1011
  isSubtle
1011
1012
  };
1012
1013
  }
1013
- function createTeamsTableRow(columnNames, values, oddRow, rowStyles, columnStyles) {
1014
+ function createTeamsTableRow(columnNames, values, rowStyles, columnStyles) {
1014
1015
  let rowStyle = undefined;
1015
1016
  for (const style of rowStyles) {
1016
1017
  rowStyle = style;
1018
+ console.log(style);
1017
1019
  }
1018
1020
  return {
1019
1021
  type: "TableRow",
1020
- ...(rowStyle ? { style: rowStyle } : (oddRow ? { style: "emphasis" } : {})),
1022
+ style: rowStyle,
1021
1023
  cells: values.map((value, idx) => {
1022
1024
  const columnName = columnNames[idx];
1023
1025
  const columnStyle = columnStyles.find(columnStyle => columnStyle.columnName === columnName);
1026
+ console.log(columnStyle);
1024
1027
  let style = undefined;
1025
1028
  for (const styles of columnStyle?.styles ?? []) {
1026
1029
  if (!!styles.style) {
@@ -1140,7 +1143,7 @@ export function transformDatagrid(rows, datagridState, locale, condition) {
1140
1143
  chartRows.push(chartRow);
1141
1144
  if (rowIdx < HTML_ROWS) {
1142
1145
  htmlBuf += buildHtmlRow(htmlRowValues, htmlRowStyles, htmlColumnStyles, HTML_COLS);
1143
- teamsRows.push(createTeamsTableRow(htmlColumnNames, htmlRowValues, rowIdx % 2 === 1, teamsRowStyles, teamsColumnStyles));
1146
+ teamsRows.push(createTeamsTableRow(htmlColumnNames, htmlRowValues, teamsRowStyles, teamsColumnStyles));
1144
1147
  }
1145
1148
  rowIdx++;
1146
1149
  });
@@ -1187,7 +1190,7 @@ export function transformDatagrid(rows, datagridState, locale, condition) {
1187
1190
  chartRows.push(chartRow);
1188
1191
  if (rowIdx < HTML_ROWS) {
1189
1192
  htmlBuf += buildHtmlRow(htmlRowValues, htmlRowStyles, htmlColumnStyles, HTML_COLS);
1190
- teamsRows.push(createTeamsTableRow(htmlColumnNames, htmlRowValues, rowIdx % 2 === 1, teamsRowStyles, teamsColumnStyles));
1193
+ teamsRows.push(createTeamsTableRow(htmlColumnNames, htmlRowValues, teamsRowStyles, teamsColumnStyles));
1191
1194
  }
1192
1195
  rowIdx++;
1193
1196
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellaware/utils",
3
- "version": "8.6.7",
3
+ "version": "8.6.8",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",