@cellaware/utils 8.6.10 → 8.6.11

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.
@@ -806,6 +806,7 @@ function processHtmlStyles(value, columnFormat, rowStyles, columnStyles) {
806
806
  export function mapTeamsStyles(columnNames, htmlRowStyles, htmlColumnStyles, teamsRowStyles, teamsColumnStyles) {
807
807
  // IMPORTANT: both column/row style sorting have **already** been reversed (line 1170).
808
808
  // We can simply iterate over all the matched styles and accumulate them.
809
+ console.log(htmlColumnStyles);
809
810
  const getColumnStyle = (style) => {
810
811
  switch (style) {
811
812
  case 'conditional-format-style-green-background':
@@ -998,7 +999,6 @@ function createTeamsTableCellText(value, columnStyle) {
998
999
  isSubtle = styles.isSubtle;
999
1000
  }
1000
1001
  }
1001
- console.log('HERE: ' + columnStyle);
1002
1002
  return {
1003
1003
  type: "TextBlock",
1004
1004
  text: italic ? `*${value}*` : value,
@@ -1015,15 +1015,15 @@ function createTeamsTableRow(columnNames, values, rowStyles, columnStyles) {
1015
1015
  let rowStyle = undefined;
1016
1016
  for (const style of rowStyles) {
1017
1017
  rowStyle = style;
1018
- console.log(style);
1019
1018
  }
1019
+ console.log(rowStyles);
1020
+ console.log(columnStyles);
1020
1021
  return {
1021
1022
  type: "TableRow",
1022
1023
  style: rowStyle,
1023
1024
  cells: values.map((value, idx) => {
1024
1025
  const columnName = columnNames[idx];
1025
1026
  const columnStyle = columnStyles.find(columnStyle => columnStyle.columnName === columnName);
1026
- console.log(columnStyle);
1027
1027
  let style = undefined;
1028
1028
  for (const styles of columnStyle?.styles ?? []) {
1029
1029
  if (!!styles.style) {
@@ -1276,7 +1276,7 @@ export function transformDatagrid(rows, datagridState, locale, condition) {
1276
1276
  [htmlRowStyles, htmlColumnStyles] = processHtmlStyles(formattedValue, columnFormat, htmlRowStyles, htmlColumnStyles);
1277
1277
  [teamsRowStyles, teamsColumnStyles] = mapTeamsStyles(htmlColumnNames, htmlRowStyles, htmlColumnStyles, teamsRowStyles, teamsColumnStyles);
1278
1278
  if (rowIdx === 0) {
1279
- htmlColumnNames.push(columnFormat.displayName);
1279
+ htmlColumnNames.push(adjDisplayName);
1280
1280
  }
1281
1281
  // Remove name in favor of display name.
1282
1282
  if (adjDisplayName !== mappedColumnName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellaware/utils",
3
- "version": "8.6.10",
3
+ "version": "8.6.11",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",