@office-open/xlsx 0.8.1 → 0.9.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/README.md +18 -21
- package/dist/context-a1lzscdy.mjs +2251 -0
- package/dist/context-a1lzscdy.mjs.map +1 -0
- package/dist/generate-BLESQtfS.d.mts +26 -0
- package/dist/generate-BLESQtfS.d.mts.map +1 -0
- package/dist/generate-CmgPdwPP.mjs +2786 -0
- package/dist/generate-CmgPdwPP.mjs.map +1 -0
- package/dist/generate.d.mts +2 -0
- package/dist/generate.mjs +2 -0
- package/dist/index.d.mts +537 -2115
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +7 -5424
- package/dist/index.mjs.map +1 -1
- package/dist/parse-CZQQuAH5.d.mts +42 -0
- package/dist/parse-CZQQuAH5.d.mts.map +1 -0
- package/dist/parse.d.mts +2 -0
- package/dist/parse.mjs +131 -0
- package/dist/parse.mjs.map +1 -0
- package/dist/patch.d.mts +31 -0
- package/dist/patch.d.mts.map +1 -0
- package/dist/patch.mjs +101 -0
- package/dist/patch.mjs.map +1 -0
- package/dist/worksheet-BbJpRvw2.d.mts +1691 -0
- package/dist/worksheet-BbJpRvw2.d.mts.map +1 -0
- package/package.json +18 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,2255 +1,677 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as OleLinkOptions, A as TableColumnOptions, B as PivotCacheDefinitionOptions, C as SheetBackgroundImageOptions, D as WorksheetOptions, Dt as buildExternalReferencesXml, E as WorksheetContext, Et as WorkbookProtectionOptions, F as tableDesc, G as PivotTableOptions, H as PivotFilterOptions, I as SharedStrings, J as ExternalDefinedNameOptions, K as ExternalBookOptions, L as SharedStringsDocOptions, M as TableStyleInfoOptions, N as TableType, O as stringifyWorksheet, Ot as buildTablePartsXml, P as TotalsRowFunction, Q as OleItemOptions, R as sharedStringsDesc, S as ScenarioOptions, St as PivotCacheReference, T as WorksheetChartOptions, Tt as WebPublishingOptions, U as PivotFilterType, V as PivotDataField, W as PivotSourceData, X as ExternalRowOptions, Y as ExternalLinkOptions, Z as ExternalSheetDataOptions, _ as PhoneticPrOptions, _t as stylesDesc, a as ColumnOptions, at as ChartsheetPageSetup, b as ScenarioCellOptions, bt as FileRecoveryPrOptions, c as ConditionalFormatRule, ct as AlignmentOptions, d as FormulaOptions, dt as DxfOptions, et as externalLinkDesc, f as FreezePaneOptions, ft as FillOptions, g as MergeCellOptions, gt as StylesDocOptions, h as IgnoredErrorOptions, ht as Styles, i as ColorScaleOptions, it as ChartsheetPageMargins, j as TableOptions, k as worksheetDesc, kt as workbookDesc, l as DataBarOptions, lt as BorderOptions, m as IconSetType, mt as StyleOptions, n as CfvoOptions, nt as ChartsheetHeaderFooterOptions, o as CommentOptions, ot as ChartsheetProtectionOptions, p as IconSetOptions, pt as FontOptions, q as ExternalCellOptions, r as CfvoType, rt as ChartsheetOptions, s as ConditionalFormatOptions, st as chartsheetDesc, t as CellOptions, tt as ChartsheetDescriptorOptions, u as DataValidationOptions, ut as BorderSideOptions, v as ProtectedRangeOptions, vt as CorePropertiesOptions, w as SheetProtectionOptions, x as ScenarioDefinition, xt as FileSharingOptions, y as RowOptions, yt as CustomWorkbookViewOptions, z as ConsolidateFunction } from "./worksheet-BbJpRvw2.mjs";
|
|
2
|
+
import { i as WorkbookOptions, n as generateWorkbookStream, r as generateWorkbookSync, t as generateWorkbook } from "./generate-BLESQtfS.mjs";
|
|
3
|
+
import { a as parseXlsx, i as parseWorkbook, n as XlsxPartRefs, t as XlsxDocument } from "./parse-CZQQuAH5.mjs";
|
|
4
|
+
import { CellPatch, IPatch, InputDataType, PatchDocumentOutputType, PatchType, PatchWorkbookOptions, patchWorkbook } from "./patch.mjs";
|
|
2
5
|
import { Element } from "@office-open/xml";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
6
|
+
import { ChartCollection, CompressionOptions, OutputByType, OutputType, PackerOptions, RelationshipType, Relationships, XmlifyedFile, Zippable } from "@office-open/core";
|
|
7
|
+
import { createThemeXml } from "@office-open/core/theme";
|
|
8
|
+
import { CustomDescriptor, ReadContext, WriteContext } from "@office-open/core/descriptor";
|
|
5
9
|
|
|
6
|
-
//#region src/
|
|
7
|
-
interface
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
readonly state?: "visible" | "hidden" | "veryHidden";
|
|
12
|
-
}
|
|
13
|
-
interface PivotCacheReference {
|
|
14
|
-
readonly cacheId: number;
|
|
15
|
-
readonly rId: string;
|
|
16
|
-
}
|
|
17
|
-
interface TablePartReference {
|
|
18
|
-
readonly rId: string;
|
|
19
|
-
}
|
|
20
|
-
interface CustomWorkbookViewOptions {
|
|
21
|
-
readonly name: string;
|
|
22
|
-
readonly guid: string;
|
|
23
|
-
readonly windowWidth: number;
|
|
24
|
-
readonly windowHeight: number;
|
|
25
|
-
readonly activeSheetId: number;
|
|
26
|
-
readonly xWindow?: number;
|
|
27
|
-
readonly yWindow?: number;
|
|
28
|
-
readonly showFormulaBar?: boolean;
|
|
29
|
-
readonly showStatusbar?: boolean;
|
|
30
|
-
readonly showHorizontalScroll?: boolean;
|
|
31
|
-
readonly showVerticalScroll?: boolean;
|
|
32
|
-
readonly showSheetTabs?: boolean;
|
|
33
|
-
readonly tabRatio?: number;
|
|
34
|
-
readonly includeHiddenRowCol?: boolean;
|
|
35
|
-
readonly includePrintSettings?: boolean;
|
|
36
|
-
readonly personalView?: boolean;
|
|
37
|
-
readonly maximized?: boolean;
|
|
38
|
-
readonly minimized?: boolean;
|
|
39
|
-
readonly autoUpdate?: boolean;
|
|
40
|
-
readonly mergeInterval?: number;
|
|
41
|
-
readonly changesSavedWin?: boolean;
|
|
42
|
-
readonly onlySync?: boolean;
|
|
43
|
-
readonly showComments?: string;
|
|
44
|
-
}
|
|
45
|
-
interface WorkbookProtectionOptions {
|
|
46
|
-
readonly lockStructure?: boolean;
|
|
47
|
-
readonly lockWindows?: boolean;
|
|
48
|
-
readonly lockRevision?: boolean;
|
|
49
|
-
readonly workbookPassword?: string;
|
|
50
|
-
readonly workbookAlgorithmName?: string;
|
|
51
|
-
readonly workbookHashValue?: string;
|
|
52
|
-
readonly workbookSaltValue?: string;
|
|
53
|
-
readonly workbookSpinCount?: number;
|
|
54
|
-
readonly revisionsPassword?: string;
|
|
55
|
-
readonly revisionsAlgorithmName?: string;
|
|
56
|
-
readonly revisionsHashValue?: string;
|
|
57
|
-
readonly revisionsSaltValue?: string;
|
|
58
|
-
readonly revisionsSpinCount?: number;
|
|
59
|
-
readonly workbookPasswordCharacterSet?: string;
|
|
60
|
-
readonly revisionsPasswordCharacterSet?: string;
|
|
61
|
-
}
|
|
62
|
-
type WorkbookConformance = "strict" | "transitional";
|
|
63
|
-
interface FileRecoveryPrOptions {
|
|
64
|
-
readonly autoRecover?: boolean;
|
|
65
|
-
readonly crashSave?: boolean;
|
|
66
|
-
readonly dataExtractLoad?: boolean;
|
|
67
|
-
readonly repairLoad?: boolean;
|
|
68
|
-
}
|
|
69
|
-
interface WebPublishingOptions {
|
|
70
|
-
readonly css?: boolean;
|
|
71
|
-
readonly thicket?: boolean;
|
|
72
|
-
readonly longFileNames?: boolean;
|
|
73
|
-
readonly vml?: boolean;
|
|
74
|
-
readonly allowPng?: boolean;
|
|
75
|
-
readonly targetScreenSize?: string;
|
|
76
|
-
readonly dpi?: number;
|
|
77
|
-
readonly codePage?: number;
|
|
78
|
-
readonly characterSet?: string;
|
|
79
|
-
}
|
|
80
|
-
interface FileSharingOptions {
|
|
81
|
-
readonly readOnlyRecommended?: boolean;
|
|
82
|
-
readonly userName?: string;
|
|
83
|
-
readonly reservationPassword?: string;
|
|
84
|
-
readonly algorithmName?: string;
|
|
85
|
-
readonly hashValue?: string;
|
|
86
|
-
readonly saltValue?: string;
|
|
87
|
-
readonly spinCount?: number;
|
|
88
|
-
}
|
|
89
|
-
interface WorkbookPrOptions {
|
|
90
|
-
readonly date1904?: boolean;
|
|
91
|
-
readonly defaultThemeVersion?: number;
|
|
92
|
-
readonly showObjects?: string;
|
|
93
|
-
readonly hidePivotFieldList?: boolean;
|
|
94
|
-
readonly allowRefreshQuery?: boolean;
|
|
95
|
-
readonly filterPrivacy?: boolean;
|
|
96
|
-
readonly backupFile?: boolean;
|
|
97
|
-
readonly codeName?: string;
|
|
98
|
-
readonly showBorderUnselectedTables?: boolean;
|
|
99
|
-
readonly promptedSolutions?: boolean;
|
|
100
|
-
readonly showInkAnnotation?: boolean;
|
|
101
|
-
readonly saveExternalLinkValues?: boolean;
|
|
102
|
-
readonly updateLinks?: string;
|
|
103
|
-
readonly showPivotChartFilter?: boolean;
|
|
104
|
-
readonly publishItems?: boolean;
|
|
105
|
-
readonly checkCompatibility?: boolean;
|
|
106
|
-
readonly autoCompressPictures?: boolean;
|
|
107
|
-
readonly refreshAllConnections?: boolean;
|
|
108
|
-
}
|
|
109
|
-
interface VolTypeOptions {
|
|
110
|
-
readonly type?: "realTimeData" | "olapFunctions";
|
|
111
|
-
readonly mains?: readonly VolMainOptions[];
|
|
112
|
-
}
|
|
113
|
-
interface VolMainOptions {
|
|
114
|
-
readonly first: string;
|
|
115
|
-
readonly topics?: readonly VolTopicOptions[];
|
|
116
|
-
}
|
|
117
|
-
interface VolTopicOptions {
|
|
118
|
-
readonly value: string;
|
|
119
|
-
readonly valueType?: string;
|
|
120
|
-
readonly stringTopics?: readonly string[];
|
|
121
|
-
readonly refs?: readonly VolTopicRefOptions[];
|
|
122
|
-
}
|
|
123
|
-
interface VolTopicRefOptions {
|
|
124
|
-
readonly reference: string;
|
|
125
|
-
readonly sheetIndex: number;
|
|
126
|
-
}
|
|
127
|
-
interface WebPublishObjectOptions {
|
|
128
|
-
readonly rId: string;
|
|
129
|
-
readonly destinationFile?: string;
|
|
130
|
-
readonly autoRepublish?: boolean;
|
|
131
|
-
readonly title?: string;
|
|
132
|
-
readonly sourceObject?: string;
|
|
133
|
-
readonly appName?: string;
|
|
134
|
-
}
|
|
135
|
-
interface CalcPrOptions {
|
|
136
|
-
readonly calcMode?: string;
|
|
137
|
-
readonly calcId?: number;
|
|
138
|
-
readonly fullCalcOnLoad?: boolean;
|
|
139
|
-
readonly calcOnSave?: boolean;
|
|
140
|
-
readonly forceFullCalc?: boolean;
|
|
141
|
-
readonly concurrentCalc?: boolean;
|
|
142
|
-
readonly concurrentManualCount?: number;
|
|
143
|
-
readonly iterate?: boolean;
|
|
144
|
-
readonly iterateCount?: number;
|
|
145
|
-
readonly iterateDelta?: number;
|
|
146
|
-
readonly refMode?: string;
|
|
147
|
-
readonly fullPrecision?: boolean;
|
|
148
|
-
readonly calcCompleted?: boolean;
|
|
149
|
-
}
|
|
150
|
-
interface WorkbookViewOptions {
|
|
151
|
-
readonly activeTab?: number;
|
|
152
|
-
readonly autoFilterDateGrouping?: boolean;
|
|
153
|
-
readonly firstSheet?: number;
|
|
154
|
-
readonly showHorizontalScroll?: boolean;
|
|
155
|
-
readonly showSheetTabs?: boolean;
|
|
156
|
-
readonly showVerticalScroll?: boolean;
|
|
157
|
-
readonly tabRatio?: number;
|
|
158
|
-
readonly windowWidth?: number;
|
|
159
|
-
readonly windowHeight?: number;
|
|
160
|
-
readonly xWindow?: number;
|
|
161
|
-
readonly yWindow?: number;
|
|
162
|
-
}
|
|
163
|
-
declare class WorkbookXml extends BaseXmlComponent {
|
|
164
|
-
private readonly sheets;
|
|
165
|
-
private readonly pivotCaches;
|
|
166
|
-
private readonly protection?;
|
|
167
|
-
private readonly customViews?;
|
|
168
|
-
private readonly fileRecoveryPr?;
|
|
169
|
-
private readonly functionGroupNames;
|
|
170
|
-
private readonly webPublishing?;
|
|
171
|
-
private readonly fileSharing?;
|
|
172
|
-
private readonly workbookPr?;
|
|
173
|
-
private readonly calcPr?;
|
|
174
|
-
private readonly bookView?;
|
|
175
|
-
private readonly volTypes?;
|
|
176
|
-
private readonly webPublishObjects?;
|
|
177
|
-
private readonly conformance?;
|
|
178
|
-
constructor(sheets: readonly SheetDefinition[], pivotCaches?: readonly PivotCacheReference[], protection?: WorkbookProtectionOptions, customViews?: readonly CustomWorkbookViewOptions[], fileRecoveryPr?: FileRecoveryPrOptions, functionGroups?: readonly string[], webPublishing?: WebPublishingOptions, fileSharing?: FileSharingOptions, workbookPr?: WorkbookPrOptions, calcPr?: CalcPrOptions, bookView?: WorkbookViewOptions, volTypes?: readonly VolTypeOptions[], webPublishObjects?: readonly WebPublishObjectOptions[], conformance?: WorkbookConformance);
|
|
179
|
-
toXml(_context: Context): string;
|
|
180
|
-
static buildTablePartsXml(tableParts: readonly TablePartReference[]): string;
|
|
181
|
-
static buildExternalReferencesXml(refs: readonly {
|
|
182
|
-
rId: string;
|
|
183
|
-
}[]): string;
|
|
184
|
-
private hashPassword;
|
|
10
|
+
//#region src/parts/calc-chain.d.ts
|
|
11
|
+
interface CalcCell {
|
|
12
|
+
reference: string;
|
|
13
|
+
sheetIndex: number;
|
|
14
|
+
array?: boolean;
|
|
185
15
|
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
declare class ContentTypes extends BaseXmlComponent {
|
|
189
|
-
private readonly dynamicEntries;
|
|
190
|
-
constructor();
|
|
191
|
-
addWorksheet(index: number): void;
|
|
192
|
-
addChartsheet(index: number): void;
|
|
193
|
-
addStyles(): void;
|
|
194
|
-
addSharedStrings(): void;
|
|
195
|
-
addTheme(index?: number): void;
|
|
196
|
-
addChart(index: number): void;
|
|
197
|
-
addDrawing(index: number): void;
|
|
198
|
-
addComments(index: number): void;
|
|
199
|
-
addVmlDrawing(): void;
|
|
200
|
-
addImageType(extension: "png" | "jpeg"): void;
|
|
201
|
-
addPivotTable(index: number): void;
|
|
202
|
-
addPivotCacheDefinition(index: number): void;
|
|
203
|
-
addPivotCacheRecords(index: number): void;
|
|
204
|
-
addTable(index: number): void;
|
|
205
|
-
addExternalLink(index: number): void;
|
|
206
|
-
addCalcChain(): void;
|
|
207
|
-
addDialogsheet(index: number): void;
|
|
208
|
-
addRevisionHeaders(): void;
|
|
209
|
-
addRevisionLog(index: number): void;
|
|
210
|
-
addQueryTable(index: number): void;
|
|
211
|
-
addMetadata(): void;
|
|
212
|
-
toXml(_context: Context): string;
|
|
16
|
+
interface CalcChainOptions {
|
|
17
|
+
cells: CalcCell[];
|
|
213
18
|
}
|
|
19
|
+
declare const calcChainDesc: CustomDescriptor<CalcChainOptions>;
|
|
214
20
|
//#endregion
|
|
215
|
-
//#region src/
|
|
216
|
-
interface
|
|
217
|
-
|
|
218
|
-
readonly subject?: string;
|
|
219
|
-
readonly creator?: string;
|
|
220
|
-
readonly keywords?: string;
|
|
221
|
-
readonly description?: string;
|
|
222
|
-
readonly lastModifiedBy?: string;
|
|
223
|
-
readonly revision?: number;
|
|
224
|
-
}
|
|
225
|
-
declare class CoreProperties extends BaseXmlComponent {
|
|
226
|
-
private readonly options;
|
|
227
|
-
constructor(options: CorePropertiesOptions);
|
|
228
|
-
toXml(_context: Context): string;
|
|
21
|
+
//#region src/parts/comments.d.ts
|
|
22
|
+
interface CommentsDocOptions {
|
|
23
|
+
comments: CommentOptions[];
|
|
229
24
|
}
|
|
25
|
+
declare const commentsDesc: CustomDescriptor<CommentsDocOptions>;
|
|
26
|
+
declare const vmlNotesDesc: CustomDescriptor<CommentsDocOptions>;
|
|
230
27
|
//#endregion
|
|
231
|
-
//#region src/
|
|
232
|
-
interface
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
readonly family?: number;
|
|
256
|
-
readonly condense?: boolean;
|
|
257
|
-
readonly extend?: boolean;
|
|
258
|
-
readonly vertAlign?: "superscript" | "subscript" | "baseline";
|
|
259
|
-
readonly scheme?: "major" | "minor" | "none";
|
|
260
|
-
readonly shadow?: boolean;
|
|
261
|
-
readonly outline?: boolean;
|
|
262
|
-
}
|
|
263
|
-
interface GradientStopOptions {
|
|
264
|
-
readonly position: number;
|
|
265
|
-
readonly color: string;
|
|
266
|
-
}
|
|
267
|
-
interface FillOptions {
|
|
268
|
-
readonly type?: "solid" | "pattern" | "gradient";
|
|
269
|
-
readonly color?: string;
|
|
270
|
-
readonly patternType?: string;
|
|
271
|
-
readonly bgColor?: string;
|
|
272
|
-
readonly colorIndexed?: number;
|
|
273
|
-
readonly stops?: readonly GradientStopOptions[];
|
|
274
|
-
readonly gradientType?: "linear" | "path";
|
|
275
|
-
readonly gradientDegree?: number;
|
|
276
|
-
readonly gradientLeft?: number;
|
|
277
|
-
readonly gradientRight?: number;
|
|
278
|
-
readonly gradientTop?: number;
|
|
279
|
-
readonly gradientBottom?: number;
|
|
280
|
-
}
|
|
281
|
-
interface BorderOptions {
|
|
282
|
-
readonly style?: "thin" | "medium" | "thick" | "dotted" | "dashed" | "hair" | "none";
|
|
283
|
-
readonly color?: string;
|
|
284
|
-
}
|
|
285
|
-
interface BorderSideOptions {
|
|
286
|
-
readonly top?: BorderOptions;
|
|
287
|
-
readonly bottom?: BorderOptions;
|
|
288
|
-
readonly left?: BorderOptions;
|
|
289
|
-
readonly right?: BorderOptions;
|
|
290
|
-
readonly diagonal?: BorderOptions;
|
|
291
|
-
readonly diagonalUp?: boolean;
|
|
292
|
-
readonly diagonalDown?: boolean;
|
|
293
|
-
readonly start?: BorderOptions;
|
|
294
|
-
readonly end?: BorderOptions;
|
|
295
|
-
readonly vertical?: BorderOptions;
|
|
296
|
-
readonly horizontal?: BorderOptions;
|
|
297
|
-
}
|
|
298
|
-
interface AlignmentOptions {
|
|
299
|
-
readonly horizontal?: "left" | "center" | "right" | "fill" | "justify";
|
|
300
|
-
readonly vertical?: "top" | "center" | "bottom";
|
|
301
|
-
readonly wrapText?: boolean;
|
|
302
|
-
readonly textRotation?: number;
|
|
303
|
-
readonly indent?: number;
|
|
304
|
-
readonly relativeIndent?: number;
|
|
305
|
-
readonly justifyLastLine?: boolean;
|
|
306
|
-
readonly shrinkToFit?: boolean;
|
|
307
|
-
readonly readingOrder?: number;
|
|
308
|
-
}
|
|
309
|
-
interface StyleOptions {
|
|
310
|
-
readonly font?: FontOptions;
|
|
311
|
-
readonly fill?: FillOptions;
|
|
312
|
-
readonly border?: BorderSideOptions;
|
|
313
|
-
readonly numFmt?: string;
|
|
314
|
-
readonly alignment?: AlignmentOptions;
|
|
315
|
-
readonly quotePrefix?: boolean;
|
|
316
|
-
readonly pivotButton?: boolean;
|
|
317
|
-
readonly applyProtection?: boolean;
|
|
318
|
-
readonly protection?: CellProtectionOptions;
|
|
319
|
-
}
|
|
320
|
-
interface CellProtectionOptions {
|
|
321
|
-
readonly locked?: boolean;
|
|
322
|
-
readonly hidden?: boolean;
|
|
323
|
-
}
|
|
324
|
-
interface IndexedColorOptions {
|
|
325
|
-
readonly rgb: string;
|
|
326
|
-
}
|
|
327
|
-
interface ColorsOptions {
|
|
328
|
-
readonly indexedColors?: readonly IndexedColorOptions[];
|
|
329
|
-
readonly mruColors?: readonly string[];
|
|
330
|
-
}
|
|
331
|
-
interface DxfOptions {
|
|
332
|
-
readonly font?: FontOptions;
|
|
333
|
-
readonly fill?: FillOptions;
|
|
334
|
-
readonly border?: BorderSideOptions;
|
|
335
|
-
readonly numFmt?: string;
|
|
336
|
-
}
|
|
337
|
-
type TableStyleElementType = "wholeTable" | "headerRow" | "totalRow" | "firstColumn" | "lastColumn" | "firstRowStripe" | "secondRowStripe" | "firstColumnStripe" | "secondColumnStripe" | "firstHeaderCell" | "lastHeaderCell" | "firstTotalCell" | "lastTotalCell" | "subtotalRow1" | "subtotalRow2" | "subtotalRow3" | "subtotalColumn1" | "subtotalColumn2" | "subtotalColumn3" | "blankRow" | "firstColumnSubheading" | "secondColumnSubheading" | "thirdColumnSubheading" | "firstRowSubheading" | "secondRowSubheading" | "thirdRowSubheading" | "pageFieldLabels" | "pageFieldValues";
|
|
338
|
-
interface TableStyleElementOptions {
|
|
339
|
-
readonly type: TableStyleElementType;
|
|
340
|
-
readonly dxfId?: number;
|
|
341
|
-
readonly button?: boolean;
|
|
342
|
-
}
|
|
343
|
-
interface StyleExtensionOptions {
|
|
344
|
-
readonly uri: string;
|
|
345
|
-
readonly content?: string;
|
|
346
|
-
}
|
|
347
|
-
interface CustomTableStyleOptions {
|
|
348
|
-
readonly name: string;
|
|
349
|
-
readonly pivot?: boolean;
|
|
350
|
-
readonly elements?: readonly TableStyleElementOptions[];
|
|
351
|
-
}
|
|
352
|
-
interface CustomCellStyleOptions {
|
|
353
|
-
readonly name: string;
|
|
354
|
-
readonly xfId: number;
|
|
355
|
-
readonly builtinId?: number;
|
|
356
|
-
readonly customBuiltin?: boolean;
|
|
357
|
-
readonly iLevel?: number;
|
|
358
|
-
readonly hidden?: boolean;
|
|
359
|
-
}
|
|
360
|
-
declare class Styles extends BaseXmlComponent {
|
|
361
|
-
private readonly fonts;
|
|
362
|
-
private readonly fontKeys;
|
|
363
|
-
private readonly fills;
|
|
364
|
-
private readonly fillKeys;
|
|
365
|
-
private readonly borders;
|
|
366
|
-
private readonly borderKeys;
|
|
367
|
-
private readonly customNumFmts;
|
|
368
|
-
private nextCustomNumFmtId;
|
|
369
|
-
private readonly cellXfs;
|
|
370
|
-
private readonly cellXfKeys;
|
|
371
|
-
private readonly dxfs;
|
|
372
|
-
private colors?;
|
|
373
|
-
private tableStyles?;
|
|
374
|
-
private customCellStyles?;
|
|
375
|
-
private styleExtensions?;
|
|
376
|
-
constructor();
|
|
377
|
-
register(opts: StyleOptions): number;
|
|
378
|
-
registerDxf(opts: DxfOptions): number;
|
|
379
|
-
setColors(opts: ColorsOptions): void;
|
|
380
|
-
setTableStyles(styles: readonly CustomTableStyleOptions[]): void;
|
|
381
|
-
setExtensions(extensions: readonly StyleExtensionOptions[]): void;
|
|
382
|
-
setCustomCellStyles(styles: readonly CustomCellStyleOptions[]): void;
|
|
383
|
-
private registerFont;
|
|
384
|
-
private registerFill;
|
|
385
|
-
private registerBorder;
|
|
386
|
-
private registerNumFmt;
|
|
387
|
-
private cellXfKey;
|
|
388
|
-
toXml(_context: Context): string;
|
|
389
|
-
private fontXmlStr;
|
|
390
|
-
private borderXmlStr;
|
|
391
|
-
private alignmentXmlStr;
|
|
392
|
-
private protectionXmlStr;
|
|
393
|
-
}
|
|
394
|
-
//#endregion
|
|
395
|
-
//#region src/file/pivot/pivot-utils.d.ts
|
|
396
|
-
declare const ConsolidateFunction: {
|
|
397
|
-
readonly SUM: "sum";
|
|
398
|
-
readonly COUNT: "count";
|
|
399
|
-
readonly AVERAGE: "average";
|
|
400
|
-
readonly MAX: "max";
|
|
401
|
-
readonly MIN: "min";
|
|
402
|
-
readonly PRODUCT: "product";
|
|
403
|
-
readonly COUNT_NUMS: "countNums";
|
|
404
|
-
readonly STD_DEV: "stdDev";
|
|
405
|
-
readonly STD_DEV_P: "stdDevp";
|
|
406
|
-
readonly VAR: "var";
|
|
407
|
-
readonly VAR_P: "varp";
|
|
408
|
-
};
|
|
409
|
-
type ConsolidateFunction = (typeof ConsolidateFunction)[keyof typeof ConsolidateFunction];
|
|
410
|
-
interface PivotDataField {
|
|
411
|
-
readonly field: string;
|
|
412
|
-
readonly summarize?: ConsolidateFunction;
|
|
413
|
-
readonly name?: string;
|
|
414
|
-
readonly showDataAs?: string;
|
|
415
|
-
readonly baseField?: number;
|
|
416
|
-
readonly baseItem?: number;
|
|
417
|
-
readonly sortByTupleItems?: readonly number[];
|
|
418
|
-
}
|
|
419
|
-
interface PivotFieldOverrideOptions {
|
|
420
|
-
readonly field: string;
|
|
421
|
-
readonly allDrilled?: boolean;
|
|
422
|
-
readonly autoShow?: boolean;
|
|
423
|
-
readonly countSubtotal?: boolean;
|
|
424
|
-
readonly dataSourceSort?: boolean;
|
|
425
|
-
readonly defaultAttributeDrillState?: boolean;
|
|
426
|
-
readonly hiddenLevel?: boolean;
|
|
427
|
-
readonly hideNewItems?: boolean;
|
|
428
|
-
readonly insertBlankRow?: boolean;
|
|
429
|
-
readonly insertPageBreak?: boolean;
|
|
430
|
-
readonly itemPageCount?: boolean;
|
|
431
|
-
readonly measureFilter?: boolean;
|
|
432
|
-
readonly nonAutoSortDefault?: boolean;
|
|
433
|
-
readonly productSubtotal?: boolean;
|
|
434
|
-
readonly rankBy?: number;
|
|
435
|
-
readonly serverField?: boolean;
|
|
436
|
-
readonly showDropDowns?: boolean;
|
|
437
|
-
readonly showPropAsCaption?: boolean;
|
|
438
|
-
readonly showPropCell?: boolean;
|
|
439
|
-
readonly showPropTip?: boolean;
|
|
440
|
-
readonly stdDevPSubtotal?: boolean;
|
|
441
|
-
readonly stdDevSubtotal?: boolean;
|
|
442
|
-
readonly subtotalCaption?: string;
|
|
443
|
-
readonly topAutoShow?: boolean;
|
|
444
|
-
readonly uniqueMemberProperty?: boolean;
|
|
445
|
-
readonly varPSubtotal?: boolean;
|
|
446
|
-
readonly varSubtotal?: boolean;
|
|
447
|
-
readonly defaultItemSd?: boolean;
|
|
448
|
-
}
|
|
449
|
-
declare const PivotFilterType: {
|
|
450
|
-
readonly UNKNOWN: "unknown";
|
|
451
|
-
readonly COUNT: "count";
|
|
452
|
-
readonly PERCENT: "percent";
|
|
453
|
-
readonly SUM: "sum";
|
|
454
|
-
readonly CAPTION_EQUAL: "captionEqual";
|
|
455
|
-
readonly CAPTION_NOT_EQUAL: "captionNotEqual";
|
|
456
|
-
readonly CAPTION_BEGINS_WITH: "captionBeginsWith";
|
|
457
|
-
readonly CAPTION_NOT_BEGINS_WITH: "captionNotBeginsWith";
|
|
458
|
-
readonly CAPTION_ENDS_WITH: "captionEndsWith";
|
|
459
|
-
readonly CAPTION_NOT_ENDS_WITH: "captionNotEndsWith";
|
|
460
|
-
readonly CAPTION_CONTAINS: "captionContains";
|
|
461
|
-
readonly CAPTION_NOT_CONTAINS: "captionNotContains";
|
|
462
|
-
readonly CAPTION_GREATER_THAN: "captionGreaterThan";
|
|
463
|
-
readonly CAPTION_GREATER_THAN_OR_EQUAL: "captionGreaterThanOrEqual";
|
|
464
|
-
readonly CAPTION_LESS_THAN: "captionLessThan";
|
|
465
|
-
readonly CAPTION_LESS_THAN_OR_EQUAL: "captionLessThanOrEqual";
|
|
466
|
-
readonly CAPTION_BETWEEN: "captionBetween";
|
|
467
|
-
readonly CAPTION_NOT_BETWEEN: "captionNotBetween";
|
|
468
|
-
readonly VALUE_EQUAL: "valueEqual";
|
|
469
|
-
readonly VALUE_NOT_EQUAL: "valueNotEqual";
|
|
470
|
-
readonly VALUE_GREATER_THAN: "valueGreaterThan";
|
|
471
|
-
readonly VALUE_GREATER_THAN_OR_EQUAL: "valueGreaterThanOrEqual";
|
|
472
|
-
readonly VALUE_LESS_THAN: "valueLessThan";
|
|
473
|
-
readonly VALUE_LESS_THAN_OR_EQUAL: "valueLessThanOrEqual";
|
|
474
|
-
readonly VALUE_BETWEEN: "valueBetween";
|
|
475
|
-
readonly VALUE_NOT_BETWEEN: "valueNotBetween";
|
|
476
|
-
readonly DATE_EQUAL: "dateEqual";
|
|
477
|
-
readonly DATE_NOT_EQUAL: "dateNotEqual";
|
|
478
|
-
readonly DATE_OLDER_THAN: "dateOlderThan";
|
|
479
|
-
readonly DATE_OLDER_THAN_OR_EQUAL: "dateOlderThanOrEqual";
|
|
480
|
-
readonly DATE_NEWER_THAN: "dateNewerThan";
|
|
481
|
-
readonly DATE_NEWER_THAN_OR_EQUAL: "dateNewerThanOrEqual";
|
|
482
|
-
readonly DATE_BETWEEN: "dateBetween";
|
|
483
|
-
readonly DATE_NOT_BETWEEN: "dateNotBetween";
|
|
484
|
-
readonly TOMORROW: "tomorrow";
|
|
485
|
-
readonly TODAY: "today";
|
|
486
|
-
readonly YESTERDAY: "yesterday";
|
|
487
|
-
readonly NEXT_WEEK: "nextWeek";
|
|
488
|
-
readonly THIS_WEEK: "thisWeek";
|
|
489
|
-
readonly LAST_WEEK: "lastWeek";
|
|
490
|
-
readonly NEXT_MONTH: "nextMonth";
|
|
491
|
-
readonly THIS_MONTH: "thisMonth";
|
|
492
|
-
readonly LAST_MONTH: "lastMonth";
|
|
493
|
-
readonly NEXT_QUARTER: "nextQuarter";
|
|
494
|
-
readonly THIS_QUARTER: "thisQuarter";
|
|
495
|
-
readonly LAST_QUARTER: "lastQuarter";
|
|
496
|
-
readonly NEXT_YEAR: "nextYear";
|
|
497
|
-
readonly THIS_YEAR: "thisYear";
|
|
498
|
-
readonly LAST_YEAR: "lastYear";
|
|
499
|
-
readonly YEAR_TO_DATE: "yearToDate";
|
|
500
|
-
readonly Q1: "Q1";
|
|
501
|
-
readonly Q2: "Q2";
|
|
502
|
-
readonly Q3: "Q3";
|
|
503
|
-
readonly Q4: "Q4";
|
|
504
|
-
readonly M1: "M1";
|
|
505
|
-
readonly M2: "M2";
|
|
506
|
-
readonly M3: "M3";
|
|
507
|
-
readonly M4: "M4";
|
|
508
|
-
readonly M5: "M5";
|
|
509
|
-
readonly M6: "M6";
|
|
510
|
-
readonly M7: "M7";
|
|
511
|
-
readonly M8: "M8";
|
|
512
|
-
readonly M9: "M9";
|
|
513
|
-
readonly M10: "M10";
|
|
514
|
-
readonly M11: "M11";
|
|
515
|
-
readonly M12: "M12";
|
|
516
|
-
};
|
|
517
|
-
type PivotFilterType = (typeof PivotFilterType)[keyof typeof PivotFilterType];
|
|
518
|
-
interface PivotFilterOptions {
|
|
519
|
-
readonly fld: number;
|
|
520
|
-
readonly type: PivotFilterType;
|
|
521
|
-
readonly id: number;
|
|
522
|
-
readonly mpFld?: number;
|
|
523
|
-
readonly evalOrder?: number;
|
|
524
|
-
readonly iMeasureHier?: number;
|
|
525
|
-
readonly iMeasureFld?: number;
|
|
526
|
-
readonly name?: string;
|
|
527
|
-
readonly description?: string;
|
|
528
|
-
readonly stringValue1?: string;
|
|
529
|
-
readonly stringValue2?: string;
|
|
530
|
-
}
|
|
531
|
-
interface PivotTableOptions {
|
|
532
|
-
readonly name?: string;
|
|
533
|
-
readonly source: string;
|
|
534
|
-
readonly sourceSheet?: string;
|
|
535
|
-
readonly location?: string;
|
|
536
|
-
readonly rows: readonly string[];
|
|
537
|
-
readonly columns?: readonly string[];
|
|
538
|
-
readonly data: readonly PivotDataField[];
|
|
539
|
-
readonly style?: string;
|
|
540
|
-
readonly filters?: readonly PivotFilterOptions[];
|
|
541
|
-
readonly pages?: readonly string[];
|
|
542
|
-
readonly pageCaptions?: readonly string[];
|
|
543
|
-
readonly dataOnRows?: boolean;
|
|
544
|
-
readonly grandTotalCaption?: string;
|
|
545
|
-
readonly errorCaption?: string;
|
|
546
|
-
readonly showError?: boolean;
|
|
547
|
-
readonly missingCaption?: string;
|
|
548
|
-
readonly showMissing?: boolean;
|
|
549
|
-
readonly pageStyle?: string;
|
|
550
|
-
readonly pivotTableStyle?: string;
|
|
551
|
-
readonly tag?: string;
|
|
552
|
-
readonly showItems?: boolean;
|
|
553
|
-
readonly editData?: boolean;
|
|
554
|
-
readonly disableFieldList?: boolean;
|
|
555
|
-
readonly showCalcMbrs?: boolean;
|
|
556
|
-
readonly visualTotals?: boolean;
|
|
557
|
-
readonly showMultipleLabel?: boolean;
|
|
558
|
-
readonly showDataDropDown?: boolean;
|
|
559
|
-
readonly showDrill?: boolean;
|
|
560
|
-
readonly printDrill?: boolean;
|
|
561
|
-
readonly showMemberPropertyTips?: boolean;
|
|
562
|
-
readonly showDataTips?: boolean;
|
|
563
|
-
readonly enableWizard?: boolean;
|
|
564
|
-
readonly enableDrill?: boolean;
|
|
565
|
-
readonly enableFieldProperties?: boolean;
|
|
566
|
-
readonly pageWrap?: number;
|
|
567
|
-
readonly pageOverThenDown?: boolean;
|
|
568
|
-
readonly subtotalHiddenItems?: boolean;
|
|
569
|
-
readonly fieldPrintTitles?: boolean;
|
|
570
|
-
readonly mergeItem?: boolean;
|
|
571
|
-
readonly showDropZones?: boolean;
|
|
572
|
-
readonly showEmptyRow?: boolean;
|
|
573
|
-
readonly showEmptyCol?: boolean;
|
|
574
|
-
readonly showHeaders?: boolean;
|
|
575
|
-
readonly published?: boolean;
|
|
576
|
-
readonly gridDropZones?: boolean;
|
|
577
|
-
readonly multipleFieldFilters?: boolean;
|
|
578
|
-
readonly rowHeaderCaption?: string;
|
|
579
|
-
readonly colHeaderCaption?: string;
|
|
580
|
-
readonly fieldListSortAscending?: boolean;
|
|
581
|
-
readonly mdxSubqueries?: boolean;
|
|
582
|
-
readonly customListSort?: boolean;
|
|
583
|
-
readonly asteriskTotals?: boolean;
|
|
584
|
-
readonly dataPosition?: number;
|
|
585
|
-
readonly immersive?: boolean;
|
|
586
|
-
readonly vacatedStyle?: string;
|
|
587
|
-
readonly calculatedItems?: readonly CalculatedItemOptions[];
|
|
588
|
-
readonly calculatedMembers?: readonly CalculatedMemberOptions[];
|
|
589
|
-
readonly pivotHierarchies?: readonly PivotHierarchyOptions[];
|
|
590
|
-
readonly pivotConditionalFormats?: readonly PivotConditionalFormatOptions[];
|
|
591
|
-
readonly chartFormats?: readonly ChartFormatOptions[];
|
|
592
|
-
readonly autoSortScope?: PivotAreaOptions;
|
|
593
|
-
readonly memberProperties?: readonly MemberPropertyOptions[];
|
|
594
|
-
readonly formats?: readonly PivotFormatOptions[];
|
|
595
|
-
readonly rowHierarchiesUsage?: readonly HierarchyUsageOptions[];
|
|
596
|
-
readonly colHierarchiesUsage?: readonly HierarchyUsageOptions[];
|
|
597
|
-
readonly locationColPageCount?: number;
|
|
598
|
-
readonly locationRowPageCount?: number;
|
|
599
|
-
readonly fieldOverrides?: readonly PivotFieldOverrideOptions[];
|
|
600
|
-
}
|
|
601
|
-
interface PivotFormatOptions {
|
|
602
|
-
readonly action?: "formatting" | "drill" | "formula" | "blank" | "subtotal" | "report";
|
|
603
|
-
readonly dxfId?: number;
|
|
604
|
-
readonly pivotArea: PivotAreaOptions;
|
|
605
|
-
}
|
|
606
|
-
interface CalculatedItemOptions {
|
|
607
|
-
readonly field?: number;
|
|
608
|
-
readonly formula?: string;
|
|
609
|
-
readonly pivotArea?: PivotAreaOptions;
|
|
610
|
-
}
|
|
611
|
-
interface CalculatedMemberOptions {
|
|
612
|
-
readonly name: string;
|
|
613
|
-
readonly mdx: string;
|
|
614
|
-
readonly memberName?: string;
|
|
615
|
-
readonly hierarchy?: string;
|
|
616
|
-
readonly parent?: string;
|
|
617
|
-
readonly solveOrder?: number;
|
|
618
|
-
readonly set?: boolean;
|
|
619
|
-
}
|
|
620
|
-
interface PivotHierarchyOptions {
|
|
621
|
-
readonly outline?: boolean;
|
|
622
|
-
readonly multipleItemSelectionAllowed?: boolean;
|
|
623
|
-
readonly subtotalTop?: boolean;
|
|
624
|
-
readonly showInFieldList?: boolean;
|
|
625
|
-
readonly dragToRow?: boolean;
|
|
626
|
-
readonly dragToCol?: boolean;
|
|
627
|
-
readonly dragToPage?: boolean;
|
|
628
|
-
readonly dragToData?: boolean;
|
|
629
|
-
readonly dragOff?: boolean;
|
|
630
|
-
readonly includeNewItemsInFilter?: boolean;
|
|
631
|
-
readonly caption?: string;
|
|
632
|
-
readonly members?: readonly MemberOptions[];
|
|
633
|
-
readonly memberProperties?: readonly MemberPropertyOptions[];
|
|
634
|
-
}
|
|
635
|
-
interface MemberOptions {
|
|
636
|
-
readonly name: string;
|
|
637
|
-
readonly level?: number;
|
|
638
|
-
}
|
|
639
|
-
interface MemberPropertyOptions {
|
|
640
|
-
readonly field: number;
|
|
641
|
-
readonly name?: string;
|
|
642
|
-
readonly showCell?: boolean;
|
|
643
|
-
readonly showTip?: boolean;
|
|
644
|
-
readonly showAsCaption?: boolean;
|
|
645
|
-
readonly nameLen?: number;
|
|
646
|
-
readonly pPos?: number;
|
|
647
|
-
readonly pLen?: number;
|
|
648
|
-
}
|
|
649
|
-
interface PivotAreaOptions {
|
|
650
|
-
readonly field?: number;
|
|
651
|
-
readonly type?: "none" | "normal" | "data" | "all" | "origin" | "button" | "topEnd" | "topRight";
|
|
652
|
-
readonly dataOnly?: boolean;
|
|
653
|
-
readonly labelOnly?: boolean;
|
|
654
|
-
readonly grandRow?: boolean;
|
|
655
|
-
readonly grandCol?: boolean;
|
|
656
|
-
readonly cacheIndex?: boolean;
|
|
657
|
-
readonly outline?: boolean;
|
|
658
|
-
readonly offset?: string;
|
|
659
|
-
readonly collapsedLevelsAreSubtotals?: boolean;
|
|
660
|
-
readonly axis?: "axisRow" | "axisCol" | "axisPage" | "axisValues";
|
|
661
|
-
readonly fieldPosition?: number;
|
|
662
|
-
readonly references?: readonly PivotAreaReferenceOptions[];
|
|
663
|
-
}
|
|
664
|
-
interface PivotAreaReferenceOptions {
|
|
665
|
-
readonly field?: number;
|
|
666
|
-
readonly count?: number;
|
|
667
|
-
readonly selected?: boolean;
|
|
668
|
-
readonly byPosition?: boolean;
|
|
669
|
-
readonly relative?: boolean;
|
|
670
|
-
readonly defaultSubtotal?: boolean;
|
|
671
|
-
readonly sumSubtotal?: boolean;
|
|
672
|
-
readonly countASubtotal?: boolean;
|
|
673
|
-
readonly avgSubtotal?: boolean;
|
|
674
|
-
readonly maxSubtotal?: boolean;
|
|
675
|
-
readonly minSubtotal?: boolean;
|
|
676
|
-
readonly countSubtotal?: boolean;
|
|
677
|
-
readonly productSubtotal?: boolean;
|
|
678
|
-
readonly stdDevPSubtotal?: boolean;
|
|
679
|
-
readonly stdDevSubtotal?: boolean;
|
|
680
|
-
readonly varPSubtotal?: boolean;
|
|
681
|
-
readonly varSubtotal?: boolean;
|
|
682
|
-
readonly x?: readonly number[];
|
|
683
|
-
}
|
|
684
|
-
interface PivotConditionalFormatOptions {
|
|
685
|
-
readonly scope?: "selection" | "data" | "field";
|
|
686
|
-
readonly type?: "none" | "all" | "row" | "column";
|
|
687
|
-
readonly priority: number;
|
|
688
|
-
readonly pivotAreas?: readonly PivotAreaOptions[];
|
|
689
|
-
}
|
|
690
|
-
interface ChartFormatOptions {
|
|
691
|
-
readonly chart: number;
|
|
692
|
-
readonly format: number;
|
|
693
|
-
readonly series?: boolean;
|
|
694
|
-
readonly pivotArea?: PivotAreaOptions;
|
|
695
|
-
}
|
|
696
|
-
interface HierarchyUsageOptions {
|
|
697
|
-
readonly hierarchyUsage: number;
|
|
698
|
-
}
|
|
699
|
-
//#endregion
|
|
700
|
-
//#region src/file/table/table-xml.d.ts
|
|
701
|
-
declare const TotalsRowFunction: {
|
|
702
|
-
readonly NONE: "none";
|
|
703
|
-
readonly SUM: "sum";
|
|
704
|
-
readonly MIN: "min";
|
|
705
|
-
readonly MAX: "max";
|
|
706
|
-
readonly AVERAGE: "average";
|
|
707
|
-
readonly COUNT: "count";
|
|
708
|
-
readonly COUNT_NUMS: "countNums";
|
|
709
|
-
readonly STD_DEV: "stdDev";
|
|
710
|
-
readonly VAR: "var";
|
|
711
|
-
readonly CUSTOM: "custom";
|
|
712
|
-
};
|
|
713
|
-
type TotalsRowFunction = (typeof TotalsRowFunction)[keyof typeof TotalsRowFunction];
|
|
714
|
-
declare const TableType: {
|
|
715
|
-
readonly WORKSHEET: "worksheet";
|
|
716
|
-
readonly XML: "xml";
|
|
717
|
-
readonly QUERY_TABLE: "queryTable";
|
|
718
|
-
};
|
|
719
|
-
type TableType = (typeof TableType)[keyof typeof TableType];
|
|
720
|
-
interface TableStyleInfoOptions {
|
|
721
|
-
readonly name?: string;
|
|
722
|
-
readonly showFirstColumn?: boolean;
|
|
723
|
-
readonly showLastColumn?: boolean;
|
|
724
|
-
readonly showRowStripes?: boolean;
|
|
725
|
-
readonly showColumnStripes?: boolean;
|
|
726
|
-
}
|
|
727
|
-
interface TableColumnOptions {
|
|
728
|
-
readonly name: string;
|
|
729
|
-
readonly totalsRowFunction?: TotalsRowFunction;
|
|
730
|
-
readonly totalsRowLabel?: string;
|
|
731
|
-
readonly calculatedColumnFormula?: string;
|
|
732
|
-
readonly totalsRowFormula?: string;
|
|
733
|
-
readonly totalsRowFormulaArray?: boolean;
|
|
734
|
-
readonly calculatedColumnFormulaArray?: boolean;
|
|
735
|
-
readonly uniqueName?: string;
|
|
736
|
-
readonly queryTableFieldId?: number;
|
|
737
|
-
readonly headerRowDxfId?: number;
|
|
738
|
-
readonly dataDxfId?: number;
|
|
739
|
-
readonly totalsRowDxfId?: number;
|
|
740
|
-
readonly headerRowCellStyle?: string;
|
|
741
|
-
readonly dataCellStyle?: string;
|
|
742
|
-
readonly totalsRowCellStyle?: string;
|
|
743
|
-
}
|
|
744
|
-
interface TableOptions {
|
|
745
|
-
readonly id: number;
|
|
746
|
-
readonly name?: string;
|
|
747
|
-
readonly displayName: string;
|
|
748
|
-
readonly ref: string;
|
|
749
|
-
readonly columns: readonly TableColumnOptions[];
|
|
750
|
-
readonly headerRowCount?: number;
|
|
751
|
-
readonly totalsRowCount?: number;
|
|
752
|
-
readonly totalsRowShown?: boolean;
|
|
753
|
-
readonly tableType?: TableType;
|
|
754
|
-
readonly style?: TableStyleInfoOptions;
|
|
755
|
-
readonly autoFilter?: string;
|
|
756
|
-
readonly insertRowShift?: boolean;
|
|
757
|
-
readonly published?: boolean;
|
|
758
|
-
readonly headerRowDxfId?: number;
|
|
759
|
-
readonly dataDxfId?: number;
|
|
760
|
-
readonly totalsRowDxfId?: number;
|
|
761
|
-
readonly headerRowBorderDxfId?: number;
|
|
762
|
-
readonly tableBorderDxfId?: number;
|
|
763
|
-
readonly totalsRowBorderDxfId?: number;
|
|
764
|
-
readonly headerRowCellStyle?: string;
|
|
765
|
-
readonly dataCellStyle?: string;
|
|
766
|
-
readonly totalsRowCellStyle?: string;
|
|
767
|
-
}
|
|
768
|
-
//#endregion
|
|
769
|
-
//#region src/file/worksheet.d.ts
|
|
770
|
-
interface ColumnOptions {
|
|
771
|
-
readonly min: number;
|
|
772
|
-
readonly max: number;
|
|
773
|
-
readonly width?: number;
|
|
774
|
-
readonly hidden?: boolean;
|
|
775
|
-
readonly customWidth?: boolean;
|
|
776
|
-
readonly outlineLevel?: number;
|
|
777
|
-
readonly collapsed?: boolean;
|
|
778
|
-
readonly bestFit?: boolean;
|
|
779
|
-
readonly phonetic?: boolean;
|
|
780
|
-
}
|
|
781
|
-
interface RowOptions {
|
|
782
|
-
readonly cells?: readonly CellOptions[];
|
|
783
|
-
readonly height?: number;
|
|
784
|
-
readonly hidden?: boolean;
|
|
785
|
-
readonly rowNumber?: number;
|
|
786
|
-
readonly spans?: string;
|
|
787
|
-
readonly customFormat?: boolean;
|
|
788
|
-
readonly thickTop?: boolean;
|
|
789
|
-
readonly thickBot?: boolean;
|
|
790
|
-
readonly ph?: boolean;
|
|
791
|
-
}
|
|
792
|
-
interface RichTextRunPrOptions {
|
|
793
|
-
readonly font?: string;
|
|
794
|
-
readonly charset?: number;
|
|
795
|
-
readonly family?: number;
|
|
796
|
-
readonly bold?: boolean;
|
|
797
|
-
readonly italic?: boolean;
|
|
798
|
-
readonly strike?: boolean;
|
|
799
|
-
readonly outline?: boolean;
|
|
800
|
-
readonly shadow?: boolean;
|
|
801
|
-
readonly condense?: boolean;
|
|
802
|
-
readonly extend?: boolean;
|
|
803
|
-
readonly color?: string;
|
|
804
|
-
readonly size?: number;
|
|
805
|
-
readonly underline?: "single" | "double" | "singleAccounting" | "doubleAccounting" | "none";
|
|
806
|
-
readonly vertAlign?: "superscript" | "subscript" | "baseline";
|
|
807
|
-
readonly scheme?: "major" | "minor" | "none";
|
|
808
|
-
}
|
|
809
|
-
interface RichTextRunOptions {
|
|
810
|
-
readonly properties?: RichTextRunPrOptions;
|
|
811
|
-
readonly text: string;
|
|
812
|
-
}
|
|
813
|
-
interface PhoneticRunOptions {
|
|
814
|
-
readonly sb: number;
|
|
815
|
-
readonly eb: number;
|
|
816
|
-
readonly text: string;
|
|
817
|
-
}
|
|
818
|
-
interface RichTextOptions {
|
|
819
|
-
readonly text?: string;
|
|
820
|
-
readonly runs?: readonly RichTextRunOptions[];
|
|
821
|
-
readonly phonetics?: readonly PhoneticRunOptions[];
|
|
822
|
-
}
|
|
823
|
-
interface CellOptions {
|
|
824
|
-
readonly value?: string | number | boolean | Date | RichTextOptions | null;
|
|
825
|
-
readonly reference?: string;
|
|
826
|
-
readonly styleIndex?: number;
|
|
827
|
-
readonly style?: StyleOptions;
|
|
828
|
-
readonly formula?: FormulaOptions;
|
|
829
|
-
}
|
|
830
|
-
declare const FormulaType: {
|
|
831
|
-
readonly NORMAL: "normal";
|
|
832
|
-
readonly ARRAY: "array";
|
|
833
|
-
readonly SHARED: "shared";
|
|
834
|
-
};
|
|
835
|
-
type FormulaType = (typeof FormulaType)[keyof typeof FormulaType];
|
|
836
|
-
interface FormulaOptions {
|
|
837
|
-
readonly formula: string;
|
|
838
|
-
readonly type?: FormulaType;
|
|
839
|
-
readonly reference?: string;
|
|
840
|
-
readonly sharedIndex?: number;
|
|
841
|
-
readonly aca?: boolean;
|
|
842
|
-
readonly dt2D?: boolean;
|
|
843
|
-
readonly dtr?: boolean;
|
|
844
|
-
readonly del1?: boolean;
|
|
845
|
-
readonly del2?: boolean;
|
|
846
|
-
readonly r1?: string;
|
|
847
|
-
readonly r2?: string;
|
|
848
|
-
readonly ca?: boolean;
|
|
849
|
-
readonly bx?: boolean;
|
|
850
|
-
}
|
|
851
|
-
interface ScenarioCellOptions {
|
|
852
|
-
readonly r: string;
|
|
853
|
-
readonly val: string | number;
|
|
854
|
-
readonly deleted?: boolean;
|
|
855
|
-
readonly undone?: boolean;
|
|
856
|
-
}
|
|
857
|
-
interface ScenarioDefinition {
|
|
858
|
-
readonly name: string;
|
|
859
|
-
readonly inputCells: readonly ScenarioCellOptions[];
|
|
860
|
-
readonly count?: number;
|
|
861
|
-
readonly user?: string;
|
|
862
|
-
readonly comment?: string;
|
|
863
|
-
readonly hidden?: boolean;
|
|
864
|
-
readonly locked?: boolean;
|
|
865
|
-
}
|
|
866
|
-
interface ScenarioOptions {
|
|
867
|
-
readonly scenarios: readonly ScenarioDefinition[];
|
|
868
|
-
readonly current?: number;
|
|
869
|
-
readonly show?: number;
|
|
870
|
-
}
|
|
871
|
-
interface MergeCellOptions {
|
|
872
|
-
readonly from: {
|
|
873
|
-
readonly row: number;
|
|
874
|
-
readonly col: number;
|
|
875
|
-
};
|
|
876
|
-
readonly to: {
|
|
877
|
-
readonly row: number;
|
|
878
|
-
readonly col: number;
|
|
879
|
-
};
|
|
880
|
-
}
|
|
881
|
-
interface SheetProtectionOptions {
|
|
882
|
-
readonly password?: string;
|
|
883
|
-
readonly algorithmName?: string;
|
|
884
|
-
readonly hashValue?: string;
|
|
885
|
-
readonly saltValue?: string;
|
|
886
|
-
readonly spinCount?: number;
|
|
887
|
-
readonly sheet?: boolean;
|
|
888
|
-
readonly objects?: boolean;
|
|
889
|
-
readonly scenarios?: boolean;
|
|
890
|
-
readonly formatCells?: boolean;
|
|
891
|
-
readonly formatColumns?: boolean;
|
|
892
|
-
readonly formatRows?: boolean;
|
|
893
|
-
readonly insertColumns?: boolean;
|
|
894
|
-
readonly insertRows?: boolean;
|
|
895
|
-
readonly insertHyperlinks?: boolean;
|
|
896
|
-
readonly deleteColumns?: boolean;
|
|
897
|
-
readonly deleteRows?: boolean;
|
|
898
|
-
readonly selectLockedCells?: boolean;
|
|
899
|
-
readonly sort?: boolean;
|
|
900
|
-
readonly autoFilter?: boolean;
|
|
901
|
-
readonly pivotTables?: boolean;
|
|
902
|
-
readonly selectUnlockedCells?: boolean;
|
|
903
|
-
}
|
|
904
|
-
interface ProtectedRangeOptions {
|
|
905
|
-
readonly sqref: string;
|
|
906
|
-
readonly name: string;
|
|
907
|
-
readonly password?: string;
|
|
908
|
-
readonly algorithmName?: string;
|
|
909
|
-
readonly hashValue?: string;
|
|
910
|
-
readonly saltValue?: string;
|
|
911
|
-
readonly spinCount?: number;
|
|
912
|
-
readonly securityDescriptor?: string;
|
|
913
|
-
}
|
|
914
|
-
interface FreezePaneOptions {
|
|
915
|
-
readonly row?: number;
|
|
916
|
-
readonly col?: number;
|
|
917
|
-
}
|
|
918
|
-
interface WorksheetImageOptions {
|
|
919
|
-
readonly data: Uint8Array;
|
|
920
|
-
readonly type: "png" | "jpeg" | "jpg";
|
|
921
|
-
readonly col: number;
|
|
922
|
-
readonly row: number;
|
|
923
|
-
}
|
|
924
|
-
interface WorksheetChartOptions extends ChartSpaceOptions {
|
|
925
|
-
readonly col: number;
|
|
926
|
-
readonly row: number;
|
|
927
|
-
}
|
|
928
|
-
interface SheetViewOptions {
|
|
929
|
-
readonly showGridLines?: boolean;
|
|
930
|
-
readonly showRowColHeaders?: boolean;
|
|
931
|
-
readonly showZeros?: boolean;
|
|
932
|
-
readonly zoomScale?: number;
|
|
933
|
-
readonly tabSelected?: boolean;
|
|
934
|
-
readonly rightToLeft?: boolean;
|
|
935
|
-
readonly windowProtection?: boolean;
|
|
936
|
-
readonly showFormulas?: boolean;
|
|
937
|
-
readonly showRuler?: boolean;
|
|
938
|
-
readonly showOutlineSymbols?: boolean;
|
|
939
|
-
readonly defaultGridColor?: boolean;
|
|
940
|
-
readonly showWhiteSpace?: boolean;
|
|
941
|
-
readonly view?: "normal" | "pageBreakPreview" | "pageLayout";
|
|
942
|
-
readonly colorId?: number;
|
|
943
|
-
readonly zoomScaleNormal?: number;
|
|
944
|
-
readonly zoomScaleSheetLayoutView?: number;
|
|
945
|
-
readonly zoomScalePageLayoutView?: number;
|
|
946
|
-
readonly pivotSelections?: readonly PivotSelectionOptions[];
|
|
947
|
-
}
|
|
948
|
-
interface PivotSelectionOptions {
|
|
949
|
-
readonly pane?: "bottomRight" | "topRight" | "bottomLeft" | "topLeft";
|
|
950
|
-
readonly showHeader?: boolean;
|
|
951
|
-
readonly label?: boolean;
|
|
952
|
-
readonly data?: boolean;
|
|
953
|
-
readonly extendable?: boolean;
|
|
954
|
-
readonly count?: number;
|
|
955
|
-
readonly axis?: "axisRow" | "axisCol" | "axisPage" | "axisValues";
|
|
956
|
-
readonly dimension?: number;
|
|
957
|
-
readonly start?: number;
|
|
958
|
-
readonly min?: number;
|
|
959
|
-
readonly max?: number;
|
|
960
|
-
readonly activeRow?: number;
|
|
961
|
-
readonly activeCol?: number;
|
|
962
|
-
readonly previousRow?: number;
|
|
963
|
-
readonly previousCol?: number;
|
|
964
|
-
readonly click?: number;
|
|
965
|
-
readonly rId?: string;
|
|
966
|
-
}
|
|
967
|
-
type HyperlinkTarget = {
|
|
968
|
-
readonly type: "external";
|
|
969
|
-
readonly url: string;
|
|
970
|
-
} | {
|
|
971
|
-
readonly type: "internal";
|
|
972
|
-
readonly location: string;
|
|
973
|
-
};
|
|
974
|
-
interface HyperlinkOptions {
|
|
975
|
-
readonly cell: string;
|
|
976
|
-
readonly target: HyperlinkTarget;
|
|
977
|
-
readonly tooltip?: string;
|
|
978
|
-
readonly display?: string;
|
|
979
|
-
}
|
|
980
|
-
interface HeaderFooterOptions {
|
|
981
|
-
readonly oddHeader?: string;
|
|
982
|
-
readonly oddFooter?: string;
|
|
983
|
-
readonly evenHeader?: string;
|
|
984
|
-
readonly evenFooter?: string;
|
|
985
|
-
readonly firstHeader?: string;
|
|
986
|
-
readonly firstFooter?: string;
|
|
987
|
-
readonly differentOddEven?: boolean;
|
|
988
|
-
readonly differentFirst?: boolean;
|
|
989
|
-
readonly scaleWithDoc?: boolean;
|
|
990
|
-
readonly alignWithMargins?: boolean;
|
|
991
|
-
}
|
|
992
|
-
type PageOrientation = "default" | "portrait" | "landscape";
|
|
993
|
-
interface PageSetupOptions {
|
|
994
|
-
readonly paperSize?: number;
|
|
995
|
-
readonly orientation?: PageOrientation;
|
|
996
|
-
readonly scale?: number;
|
|
997
|
-
readonly fitToWidth?: number;
|
|
998
|
-
readonly fitToHeight?: number;
|
|
999
|
-
readonly pageOrder?: "downThenOver" | "overThenDown";
|
|
1000
|
-
readonly useFirstPageNumber?: boolean;
|
|
1001
|
-
readonly firstPageNumber?: number;
|
|
1002
|
-
readonly paperHeight?: number;
|
|
1003
|
-
readonly paperWidth?: number;
|
|
1004
|
-
readonly usePrinterDefaults?: boolean;
|
|
1005
|
-
readonly blackAndWhite?: boolean;
|
|
1006
|
-
readonly draft?: boolean;
|
|
1007
|
-
readonly cellComments?: "none" | "asDisplayed" | "atEnd";
|
|
1008
|
-
readonly errors?: "displayed" | "blank" | "dash" | "NA";
|
|
1009
|
-
readonly autoPageBreaks?: boolean;
|
|
1010
|
-
}
|
|
1011
|
-
interface TabColorOptions {
|
|
1012
|
-
readonly rgb?: string;
|
|
1013
|
-
readonly theme?: number;
|
|
1014
|
-
readonly tint?: number;
|
|
1015
|
-
readonly indexed?: number;
|
|
1016
|
-
}
|
|
1017
|
-
interface ObjectAnchorOptions {
|
|
1018
|
-
readonly moveWithCells?: boolean;
|
|
1019
|
-
readonly sizeWithCells?: boolean;
|
|
1020
|
-
}
|
|
1021
|
-
interface CommentPrOptions {
|
|
1022
|
-
readonly locked?: boolean;
|
|
1023
|
-
readonly defaultSize?: boolean;
|
|
1024
|
-
readonly print?: boolean;
|
|
1025
|
-
readonly disabled?: boolean;
|
|
1026
|
-
readonly autoFill?: boolean;
|
|
1027
|
-
readonly autoLine?: boolean;
|
|
1028
|
-
readonly altText?: string;
|
|
1029
|
-
readonly textHAlign?: "left" | "center" | "right" | "justify" | "distributed";
|
|
1030
|
-
readonly textVAlign?: "top" | "center" | "bottom" | "justify" | "distributed";
|
|
1031
|
-
readonly lockText?: boolean;
|
|
1032
|
-
readonly justLastX?: boolean;
|
|
1033
|
-
readonly autoScale?: boolean;
|
|
1034
|
-
readonly anchor?: ObjectAnchorOptions;
|
|
1035
|
-
}
|
|
1036
|
-
interface CommentOptions {
|
|
1037
|
-
readonly cell: string;
|
|
1038
|
-
readonly author: string;
|
|
1039
|
-
readonly text: string | RichTextOptions;
|
|
1040
|
-
readonly commentPr?: CommentPrOptions;
|
|
1041
|
-
}
|
|
1042
|
-
type DataValidationType = "none" | "whole" | "decimal" | "list" | "date" | "time" | "textLength" | "custom";
|
|
1043
|
-
type DataValidationOperator = "between" | "notBetween" | "equal" | "notEqual" | "greaterThan" | "lessThan" | "greaterThanOrEqual" | "lessThanOrEqual";
|
|
1044
|
-
interface DataValidationOptions {
|
|
1045
|
-
readonly sqref: string;
|
|
1046
|
-
readonly type?: DataValidationType;
|
|
1047
|
-
readonly operator?: DataValidationOperator;
|
|
1048
|
-
readonly formula1?: string;
|
|
1049
|
-
readonly formula2?: string;
|
|
1050
|
-
readonly allowBlank?: boolean;
|
|
1051
|
-
readonly showErrorMessage?: boolean;
|
|
1052
|
-
readonly errorTitle?: string;
|
|
1053
|
-
readonly error?: string;
|
|
1054
|
-
readonly showInputMessage?: boolean;
|
|
1055
|
-
readonly promptTitle?: string;
|
|
1056
|
-
readonly prompt?: string;
|
|
1057
|
-
readonly errorStyle?: "stop" | "warning" | "information";
|
|
1058
|
-
readonly imeMode?: "noControl" | "on" | "off" | "disabled" | "hiragana" | "fullKatakana" | "halfKatakana" | "fullAlpha" | "halfAlpha" | "fullHangul" | "halfHangul";
|
|
1059
|
-
readonly showDropDown?: boolean;
|
|
1060
|
-
}
|
|
1061
|
-
type ConditionalFormatType = "cellIs" | "containsText" | "expression" | "top10" | "aboveAverage" | "colorScale" | "dataBar" | "iconSet";
|
|
1062
|
-
type ConditionalFormatOperator = "lessThan" | "lessThanOrEqual" | "equal" | "notEqual" | "greaterThanOrEqual" | "greaterThan" | "between" | "notBetween" | "containsText" | "notContains" | "beginsWith" | "endsWith";
|
|
1063
|
-
type CfvoType = "num" | "percent" | "max" | "min" | "formula" | "percentile";
|
|
1064
|
-
interface CfvoOptions {
|
|
1065
|
-
readonly type: CfvoType;
|
|
1066
|
-
readonly val?: string | number;
|
|
1067
|
-
readonly gte?: boolean;
|
|
1068
|
-
}
|
|
1069
|
-
type IconSetType = "3Arrows" | "3ArrowsGray" | "3Flags" | "3TrafficLights1" | "3TrafficLights2" | "3Signs" | "3Symbols" | "3Symbols2" | "4Arrows" | "4ArrowsGray" | "4RedToBlack" | "4Rating" | "4TrafficLights" | "5Arrows" | "5ArrowsGray" | "5Rating" | "5Quarters";
|
|
1070
|
-
interface ColorScaleOptions {
|
|
1071
|
-
readonly cfvo: readonly CfvoOptions[];
|
|
1072
|
-
readonly colors: readonly string[];
|
|
1073
|
-
}
|
|
1074
|
-
interface DataBarOptions {
|
|
1075
|
-
readonly cfvo: readonly [CfvoOptions, CfvoOptions];
|
|
1076
|
-
readonly color: string;
|
|
1077
|
-
readonly minLength?: number;
|
|
1078
|
-
readonly maxLength?: number;
|
|
1079
|
-
readonly showValue?: boolean;
|
|
1080
|
-
}
|
|
1081
|
-
interface IconSetOptions {
|
|
1082
|
-
readonly cfvo: readonly CfvoOptions[];
|
|
1083
|
-
readonly iconSet?: IconSetType;
|
|
1084
|
-
readonly showValue?: boolean;
|
|
1085
|
-
readonly percent?: boolean;
|
|
1086
|
-
readonly reverse?: boolean;
|
|
1087
|
-
}
|
|
1088
|
-
interface ConditionalFormatRule {
|
|
1089
|
-
readonly type: ConditionalFormatType;
|
|
1090
|
-
readonly operator?: ConditionalFormatOperator;
|
|
1091
|
-
readonly formulas?: readonly string[];
|
|
1092
|
-
readonly priority?: number;
|
|
1093
|
-
readonly dxfId?: number;
|
|
1094
|
-
readonly colorScale?: ColorScaleOptions;
|
|
1095
|
-
readonly dataBar?: DataBarOptions;
|
|
1096
|
-
readonly iconSet?: IconSetOptions;
|
|
1097
|
-
readonly stopIfTrue?: boolean;
|
|
1098
|
-
readonly timePeriod?: "today" | "yesterday" | "tomorrow" | "last7Days" | "thisMonth" | "lastMonth" | "nextMonth" | "thisWeek" | "lastWeek" | "nextWeek";
|
|
1099
|
-
readonly rank?: number;
|
|
1100
|
-
readonly equalAverage?: boolean;
|
|
1101
|
-
}
|
|
1102
|
-
interface ConditionalFormatOptions {
|
|
1103
|
-
readonly sqref: string;
|
|
1104
|
-
readonly rules: readonly ConditionalFormatRule[];
|
|
1105
|
-
}
|
|
1106
|
-
interface Top10FilterOptions {
|
|
1107
|
-
readonly colId: number;
|
|
1108
|
-
readonly top?: boolean;
|
|
1109
|
-
readonly percent?: boolean;
|
|
1110
|
-
readonly val: number;
|
|
1111
|
-
readonly filterVal?: number;
|
|
1112
|
-
readonly hiddenButton?: boolean;
|
|
1113
|
-
readonly showButton?: boolean;
|
|
1114
|
-
}
|
|
1115
|
-
interface CustomFilterOptions {
|
|
1116
|
-
readonly colId: number;
|
|
1117
|
-
readonly operator?: "equal" | "notEqual" | "greaterThan" | "greaterThanOrEqual" | "lessThan" | "lessThanOrEqual";
|
|
1118
|
-
readonly val?: string;
|
|
1119
|
-
readonly and?: boolean;
|
|
1120
|
-
readonly val2?: string;
|
|
1121
|
-
readonly hiddenButton?: boolean;
|
|
1122
|
-
readonly showButton?: boolean;
|
|
1123
|
-
}
|
|
1124
|
-
interface SortCondition {
|
|
1125
|
-
readonly ref: string;
|
|
1126
|
-
readonly descending?: boolean;
|
|
1127
|
-
readonly sortBy?: "value" | "cellColor" | "fontColor" | "icon";
|
|
1128
|
-
readonly customList?: string;
|
|
1129
|
-
readonly iconId?: number;
|
|
1130
|
-
}
|
|
1131
|
-
interface AutoFilterOptions {
|
|
1132
|
-
readonly ref: string;
|
|
1133
|
-
readonly top10?: readonly Top10FilterOptions[];
|
|
1134
|
-
readonly customFilters?: readonly CustomFilterOptions[];
|
|
1135
|
-
readonly sort?: readonly SortCondition[];
|
|
1136
|
-
readonly sortState?: SortStateOptions;
|
|
1137
|
-
readonly colorFilters?: readonly ColorFilterOptions[];
|
|
1138
|
-
readonly iconFilters?: readonly IconFilterOptions[];
|
|
1139
|
-
readonly dynamicFilters?: readonly DynamicFilterOptions[];
|
|
1140
|
-
readonly dateGroupItems?: readonly DateGroupFilterOptions[];
|
|
1141
|
-
readonly filters?: readonly FilterItemsOptions[];
|
|
1142
|
-
}
|
|
1143
|
-
interface ColorFilterOptions {
|
|
1144
|
-
readonly colId: number;
|
|
1145
|
-
readonly dxfId?: number;
|
|
1146
|
-
readonly cellColor?: boolean;
|
|
1147
|
-
}
|
|
1148
|
-
interface IconFilterOptions {
|
|
1149
|
-
readonly colId: number;
|
|
1150
|
-
readonly iconSet: number;
|
|
1151
|
-
readonly iconId?: number;
|
|
1152
|
-
}
|
|
1153
|
-
interface FilterItemsOptions {
|
|
1154
|
-
readonly colId: number;
|
|
1155
|
-
readonly blank?: boolean;
|
|
1156
|
-
readonly calendarType?: string;
|
|
1157
|
-
readonly values?: readonly string[];
|
|
1158
|
-
}
|
|
1159
|
-
interface DynamicFilterOptions {
|
|
1160
|
-
readonly colId: number;
|
|
1161
|
-
readonly type: "null" | "aboveAverage" | "belowAverage" | "tomorrow" | "today" | "yesterday" | "nextWeek" | "thisWeek" | "lastWeek" | "nextMonth" | "thisMonth" | "lastMonth" | "nextQuarter" | "thisQuarter" | "lastQuarter" | "nextYear" | "thisYear" | "lastYear" | "yearToDate" | "Q1" | "Q2" | "Q3" | "Q4" | "M1" | "M2" | "M3" | "M4" | "M5" | "M6" | "M7" | "M8" | "M9" | "M10" | "M11" | "M12";
|
|
1162
|
-
readonly val?: number;
|
|
1163
|
-
readonly maxVal?: number;
|
|
1164
|
-
readonly valIso?: string;
|
|
1165
|
-
readonly maxValIso?: string;
|
|
1166
|
-
}
|
|
1167
|
-
interface DateGroupFilterOptions {
|
|
1168
|
-
readonly colId: number;
|
|
1169
|
-
readonly dateTimeGrouping: "year" | "month" | "day" | "hour" | "minute" | "second";
|
|
1170
|
-
readonly year?: number;
|
|
1171
|
-
readonly month?: number;
|
|
1172
|
-
readonly day?: number;
|
|
1173
|
-
readonly hour?: number;
|
|
1174
|
-
readonly minute?: number;
|
|
1175
|
-
readonly second?: number;
|
|
1176
|
-
}
|
|
1177
|
-
interface SortStateOptions {
|
|
1178
|
-
readonly columnSort?: boolean;
|
|
1179
|
-
readonly caseSensitive?: boolean;
|
|
1180
|
-
readonly sortMethod?: "pinYin" | "stroke";
|
|
1181
|
-
}
|
|
1182
|
-
interface PrintOptions {
|
|
1183
|
-
readonly horizontalCentered?: boolean;
|
|
1184
|
-
readonly verticalCentered?: boolean;
|
|
1185
|
-
readonly headings?: boolean;
|
|
1186
|
-
readonly gridLines?: boolean;
|
|
1187
|
-
readonly gridLinesSet?: boolean;
|
|
1188
|
-
}
|
|
1189
|
-
interface SheetFormatPrOptions {
|
|
1190
|
-
readonly baseColWidth?: number;
|
|
1191
|
-
readonly defaultColWidth?: number;
|
|
1192
|
-
readonly defaultRowHeight?: number;
|
|
1193
|
-
readonly zeroHeight?: boolean;
|
|
1194
|
-
readonly thickTop?: boolean;
|
|
1195
|
-
readonly thickBottom?: boolean;
|
|
1196
|
-
readonly outlineLevelRow?: number;
|
|
1197
|
-
readonly outlineLevelCol?: number;
|
|
1198
|
-
}
|
|
1199
|
-
interface SheetPrOptions {
|
|
1200
|
-
readonly syncHorizontal?: boolean;
|
|
1201
|
-
readonly syncVertical?: boolean;
|
|
1202
|
-
readonly syncRef?: string;
|
|
1203
|
-
readonly transitionEvaluation?: boolean;
|
|
1204
|
-
readonly transitionEntry?: boolean;
|
|
1205
|
-
readonly published?: boolean;
|
|
1206
|
-
readonly filterMode?: boolean;
|
|
1207
|
-
readonly enableFormatConditionsCalculation?: boolean;
|
|
1208
|
-
readonly outlineApplyStyles?: boolean;
|
|
1209
|
-
readonly outlineShowSymbols?: boolean;
|
|
1210
|
-
}
|
|
1211
|
-
interface IgnoredErrorOptions {
|
|
1212
|
-
readonly sqref: string;
|
|
1213
|
-
readonly evalError?: boolean;
|
|
1214
|
-
readonly twoDigitTextYear?: boolean;
|
|
1215
|
-
readonly numberStoredAsText?: boolean;
|
|
1216
|
-
readonly formula?: boolean;
|
|
1217
|
-
readonly formulaRange?: boolean;
|
|
1218
|
-
readonly unlockedFormula?: boolean;
|
|
1219
|
-
readonly emptyCellReference?: boolean;
|
|
1220
|
-
readonly listDataValidation?: boolean;
|
|
1221
|
-
readonly calculatedColumn?: boolean;
|
|
1222
|
-
}
|
|
1223
|
-
interface PhoneticPrOptions {
|
|
1224
|
-
readonly fontId: number;
|
|
1225
|
-
readonly type?: "fullwidthKatakana" | "halfwidthKatakana" | "Hiragana" | "noConversion";
|
|
1226
|
-
readonly alignment?: "left" | "center" | "distributed";
|
|
1227
|
-
}
|
|
1228
|
-
interface SheetBackgroundImageOptions {
|
|
1229
|
-
readonly data: Uint8Array;
|
|
1230
|
-
readonly type: "png" | "jpeg" | "jpg";
|
|
1231
|
-
}
|
|
1232
|
-
interface PageBreakOptions {
|
|
1233
|
-
readonly id: number;
|
|
1234
|
-
readonly min?: number;
|
|
1235
|
-
readonly max?: number;
|
|
1236
|
-
readonly manual?: boolean;
|
|
1237
|
-
readonly pivot?: boolean;
|
|
1238
|
-
}
|
|
1239
|
-
interface SelectionOptions {
|
|
1240
|
-
readonly pane?: "bottomRight" | "topRight" | "bottomLeft" | "topLeft";
|
|
1241
|
-
readonly activeCell?: string;
|
|
1242
|
-
readonly activeCellId?: number;
|
|
1243
|
-
readonly sqref?: string;
|
|
1244
|
-
}
|
|
1245
|
-
interface CustomSheetViewOptions {
|
|
1246
|
-
readonly guid: string;
|
|
1247
|
-
readonly scale?: number;
|
|
1248
|
-
readonly showPageBreaks?: boolean;
|
|
1249
|
-
readonly showFormulas?: boolean;
|
|
1250
|
-
readonly showGridLines?: boolean;
|
|
1251
|
-
readonly showRowColHeaders?: boolean;
|
|
1252
|
-
readonly outlineSymbols?: boolean;
|
|
1253
|
-
readonly zeroValues?: boolean;
|
|
1254
|
-
readonly fitToPage?: boolean;
|
|
1255
|
-
readonly printArea?: boolean;
|
|
1256
|
-
readonly filter?: boolean;
|
|
1257
|
-
readonly showAutoFilter?: boolean;
|
|
1258
|
-
readonly hiddenRows?: boolean;
|
|
1259
|
-
readonly hiddenColumns?: boolean;
|
|
1260
|
-
readonly state?: "visible" | "hidden" | "veryHidden";
|
|
1261
|
-
readonly filterUnique?: boolean;
|
|
1262
|
-
readonly view?: "normal" | "pageBreakPreview" | "pageLayout";
|
|
1263
|
-
}
|
|
1264
|
-
interface CellWatchOptions {
|
|
1265
|
-
readonly r: string;
|
|
1266
|
-
}
|
|
1267
|
-
interface DataConsolidateOptions {
|
|
1268
|
-
readonly function?: "average" | "count" | "countNums" | "max" | "min" | "product" | "stdDev" | "stdDevp" | "sum" | "var" | "varp";
|
|
1269
|
-
readonly topLabels?: boolean;
|
|
1270
|
-
readonly leftLabels?: boolean;
|
|
1271
|
-
readonly startLabels?: boolean;
|
|
1272
|
-
readonly link?: boolean;
|
|
1273
|
-
readonly refs?: readonly string[];
|
|
1274
|
-
}
|
|
1275
|
-
interface DrawingHfOptions {
|
|
1276
|
-
readonly rId: string;
|
|
1277
|
-
readonly lho?: number;
|
|
1278
|
-
readonly lhe?: number;
|
|
1279
|
-
readonly lhf?: number;
|
|
1280
|
-
readonly cho?: number;
|
|
1281
|
-
readonly che?: number;
|
|
1282
|
-
readonly chf?: number;
|
|
1283
|
-
readonly rho?: number;
|
|
1284
|
-
readonly rhe?: number;
|
|
1285
|
-
readonly rhf?: number;
|
|
1286
|
-
readonly lfo?: number;
|
|
1287
|
-
readonly lfe?: number;
|
|
1288
|
-
readonly lff?: number;
|
|
1289
|
-
readonly cfo?: number;
|
|
1290
|
-
readonly cfe?: number;
|
|
1291
|
-
readonly cff?: number;
|
|
1292
|
-
readonly rfo?: number;
|
|
1293
|
-
readonly rfe?: number;
|
|
1294
|
-
readonly rff?: number;
|
|
1295
|
-
}
|
|
1296
|
-
interface WorksheetOptions {
|
|
1297
|
-
readonly name?: string;
|
|
1298
|
-
readonly rows?: readonly RowOptions[];
|
|
1299
|
-
readonly columns?: readonly ColumnOptions[];
|
|
1300
|
-
readonly mergeCells?: readonly MergeCellOptions[];
|
|
1301
|
-
readonly freezePanes?: FreezePaneOptions;
|
|
1302
|
-
readonly protection?: SheetProtectionOptions;
|
|
1303
|
-
readonly protectedRanges?: readonly ProtectedRangeOptions[];
|
|
1304
|
-
readonly scenarios?: ScenarioOptions;
|
|
1305
|
-
readonly autoFilter?: string | AutoFilterOptions;
|
|
1306
|
-
readonly images?: readonly WorksheetImageOptions[];
|
|
1307
|
-
readonly charts?: readonly WorksheetChartOptions[];
|
|
1308
|
-
readonly dataValidations?: readonly DataValidationOptions[];
|
|
1309
|
-
readonly dataValidationsDisablePrompts?: boolean;
|
|
1310
|
-
readonly conditionalFormats?: readonly ConditionalFormatOptions[];
|
|
1311
|
-
readonly hyperlinks?: readonly HyperlinkOptions[];
|
|
1312
|
-
readonly comments?: readonly CommentOptions[];
|
|
1313
|
-
readonly headerFooter?: HeaderFooterOptions;
|
|
1314
|
-
readonly pageSetup?: PageSetupOptions;
|
|
1315
|
-
readonly tabColor?: TabColorOptions;
|
|
1316
|
-
readonly sheetView?: SheetViewOptions;
|
|
1317
|
-
readonly pivotTables?: readonly PivotTableOptions[];
|
|
1318
|
-
readonly tables?: readonly TableOptions[];
|
|
1319
|
-
readonly ignoredErrors?: readonly IgnoredErrorOptions[];
|
|
1320
|
-
readonly phoneticPr?: PhoneticPrOptions;
|
|
1321
|
-
readonly backgroundImage?: SheetBackgroundImageOptions;
|
|
1322
|
-
readonly printOptions?: PrintOptions;
|
|
1323
|
-
readonly sheetFormatPr?: SheetFormatPrOptions;
|
|
1324
|
-
readonly sheetPr?: SheetPrOptions;
|
|
1325
|
-
readonly rowBreaks?: readonly PageBreakOptions[];
|
|
1326
|
-
readonly colBreaks?: readonly PageBreakOptions[];
|
|
1327
|
-
readonly customSheetViews?: readonly CustomSheetViewOptions[];
|
|
1328
|
-
readonly cellWatches?: readonly CellWatchOptions[];
|
|
1329
|
-
readonly dataConsolidate?: DataConsolidateOptions;
|
|
1330
|
-
readonly oleSize?: string;
|
|
1331
|
-
readonly drawingHF?: DrawingHfOptions;
|
|
1332
|
-
readonly legacyDrawingHF?: string;
|
|
1333
|
-
readonly selection?: SelectionOptions;
|
|
1334
|
-
readonly sheetCalcPr?: SheetCalcPrOptions;
|
|
1335
|
-
readonly ext?: string;
|
|
1336
|
-
readonly controls?: readonly ControlOptions[];
|
|
1337
|
-
readonly customProperties?: readonly CustomPropertyOptions[];
|
|
1338
|
-
readonly oleObjects?: readonly OleObjectOptions[];
|
|
1339
|
-
readonly webPublishItems?: readonly WebPublishItemOptions[];
|
|
1340
|
-
}
|
|
1341
|
-
interface SheetCalcPrOptions {
|
|
1342
|
-
readonly fullCalcOnLoad?: boolean;
|
|
1343
|
-
}
|
|
1344
|
-
interface ControlOptions {
|
|
1345
|
-
readonly shapeId: number;
|
|
1346
|
-
readonly rId: string;
|
|
1347
|
-
readonly name?: string;
|
|
1348
|
-
readonly locked?: boolean;
|
|
1349
|
-
readonly uiObject?: boolean;
|
|
1350
|
-
readonly recalcAlways?: boolean;
|
|
1351
|
-
readonly linkedCell?: string;
|
|
1352
|
-
readonly listFillRange?: string;
|
|
1353
|
-
readonly cf?: string;
|
|
1354
|
-
}
|
|
1355
|
-
interface CustomPropertyOptions {
|
|
1356
|
-
readonly name: string;
|
|
1357
|
-
readonly rId: string;
|
|
1358
|
-
}
|
|
1359
|
-
interface OleObjectOptions {
|
|
1360
|
-
readonly progId?: string;
|
|
1361
|
-
readonly dvAspect?: "DVASPECT_CONTENT" | "DVASPECT_ICON";
|
|
1362
|
-
readonly link?: string;
|
|
1363
|
-
readonly oleUpdate?: "OLEUPDATE_ALWAYS" | "OLEUPDATE_ONCALL";
|
|
1364
|
-
readonly autoLoad?: boolean;
|
|
1365
|
-
readonly shapeId: number;
|
|
1366
|
-
readonly rId?: string;
|
|
1367
|
-
readonly objectPr?: OleObjectPrOptions;
|
|
1368
|
-
}
|
|
1369
|
-
interface OleObjectPrOptions {
|
|
1370
|
-
readonly locked?: boolean;
|
|
1371
|
-
readonly defaultSize?: boolean;
|
|
1372
|
-
readonly print?: boolean;
|
|
1373
|
-
readonly disabled?: boolean;
|
|
1374
|
-
readonly uiObject?: boolean;
|
|
1375
|
-
readonly autoFill?: boolean;
|
|
1376
|
-
readonly autoLine?: boolean;
|
|
1377
|
-
readonly autoPict?: boolean;
|
|
1378
|
-
readonly macro?: string;
|
|
1379
|
-
readonly altText?: string;
|
|
1380
|
-
readonly dde?: boolean;
|
|
1381
|
-
readonly rId?: string;
|
|
1382
|
-
}
|
|
1383
|
-
interface WebPublishItemOptions {
|
|
1384
|
-
readonly id: number;
|
|
1385
|
-
readonly divId: string;
|
|
1386
|
-
readonly sourceType: "sheet" | "printArea" | "autoFilter" | "range" | "chart" | "pivotTable" | "query" | "label";
|
|
1387
|
-
readonly sourceRef?: string;
|
|
1388
|
-
readonly sourceObject?: string;
|
|
1389
|
-
readonly destinationFile: string;
|
|
1390
|
-
readonly title?: string;
|
|
1391
|
-
readonly autoRepublish?: boolean;
|
|
1392
|
-
}
|
|
1393
|
-
declare class Worksheet extends IgnoreIfEmptyXmlComponent {
|
|
1394
|
-
private readonly rows;
|
|
1395
|
-
private readonly columns;
|
|
1396
|
-
private readonly mergeCells;
|
|
1397
|
-
private readonly freezePanes?;
|
|
1398
|
-
private readonly protection?;
|
|
1399
|
-
private readonly protectedRanges;
|
|
1400
|
-
private readonly scenarioOpts?;
|
|
1401
|
-
private readonly autoFilter?;
|
|
1402
|
-
private readonly images;
|
|
1403
|
-
private readonly chartOptions;
|
|
1404
|
-
private readonly dataValidations;
|
|
1405
|
-
private readonly dataValidationsDisablePrompts?;
|
|
1406
|
-
private readonly conditionalFormats;
|
|
1407
|
-
private readonly hyperlinks;
|
|
1408
|
-
private readonly comments;
|
|
1409
|
-
private readonly headerFooter?;
|
|
1410
|
-
private readonly pageSetup?;
|
|
1411
|
-
private readonly tabColor?;
|
|
1412
|
-
private readonly sheetView?;
|
|
1413
|
-
private readonly pivotTableOptions;
|
|
1414
|
-
private readonly tableOptions;
|
|
1415
|
-
private readonly ignoredErrors;
|
|
1416
|
-
private readonly phoneticPr?;
|
|
1417
|
-
private readonly backgroundImage?;
|
|
1418
|
-
private readonly printOptions?;
|
|
1419
|
-
private readonly sheetFormatPr?;
|
|
1420
|
-
private readonly sheetPr?;
|
|
1421
|
-
private readonly rowBreaks;
|
|
1422
|
-
private readonly colBreaks;
|
|
1423
|
-
private readonly customSheetViews;
|
|
1424
|
-
private readonly cellWatches;
|
|
1425
|
-
private readonly dataConsolidate?;
|
|
1426
|
-
private readonly oleSize?;
|
|
1427
|
-
private readonly drawingHF?;
|
|
1428
|
-
private readonly legacyDrawingHF?;
|
|
1429
|
-
private readonly selection?;
|
|
1430
|
-
private readonly sheetCalcPr?;
|
|
1431
|
-
private readonly ext?;
|
|
1432
|
-
private readonly controls;
|
|
1433
|
-
private readonly customProperties;
|
|
1434
|
-
private readonly oleObjects;
|
|
1435
|
-
private readonly webPublishItems;
|
|
1436
|
-
constructor(options: WorksheetOptions);
|
|
1437
|
-
get imageOptions(): readonly WorksheetImageOptions[];
|
|
1438
|
-
get charts(): readonly WorksheetChartOptions[];
|
|
1439
|
-
get hyperlinkOptions(): readonly HyperlinkOptions[];
|
|
1440
|
-
get worksheetRows(): readonly RowOptions[];
|
|
1441
|
-
get commentOptions(): readonly CommentOptions[];
|
|
1442
|
-
get pivotTables(): readonly PivotTableOptions[];
|
|
1443
|
-
get tables(): readonly TableOptions[];
|
|
1444
|
-
get background(): SheetBackgroundImageOptions | undefined;
|
|
1445
|
-
toXml(context: Context): string;
|
|
1446
|
-
private buildCfvoXml;
|
|
1447
|
-
private buildSheetViewAttrs;
|
|
1448
|
-
private buildSelectionXml;
|
|
1449
|
-
private buildPivotSelectionXml;
|
|
1450
|
-
private hashPassword;
|
|
1451
|
-
private buildFormulaString;
|
|
1452
|
-
private buildCellString;
|
|
1453
|
-
private defaultCellRef;
|
|
1454
|
-
private columnToLetter;
|
|
1455
|
-
private dateToSerialNumber;
|
|
1456
|
-
}
|
|
28
|
+
//#region src/parts/drawing.d.ts
|
|
29
|
+
interface DrawingImageOptions {
|
|
30
|
+
col: number;
|
|
31
|
+
colOffset?: number;
|
|
32
|
+
row: number;
|
|
33
|
+
rowOffset?: number;
|
|
34
|
+
rId: string;
|
|
35
|
+
locksWithSheet?: boolean;
|
|
36
|
+
printsWithSheet?: boolean;
|
|
37
|
+
}
|
|
38
|
+
interface DrawingChartOptions {
|
|
39
|
+
col: number;
|
|
40
|
+
colOffset?: number;
|
|
41
|
+
row: number;
|
|
42
|
+
rowOffset?: number;
|
|
43
|
+
rId: string;
|
|
44
|
+
locksWithSheet?: boolean;
|
|
45
|
+
printsWithSheet?: boolean;
|
|
46
|
+
}
|
|
47
|
+
interface DrawingOptions {
|
|
48
|
+
images?: DrawingImageOptions[];
|
|
49
|
+
charts?: DrawingChartOptions[];
|
|
50
|
+
}
|
|
51
|
+
declare const drawingDesc: CustomDescriptor<DrawingOptions>;
|
|
1457
52
|
//#endregion
|
|
1458
|
-
//#region src/
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
register(s: string): number;
|
|
1464
|
-
registerRich(rst: RichTextOptions): number;
|
|
1465
|
-
get count(): number;
|
|
1466
|
-
toXml(_context: Context): string;
|
|
53
|
+
//#region src/parts/pivot-table.d.ts
|
|
54
|
+
interface PivotTableDescriptorOptions {
|
|
55
|
+
options: PivotTableOptions;
|
|
56
|
+
sourceData: PivotSourceData;
|
|
57
|
+
cacheId: number;
|
|
1467
58
|
}
|
|
59
|
+
declare const pivotTableDesc: CustomDescriptor<PivotTableDescriptorOptions>;
|
|
1468
60
|
//#endregion
|
|
1469
|
-
//#region src/
|
|
1470
|
-
interface
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
readonly copies?: number;
|
|
1484
|
-
}
|
|
1485
|
-
interface ChartsheetProtectionOptions {
|
|
1486
|
-
readonly content?: boolean;
|
|
1487
|
-
readonly objects?: boolean;
|
|
1488
|
-
}
|
|
1489
|
-
interface ChartsheetHeaderFooterOptions {
|
|
1490
|
-
readonly differentFirst?: boolean;
|
|
1491
|
-
readonly differentOddEven?: boolean;
|
|
1492
|
-
readonly oddHeader?: string;
|
|
1493
|
-
readonly oddFooter?: string;
|
|
1494
|
-
}
|
|
1495
|
-
interface ChartsheetOptions {
|
|
1496
|
-
readonly name?: string;
|
|
1497
|
-
readonly tabColor?: string;
|
|
1498
|
-
readonly pageMargins?: ChartsheetPageMargins;
|
|
1499
|
-
readonly pageSetup?: ChartsheetPageSetup;
|
|
1500
|
-
readonly headerFooter?: ChartsheetHeaderFooterOptions;
|
|
1501
|
-
readonly sheetProtection?: ChartsheetProtectionOptions;
|
|
1502
|
-
readonly published?: boolean;
|
|
1503
|
-
readonly zoomToFit?: boolean;
|
|
1504
|
-
readonly chart: {
|
|
1505
|
-
readonly type: string;
|
|
1506
|
-
readonly title?: string;
|
|
1507
|
-
readonly categories?: readonly string[];
|
|
1508
|
-
readonly series: readonly {
|
|
1509
|
-
readonly name: string;
|
|
1510
|
-
readonly values: readonly number[];
|
|
1511
|
-
}[];
|
|
1512
|
-
};
|
|
1513
|
-
}
|
|
1514
|
-
//#endregion
|
|
1515
|
-
//#region src/file/external-link/external-link-xml.d.ts
|
|
1516
|
-
interface ExternalDefinedNameOptions {
|
|
1517
|
-
readonly name: string;
|
|
1518
|
-
readonly refersTo?: string;
|
|
1519
|
-
readonly sheetId?: number;
|
|
1520
|
-
readonly publishToServer?: boolean;
|
|
1521
|
-
readonly vbProcedure?: boolean;
|
|
1522
|
-
readonly workbookParameter?: boolean;
|
|
1523
|
-
readonly xlm?: boolean;
|
|
1524
|
-
}
|
|
1525
|
-
interface ExternalCellOptions {
|
|
1526
|
-
readonly reference: string;
|
|
1527
|
-
readonly type?: string;
|
|
1528
|
-
readonly value?: string;
|
|
1529
|
-
}
|
|
1530
|
-
interface ExternalBookOptions {
|
|
1531
|
-
readonly target?: string;
|
|
1532
|
-
readonly sheetNames?: readonly string[];
|
|
1533
|
-
readonly definedNames?: readonly ExternalDefinedNameOptions[];
|
|
1534
|
-
readonly sheetDataSet?: readonly ExternalSheetDataOptions[];
|
|
1535
|
-
}
|
|
1536
|
-
interface ExternalRowOptions {
|
|
1537
|
-
readonly rowNumber: number;
|
|
1538
|
-
readonly cells?: readonly ExternalCellOptions[];
|
|
1539
|
-
}
|
|
1540
|
-
interface ExternalSheetDataOptions {
|
|
1541
|
-
readonly sheetId: number;
|
|
1542
|
-
readonly refreshError?: boolean;
|
|
1543
|
-
readonly rows?: readonly ExternalRowOptions[];
|
|
1544
|
-
}
|
|
1545
|
-
interface ExternalLinkOptions {
|
|
1546
|
-
readonly externalBook?: ExternalBookOptions;
|
|
1547
|
-
readonly bookRId?: string;
|
|
1548
|
-
readonly oleLink?: OleLinkOptions;
|
|
1549
|
-
readonly oleRId?: string;
|
|
1550
|
-
}
|
|
1551
|
-
interface OleItemOptions {
|
|
1552
|
-
readonly name: string;
|
|
1553
|
-
readonly advise?: boolean;
|
|
1554
|
-
readonly prefer?: boolean;
|
|
1555
|
-
}
|
|
1556
|
-
interface OleLinkOptions {
|
|
1557
|
-
readonly oleItems?: readonly OleItemOptions[];
|
|
1558
|
-
}
|
|
1559
|
-
//#endregion
|
|
1560
|
-
//#region src/file/file.d.ts
|
|
1561
|
-
interface WorkbookOptions extends CorePropertiesOptions {
|
|
1562
|
-
readonly worksheets?: readonly WorksheetOptions[];
|
|
1563
|
-
readonly chartsheets?: readonly ChartsheetOptions[];
|
|
1564
|
-
readonly dxfs?: readonly DxfOptions[];
|
|
1565
|
-
readonly workbookProtection?: WorkbookProtectionOptions;
|
|
1566
|
-
readonly externalLinks?: readonly ExternalLinkOptions[];
|
|
1567
|
-
readonly customWorkbookViews?: readonly CustomWorkbookViewOptions[];
|
|
1568
|
-
readonly fileRecoveryPr?: FileRecoveryPrOptions;
|
|
1569
|
-
readonly functionGroups?: readonly string[];
|
|
1570
|
-
readonly webPublishing?: WebPublishingOptions;
|
|
1571
|
-
readonly fileSharing?: FileSharingOptions;
|
|
1572
|
-
readonly volTypes?: readonly VolTypeOptions[];
|
|
1573
|
-
readonly webPublishObjects?: readonly WebPublishObjectOptions[];
|
|
1574
|
-
}
|
|
1575
|
-
declare class File {
|
|
1576
|
-
private readonly worksheetOptions;
|
|
1577
|
-
private readonly chartsheetOptions;
|
|
1578
|
-
private readonly corePropsOptions;
|
|
1579
|
-
private readonly dxfOptions;
|
|
1580
|
-
private readonly protectionOptions?;
|
|
1581
|
-
private readonly externalLinkOptions;
|
|
1582
|
-
private readonly customViewOptions?;
|
|
1583
|
-
private readonly fileRecoveryPrOpts?;
|
|
1584
|
-
private readonly functionGroupOpts?;
|
|
1585
|
-
private readonly webPublishingOpts?;
|
|
1586
|
-
private readonly fileSharingOpts?;
|
|
1587
|
-
private readonly volTypeOpts?;
|
|
1588
|
-
private readonly webPublishObjectOpts?;
|
|
1589
|
-
private _coreProperties?;
|
|
1590
|
-
private _appProperties?;
|
|
1591
|
-
private _contentTypes?;
|
|
1592
|
-
private _styles?;
|
|
1593
|
-
private _theme?;
|
|
1594
|
-
private _workbookXml?;
|
|
1595
|
-
private _worksheets?;
|
|
1596
|
-
private _sharedStrings?;
|
|
1597
|
-
private _media?;
|
|
1598
|
-
private _fileRels?;
|
|
1599
|
-
private _workbookRels?;
|
|
1600
|
-
private _charts?;
|
|
1601
|
-
private _pivotCacheRefs;
|
|
1602
|
-
constructor(options: WorkbookOptions);
|
|
1603
|
-
get coreProperties(): CoreProperties;
|
|
1604
|
-
get appProperties(): AppProperties;
|
|
1605
|
-
get contentTypes(): ContentTypes;
|
|
1606
|
-
get styles(): Styles;
|
|
1607
|
-
registerDxf(opts: DxfOptions): number;
|
|
1608
|
-
get theme(): DefaultTheme;
|
|
1609
|
-
get workbookXml(): WorkbookXml;
|
|
1610
|
-
get sharedStrings(): SharedStrings;
|
|
1611
|
-
get media(): Media;
|
|
1612
|
-
get charts(): ChartCollection;
|
|
1613
|
-
get dxfEntries(): readonly DxfOptions[];
|
|
1614
|
-
get pivotCacheRefs(): readonly PivotCacheReference[];
|
|
1615
|
-
registerPivotCache(cacheId: number, rId: string): void;
|
|
1616
|
-
get externalLinks(): readonly ExternalLinkOptions[];
|
|
1617
|
-
get worksheetConfigs(): readonly WorksheetOptions[];
|
|
1618
|
-
get chartsheetConfigs(): readonly ChartsheetOptions[];
|
|
1619
|
-
get worksheets(): readonly Worksheet[];
|
|
1620
|
-
get fileRelationships(): Relationships;
|
|
1621
|
-
get workbookRelationships(): Relationships;
|
|
1622
|
-
}
|
|
61
|
+
//#region src/parts/pivot-cache.d.ts
|
|
62
|
+
interface PivotCacheRecordsDescriptorOptions {
|
|
63
|
+
sourceData: PivotSourceData;
|
|
64
|
+
records?: Record<string, unknown>[][];
|
|
65
|
+
}
|
|
66
|
+
interface PivotCacheDefDescriptorOptions {
|
|
67
|
+
sourceRef: string;
|
|
68
|
+
sourceSheet: string;
|
|
69
|
+
sourceData: PivotSourceData;
|
|
70
|
+
recordsRid: string;
|
|
71
|
+
cacheDefOpts?: PivotCacheDefinitionOptions;
|
|
72
|
+
}
|
|
73
|
+
declare const pivotCacheDefDesc: CustomDescriptor<PivotCacheDefDescriptorOptions>;
|
|
74
|
+
declare const pivotCacheRecordsDesc: CustomDescriptor<PivotCacheRecordsDescriptorOptions>;
|
|
1623
75
|
//#endregion
|
|
1624
|
-
//#region src/
|
|
76
|
+
//#region src/parts/dialogsheet.d.ts
|
|
1625
77
|
interface DialogsheetPageMargins {
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
78
|
+
left?: number;
|
|
79
|
+
right?: number;
|
|
80
|
+
top?: number;
|
|
81
|
+
bottom?: number;
|
|
82
|
+
header?: number;
|
|
83
|
+
footer?: number;
|
|
1632
84
|
}
|
|
1633
85
|
interface DialogsheetPageSetup {
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
86
|
+
paperSize?: number;
|
|
87
|
+
orientation?: string;
|
|
88
|
+
horizontalDpi?: number;
|
|
89
|
+
verticalDpi?: number;
|
|
90
|
+
copies?: number;
|
|
1639
91
|
}
|
|
1640
92
|
interface DialogsheetProtectionOptions {
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
93
|
+
content?: boolean;
|
|
94
|
+
objects?: boolean;
|
|
95
|
+
scenarios?: boolean;
|
|
1644
96
|
}
|
|
1645
97
|
interface DialogsheetOptions {
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
}
|
|
1652
|
-
declare class Dialogsheet extends BaseXmlComponent {
|
|
1653
|
-
private readonly opts;
|
|
1654
|
-
constructor(options: DialogsheetOptions);
|
|
1655
|
-
toXml(_context: Context): string;
|
|
98
|
+
name?: string;
|
|
99
|
+
tabColor?: string;
|
|
100
|
+
pageMargins?: DialogsheetPageMargins;
|
|
101
|
+
pageSetup?: DialogsheetPageSetup;
|
|
102
|
+
sheetProtection?: DialogsheetProtectionOptions;
|
|
1656
103
|
}
|
|
1657
104
|
//#endregion
|
|
1658
|
-
//#region src/
|
|
105
|
+
//#region src/parts/query-table.d.ts
|
|
1659
106
|
interface QueryTableDeletedFieldOptions {
|
|
1660
|
-
|
|
107
|
+
name: string;
|
|
1661
108
|
}
|
|
1662
109
|
interface QueryTableFieldOptions {
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
110
|
+
id: number;
|
|
111
|
+
name?: string;
|
|
112
|
+
tableColumnId?: number;
|
|
113
|
+
row?: number;
|
|
114
|
+
fillFormatting?: boolean;
|
|
115
|
+
textFormatting?: boolean;
|
|
116
|
+
numberFormatting?: boolean;
|
|
117
|
+
borderFormatting?: boolean;
|
|
118
|
+
width?: number;
|
|
119
|
+
clipped?: boolean;
|
|
120
|
+
dataBound?: boolean;
|
|
1674
121
|
}
|
|
1675
122
|
interface QueryTableRefreshOptions {
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
123
|
+
nextId?: number;
|
|
124
|
+
minimumVersion?: number;
|
|
125
|
+
preserveFormatting?: boolean;
|
|
126
|
+
adjustColumnWidth?: boolean;
|
|
127
|
+
refreshOnLoad?: boolean;
|
|
128
|
+
backgroundRefresh?: boolean;
|
|
129
|
+
deletedFields?: QueryTableDeletedFieldOptions[];
|
|
130
|
+
queryTableFields?: QueryTableFieldOptions[];
|
|
131
|
+
rowCount?: number;
|
|
132
|
+
fieldIdWrapped?: boolean;
|
|
133
|
+
headersInLastRefresh?: boolean;
|
|
134
|
+
preserveSortFilterLayout?: boolean;
|
|
135
|
+
unboundColumnsLeft?: number;
|
|
136
|
+
unboundColumnsRight?: number;
|
|
1690
137
|
}
|
|
1691
138
|
interface QueryTableOptions {
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
}
|
|
1709
|
-
declare class QueryTableXml extends BaseXmlComponent {
|
|
1710
|
-
private readonly opts;
|
|
1711
|
-
constructor(options: QueryTableOptions);
|
|
1712
|
-
toXml(_context: Context): string;
|
|
139
|
+
name?: string;
|
|
140
|
+
connectionId: number;
|
|
141
|
+
autoFormat?: boolean;
|
|
142
|
+
preserveFormatting?: boolean;
|
|
143
|
+
adjustColumnWidth?: boolean;
|
|
144
|
+
refreshOnLoad?: boolean;
|
|
145
|
+
backgroundRefresh?: boolean;
|
|
146
|
+
rowNumbers?: boolean;
|
|
147
|
+
disableRefresh?: boolean;
|
|
148
|
+
firstBackgroundRefresh?: boolean;
|
|
149
|
+
growShrinkType?: boolean;
|
|
150
|
+
fillFormulas?: boolean;
|
|
151
|
+
removeDataOnSave?: boolean;
|
|
152
|
+
disableEdit?: boolean;
|
|
153
|
+
intermediate?: boolean;
|
|
154
|
+
queryTableRefresh?: QueryTableRefreshOptions;
|
|
1713
155
|
}
|
|
1714
156
|
//#endregion
|
|
1715
|
-
//#region src/
|
|
157
|
+
//#region src/parts/metadata.d.ts
|
|
1716
158
|
interface MetadataTypeOptions {
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
159
|
+
name: string;
|
|
160
|
+
minVersion?: number;
|
|
161
|
+
minSupportedVersion?: number;
|
|
162
|
+
ghostRow?: boolean;
|
|
163
|
+
ghostCol?: boolean;
|
|
164
|
+
edit?: boolean;
|
|
165
|
+
delete?: boolean;
|
|
166
|
+
copy?: boolean;
|
|
167
|
+
paste?: boolean;
|
|
168
|
+
pasteAll?: boolean;
|
|
169
|
+
pasteFormulas?: boolean;
|
|
170
|
+
pasteValues?: boolean;
|
|
171
|
+
pasteFormats?: boolean;
|
|
172
|
+
pasteComments?: boolean;
|
|
173
|
+
pasteDataValidation?: boolean;
|
|
174
|
+
pasteBorders?: boolean;
|
|
175
|
+
pasteColWidths?: boolean;
|
|
176
|
+
pasteNumberFormats?: boolean;
|
|
177
|
+
merge?: boolean;
|
|
178
|
+
splitFirst?: boolean;
|
|
179
|
+
splitAll?: boolean;
|
|
180
|
+
rowColShift?: boolean;
|
|
181
|
+
clearAll?: boolean;
|
|
182
|
+
clearFormats?: boolean;
|
|
183
|
+
clearContents?: boolean;
|
|
184
|
+
clearComments?: boolean;
|
|
185
|
+
assign?: boolean;
|
|
186
|
+
coerce?: boolean;
|
|
187
|
+
adjust?: boolean;
|
|
188
|
+
cellMeta?: boolean;
|
|
1747
189
|
}
|
|
1748
190
|
interface MetadataStringOptions {
|
|
1749
|
-
|
|
191
|
+
value: string;
|
|
1750
192
|
}
|
|
1751
193
|
interface FutureMetadataOptions {
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
}
|
|
1755
|
-
interface MetadataRecordOptions {
|
|
1756
|
-
readonly t: number;
|
|
1757
|
-
readonly v: number;
|
|
1758
|
-
}
|
|
1759
|
-
interface MetadataBlockOptions {
|
|
1760
|
-
readonly records?: readonly MetadataRecordOptions[];
|
|
194
|
+
name: string;
|
|
195
|
+
type: string;
|
|
1761
196
|
}
|
|
1762
197
|
interface MetadataOptions {
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
198
|
+
types?: MetadataTypeOptions[];
|
|
199
|
+
strings?: MetadataStringOptions[];
|
|
200
|
+
futureMetadata?: FutureMetadataOptions[];
|
|
201
|
+
mdxMetadata?: MdxOptions[];
|
|
202
|
+
cellMetadataBlocks?: MetadataBlockOptions[];
|
|
203
|
+
valueMetadataBlocks?: MetadataBlockOptions[];
|
|
1769
204
|
}
|
|
1770
205
|
interface MdxOptions {
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
206
|
+
f: string;
|
|
207
|
+
n: number;
|
|
208
|
+
tuple?: MdxTupleOptions;
|
|
209
|
+
set?: MdxSetOptions;
|
|
210
|
+
memberProp?: MdxMemberPropOptions;
|
|
211
|
+
kpi?: MdxKpiOptions;
|
|
1777
212
|
}
|
|
1778
213
|
interface MdxTupleOptions {
|
|
1779
|
-
|
|
214
|
+
c?: number;
|
|
1780
215
|
}
|
|
1781
216
|
interface MdxSetOptions {
|
|
1782
|
-
|
|
217
|
+
ns: number;
|
|
1783
218
|
}
|
|
1784
219
|
interface MdxMemberPropOptions {
|
|
1785
|
-
|
|
1786
|
-
|
|
220
|
+
n: number;
|
|
221
|
+
np: number;
|
|
1787
222
|
}
|
|
1788
223
|
interface MdxKpiOptions {
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
224
|
+
n: number;
|
|
225
|
+
np: number;
|
|
226
|
+
p: string;
|
|
227
|
+
}
|
|
228
|
+
interface MetadataRecordOptions {
|
|
229
|
+
t: number;
|
|
230
|
+
v: number;
|
|
1792
231
|
}
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
constructor(options: MetadataOptions);
|
|
1796
|
-
toXml(_context: Context): string;
|
|
232
|
+
interface MetadataBlockOptions {
|
|
233
|
+
records?: MetadataRecordOptions[];
|
|
1797
234
|
}
|
|
1798
235
|
//#endregion
|
|
1799
|
-
//#region src/
|
|
236
|
+
//#region src/parts/revision-log.d.ts
|
|
1800
237
|
interface SheetIdEntry {
|
|
1801
|
-
|
|
238
|
+
id: number;
|
|
1802
239
|
}
|
|
1803
240
|
interface RevisionHeaderEntry {
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
241
|
+
guid: string;
|
|
242
|
+
dateTime: string;
|
|
243
|
+
userName: string;
|
|
244
|
+
rId: string;
|
|
245
|
+
maxSheetId: number;
|
|
246
|
+
sheetIds?: SheetIdEntry[];
|
|
247
|
+
minRId?: number;
|
|
248
|
+
maxRId?: number;
|
|
1812
249
|
}
|
|
1813
250
|
interface RevisionHeadersOptions {
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
251
|
+
guid: string;
|
|
252
|
+
lastGuid?: string;
|
|
253
|
+
headers: RevisionHeaderEntry[];
|
|
254
|
+
shared?: boolean;
|
|
255
|
+
history?: boolean;
|
|
256
|
+
trackRevisions?: boolean;
|
|
257
|
+
revisionId?: number;
|
|
258
|
+
version?: number;
|
|
259
|
+
keepChangeHistory?: boolean;
|
|
260
|
+
protected?: boolean;
|
|
261
|
+
preserveHistory?: number;
|
|
262
|
+
diskRevisions?: boolean;
|
|
263
|
+
exclusive?: boolean;
|
|
1827
264
|
}
|
|
1828
265
|
type RowColumnAction = "insertRow" | "insertCol" | "deleteRow" | "deleteCol";
|
|
1829
266
|
interface RevisionRowColumnOptions {
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
267
|
+
action: RowColumnAction;
|
|
268
|
+
rId: number;
|
|
269
|
+
row?: number;
|
|
270
|
+
col?: number;
|
|
271
|
+
sheetIndex?: number;
|
|
272
|
+
edge?: boolean;
|
|
273
|
+
ra?: string;
|
|
274
|
+
ua?: string;
|
|
275
|
+
eol?: boolean;
|
|
1839
276
|
}
|
|
1840
277
|
interface RevisionCellChangeOptions {
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
278
|
+
rId: number;
|
|
279
|
+
ref: string;
|
|
280
|
+
sheetIndex?: number;
|
|
281
|
+
oldValue?: string | number;
|
|
282
|
+
oldType?: string;
|
|
283
|
+
newValue?: string | number;
|
|
284
|
+
newType?: string;
|
|
285
|
+
formula?: string;
|
|
286
|
+
numFmtId?: number;
|
|
287
|
+
xfDxf?: number;
|
|
288
|
+
quotePrefix?: boolean;
|
|
289
|
+
oldQuotePrefix?: boolean;
|
|
290
|
+
ph?: boolean;
|
|
291
|
+
oldPh?: boolean;
|
|
292
|
+
endOfListFormulaUpdate?: boolean;
|
|
293
|
+
ra?: string;
|
|
294
|
+
ua?: string;
|
|
295
|
+
newCellMeta?: number;
|
|
296
|
+
oldCellMeta?: number;
|
|
1860
297
|
}
|
|
1861
298
|
interface RevisionMoveOptions {
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
299
|
+
rId: number;
|
|
300
|
+
source: string;
|
|
301
|
+
destination: string;
|
|
302
|
+
sheetIndex?: number;
|
|
303
|
+
sourceSheetId?: number;
|
|
304
|
+
ra?: string;
|
|
305
|
+
ua?: string;
|
|
1869
306
|
}
|
|
1870
307
|
interface RevisionFormattingOptions {
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
308
|
+
rId: number;
|
|
309
|
+
ref: string;
|
|
310
|
+
sheetIndex?: number;
|
|
311
|
+
s?: number;
|
|
312
|
+
xfDxf?: number;
|
|
1876
313
|
}
|
|
1877
314
|
interface RevisionInsertSheetOptions {
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
315
|
+
rId: number;
|
|
316
|
+
name: string;
|
|
317
|
+
sheetIndex?: number;
|
|
318
|
+
sheetPosition?: number;
|
|
319
|
+
ra?: string;
|
|
320
|
+
ua?: string;
|
|
1884
321
|
}
|
|
1885
322
|
interface RevisionCommentOptions {
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
323
|
+
rId: number;
|
|
324
|
+
ref: string;
|
|
325
|
+
sheetIndex?: number;
|
|
326
|
+
text?: string;
|
|
327
|
+
author?: string;
|
|
328
|
+
alwaysShow?: boolean;
|
|
329
|
+
old?: boolean;
|
|
330
|
+
hiddenRow?: boolean;
|
|
331
|
+
hiddenColumn?: boolean;
|
|
332
|
+
oldLength?: number;
|
|
333
|
+
newLength?: number;
|
|
1897
334
|
}
|
|
1898
335
|
interface RevisionDefinedNameOptions {
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
336
|
+
rId: number;
|
|
337
|
+
name: string;
|
|
338
|
+
value?: string;
|
|
339
|
+
localSheetId?: number;
|
|
340
|
+
customView?: boolean;
|
|
341
|
+
function?: boolean;
|
|
342
|
+
oldFunction?: boolean;
|
|
343
|
+
functionGroupId?: number;
|
|
344
|
+
oldFunctionGroupId?: number;
|
|
345
|
+
shortcutKey?: string;
|
|
346
|
+
oldShortcutKey?: string;
|
|
347
|
+
oldHidden?: boolean;
|
|
348
|
+
customMenu?: string;
|
|
349
|
+
oldCustomMenu?: string;
|
|
350
|
+
oldDescription?: string;
|
|
351
|
+
help?: string;
|
|
352
|
+
oldHelp?: string;
|
|
353
|
+
statusBar?: string;
|
|
354
|
+
oldStatusBar?: string;
|
|
355
|
+
oldComment?: string;
|
|
356
|
+
ra?: string;
|
|
357
|
+
ua?: string;
|
|
1921
358
|
}
|
|
1922
359
|
interface RevisionReviewedOptions {
|
|
1923
|
-
|
|
360
|
+
rId: number;
|
|
1924
361
|
}
|
|
1925
362
|
interface RevisionUndoOptions {
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
363
|
+
rId: number;
|
|
364
|
+
revisions?: RevisionEntry[];
|
|
365
|
+
cs?: boolean;
|
|
366
|
+
dn?: boolean;
|
|
367
|
+
exp?: boolean;
|
|
368
|
+
nf?: boolean;
|
|
369
|
+
ref3D?: boolean;
|
|
1933
370
|
}
|
|
1934
371
|
interface RevisionAutoFormattingOptions {
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
372
|
+
rId: number;
|
|
373
|
+
sheetIndex?: number;
|
|
374
|
+
ref?: string;
|
|
1938
375
|
}
|
|
1939
376
|
interface RevisionCustomViewOptions {
|
|
1940
|
-
|
|
1941
|
-
|
|
377
|
+
rId: number;
|
|
378
|
+
guid?: string;
|
|
1942
379
|
}
|
|
1943
380
|
interface RevisionSheetRenameOptions {
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
381
|
+
rId: number;
|
|
382
|
+
sheetIndex?: number;
|
|
383
|
+
oldName?: string;
|
|
384
|
+
newName?: string;
|
|
385
|
+
ra?: string;
|
|
386
|
+
ua?: string;
|
|
1950
387
|
}
|
|
1951
388
|
interface RevisionQueryTableFieldOptions {
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
389
|
+
rId: number;
|
|
390
|
+
sheetIndex?: number;
|
|
391
|
+
fieldId?: number;
|
|
392
|
+
ra?: string;
|
|
393
|
+
ua?: string;
|
|
1957
394
|
}
|
|
1958
395
|
interface RevisionConflictOptions {
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
396
|
+
rId: number;
|
|
397
|
+
sheetIndex?: number;
|
|
398
|
+
ra?: string;
|
|
399
|
+
ua?: string;
|
|
1963
400
|
}
|
|
1964
401
|
type RevisionEntry = {
|
|
1965
|
-
|
|
1966
|
-
|
|
402
|
+
type: "rowColumn";
|
|
403
|
+
data: RevisionRowColumnOptions;
|
|
1967
404
|
} | {
|
|
1968
|
-
|
|
1969
|
-
|
|
405
|
+
type: "cellChange";
|
|
406
|
+
data: RevisionCellChangeOptions;
|
|
1970
407
|
} | {
|
|
1971
|
-
|
|
1972
|
-
|
|
408
|
+
type: "move";
|
|
409
|
+
data: RevisionMoveOptions;
|
|
1973
410
|
} | {
|
|
1974
|
-
|
|
1975
|
-
|
|
411
|
+
type: "formatting";
|
|
412
|
+
data: RevisionFormattingOptions;
|
|
1976
413
|
} | {
|
|
1977
|
-
|
|
1978
|
-
|
|
414
|
+
type: "insertSheet";
|
|
415
|
+
data: RevisionInsertSheetOptions;
|
|
1979
416
|
} | {
|
|
1980
|
-
|
|
1981
|
-
|
|
417
|
+
type: "comment";
|
|
418
|
+
data: RevisionCommentOptions;
|
|
1982
419
|
} | {
|
|
1983
|
-
|
|
1984
|
-
|
|
420
|
+
type: "definedName";
|
|
421
|
+
data: RevisionDefinedNameOptions;
|
|
1985
422
|
} | {
|
|
1986
|
-
|
|
1987
|
-
|
|
423
|
+
type: "reviewed";
|
|
424
|
+
data: RevisionReviewedOptions;
|
|
1988
425
|
} | {
|
|
1989
|
-
|
|
1990
|
-
|
|
426
|
+
type: "undo";
|
|
427
|
+
data: RevisionUndoOptions;
|
|
1991
428
|
} | {
|
|
1992
|
-
|
|
1993
|
-
|
|
429
|
+
type: "autoFormatting";
|
|
430
|
+
data: RevisionAutoFormattingOptions;
|
|
1994
431
|
} | {
|
|
1995
|
-
|
|
1996
|
-
|
|
432
|
+
type: "customView";
|
|
433
|
+
data: RevisionCustomViewOptions;
|
|
1997
434
|
} | {
|
|
1998
|
-
|
|
1999
|
-
|
|
435
|
+
type: "sheetRename";
|
|
436
|
+
data: RevisionSheetRenameOptions;
|
|
2000
437
|
} | {
|
|
2001
|
-
|
|
2002
|
-
|
|
438
|
+
type: "queryTableField";
|
|
439
|
+
data: RevisionQueryTableFieldOptions;
|
|
2003
440
|
} | {
|
|
2004
|
-
|
|
2005
|
-
|
|
441
|
+
type: "conflict";
|
|
442
|
+
data: RevisionConflictOptions;
|
|
2006
443
|
};
|
|
2007
444
|
interface RevisionLogOptions {
|
|
2008
|
-
|
|
2009
|
-
}
|
|
2010
|
-
interface SharedUserOptions {
|
|
2011
|
-
readonly guid: string;
|
|
2012
|
-
readonly name: string;
|
|
2013
|
-
readonly id: number;
|
|
2014
|
-
readonly dateTime?: string;
|
|
2015
|
-
}
|
|
2016
|
-
interface UsersOptions {
|
|
2017
|
-
readonly users?: readonly SharedUserOptions[];
|
|
2018
|
-
}
|
|
2019
|
-
//#endregion
|
|
2020
|
-
//#region src/file/revision-log/revision-headers-xml.d.ts
|
|
2021
|
-
declare class RevisionHeadersXml extends BaseXmlComponent {
|
|
2022
|
-
private readonly opts;
|
|
2023
|
-
private readonly users?;
|
|
2024
|
-
constructor(options: RevisionHeadersOptions, users?: UsersOptions);
|
|
2025
|
-
toXml(_context: Context): string;
|
|
2026
|
-
buildUsersXml(): string;
|
|
445
|
+
revisions?: RevisionEntry[];
|
|
2027
446
|
}
|
|
2028
447
|
//#endregion
|
|
2029
|
-
//#region src/
|
|
2030
|
-
declare class RevisionLogXml extends BaseXmlComponent {
|
|
2031
|
-
private readonly entries;
|
|
2032
|
-
constructor(entries: readonly RevisionEntry[]);
|
|
2033
|
-
toXml(_context: Context): string;
|
|
2034
|
-
}
|
|
2035
|
-
//#endregion
|
|
2036
|
-
//#region src/file/connection/connection-xml.d.ts
|
|
448
|
+
//#region src/parts/connection.d.ts
|
|
2037
449
|
interface DbPrOptions {
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
450
|
+
connection: string;
|
|
451
|
+
command?: string;
|
|
452
|
+
commandType?: number;
|
|
453
|
+
serverCommand?: string;
|
|
2042
454
|
}
|
|
2043
455
|
interface WebPrOptions {
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
456
|
+
url: string;
|
|
457
|
+
sourceData?: boolean;
|
|
458
|
+
htmlFormat?: string;
|
|
459
|
+
htmlTables?: string[];
|
|
460
|
+
consecutive?: boolean;
|
|
461
|
+
firstRowHeader?: boolean;
|
|
462
|
+
parsePre?: boolean;
|
|
463
|
+
xl2000?: boolean;
|
|
464
|
+
editPage?: string;
|
|
465
|
+
firstRow?: boolean;
|
|
466
|
+
post?: boolean;
|
|
467
|
+
textDates?: boolean;
|
|
468
|
+
xl97?: boolean;
|
|
469
|
+
textFields?: TextFieldOptions[];
|
|
2058
470
|
}
|
|
2059
471
|
interface TextPrOptions {
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
472
|
+
textFields?: TextFieldOptions[];
|
|
473
|
+
codePage?: number;
|
|
474
|
+
characterSet?: string;
|
|
475
|
+
sourceFile?: string;
|
|
476
|
+
delimited?: boolean;
|
|
477
|
+
tab?: boolean;
|
|
478
|
+
space?: boolean;
|
|
479
|
+
comma?: boolean;
|
|
480
|
+
semicolon?: boolean;
|
|
481
|
+
custom?: string;
|
|
482
|
+
decimal?: string;
|
|
483
|
+
thousands?: string;
|
|
484
|
+
trailingMinus?: boolean;
|
|
485
|
+
delimiter?: string;
|
|
486
|
+
fileType?: "mac" | "win" | "dos";
|
|
487
|
+
firstRow?: boolean;
|
|
488
|
+
qualifier?: "doubleQuote" | "singleQuote" | "none";
|
|
2077
489
|
}
|
|
2078
490
|
interface TextFieldOptions {
|
|
2079
|
-
|
|
2080
|
-
|
|
491
|
+
type: number;
|
|
492
|
+
dataType?: string;
|
|
2081
493
|
}
|
|
2082
494
|
interface ParameterOptions {
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
495
|
+
name: string;
|
|
496
|
+
sqlType?: number;
|
|
497
|
+
characterSet?: string;
|
|
498
|
+
stringValue?: string;
|
|
499
|
+
integerValue?: number;
|
|
500
|
+
booleanValue?: boolean;
|
|
501
|
+
refreshOnChange?: boolean;
|
|
502
|
+
prompt?: boolean;
|
|
503
|
+
integer?: boolean;
|
|
504
|
+
reference?: string;
|
|
505
|
+
parameterType?: string;
|
|
2094
506
|
}
|
|
2095
507
|
interface ConnectionOptions {
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
}
|
|
2118
|
-
declare class ConnectionsXml extends BaseXmlComponent {
|
|
2119
|
-
private readonly connections;
|
|
2120
|
-
constructor(connections: readonly ConnectionOptions[]);
|
|
2121
|
-
toXml(_context: Context): string;
|
|
508
|
+
id: number;
|
|
509
|
+
name?: string;
|
|
510
|
+
type?: number;
|
|
511
|
+
refreshOnLoad?: boolean;
|
|
512
|
+
refreshedVersion?: number;
|
|
513
|
+
backgroundRefresh?: boolean;
|
|
514
|
+
saveData?: boolean;
|
|
515
|
+
savePassword?: boolean;
|
|
516
|
+
description?: string;
|
|
517
|
+
credentials?: string;
|
|
518
|
+
interval?: number;
|
|
519
|
+
keepAlive?: boolean;
|
|
520
|
+
new?: boolean;
|
|
521
|
+
odcFile?: string;
|
|
522
|
+
onlyUseConnectionFile?: boolean;
|
|
523
|
+
reconnectionMethod?: number;
|
|
524
|
+
singleSignOnId?: string;
|
|
525
|
+
dbPr?: DbPrOptions;
|
|
526
|
+
webPr?: WebPrOptions;
|
|
527
|
+
textPr?: TextPrOptions;
|
|
528
|
+
parameters?: ParameterOptions[];
|
|
2122
529
|
}
|
|
2123
530
|
//#endregion
|
|
2124
|
-
//#region src/
|
|
531
|
+
//#region src/parts/xml-mapping.d.ts
|
|
2125
532
|
interface SchemaOptions {
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
533
|
+
id: string;
|
|
534
|
+
schemaRef?: string;
|
|
535
|
+
namespace?: string;
|
|
536
|
+
schemaLanguage?: string;
|
|
537
|
+
schemaID?: string;
|
|
538
|
+
elementFormDefault?: string;
|
|
539
|
+
attributeFormDefault?: string;
|
|
2133
540
|
}
|
|
2134
541
|
interface DataBindingOptions {
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
542
|
+
dataBindingName?: string;
|
|
543
|
+
fileBinding?: boolean;
|
|
544
|
+
fileBindingName?: string;
|
|
545
|
+
connectionID?: number;
|
|
546
|
+
dataBindingLoadMode?: number;
|
|
2140
547
|
}
|
|
2141
548
|
interface MapOptions {
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
549
|
+
id: number;
|
|
550
|
+
name: string;
|
|
551
|
+
rootElement: string;
|
|
552
|
+
schemaID: string;
|
|
553
|
+
showImportExportValidationErrors?: boolean;
|
|
554
|
+
append?: boolean;
|
|
555
|
+
dataBindingLoadMode?: number;
|
|
556
|
+
autoFit?: boolean;
|
|
557
|
+
fileBinding?: boolean;
|
|
558
|
+
fileBindingName?: string;
|
|
559
|
+
preserveFormat?: boolean;
|
|
560
|
+
preserveSortAFLayout?: boolean;
|
|
561
|
+
dataBinding?: DataBindingOptions;
|
|
2155
562
|
}
|
|
2156
563
|
interface MapInfoOptions {
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
564
|
+
selectionNamespaces: string;
|
|
565
|
+
schemas: SchemaOptions[];
|
|
566
|
+
maps: MapOptions[];
|
|
2160
567
|
}
|
|
2161
568
|
interface XmlPrOptions {
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
569
|
+
xmlElement?: string;
|
|
570
|
+
mapId: number;
|
|
571
|
+
xpath: string;
|
|
572
|
+
xmlDataType: string;
|
|
2166
573
|
}
|
|
2167
574
|
interface XmlCellPrOptions {
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
575
|
+
id: number;
|
|
576
|
+
uniqueName?: string;
|
|
577
|
+
xmlPr: XmlPrOptions;
|
|
2171
578
|
}
|
|
2172
579
|
interface SingleXmlCellOptions {
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
580
|
+
id: number;
|
|
581
|
+
r: string;
|
|
582
|
+
connectionId: number;
|
|
583
|
+
xmlCellPr: XmlCellPrOptions;
|
|
2177
584
|
}
|
|
2178
585
|
interface XmlColumnPrOptions {
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
}
|
|
2184
|
-
declare class MapInfoXml extends BaseXmlComponent {
|
|
2185
|
-
private readonly options;
|
|
2186
|
-
constructor(options: MapInfoOptions);
|
|
2187
|
-
toXml(_context: Context): string;
|
|
2188
|
-
}
|
|
2189
|
-
declare class SingleXmlCellsXml extends BaseXmlComponent {
|
|
2190
|
-
private readonly cells;
|
|
2191
|
-
constructor(cells: readonly SingleXmlCellOptions[]);
|
|
2192
|
-
toXml(_context: Context): string;
|
|
2193
|
-
}
|
|
2194
|
-
declare class XmlColumnPrXml extends BaseXmlComponent {
|
|
2195
|
-
private readonly options;
|
|
2196
|
-
constructor(options: XmlColumnPrOptions);
|
|
2197
|
-
toXml(_context: Context): string;
|
|
586
|
+
xpath: string;
|
|
587
|
+
xmlDataType: string;
|
|
588
|
+
mapId: number;
|
|
589
|
+
denormalized?: boolean;
|
|
2198
590
|
}
|
|
2199
591
|
//#endregion
|
|
2200
|
-
//#region src/
|
|
2201
|
-
|
|
592
|
+
//#region src/shared/media.d.ts
|
|
593
|
+
interface MediaData {
|
|
594
|
+
fileName: string;
|
|
595
|
+
type: string;
|
|
596
|
+
data: Uint8Array;
|
|
597
|
+
width: number;
|
|
598
|
+
height: number;
|
|
599
|
+
}
|
|
600
|
+
declare class Media {
|
|
601
|
+
private map;
|
|
602
|
+
addImage(key: string, data: MediaData): void;
|
|
603
|
+
get array(): MediaData[];
|
|
604
|
+
}
|
|
2202
605
|
//#endregion
|
|
2203
606
|
//#region src/util/index.d.ts
|
|
2204
607
|
declare function columnToLetter(col: number): string;
|
|
2205
|
-
declare function letterToColumn(s: string): number;
|
|
2206
608
|
declare function dateToSerialNumber(date: Date): number;
|
|
2207
609
|
//#endregion
|
|
2208
|
-
//#region src/
|
|
2209
|
-
|
|
2210
|
-
worksheets: string[];
|
|
2211
|
-
charts: string[];
|
|
2212
|
-
media: string[];
|
|
2213
|
-
drawings: string[];
|
|
2214
|
-
}
|
|
2215
|
-
interface XlsxDocument {
|
|
2216
|
-
doc: ParsedArchive;
|
|
2217
|
-
workbook?: Element;
|
|
2218
|
-
worksheets: string[];
|
|
2219
|
-
styles?: Element;
|
|
2220
|
-
sharedStrings?: Element;
|
|
2221
|
-
partRefs: XlsxPartRefs;
|
|
2222
|
-
coreProps?: string;
|
|
2223
|
-
appProps?: string;
|
|
2224
|
-
}
|
|
2225
|
-
declare function parseXlsx(data: DataType): XlsxDocument;
|
|
2226
|
-
declare function parseWorkbook(data: DataType): WorkbookOptions;
|
|
610
|
+
//#region src/compiler.d.ts
|
|
611
|
+
declare function compileWorkbook(options: WorkbookOptions, overrides?: XmlifyedFile[], mediaLevel?: number): Zippable;
|
|
2227
612
|
//#endregion
|
|
2228
|
-
//#region src/
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
613
|
+
//#region src/parts/content-types.d.ts
|
|
614
|
+
declare class ContentTypes {
|
|
615
|
+
private dynamicEntries;
|
|
616
|
+
addWorksheet(index: number): void;
|
|
617
|
+
addChartsheet(index: number): void;
|
|
618
|
+
addStyles(): void;
|
|
619
|
+
addSharedStrings(): void;
|
|
620
|
+
addTheme(index?: number): void;
|
|
621
|
+
addChart(index: number): void;
|
|
622
|
+
addDrawing(index: number): void;
|
|
623
|
+
addComments(index: number): void;
|
|
624
|
+
addVmlDrawing(): void;
|
|
625
|
+
addImageType(extension: "png" | "jpeg"): void;
|
|
626
|
+
addPivotTable(index: number): void;
|
|
627
|
+
addPivotCacheDefinition(index: number): void;
|
|
628
|
+
addPivotCacheRecords(index: number): void;
|
|
629
|
+
addTable(index: number): void;
|
|
630
|
+
addExternalLink(index: number): void;
|
|
631
|
+
addCalcChain(): void;
|
|
632
|
+
addDialogsheet(index: number): void;
|
|
633
|
+
addRevisionHeaders(): void;
|
|
634
|
+
addRevisionLog(index: number): void;
|
|
635
|
+
addQueryTable(index: number): void;
|
|
636
|
+
addMetadata(): void;
|
|
637
|
+
serialize(): string;
|
|
638
|
+
}
|
|
639
|
+
//#endregion
|
|
640
|
+
//#region src/parts/media.d.ts
|
|
641
|
+
interface MediaData$1 {
|
|
642
|
+
fileName: string;
|
|
643
|
+
type: string;
|
|
644
|
+
data: Uint8Array;
|
|
645
|
+
width: number;
|
|
646
|
+
height: number;
|
|
647
|
+
}
|
|
648
|
+
declare class Media$1 {
|
|
649
|
+
private map;
|
|
650
|
+
addImage(key: string, data: MediaData$1): void;
|
|
651
|
+
get array(): MediaData$1[];
|
|
652
|
+
}
|
|
653
|
+
//#endregion
|
|
654
|
+
//#region src/context.d.ts
|
|
655
|
+
declare class XlsxWriteContext implements WriteContext {
|
|
656
|
+
sharedStrings: SharedStrings;
|
|
657
|
+
styles: Styles;
|
|
658
|
+
media: Media$1;
|
|
659
|
+
charts: ChartCollection;
|
|
660
|
+
contentTypes: ContentTypes;
|
|
661
|
+
workbookRels: Relationships;
|
|
662
|
+
pivotCacheRefs: PivotCacheReference[];
|
|
663
|
+
addRelationship(type: RelationshipType, target: string, _mode?: string): string;
|
|
664
|
+
addMedia(_data: Uint8Array, _type: string): string;
|
|
665
|
+
registerDxf(opts: DxfOptions): number;
|
|
666
|
+
}
|
|
667
|
+
declare class XlsxReadContext implements ReadContext {
|
|
668
|
+
private xlsx;
|
|
669
|
+
readonly sharedStrings: string[];
|
|
670
|
+
constructor(xlsx: XlsxDocument, sharedStrings?: string[]);
|
|
671
|
+
resolveRelationship(rId: string): string | undefined;
|
|
672
|
+
getPart(path: string): Element | undefined;
|
|
673
|
+
getRaw(path: string): Uint8Array | undefined;
|
|
674
|
+
}
|
|
2253
675
|
//#endregion
|
|
2254
|
-
export { type AlignmentOptions, type BorderOptions, type BorderSideOptions, type CellOptions, type CellPatch, type CfvoOptions, type CfvoType, type ChartsheetOptions, type ColorScaleOptions, type ColumnOptions, type CompressionOptions, type ConditionalFormatOptions, type ConditionalFormatRule, type ConnectionOptions,
|
|
676
|
+
export { type AlignmentOptions, type BorderOptions, type BorderSideOptions, type CalcChainOptions, type CellOptions, type CellPatch, type CfvoOptions, type CfvoType, type ChartsheetDescriptorOptions, type ChartsheetHeaderFooterOptions, type ChartsheetOptions, type ChartsheetPageMargins, type ChartsheetPageSetup, type ChartsheetProtectionOptions, type ColorScaleOptions, type ColumnOptions, type CommentsDocOptions, type CompressionOptions, type ConditionalFormatOptions, type ConditionalFormatRule, type ConnectionOptions, type ConsolidateFunction, type CorePropertiesOptions, type CustomWorkbookViewOptions, type DataBarOptions, type DataBindingOptions, type DataValidationOptions, type DbPrOptions, type DialogsheetOptions, type DrawingChartOptions, type DrawingImageOptions, type DrawingOptions, type ExternalBookOptions, type ExternalCellOptions, type ExternalDefinedNameOptions, type ExternalLinkOptions, type ExternalRowOptions, type ExternalSheetDataOptions, type FileRecoveryPrOptions, type FileSharingOptions, type FillOptions, type FontOptions, type FormulaOptions, type FreezePaneOptions, type FutureMetadataOptions, type IPatch, type IconSetOptions, type IconSetType, type IgnoredErrorOptions, type InputDataType, type MapInfoOptions, type MapOptions, Media, type MediaData, type MergeCellOptions, type MetadataOptions, type MetadataStringOptions, type MetadataTypeOptions, type OleItemOptions, type OleLinkOptions, type OutputByType, type OutputType, type PackerOptions, type ParameterOptions, type PatchDocumentOutputType, PatchType, type PatchWorkbookOptions, type PhoneticPrOptions, type PivotCacheDefDescriptorOptions, type PivotDataField, type PivotFilterOptions, PivotFilterType as PivotFilterTypeValue, type PivotTableDescriptorOptions, type PivotTableOptions, type ProtectedRangeOptions, type QueryTableOptions, type RevisionCellChangeOptions, type RevisionCommentOptions, type RevisionDefinedNameOptions, type RevisionEntry, type RevisionFormattingOptions, type RevisionHeaderEntry, type RevisionHeadersOptions, type RevisionInsertSheetOptions, type RevisionLogOptions, type RevisionMoveOptions, type RevisionRowColumnOptions, type RowOptions, type ScenarioCellOptions, type ScenarioDefinition, type ScenarioOptions, type SchemaOptions, SharedStrings, type SharedStringsDocOptions, type SheetBackgroundImageOptions, type SheetProtectionOptions, type SingleXmlCellOptions, type StyleOptions, Styles, type StylesDocOptions, type TableColumnOptions, type TableOptions, type TableStyleInfoOptions, TableType, TotalsRowFunction, type WebPrOptions, type WebPublishingOptions, type WorkbookOptions, type WorkbookProtectionOptions, type WorksheetChartOptions, type WorksheetContext, type WorksheetOptions, type XlsxDocument, type XlsxPartRefs, XlsxReadContext, XlsxWriteContext, type XmlCellPrOptions, type XmlColumnPrOptions, type XmlPrOptions, buildExternalReferencesXml, buildTablePartsXml, stringifyWorksheet as buildWorksheetXml, stringifyWorksheet, calcChainDesc, chartsheetDesc, columnToLetter, commentsDesc, compileWorkbook, createThemeXml, dateToSerialNumber, drawingDesc, externalLinkDesc, generateWorkbook, generateWorkbookStream, generateWorkbookSync, parseWorkbook, parseXlsx, patchWorkbook, pivotCacheDefDesc, pivotCacheRecordsDesc, pivotTableDesc, sharedStringsDesc, stylesDesc, tableDesc, vmlNotesDesc, workbookDesc, worksheetDesc };
|
|
2255
677
|
//# sourceMappingURL=index.d.mts.map
|