@cellaware/utils 8.1.8 → 8.1.10

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.
@@ -1,3 +1,5 @@
1
+ export declare const CHATWMS_DATABASE_ID = "chatwms";
2
+ export declare const CLIENT_PARTITION_KEY = "/clientId";
1
3
  export declare const PRODUCT_PARTITION_KEY = "/productId";
2
4
  /**
3
5
  * Default `partitionKey` is '/clientId'
@@ -1,6 +1,8 @@
1
1
  import { cosmosDelete, cosmosInsert, cosmosSelect, cosmosUpdate, cosmosUpsert } from "../../azure/cosmos.js";
2
2
  const DATABASE_ID = 'chatwms';
3
3
  const PARTITION_KEY = '/clientId';
4
+ export const CHATWMS_DATABASE_ID = DATABASE_ID;
5
+ export const CLIENT_PARTITION_KEY = PARTITION_KEY;
4
6
  export const PRODUCT_PARTITION_KEY = '/productId';
5
7
  /**
6
8
  * Default `partitionKey` is '/clientId'
@@ -726,6 +726,8 @@ export function transformDatagrid(rows, datagridState, locale, condition) {
726
726
  if (isPivotMode && pivotCols.length > 0 && valueCols.length > 0) {
727
727
  const pivotOutput = pivotData(rows, rowGroupCols, pivotCols, valueCols);
728
728
  rows = pivotOutput.rows;
729
+ console.log('PIVOT MODE');
730
+ console.log(rows);
729
731
  rows = sortModel.length > 0 ? sortRows(rows, sortModel) : rows;
730
732
  let mappedDisplayColumnNames = new Map();
731
733
  // Should not need to do hidden/visible column analysis -- pivoting creates new results with only the necessary columns.
@@ -63,7 +63,8 @@ export interface ReportLine {
63
63
  }
64
64
  export interface ReportLineResult {
65
65
  rows: any[];
66
- rowsStr: string;
66
+ htmlRows: string;
67
+ markdownRows: string;
67
68
  chartRows: any[];
68
69
  }
69
70
  export declare function initReportLineResult(): ReportLineResult;
@@ -26,7 +26,8 @@ export function initReport() {
26
26
  export function initReportLineResult() {
27
27
  return {
28
28
  rows: [],
29
- rowsStr: '',
29
+ htmlRows: '',
30
+ markdownRows: '',
30
31
  chartRows: []
31
32
  };
32
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellaware/utils",
3
- "version": "8.1.8",
3
+ "version": "8.1.10",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",