@silurus/ooxml 0.10.0 → 0.11.0

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(`./pptx-BGtPXrb6.cjs`),t=require(`./xlsx-BJUBRQc-.cjs`),n=require(`./docx-5SgqrF74.cjs`);Object.defineProperty(exports,`docx`,{enumerable:!0,get:function(){return n.t}}),Object.defineProperty(exports,`pptx`,{enumerable:!0,get:function(){return e.t}}),Object.defineProperty(exports,`xlsx`,{enumerable:!0,get:function(){return t.t}});
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./pptx-BGtPXrb6.cjs`),t=require(`./xlsx-DYZg9gH8.cjs`),n=require(`./docx-5SgqrF74.cjs`);Object.defineProperty(exports,`docx`,{enumerable:!0,get:function(){return n.t}}),Object.defineProperty(exports,`pptx`,{enumerable:!0,get:function(){return e.t}}),Object.defineProperty(exports,`xlsx`,{enumerable:!0,get:function(){return t.t}});
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  import { t as e } from "./pptx-CsVDY5Ej.js";
2
- import { t } from "./xlsx-CLl6pKA0.js";
2
+ import { t } from "./xlsx-35w32FNQ.js";
3
3
  import { t as n } from "./docx-BdQTKYcj.js";
4
4
  export { n as docx, e as pptx, t as xlsx };
@@ -47,6 +47,12 @@ declare interface Border {
47
47
  bottom: BorderEdge | null;
48
48
  diagonalUp?: BorderEdge | null;
49
49
  diagonalDown?: BorderEdge | null;
50
+ /** Inner horizontal rule between rows inside a region
51
+ * (ECMA-376 §18.8.40 `tableStyleElement/border/horizontal`).
52
+ * Only set on table-style dxfs; absent on cell-level borders. */
53
+ horizontal?: BorderEdge | null;
54
+ /** Inner vertical rule between columns inside a region. */
55
+ vertical?: BorderEdge | null;
50
56
  }
51
57
 
52
58
  declare interface BorderEdge {
@@ -135,6 +141,11 @@ declare interface CellXf {
135
141
  shrinkToFit?: boolean;
136
142
  }
137
143
 
144
+ declare interface CfIcon {
145
+ iconSet: string;
146
+ iconId: number;
147
+ }
148
+
138
149
  declare type CfRule = {
139
150
  type: 'cellIs';
140
151
  operator: string;
@@ -176,6 +187,7 @@ declare type CfRule = {
176
187
  cfvos: CfValue[];
177
188
  reverse: boolean;
178
189
  priority: number;
190
+ customIcons?: CfIcon[];
179
191
  } | {
180
192
  type: 'other';
181
193
  kind: string;
@@ -1248,6 +1260,27 @@ declare interface TableElement {
1248
1260
  rows: TableRow[];
1249
1261
  }
1250
1262
 
1263
+ declare interface TableInfo {
1264
+ range: CellRange;
1265
+ styleName: string;
1266
+ headerRowCount: number;
1267
+ totalsRowCount: number;
1268
+ showRowStripes: boolean;
1269
+ showColumnStripes: boolean;
1270
+ showFirstColumn: boolean;
1271
+ showLastColumn: boolean;
1272
+ /** Accent color resolved by the parser from the built-in style name against
1273
+ * the file's theme accents (e.g. `TableStyleLight18` → accent3). */
1274
+ accentColor: string;
1275
+ /** Dxf index for the `wholeTable` element of a custom `<tableStyle>`
1276
+ * (ECMA-376 §18.8.40). When set, its border/fill apply to every cell of
1277
+ * the table as a base layer. Undefined for built-in style names. */
1278
+ wholeTableDxf?: number;
1279
+ /** Dxf index for the `headerRow` element of a custom `<tableStyle>` —
1280
+ * provides header background, font color/weight, and vertical separators. */
1281
+ headerRowDxf?: number;
1282
+ }
1283
+
1251
1284
  declare interface TableRow {
1252
1285
  /** Row height in EMU */
1253
1286
  height: number;
@@ -1376,6 +1409,9 @@ declare interface Worksheet {
1376
1409
  * conditional-formatting `expression` rules that call named ranges
1377
1410
  * (e.g. `task_start`, `today`). */
1378
1411
  definedNames?: DefinedName[];
1412
+ /** Excel Tables on this sheet (ECMA-376 §18.5). The renderer overlays a
1413
+ * built-in style (bold header, banded rows) on the given ranges. */
1414
+ tables?: TableInfo[];
1379
1415
  }
1380
1416
 
1381
1417
  export declare namespace xlsx {
@@ -30,6 +30,12 @@ export declare interface Border {
30
30
  bottom: BorderEdge | null;
31
31
  diagonalUp?: BorderEdge | null;
32
32
  diagonalDown?: BorderEdge | null;
33
+ /** Inner horizontal rule between rows inside a region
34
+ * (ECMA-376 §18.8.40 `tableStyleElement/border/horizontal`).
35
+ * Only set on table-style dxfs; absent on cell-level borders. */
36
+ horizontal?: BorderEdge | null;
37
+ /** Inner vertical rule between columns inside a region. */
38
+ vertical?: BorderEdge | null;
33
39
  }
34
40
 
35
41
  export declare interface BorderEdge {
@@ -89,6 +95,11 @@ export declare interface CellXf {
89
95
  shrinkToFit?: boolean;
90
96
  }
91
97
 
98
+ declare interface CfIcon {
99
+ iconSet: string;
100
+ iconId: number;
101
+ }
102
+
92
103
  declare type CfRule = {
93
104
  type: 'cellIs';
94
105
  operator: string;
@@ -130,6 +141,7 @@ declare type CfRule = {
130
141
  cfvos: CfValue[];
131
142
  reverse: boolean;
132
143
  priority: number;
144
+ customIcons?: CfIcon[];
133
145
  } | {
134
146
  type: 'other';
135
147
  kind: string;
@@ -344,6 +356,27 @@ export declare interface Styles {
344
356
  dxfs: Dxf[];
345
357
  }
346
358
 
359
+ declare interface TableInfo {
360
+ range: CellRange;
361
+ styleName: string;
362
+ headerRowCount: number;
363
+ totalsRowCount: number;
364
+ showRowStripes: boolean;
365
+ showColumnStripes: boolean;
366
+ showFirstColumn: boolean;
367
+ showLastColumn: boolean;
368
+ /** Accent color resolved by the parser from the built-in style name against
369
+ * the file's theme accents (e.g. `TableStyleLight18` → accent3). */
370
+ accentColor: string;
371
+ /** Dxf index for the `wholeTable` element of a custom `<tableStyle>`
372
+ * (ECMA-376 §18.8.40). When set, its border/fill apply to every cell of
373
+ * the table as a base layer. Undefined for built-in style names. */
374
+ wholeTableDxf?: number;
375
+ /** Dxf index for the `headerRow` element of a custom `<tableStyle>` —
376
+ * provides header background, font color/weight, and vertical separators. */
377
+ headerRowDxf?: number;
378
+ }
379
+
347
380
  export declare interface ViewportRange {
348
381
  row: number;
349
382
  col: number;
@@ -387,6 +420,9 @@ export declare interface Worksheet {
387
420
  * conditional-formatting `expression` rules that call named ranges
388
421
  * (e.g. `task_start`, `today`). */
389
422
  definedNames?: DefinedName[];
423
+ /** Excel Tables on this sheet (ECMA-376 §18.5). The renderer overlays a
424
+ * built-in style (bold header, banded rows) on the given ranges. */
425
+ tables?: TableInfo[];
390
426
  }
391
427
 
392
428
  /**