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