@cellaware/utils 8.6.10 → 8.6.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.
@@ -867,6 +867,8 @@ export function mapTeamsStyles(columnNames, htmlRowStyles, htmlColumnStyles, tea
867
867
  styles: htmlColumnStyle.styles.map(style => getColumnStyle(style))
868
868
  });
869
869
  }
870
+ console.log('A.');
871
+ console.log(JSON.stringify(teamsColumnStyles));
870
872
  const applyRowStyleToColumns = (style) => {
871
873
  for (const columnName of columnNames) {
872
874
  const columnStyle = getColumnStyle(style);
@@ -998,7 +1000,6 @@ function createTeamsTableCellText(value, columnStyle) {
998
1000
  isSubtle = styles.isSubtle;
999
1001
  }
1000
1002
  }
1001
- console.log('HERE: ' + columnStyle);
1002
1003
  return {
1003
1004
  type: "TextBlock",
1004
1005
  text: italic ? `*${value}*` : value,
@@ -1015,15 +1016,15 @@ function createTeamsTableRow(columnNames, values, rowStyles, columnStyles) {
1015
1016
  let rowStyle = undefined;
1016
1017
  for (const style of rowStyles) {
1017
1018
  rowStyle = style;
1018
- console.log(style);
1019
1019
  }
1020
+ console.log('B.');
1021
+ console.log(JSON.stringify(columnStyles));
1020
1022
  return {
1021
1023
  type: "TableRow",
1022
1024
  style: rowStyle,
1023
1025
  cells: values.map((value, idx) => {
1024
1026
  const columnName = columnNames[idx];
1025
1027
  const columnStyle = columnStyles.find(columnStyle => columnStyle.columnName === columnName);
1026
- console.log(columnStyle);
1027
1028
  let style = undefined;
1028
1029
  for (const styles of columnStyle?.styles ?? []) {
1029
1030
  if (!!styles.style) {
@@ -1276,7 +1277,7 @@ export function transformDatagrid(rows, datagridState, locale, condition) {
1276
1277
  [htmlRowStyles, htmlColumnStyles] = processHtmlStyles(formattedValue, columnFormat, htmlRowStyles, htmlColumnStyles);
1277
1278
  [teamsRowStyles, teamsColumnStyles] = mapTeamsStyles(htmlColumnNames, htmlRowStyles, htmlColumnStyles, teamsRowStyles, teamsColumnStyles);
1278
1279
  if (rowIdx === 0) {
1279
- htmlColumnNames.push(columnFormat.displayName);
1280
+ htmlColumnNames.push(adjDisplayName);
1280
1281
  }
1281
1282
  // Remove name in favor of display name.
1282
1283
  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.12",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",