@cj-tech-master/excelts 5.1.10 → 5.1.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.
@@ -468,6 +468,11 @@ export interface TableColumnProperties {
468
468
  totalsRowFunction?: "none" | "average" | "countNums" | "count" | "max" | "min" | "stdDev" | "var" | "sum" | "custom";
469
469
  totalsRowFormula?: string;
470
470
  totalsRowResult?: CellFormulaValue["result"];
471
+ /**
472
+ * Formula applied to every data row in this column.
473
+ * Corresponds to the OOXML `<calculatedColumnFormula>` element.
474
+ */
475
+ calculatedColumnFormula?: string;
471
476
  style?: Partial<Style>;
472
477
  }
473
478
  export interface TableProperties {
@@ -4,17 +4,22 @@ interface TableColumnModel {
4
4
  name: string;
5
5
  totalsRowLabel?: string;
6
6
  totalsRowFunction?: string;
7
+ totalsRowFormula?: string;
8
+ calculatedColumnFormula?: string;
7
9
  dxfId?: string;
8
10
  }
9
11
  declare class TableColumnXform extends BaseXform<TableColumnModel> {
12
+ private _childTag;
13
+ private _childText;
10
14
  constructor();
11
15
  get tag(): string;
12
16
  prepare(model: TableColumnModel, options: {
13
17
  index: number;
14
18
  }): void;
19
+ private _renderAttributes;
15
20
  render(xmlStream: any, model: TableColumnModel): void;
16
21
  parseOpen(node: any): boolean;
17
- parseText(): void;
18
- parseClose(): boolean;
22
+ parseText(text: string): void;
23
+ parseClose(name: string): boolean;
19
24
  }
20
25
  export { TableColumnXform };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cj-tech-master/excelts",
3
- "version": "5.1.10",
3
+ "version": "5.1.11",
4
4
  "description": "TypeScript Excel Workbook Manager - Read and Write xlsx and csv Files.",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",