@silurus/ooxml 0.23.0 → 0.24.1

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.
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./xlsx-C338java.cjs`),t=require(`./pptx-Ywwc_EMp.cjs`),n=require(`./docx-DKPVLT6O.cjs`);Object.defineProperty(exports,`docx`,{enumerable:!0,get:function(){return n.t}}),Object.defineProperty(exports,`pptx`,{enumerable:!0,get:function(){return t.t}}),Object.defineProperty(exports,`xlsx`,{enumerable:!0,get:function(){return e.t}});
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./xlsx-gRrUS-6_.cjs`),t=require(`./pptx-Ywwc_EMp.cjs`),n=require(`./docx-DKPVLT6O.cjs`);Object.defineProperty(exports,`docx`,{enumerable:!0,get:function(){return n.t}}),Object.defineProperty(exports,`pptx`,{enumerable:!0,get:function(){return t.t}}),Object.defineProperty(exports,`xlsx`,{enumerable:!0,get:function(){return e.t}});
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./xlsx-C1BPPkHW.js";
1
+ import { t as e } from "./xlsx-2-CSHym0.js";
2
2
  import { t } from "./pptx-nyHInjlO.js";
3
3
  import { t as n } from "./docx-C_zG3e0V.js";
4
4
  export { n as docx, t as pptx, e as xlsx };
@@ -1737,6 +1737,17 @@ declare interface TableCell {
1737
1737
  vMerge: boolean;
1738
1738
  }
1739
1739
 
1740
+ /** Per-column DXF references inside a `<table>` element
1741
+ * (ECMA-376 §18.5.1.3 `tableColumn`). */
1742
+ declare interface TableColumnInfo {
1743
+ /** `<tableColumn dataDxfId>` — applied to data cells in this column. */
1744
+ dataDxfId?: number;
1745
+ /** `<tableColumn headerRowDxfId>` — applied to the header cell of this column. */
1746
+ headerRowDxfId?: number;
1747
+ /** `<tableColumn totalsRowDxfId>` — applied to the totals cell of this column. */
1748
+ totalsRowDxfId?: number;
1749
+ }
1750
+
1740
1751
  declare interface TableElement {
1741
1752
  type: 'table';
1742
1753
  x: number;
@@ -1767,6 +1778,12 @@ declare interface TableInfo {
1767
1778
  /** Dxf index for the `headerRow` element of a custom `<tableStyle>` —
1768
1779
  * provides header background, font color/weight, and vertical separators. */
1769
1780
  headerRowDxf?: number;
1781
+ /** Per-column DXF references (ECMA-376 §18.5.1.3 `tableColumn`). Index by
1782
+ * `cellCol - range.left`. The renderer can use these to apply column-level
1783
+ * overlays for named-style tables; for files where Excel pre-bakes the
1784
+ * column DXF result into the cell `xf` (the common case), reading `xf` is
1785
+ * sufficient and these fields are informational. */
1786
+ columns: TableColumnInfo[];
1770
1787
  }
1771
1788
 
1772
1789
  declare interface TableRow {
@@ -1961,6 +1978,14 @@ declare interface Worksheet {
1961
1978
  * Cross-sheet `<xm:f>` data references are resolved to numeric values at
1962
1979
  * parse time, and theme + tint colors are flattened to `#RRGGBB`. */
1963
1980
  sparklineGroups?: SparklineGroup[];
1981
+ /** Family name of the workbook's Normal-style font, resolved by the parser
1982
+ * from `<cellStyleXfs>[0].fontId` → `<fonts>[fontId].name.val`. The
1983
+ * renderer uses this together with `defaultFontSize` to compute the Max
1984
+ * Digit Width for column-width pixel conversion (ECMA-376 §18.3.1.13).
1985
+ * Workbook-wide value, denormalized onto every worksheet. */
1986
+ defaultFontFamily?: string;
1987
+ /** Point size of the workbook's Normal-style font (`<fonts>[N].sz.val`). */
1988
+ defaultFontSize?: number;
1964
1989
  }
1965
1990
 
1966
1991
  export declare namespace xlsx {
@@ -700,6 +700,17 @@ export declare interface Styles {
700
700
  dxfs: Dxf[];
701
701
  }
702
702
 
703
+ /** Per-column DXF references inside a `<table>` element
704
+ * (ECMA-376 §18.5.1.3 `tableColumn`). */
705
+ declare interface TableColumnInfo {
706
+ /** `<tableColumn dataDxfId>` — applied to data cells in this column. */
707
+ dataDxfId?: number;
708
+ /** `<tableColumn headerRowDxfId>` — applied to the header cell of this column. */
709
+ headerRowDxfId?: number;
710
+ /** `<tableColumn totalsRowDxfId>` — applied to the totals cell of this column. */
711
+ totalsRowDxfId?: number;
712
+ }
713
+
703
714
  declare interface TableInfo {
704
715
  range: CellRange_2;
705
716
  styleName: string;
@@ -719,6 +730,12 @@ declare interface TableInfo {
719
730
  /** Dxf index for the `headerRow` element of a custom `<tableStyle>` —
720
731
  * provides header background, font color/weight, and vertical separators. */
721
732
  headerRowDxf?: number;
733
+ /** Per-column DXF references (ECMA-376 §18.5.1.3 `tableColumn`). Index by
734
+ * `cellCol - range.left`. The renderer can use these to apply column-level
735
+ * overlays for named-style tables; for files where Excel pre-bakes the
736
+ * column DXF result into the cell `xf` (the common case), reading `xf` is
737
+ * sufficient and these fields are informational. */
738
+ columns: TableColumnInfo[];
722
739
  }
723
740
 
724
741
  /** Emitted once per cell that has text, with the cell's canvas-pixel bounds. */
@@ -794,6 +811,14 @@ export declare interface Worksheet {
794
811
  * Cross-sheet `<xm:f>` data references are resolved to numeric values at
795
812
  * parse time, and theme + tint colors are flattened to `#RRGGBB`. */
796
813
  sparklineGroups?: SparklineGroup[];
814
+ /** Family name of the workbook's Normal-style font, resolved by the parser
815
+ * from `<cellStyleXfs>[0].fontId` → `<fonts>[fontId].name.val`. The
816
+ * renderer uses this together with `defaultFontSize` to compute the Max
817
+ * Digit Width for column-width pixel conversion (ECMA-376 §18.3.1.13).
818
+ * Workbook-wide value, denormalized onto every worksheet. */
819
+ defaultFontFamily?: string;
820
+ /** Point size of the workbook's Normal-style font (`<fonts>[N].sz.val`). */
821
+ defaultFontSize?: number;
797
822
  }
798
823
 
799
824
  /**