@silurus/ooxml 0.8.1 → 0.10.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 +1 -1
- package/dist/index.mjs +1 -1
- package/dist/types/index.d.ts +20 -0
- package/dist/types/xlsx.d.ts +20 -0
- package/dist/xlsx-BJUBRQc-.cjs +5 -0
- package/dist/xlsx-CLl6pKA0.js +1911 -0
- package/dist/xlsx.cjs +1 -1
- package/dist/xlsx.mjs +1 -1
- package/package.json +1 -1
- package/dist/xlsx-5xusOvzv.js +0 -1203
- package/dist/xlsx-DZYw6i9i.cjs +0 -4
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./pptx-BGtPXrb6.cjs`),t=require(`./xlsx-
|
|
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}});
|
package/dist/index.mjs
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -82,6 +82,11 @@ declare interface Cell {
|
|
|
82
82
|
colRef: string;
|
|
83
83
|
value: CellValue;
|
|
84
84
|
styleIndex: number;
|
|
85
|
+
/** Raw `<f>` formula text (ECMA-376 §18.3.1.40), when present. The renderer
|
|
86
|
+
* uses this to recompute volatile functions (TODAY, NOW) at display time
|
|
87
|
+
* so the cached `<v>` — frozen when the file was last saved — doesn't
|
|
88
|
+
* show a stale date. */
|
|
89
|
+
formula?: string;
|
|
85
90
|
}
|
|
86
91
|
|
|
87
92
|
declare interface CellBorders {
|
|
@@ -141,6 +146,7 @@ declare type CfRule = {
|
|
|
141
146
|
formula: string;
|
|
142
147
|
dxfId: number | null;
|
|
143
148
|
priority: number;
|
|
149
|
+
stopIfTrue: boolean;
|
|
144
150
|
} | {
|
|
145
151
|
type: 'colorScale';
|
|
146
152
|
stops: CfStop[];
|
|
@@ -151,6 +157,7 @@ declare type CfRule = {
|
|
|
151
157
|
min: CfValue;
|
|
152
158
|
max: CfValue;
|
|
153
159
|
priority: number;
|
|
160
|
+
gradient: boolean;
|
|
154
161
|
} | {
|
|
155
162
|
type: 'top10';
|
|
156
163
|
top: boolean;
|
|
@@ -317,6 +324,11 @@ declare interface ConditionalFormat {
|
|
|
317
324
|
rules: CfRule[];
|
|
318
325
|
}
|
|
319
326
|
|
|
327
|
+
declare interface DefinedName {
|
|
328
|
+
name: string;
|
|
329
|
+
formula: string;
|
|
330
|
+
}
|
|
331
|
+
|
|
320
332
|
declare interface DocParagraph {
|
|
321
333
|
/**
|
|
322
334
|
* ECMA-376 §17.18.44 ST_Jc. Renderer honors left, start, center, right, end,
|
|
@@ -1347,6 +1359,10 @@ declare interface Worksheet {
|
|
|
1347
1359
|
charts: ChartAnchor[];
|
|
1348
1360
|
/** Whether to display zero values (ECMA-376 §18.3.1.94). Defaults to true. */
|
|
1349
1361
|
showZeros?: boolean;
|
|
1362
|
+
/** Whether to draw default grid lines (ECMA-376 §18.3.1.83
|
|
1363
|
+
* `<sheetView showGridLines>`). Mirrors the Excel "View → Gridlines"
|
|
1364
|
+
* checkbox. Defaults to true. */
|
|
1365
|
+
showGridlines?: boolean;
|
|
1350
1366
|
/** Sheet tab color (ECMA-376 §18.3.1.79). */
|
|
1351
1367
|
tabColor?: string | null;
|
|
1352
1368
|
/** AutoFilter header range (ECMA-376 §18.3.1.2). */
|
|
@@ -1356,6 +1372,10 @@ declare interface Worksheet {
|
|
|
1356
1372
|
/** A1-style cell refs of commented cells (ECMA-376 §18.7.3). Rendered as a
|
|
1357
1373
|
* small red triangle in each cell's top-right corner. */
|
|
1358
1374
|
commentRefs?: string[];
|
|
1375
|
+
/** Defined names in scope for this sheet (ECMA-376 §18.2.5). Used by
|
|
1376
|
+
* conditional-formatting `expression` rules that call named ranges
|
|
1377
|
+
* (e.g. `task_start`, `today`). */
|
|
1378
|
+
definedNames?: DefinedName[];
|
|
1359
1379
|
}
|
|
1360
1380
|
|
|
1361
1381
|
export declare namespace xlsx {
|
package/dist/types/xlsx.d.ts
CHANGED
|
@@ -43,6 +43,11 @@ export declare interface Cell {
|
|
|
43
43
|
colRef: string;
|
|
44
44
|
value: CellValue;
|
|
45
45
|
styleIndex: number;
|
|
46
|
+
/** Raw `<f>` formula text (ECMA-376 §18.3.1.40), when present. The renderer
|
|
47
|
+
* uses this to recompute volatile functions (TODAY, NOW) at display time
|
|
48
|
+
* so the cached `<v>` — frozen when the file was last saved — doesn't
|
|
49
|
+
* show a stale date. */
|
|
50
|
+
formula?: string;
|
|
46
51
|
}
|
|
47
52
|
|
|
48
53
|
declare interface CellRange {
|
|
@@ -95,6 +100,7 @@ declare type CfRule = {
|
|
|
95
100
|
formula: string;
|
|
96
101
|
dxfId: number | null;
|
|
97
102
|
priority: number;
|
|
103
|
+
stopIfTrue: boolean;
|
|
98
104
|
} | {
|
|
99
105
|
type: 'colorScale';
|
|
100
106
|
stops: CfStop[];
|
|
@@ -105,6 +111,7 @@ declare type CfRule = {
|
|
|
105
111
|
min: CfValue;
|
|
106
112
|
max: CfValue;
|
|
107
113
|
priority: number;
|
|
114
|
+
gradient: boolean;
|
|
108
115
|
} | {
|
|
109
116
|
type: 'top10';
|
|
110
117
|
top: boolean;
|
|
@@ -194,6 +201,11 @@ declare interface ConditionalFormat {
|
|
|
194
201
|
rules: CfRule[];
|
|
195
202
|
}
|
|
196
203
|
|
|
204
|
+
declare interface DefinedName {
|
|
205
|
+
name: string;
|
|
206
|
+
formula: string;
|
|
207
|
+
}
|
|
208
|
+
|
|
197
209
|
declare interface Dxf {
|
|
198
210
|
font: Font | null;
|
|
199
211
|
fill: Fill | null;
|
|
@@ -358,6 +370,10 @@ export declare interface Worksheet {
|
|
|
358
370
|
charts: ChartAnchor[];
|
|
359
371
|
/** Whether to display zero values (ECMA-376 §18.3.1.94). Defaults to true. */
|
|
360
372
|
showZeros?: boolean;
|
|
373
|
+
/** Whether to draw default grid lines (ECMA-376 §18.3.1.83
|
|
374
|
+
* `<sheetView showGridLines>`). Mirrors the Excel "View → Gridlines"
|
|
375
|
+
* checkbox. Defaults to true. */
|
|
376
|
+
showGridlines?: boolean;
|
|
361
377
|
/** Sheet tab color (ECMA-376 §18.3.1.79). */
|
|
362
378
|
tabColor?: string | null;
|
|
363
379
|
/** AutoFilter header range (ECMA-376 §18.3.1.2). */
|
|
@@ -367,6 +383,10 @@ export declare interface Worksheet {
|
|
|
367
383
|
/** A1-style cell refs of commented cells (ECMA-376 §18.7.3). Rendered as a
|
|
368
384
|
* small red triangle in each cell's top-right corner. */
|
|
369
385
|
commentRefs?: string[];
|
|
386
|
+
/** Defined names in scope for this sheet (ECMA-376 §18.2.5). Used by
|
|
387
|
+
* conditional-formatting `expression` rules that call named ranges
|
|
388
|
+
* (e.g. `task_start`, `today`). */
|
|
389
|
+
definedNames?: DefinedName[];
|
|
370
390
|
}
|
|
371
391
|
|
|
372
392
|
/**
|