@office-open/xlsx 0.8.1 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -21
- package/dist/context-BXK92u5G.mjs +5055 -0
- package/dist/context-BXK92u5G.mjs.map +1 -0
- package/dist/generate-BLESQtfS.d.mts +26 -0
- package/dist/generate-BLESQtfS.d.mts.map +1 -0
- package/dist/generate-BqlKnMiw.mjs +796 -0
- package/dist/generate-BqlKnMiw.mjs.map +1 -0
- package/dist/generate.d.mts +2 -0
- package/dist/generate.mjs +2 -0
- package/dist/index.d.mts +542 -2113
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +7 -5424
- package/dist/index.mjs.map +1 -1
- package/dist/parse-CZQQuAH5.d.mts +42 -0
- package/dist/parse-CZQQuAH5.d.mts.map +1 -0
- package/dist/parse.d.mts +2 -0
- package/dist/parse.mjs +233 -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
|
@@ -0,0 +1,1691 @@
|
|
|
1
|
+
import { ChartSpaceOptions } from "@office-open/core";
|
|
2
|
+
import { CustomDescriptor } from "@office-open/core/descriptor";
|
|
3
|
+
|
|
4
|
+
//#region src/parts/workbook.d.ts
|
|
5
|
+
interface SheetDefinition {
|
|
6
|
+
name: string;
|
|
7
|
+
sheetId: number;
|
|
8
|
+
rId: string;
|
|
9
|
+
state?: "visible" | "hidden" | "veryHidden";
|
|
10
|
+
}
|
|
11
|
+
interface PivotCacheReference {
|
|
12
|
+
cacheId: number;
|
|
13
|
+
rId: string;
|
|
14
|
+
}
|
|
15
|
+
interface TablePartReference {
|
|
16
|
+
rId: string;
|
|
17
|
+
}
|
|
18
|
+
interface CustomWorkbookViewOptions {
|
|
19
|
+
name: string;
|
|
20
|
+
guid: string;
|
|
21
|
+
windowWidth: number;
|
|
22
|
+
windowHeight: number;
|
|
23
|
+
activeSheetId: number;
|
|
24
|
+
xWindow?: number;
|
|
25
|
+
yWindow?: number;
|
|
26
|
+
showFormulaBar?: boolean;
|
|
27
|
+
showStatusbar?: boolean;
|
|
28
|
+
showHorizontalScroll?: boolean;
|
|
29
|
+
showVerticalScroll?: boolean;
|
|
30
|
+
showSheetTabs?: boolean;
|
|
31
|
+
tabRatio?: number;
|
|
32
|
+
includeHiddenRowCol?: boolean;
|
|
33
|
+
includePrintSettings?: boolean;
|
|
34
|
+
personalView?: boolean;
|
|
35
|
+
maximized?: boolean;
|
|
36
|
+
minimized?: boolean;
|
|
37
|
+
autoUpdate?: boolean;
|
|
38
|
+
mergeInterval?: number;
|
|
39
|
+
changesSavedWin?: boolean;
|
|
40
|
+
onlySync?: boolean;
|
|
41
|
+
showComments?: string;
|
|
42
|
+
}
|
|
43
|
+
interface WorkbookProtectionOptions {
|
|
44
|
+
lockStructure?: boolean;
|
|
45
|
+
lockWindows?: boolean;
|
|
46
|
+
lockRevision?: boolean;
|
|
47
|
+
workbookPassword?: string;
|
|
48
|
+
workbookAlgorithmName?: string;
|
|
49
|
+
workbookHashValue?: string;
|
|
50
|
+
workbookSaltValue?: string;
|
|
51
|
+
workbookSpinCount?: number;
|
|
52
|
+
revisionsPassword?: string;
|
|
53
|
+
revisionsAlgorithmName?: string;
|
|
54
|
+
revisionsHashValue?: string;
|
|
55
|
+
revisionsSaltValue?: string;
|
|
56
|
+
revisionsSpinCount?: number;
|
|
57
|
+
workbookPasswordCharacterSet?: string;
|
|
58
|
+
revisionsPasswordCharacterSet?: string;
|
|
59
|
+
}
|
|
60
|
+
type WorkbookConformance = "strict" | "transitional";
|
|
61
|
+
interface FileRecoveryPrOptions {
|
|
62
|
+
autoRecover?: boolean;
|
|
63
|
+
crashSave?: boolean;
|
|
64
|
+
dataExtractLoad?: boolean;
|
|
65
|
+
repairLoad?: boolean;
|
|
66
|
+
}
|
|
67
|
+
interface WebPublishingOptions {
|
|
68
|
+
css?: boolean;
|
|
69
|
+
thicket?: boolean;
|
|
70
|
+
longFileNames?: boolean;
|
|
71
|
+
vml?: boolean;
|
|
72
|
+
allowPng?: boolean;
|
|
73
|
+
targetScreenSize?: string;
|
|
74
|
+
dpi?: number;
|
|
75
|
+
codePage?: number;
|
|
76
|
+
characterSet?: string;
|
|
77
|
+
}
|
|
78
|
+
interface FileSharingOptions {
|
|
79
|
+
readOnlyRecommended?: boolean;
|
|
80
|
+
userName?: string;
|
|
81
|
+
reservationPassword?: string;
|
|
82
|
+
algorithmName?: string;
|
|
83
|
+
hashValue?: string;
|
|
84
|
+
saltValue?: string;
|
|
85
|
+
spinCount?: number;
|
|
86
|
+
}
|
|
87
|
+
interface WorkbookPrOptions {
|
|
88
|
+
date1904?: boolean;
|
|
89
|
+
defaultThemeVersion?: number;
|
|
90
|
+
showObjects?: string;
|
|
91
|
+
hidePivotFieldList?: boolean;
|
|
92
|
+
allowRefreshQuery?: boolean;
|
|
93
|
+
filterPrivacy?: boolean;
|
|
94
|
+
backupFile?: boolean;
|
|
95
|
+
codeName?: string;
|
|
96
|
+
showBorderUnselectedTables?: boolean;
|
|
97
|
+
promptedSolutions?: boolean;
|
|
98
|
+
showInkAnnotation?: boolean;
|
|
99
|
+
saveExternalLinkValues?: boolean;
|
|
100
|
+
updateLinks?: string;
|
|
101
|
+
showPivotChartFilter?: boolean;
|
|
102
|
+
publishItems?: boolean;
|
|
103
|
+
checkCompatibility?: boolean;
|
|
104
|
+
autoCompressPictures?: boolean;
|
|
105
|
+
refreshAllConnections?: boolean;
|
|
106
|
+
}
|
|
107
|
+
interface VolTypeOptions {
|
|
108
|
+
type?: "realTimeData" | "olapFunctions";
|
|
109
|
+
mains?: VolMainOptions[];
|
|
110
|
+
}
|
|
111
|
+
interface VolMainOptions {
|
|
112
|
+
first: string;
|
|
113
|
+
topics?: VolTopicOptions[];
|
|
114
|
+
}
|
|
115
|
+
interface VolTopicOptions {
|
|
116
|
+
value: string;
|
|
117
|
+
valueType?: string;
|
|
118
|
+
stringTopics?: string[];
|
|
119
|
+
refs?: VolTopicRefOptions[];
|
|
120
|
+
}
|
|
121
|
+
interface VolTopicRefOptions {
|
|
122
|
+
reference: string;
|
|
123
|
+
sheetIndex: number;
|
|
124
|
+
}
|
|
125
|
+
interface WebPublishObjectOptions {
|
|
126
|
+
rId: string;
|
|
127
|
+
destinationFile?: string;
|
|
128
|
+
autoRepublish?: boolean;
|
|
129
|
+
title?: string;
|
|
130
|
+
sourceObject?: string;
|
|
131
|
+
appName?: string;
|
|
132
|
+
}
|
|
133
|
+
interface CalcPrOptions {
|
|
134
|
+
calcMode?: string;
|
|
135
|
+
calcId?: number;
|
|
136
|
+
fullCalcOnLoad?: boolean;
|
|
137
|
+
calcOnSave?: boolean;
|
|
138
|
+
forceFullCalc?: boolean;
|
|
139
|
+
concurrentCalc?: boolean;
|
|
140
|
+
concurrentManualCount?: number;
|
|
141
|
+
iterate?: boolean;
|
|
142
|
+
iterateCount?: number;
|
|
143
|
+
iterateDelta?: number;
|
|
144
|
+
refMode?: string;
|
|
145
|
+
fullPrecision?: boolean;
|
|
146
|
+
calcCompleted?: boolean;
|
|
147
|
+
}
|
|
148
|
+
interface WorkbookViewOptions {
|
|
149
|
+
activeTab?: number;
|
|
150
|
+
autoFilterDateGrouping?: boolean;
|
|
151
|
+
firstSheet?: number;
|
|
152
|
+
showHorizontalScroll?: boolean;
|
|
153
|
+
showSheetTabs?: boolean;
|
|
154
|
+
showVerticalScroll?: boolean;
|
|
155
|
+
tabRatio?: number;
|
|
156
|
+
windowWidth?: number;
|
|
157
|
+
windowHeight?: number;
|
|
158
|
+
xWindow?: number;
|
|
159
|
+
yWindow?: number;
|
|
160
|
+
}
|
|
161
|
+
interface WorkbookDescriptorOptions {
|
|
162
|
+
sheets: SheetDefinition[];
|
|
163
|
+
pivotCaches?: PivotCacheReference[];
|
|
164
|
+
protection?: WorkbookProtectionOptions;
|
|
165
|
+
customViews?: CustomWorkbookViewOptions[];
|
|
166
|
+
fileRecoveryPr?: FileRecoveryPrOptions;
|
|
167
|
+
functionGroups?: string[];
|
|
168
|
+
webPublishing?: WebPublishingOptions;
|
|
169
|
+
fileSharing?: FileSharingOptions;
|
|
170
|
+
workbookPr?: WorkbookPrOptions;
|
|
171
|
+
calcPr?: CalcPrOptions;
|
|
172
|
+
bookView?: WorkbookViewOptions;
|
|
173
|
+
volTypes?: VolTypeOptions[];
|
|
174
|
+
webPublishObjects?: WebPublishObjectOptions[];
|
|
175
|
+
conformance?: WorkbookConformance;
|
|
176
|
+
}
|
|
177
|
+
declare const workbookDesc: CustomDescriptor<WorkbookDescriptorOptions>;
|
|
178
|
+
declare function buildTablePartsXml(tableParts: TablePartReference[]): string;
|
|
179
|
+
declare function buildExternalReferencesXml(refs: {
|
|
180
|
+
rId: string;
|
|
181
|
+
}[]): string;
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region src/parts/core-properties.d.ts
|
|
184
|
+
interface CorePropertiesOptions {
|
|
185
|
+
title?: string;
|
|
186
|
+
subject?: string;
|
|
187
|
+
creator?: string;
|
|
188
|
+
keywords?: string;
|
|
189
|
+
description?: string;
|
|
190
|
+
lastModifiedBy?: string;
|
|
191
|
+
revision?: number;
|
|
192
|
+
}
|
|
193
|
+
//#endregion
|
|
194
|
+
//#region src/parts/styles.d.ts
|
|
195
|
+
interface FontOptions {
|
|
196
|
+
bold?: boolean;
|
|
197
|
+
italic?: boolean;
|
|
198
|
+
underline?: boolean;
|
|
199
|
+
strike?: boolean;
|
|
200
|
+
size?: number;
|
|
201
|
+
color?: string;
|
|
202
|
+
font?: string;
|
|
203
|
+
charset?: number;
|
|
204
|
+
family?: number;
|
|
205
|
+
condense?: boolean;
|
|
206
|
+
extend?: boolean;
|
|
207
|
+
vertAlign?: "superscript" | "subscript" | "baseline";
|
|
208
|
+
scheme?: "major" | "minor" | "none";
|
|
209
|
+
shadow?: boolean;
|
|
210
|
+
outline?: boolean;
|
|
211
|
+
}
|
|
212
|
+
interface GradientStopOptions {
|
|
213
|
+
position: number;
|
|
214
|
+
color: string;
|
|
215
|
+
}
|
|
216
|
+
interface FillOptions {
|
|
217
|
+
type?: "solid" | "pattern" | "gradient";
|
|
218
|
+
color?: string;
|
|
219
|
+
patternType?: string;
|
|
220
|
+
bgColor?: string;
|
|
221
|
+
colorIndexed?: number;
|
|
222
|
+
stops?: GradientStopOptions[];
|
|
223
|
+
gradientType?: "linear" | "path";
|
|
224
|
+
gradientDegree?: number;
|
|
225
|
+
gradientLeft?: number;
|
|
226
|
+
gradientRight?: number;
|
|
227
|
+
gradientTop?: number;
|
|
228
|
+
gradientBottom?: number;
|
|
229
|
+
}
|
|
230
|
+
interface BorderOptions {
|
|
231
|
+
style?: "thin" | "medium" | "thick" | "dotted" | "dashed" | "hair" | "none";
|
|
232
|
+
color?: string;
|
|
233
|
+
}
|
|
234
|
+
interface BorderSideOptions {
|
|
235
|
+
top?: BorderOptions;
|
|
236
|
+
bottom?: BorderOptions;
|
|
237
|
+
left?: BorderOptions;
|
|
238
|
+
right?: BorderOptions;
|
|
239
|
+
diagonal?: BorderOptions;
|
|
240
|
+
diagonalUp?: boolean;
|
|
241
|
+
diagonalDown?: boolean;
|
|
242
|
+
start?: BorderOptions;
|
|
243
|
+
end?: BorderOptions;
|
|
244
|
+
vertical?: BorderOptions;
|
|
245
|
+
horizontal?: BorderOptions;
|
|
246
|
+
}
|
|
247
|
+
interface AlignmentOptions {
|
|
248
|
+
horizontal?: "left" | "center" | "right" | "fill" | "justify";
|
|
249
|
+
vertical?: "top" | "center" | "bottom";
|
|
250
|
+
wrapText?: boolean;
|
|
251
|
+
textRotation?: number;
|
|
252
|
+
indent?: number;
|
|
253
|
+
relativeIndent?: number;
|
|
254
|
+
justifyLastLine?: boolean;
|
|
255
|
+
shrinkToFit?: boolean;
|
|
256
|
+
readingOrder?: number;
|
|
257
|
+
}
|
|
258
|
+
interface StyleOptions {
|
|
259
|
+
font?: FontOptions;
|
|
260
|
+
fill?: FillOptions;
|
|
261
|
+
border?: BorderSideOptions;
|
|
262
|
+
numFmt?: string;
|
|
263
|
+
alignment?: AlignmentOptions;
|
|
264
|
+
quotePrefix?: boolean;
|
|
265
|
+
pivotButton?: boolean;
|
|
266
|
+
applyProtection?: boolean;
|
|
267
|
+
protection?: CellProtectionOptions;
|
|
268
|
+
}
|
|
269
|
+
interface CellProtectionOptions {
|
|
270
|
+
locked?: boolean;
|
|
271
|
+
hidden?: boolean;
|
|
272
|
+
}
|
|
273
|
+
interface IndexedColorOptions {
|
|
274
|
+
rgb: string;
|
|
275
|
+
}
|
|
276
|
+
interface ColorsOptions {
|
|
277
|
+
indexedColors?: IndexedColorOptions[];
|
|
278
|
+
mruColors?: string[];
|
|
279
|
+
}
|
|
280
|
+
interface DxfOptions {
|
|
281
|
+
font?: FontOptions;
|
|
282
|
+
fill?: FillOptions;
|
|
283
|
+
border?: BorderSideOptions;
|
|
284
|
+
numFmt?: string;
|
|
285
|
+
}
|
|
286
|
+
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";
|
|
287
|
+
interface TableStyleElementOptions {
|
|
288
|
+
type: TableStyleElementType;
|
|
289
|
+
dxfId?: number;
|
|
290
|
+
button?: boolean;
|
|
291
|
+
}
|
|
292
|
+
interface StyleExtensionOptions {
|
|
293
|
+
uri: string;
|
|
294
|
+
content?: string;
|
|
295
|
+
}
|
|
296
|
+
interface CustomTableStyleOptions {
|
|
297
|
+
name: string;
|
|
298
|
+
pivot?: boolean;
|
|
299
|
+
elements?: TableStyleElementOptions[];
|
|
300
|
+
}
|
|
301
|
+
interface CustomCellStyleOptions {
|
|
302
|
+
name: string;
|
|
303
|
+
xfId: number;
|
|
304
|
+
builtinId?: number;
|
|
305
|
+
customBuiltin?: boolean;
|
|
306
|
+
iLevel?: number;
|
|
307
|
+
hidden?: boolean;
|
|
308
|
+
}
|
|
309
|
+
interface CellXfEntry {
|
|
310
|
+
fontId: number;
|
|
311
|
+
fillId: number;
|
|
312
|
+
borderId: number;
|
|
313
|
+
numFmtId: number;
|
|
314
|
+
alignment?: AlignmentOptions;
|
|
315
|
+
quotePrefix?: boolean;
|
|
316
|
+
pivotButton?: boolean;
|
|
317
|
+
applyProtection?: boolean;
|
|
318
|
+
protection?: CellProtectionOptions;
|
|
319
|
+
}
|
|
320
|
+
interface StylesState {
|
|
321
|
+
customNumFmts: ReadonlyMap<string, number>;
|
|
322
|
+
fonts: FontOptions[];
|
|
323
|
+
fills: FillOptions[];
|
|
324
|
+
borders: BorderSideOptions[];
|
|
325
|
+
cellXfs: CellXfEntry[];
|
|
326
|
+
dxfs: DxfOptions[];
|
|
327
|
+
colors?: ColorsOptions;
|
|
328
|
+
tableStyles?: CustomTableStyleOptions[];
|
|
329
|
+
customCellStyles?: CustomCellStyleOptions[];
|
|
330
|
+
styleExtensions?: StyleExtensionOptions[];
|
|
331
|
+
}
|
|
332
|
+
declare class Styles {
|
|
333
|
+
private fonts;
|
|
334
|
+
private fontKeys;
|
|
335
|
+
private fills;
|
|
336
|
+
private fillKeys;
|
|
337
|
+
private borders;
|
|
338
|
+
private borderKeys;
|
|
339
|
+
private customNumFmts;
|
|
340
|
+
private nextCustomNumFmtId;
|
|
341
|
+
private cellXfs;
|
|
342
|
+
private cellXfKeys;
|
|
343
|
+
private dxfs;
|
|
344
|
+
private colors?;
|
|
345
|
+
private tableStyles?;
|
|
346
|
+
private customCellStyles?;
|
|
347
|
+
private styleExtensions?;
|
|
348
|
+
constructor();
|
|
349
|
+
register(opts: StyleOptions): number;
|
|
350
|
+
registerDxf(opts: DxfOptions): number;
|
|
351
|
+
setColors(opts: ColorsOptions): void;
|
|
352
|
+
setTableStyles(styles: CustomTableStyleOptions[]): void;
|
|
353
|
+
setExtensions(extensions: StyleExtensionOptions[]): void;
|
|
354
|
+
setCustomCellStyles(styles: CustomCellStyleOptions[]): void;
|
|
355
|
+
toDescriptorOptions(): StylesState;
|
|
356
|
+
private registerFont;
|
|
357
|
+
private registerFill;
|
|
358
|
+
private registerBorder;
|
|
359
|
+
private registerNumFmt;
|
|
360
|
+
private cellXfKey;
|
|
361
|
+
serialize(): string;
|
|
362
|
+
private fontXmlStr;
|
|
363
|
+
private borderXmlStr;
|
|
364
|
+
private alignmentXmlStr;
|
|
365
|
+
private protectionXmlStr;
|
|
366
|
+
}
|
|
367
|
+
interface StylesDocOptions {
|
|
368
|
+
styles: Styles;
|
|
369
|
+
}
|
|
370
|
+
declare const stylesDesc: CustomDescriptor<StylesDocOptions>;
|
|
371
|
+
//#endregion
|
|
372
|
+
//#region src/parts/chartsheet.d.ts
|
|
373
|
+
interface ChartsheetPageMargins {
|
|
374
|
+
left?: number;
|
|
375
|
+
right?: number;
|
|
376
|
+
top?: number;
|
|
377
|
+
bottom?: number;
|
|
378
|
+
header?: number;
|
|
379
|
+
footer?: number;
|
|
380
|
+
}
|
|
381
|
+
interface ChartsheetPageSetup {
|
|
382
|
+
paperSize?: number;
|
|
383
|
+
orientation?: string;
|
|
384
|
+
horizontalDpi?: number;
|
|
385
|
+
verticalDpi?: number;
|
|
386
|
+
copies?: number;
|
|
387
|
+
}
|
|
388
|
+
interface ChartsheetProtectionOptions {
|
|
389
|
+
content?: boolean;
|
|
390
|
+
objects?: boolean;
|
|
391
|
+
}
|
|
392
|
+
interface ChartsheetHeaderFooterOptions {
|
|
393
|
+
differentFirst?: boolean;
|
|
394
|
+
differentOddEven?: boolean;
|
|
395
|
+
oddHeader?: string;
|
|
396
|
+
oddFooter?: string;
|
|
397
|
+
}
|
|
398
|
+
interface ChartsheetOptions {
|
|
399
|
+
name?: string;
|
|
400
|
+
tabColor?: string;
|
|
401
|
+
pageMargins?: ChartsheetPageMargins;
|
|
402
|
+
pageSetup?: ChartsheetPageSetup;
|
|
403
|
+
headerFooter?: ChartsheetHeaderFooterOptions;
|
|
404
|
+
sheetProtection?: ChartsheetProtectionOptions;
|
|
405
|
+
published?: boolean;
|
|
406
|
+
zoomToFit?: boolean;
|
|
407
|
+
chart: {
|
|
408
|
+
type: string;
|
|
409
|
+
title?: string;
|
|
410
|
+
categories?: string[];
|
|
411
|
+
series: {
|
|
412
|
+
name: string;
|
|
413
|
+
values: number[];
|
|
414
|
+
}[];
|
|
415
|
+
};
|
|
416
|
+
}
|
|
417
|
+
interface ChartsheetDescriptorOptions extends ChartsheetOptions {
|
|
418
|
+
drawingRId: string;
|
|
419
|
+
}
|
|
420
|
+
declare const chartsheetDesc: CustomDescriptor<ChartsheetDescriptorOptions>;
|
|
421
|
+
//#endregion
|
|
422
|
+
//#region src/parts/external-link.d.ts
|
|
423
|
+
interface ExternalDefinedNameOptions {
|
|
424
|
+
name: string;
|
|
425
|
+
refersTo?: string;
|
|
426
|
+
sheetId?: number;
|
|
427
|
+
publishToServer?: boolean;
|
|
428
|
+
vbProcedure?: boolean;
|
|
429
|
+
workbookParameter?: boolean;
|
|
430
|
+
xlm?: boolean;
|
|
431
|
+
}
|
|
432
|
+
interface ExternalCellOptions {
|
|
433
|
+
reference: string;
|
|
434
|
+
type?: string;
|
|
435
|
+
value?: string;
|
|
436
|
+
}
|
|
437
|
+
interface ExternalBookOptions {
|
|
438
|
+
target?: string;
|
|
439
|
+
sheetNames?: string[];
|
|
440
|
+
definedNames?: ExternalDefinedNameOptions[];
|
|
441
|
+
sheetDataSet?: ExternalSheetDataOptions[];
|
|
442
|
+
}
|
|
443
|
+
interface ExternalRowOptions {
|
|
444
|
+
rowNumber: number;
|
|
445
|
+
cells?: ExternalCellOptions[];
|
|
446
|
+
}
|
|
447
|
+
interface ExternalSheetDataOptions {
|
|
448
|
+
sheetId: number;
|
|
449
|
+
refreshError?: boolean;
|
|
450
|
+
rows?: ExternalRowOptions[];
|
|
451
|
+
}
|
|
452
|
+
interface ExternalLinkOptions {
|
|
453
|
+
externalBook?: ExternalBookOptions;
|
|
454
|
+
bookRId?: string;
|
|
455
|
+
oleLink?: OleLinkOptions;
|
|
456
|
+
oleRId?: string;
|
|
457
|
+
}
|
|
458
|
+
interface OleItemOptions {
|
|
459
|
+
name: string;
|
|
460
|
+
advise?: boolean;
|
|
461
|
+
prefer?: boolean;
|
|
462
|
+
}
|
|
463
|
+
interface OleLinkOptions {
|
|
464
|
+
oleItems?: OleItemOptions[];
|
|
465
|
+
}
|
|
466
|
+
declare const externalLinkDesc: CustomDescriptor<ExternalLinkOptions>;
|
|
467
|
+
//#endregion
|
|
468
|
+
//#region src/parts/pivot/pivot-utils.d.ts
|
|
469
|
+
declare const ConsolidateFunction: {
|
|
470
|
+
readonly SUM: "sum";
|
|
471
|
+
readonly COUNT: "count";
|
|
472
|
+
readonly AVERAGE: "average";
|
|
473
|
+
readonly MAX: "max";
|
|
474
|
+
readonly MIN: "min";
|
|
475
|
+
readonly PRODUCT: "product";
|
|
476
|
+
readonly COUNT_NUMS: "countNums";
|
|
477
|
+
readonly STD_DEV: "stdDev";
|
|
478
|
+
readonly STD_DEV_P: "stdDevp";
|
|
479
|
+
readonly VAR: "var";
|
|
480
|
+
readonly VAR_P: "varp";
|
|
481
|
+
};
|
|
482
|
+
type ConsolidateFunction = (typeof ConsolidateFunction)[keyof typeof ConsolidateFunction];
|
|
483
|
+
interface PivotDataField {
|
|
484
|
+
field: string;
|
|
485
|
+
summarize?: ConsolidateFunction;
|
|
486
|
+
name?: string;
|
|
487
|
+
showDataAs?: string;
|
|
488
|
+
baseField?: number;
|
|
489
|
+
baseItem?: number;
|
|
490
|
+
sortByTupleItems?: number[];
|
|
491
|
+
}
|
|
492
|
+
interface PivotFieldOverrideOptions {
|
|
493
|
+
field: string;
|
|
494
|
+
allDrilled?: boolean;
|
|
495
|
+
autoShow?: boolean;
|
|
496
|
+
countSubtotal?: boolean;
|
|
497
|
+
dataSourceSort?: boolean;
|
|
498
|
+
defaultAttributeDrillState?: boolean;
|
|
499
|
+
hiddenLevel?: boolean;
|
|
500
|
+
hideNewItems?: boolean;
|
|
501
|
+
insertBlankRow?: boolean;
|
|
502
|
+
insertPageBreak?: boolean;
|
|
503
|
+
itemPageCount?: boolean;
|
|
504
|
+
measureFilter?: boolean;
|
|
505
|
+
nonAutoSortDefault?: boolean;
|
|
506
|
+
productSubtotal?: boolean;
|
|
507
|
+
rankBy?: number;
|
|
508
|
+
serverField?: boolean;
|
|
509
|
+
showDropDowns?: boolean;
|
|
510
|
+
showPropAsCaption?: boolean;
|
|
511
|
+
showPropCell?: boolean;
|
|
512
|
+
showPropTip?: boolean;
|
|
513
|
+
stdDevPSubtotal?: boolean;
|
|
514
|
+
stdDevSubtotal?: boolean;
|
|
515
|
+
subtotalCaption?: string;
|
|
516
|
+
topAutoShow?: boolean;
|
|
517
|
+
uniqueMemberProperty?: boolean;
|
|
518
|
+
varPSubtotal?: boolean;
|
|
519
|
+
varSubtotal?: boolean;
|
|
520
|
+
defaultItemSd?: boolean;
|
|
521
|
+
}
|
|
522
|
+
declare const PivotFilterType: {
|
|
523
|
+
readonly UNKNOWN: "unknown";
|
|
524
|
+
readonly COUNT: "count";
|
|
525
|
+
readonly PERCENT: "percent";
|
|
526
|
+
readonly SUM: "sum";
|
|
527
|
+
readonly CAPTION_EQUAL: "captionEqual";
|
|
528
|
+
readonly CAPTION_NOT_EQUAL: "captionNotEqual";
|
|
529
|
+
readonly CAPTION_BEGINS_WITH: "captionBeginsWith";
|
|
530
|
+
readonly CAPTION_NOT_BEGINS_WITH: "captionNotBeginsWith";
|
|
531
|
+
readonly CAPTION_ENDS_WITH: "captionEndsWith";
|
|
532
|
+
readonly CAPTION_NOT_ENDS_WITH: "captionNotEndsWith";
|
|
533
|
+
readonly CAPTION_CONTAINS: "captionContains";
|
|
534
|
+
readonly CAPTION_NOT_CONTAINS: "captionNotContains";
|
|
535
|
+
readonly CAPTION_GREATER_THAN: "captionGreaterThan";
|
|
536
|
+
readonly CAPTION_GREATER_THAN_OR_EQUAL: "captionGreaterThanOrEqual";
|
|
537
|
+
readonly CAPTION_LESS_THAN: "captionLessThan";
|
|
538
|
+
readonly CAPTION_LESS_THAN_OR_EQUAL: "captionLessThanOrEqual";
|
|
539
|
+
readonly CAPTION_BETWEEN: "captionBetween";
|
|
540
|
+
readonly CAPTION_NOT_BETWEEN: "captionNotBetween";
|
|
541
|
+
readonly VALUE_EQUAL: "valueEqual";
|
|
542
|
+
readonly VALUE_NOT_EQUAL: "valueNotEqual";
|
|
543
|
+
readonly VALUE_GREATER_THAN: "valueGreaterThan";
|
|
544
|
+
readonly VALUE_GREATER_THAN_OR_EQUAL: "valueGreaterThanOrEqual";
|
|
545
|
+
readonly VALUE_LESS_THAN: "valueLessThan";
|
|
546
|
+
readonly VALUE_LESS_THAN_OR_EQUAL: "valueLessThanOrEqual";
|
|
547
|
+
readonly VALUE_BETWEEN: "valueBetween";
|
|
548
|
+
readonly VALUE_NOT_BETWEEN: "valueNotBetween";
|
|
549
|
+
readonly DATE_EQUAL: "dateEqual";
|
|
550
|
+
readonly DATE_NOT_EQUAL: "dateNotEqual";
|
|
551
|
+
readonly DATE_OLDER_THAN: "dateOlderThan";
|
|
552
|
+
readonly DATE_OLDER_THAN_OR_EQUAL: "dateOlderThanOrEqual";
|
|
553
|
+
readonly DATE_NEWER_THAN: "dateNewerThan";
|
|
554
|
+
readonly DATE_NEWER_THAN_OR_EQUAL: "dateNewerThanOrEqual";
|
|
555
|
+
readonly DATE_BETWEEN: "dateBetween";
|
|
556
|
+
readonly DATE_NOT_BETWEEN: "dateNotBetween";
|
|
557
|
+
readonly TOMORROW: "tomorrow";
|
|
558
|
+
readonly TODAY: "today";
|
|
559
|
+
readonly YESTERDAY: "yesterday";
|
|
560
|
+
readonly NEXT_WEEK: "nextWeek";
|
|
561
|
+
readonly THIS_WEEK: "thisWeek";
|
|
562
|
+
readonly LAST_WEEK: "lastWeek";
|
|
563
|
+
readonly NEXT_MONTH: "nextMonth";
|
|
564
|
+
readonly THIS_MONTH: "thisMonth";
|
|
565
|
+
readonly LAST_MONTH: "lastMonth";
|
|
566
|
+
readonly NEXT_QUARTER: "nextQuarter";
|
|
567
|
+
readonly THIS_QUARTER: "thisQuarter";
|
|
568
|
+
readonly LAST_QUARTER: "lastQuarter";
|
|
569
|
+
readonly NEXT_YEAR: "nextYear";
|
|
570
|
+
readonly THIS_YEAR: "thisYear";
|
|
571
|
+
readonly LAST_YEAR: "lastYear";
|
|
572
|
+
readonly YEAR_TO_DATE: "yearToDate";
|
|
573
|
+
readonly Q1: "Q1";
|
|
574
|
+
readonly Q2: "Q2";
|
|
575
|
+
readonly Q3: "Q3";
|
|
576
|
+
readonly Q4: "Q4";
|
|
577
|
+
readonly M1: "M1";
|
|
578
|
+
readonly M2: "M2";
|
|
579
|
+
readonly M3: "M3";
|
|
580
|
+
readonly M4: "M4";
|
|
581
|
+
readonly M5: "M5";
|
|
582
|
+
readonly M6: "M6";
|
|
583
|
+
readonly M7: "M7";
|
|
584
|
+
readonly M8: "M8";
|
|
585
|
+
readonly M9: "M9";
|
|
586
|
+
readonly M10: "M10";
|
|
587
|
+
readonly M11: "M11";
|
|
588
|
+
readonly M12: "M12";
|
|
589
|
+
};
|
|
590
|
+
type PivotFilterType = (typeof PivotFilterType)[keyof typeof PivotFilterType];
|
|
591
|
+
interface PivotFilterOptions {
|
|
592
|
+
fld: number;
|
|
593
|
+
type: PivotFilterType;
|
|
594
|
+
id: number;
|
|
595
|
+
mpFld?: number;
|
|
596
|
+
evalOrder?: number;
|
|
597
|
+
iMeasureHier?: number;
|
|
598
|
+
iMeasureFld?: number;
|
|
599
|
+
name?: string;
|
|
600
|
+
description?: string;
|
|
601
|
+
stringValue1?: string;
|
|
602
|
+
stringValue2?: string;
|
|
603
|
+
}
|
|
604
|
+
interface PivotTableOptions {
|
|
605
|
+
name?: string;
|
|
606
|
+
source: string;
|
|
607
|
+
sourceSheet?: string;
|
|
608
|
+
location?: string;
|
|
609
|
+
rows: string[];
|
|
610
|
+
columns?: string[];
|
|
611
|
+
data: PivotDataField[];
|
|
612
|
+
style?: string;
|
|
613
|
+
filters?: PivotFilterOptions[];
|
|
614
|
+
pages?: string[];
|
|
615
|
+
pageCaptions?: string[];
|
|
616
|
+
dataOnRows?: boolean;
|
|
617
|
+
grandTotalCaption?: string;
|
|
618
|
+
errorCaption?: string;
|
|
619
|
+
showError?: boolean;
|
|
620
|
+
missingCaption?: string;
|
|
621
|
+
showMissing?: boolean;
|
|
622
|
+
pageStyle?: string;
|
|
623
|
+
pivotTableStyle?: string;
|
|
624
|
+
tag?: string;
|
|
625
|
+
showItems?: boolean;
|
|
626
|
+
editData?: boolean;
|
|
627
|
+
disableFieldList?: boolean;
|
|
628
|
+
showCalcMbrs?: boolean;
|
|
629
|
+
visualTotals?: boolean;
|
|
630
|
+
showMultipleLabel?: boolean;
|
|
631
|
+
showDataDropDown?: boolean;
|
|
632
|
+
showDrill?: boolean;
|
|
633
|
+
printDrill?: boolean;
|
|
634
|
+
showMemberPropertyTips?: boolean;
|
|
635
|
+
showDataTips?: boolean;
|
|
636
|
+
enableWizard?: boolean;
|
|
637
|
+
enableDrill?: boolean;
|
|
638
|
+
enableFieldProperties?: boolean;
|
|
639
|
+
pageWrap?: number;
|
|
640
|
+
pageOverThenDown?: boolean;
|
|
641
|
+
subtotalHiddenItems?: boolean;
|
|
642
|
+
fieldPrintTitles?: boolean;
|
|
643
|
+
mergeItem?: boolean;
|
|
644
|
+
showDropZones?: boolean;
|
|
645
|
+
showEmptyRow?: boolean;
|
|
646
|
+
showEmptyCol?: boolean;
|
|
647
|
+
showHeaders?: boolean;
|
|
648
|
+
published?: boolean;
|
|
649
|
+
gridDropZones?: boolean;
|
|
650
|
+
multipleFieldFilters?: boolean;
|
|
651
|
+
rowHeaderCaption?: string;
|
|
652
|
+
colHeaderCaption?: string;
|
|
653
|
+
fieldListSortAscending?: boolean;
|
|
654
|
+
mdxSubqueries?: boolean;
|
|
655
|
+
customListSort?: boolean;
|
|
656
|
+
asteriskTotals?: boolean;
|
|
657
|
+
dataPosition?: number;
|
|
658
|
+
immersive?: boolean;
|
|
659
|
+
vacatedStyle?: string;
|
|
660
|
+
calculatedItems?: CalculatedItemOptions[];
|
|
661
|
+
calculatedMembers?: CalculatedMemberOptions[];
|
|
662
|
+
pivotHierarchies?: PivotHierarchyOptions[];
|
|
663
|
+
pivotConditionalFormats?: PivotConditionalFormatOptions[];
|
|
664
|
+
chartFormats?: ChartFormatOptions[];
|
|
665
|
+
autoSortScope?: PivotAreaOptions;
|
|
666
|
+
memberProperties?: MemberPropertyOptions[];
|
|
667
|
+
formats?: PivotFormatOptions[];
|
|
668
|
+
rowHierarchiesUsage?: HierarchyUsageOptions[];
|
|
669
|
+
colHierarchiesUsage?: HierarchyUsageOptions[];
|
|
670
|
+
locationColPageCount?: number;
|
|
671
|
+
locationRowPageCount?: number;
|
|
672
|
+
fieldOverrides?: PivotFieldOverrideOptions[];
|
|
673
|
+
}
|
|
674
|
+
interface PivotFormatOptions {
|
|
675
|
+
action?: "formatting" | "drill" | "formula" | "blank" | "subtotal" | "report";
|
|
676
|
+
dxfId?: number;
|
|
677
|
+
pivotArea: PivotAreaOptions;
|
|
678
|
+
}
|
|
679
|
+
interface CalculatedItemOptions {
|
|
680
|
+
field?: number;
|
|
681
|
+
formula?: string;
|
|
682
|
+
pivotArea?: PivotAreaOptions;
|
|
683
|
+
}
|
|
684
|
+
interface CalculatedMemberOptions {
|
|
685
|
+
name: string;
|
|
686
|
+
mdx: string;
|
|
687
|
+
memberName?: string;
|
|
688
|
+
hierarchy?: string;
|
|
689
|
+
parent?: string;
|
|
690
|
+
solveOrder?: number;
|
|
691
|
+
set?: boolean;
|
|
692
|
+
}
|
|
693
|
+
interface PivotHierarchyOptions {
|
|
694
|
+
outline?: boolean;
|
|
695
|
+
multipleItemSelectionAllowed?: boolean;
|
|
696
|
+
subtotalTop?: boolean;
|
|
697
|
+
showInFieldList?: boolean;
|
|
698
|
+
dragToRow?: boolean;
|
|
699
|
+
dragToCol?: boolean;
|
|
700
|
+
dragToPage?: boolean;
|
|
701
|
+
dragToData?: boolean;
|
|
702
|
+
dragOff?: boolean;
|
|
703
|
+
includeNewItemsInFilter?: boolean;
|
|
704
|
+
caption?: string;
|
|
705
|
+
members?: MemberOptions[];
|
|
706
|
+
memberProperties?: MemberPropertyOptions[];
|
|
707
|
+
}
|
|
708
|
+
interface MemberOptions {
|
|
709
|
+
name: string;
|
|
710
|
+
level?: number;
|
|
711
|
+
}
|
|
712
|
+
interface MemberPropertyOptions {
|
|
713
|
+
field: number;
|
|
714
|
+
name?: string;
|
|
715
|
+
showCell?: boolean;
|
|
716
|
+
showTip?: boolean;
|
|
717
|
+
showAsCaption?: boolean;
|
|
718
|
+
nameLen?: number;
|
|
719
|
+
pPos?: number;
|
|
720
|
+
pLen?: number;
|
|
721
|
+
}
|
|
722
|
+
interface PivotAreaOptions {
|
|
723
|
+
field?: number;
|
|
724
|
+
type?: "none" | "normal" | "data" | "all" | "origin" | "button" | "topEnd" | "topRight";
|
|
725
|
+
dataOnly?: boolean;
|
|
726
|
+
labelOnly?: boolean;
|
|
727
|
+
grandRow?: boolean;
|
|
728
|
+
grandCol?: boolean;
|
|
729
|
+
cacheIndex?: boolean;
|
|
730
|
+
outline?: boolean;
|
|
731
|
+
offset?: string;
|
|
732
|
+
collapsedLevelsAreSubtotals?: boolean;
|
|
733
|
+
axis?: "axisRow" | "axisCol" | "axisPage" | "axisValues";
|
|
734
|
+
fieldPosition?: number;
|
|
735
|
+
references?: PivotAreaReferenceOptions[];
|
|
736
|
+
}
|
|
737
|
+
interface PivotAreaReferenceOptions {
|
|
738
|
+
field?: number;
|
|
739
|
+
count?: number;
|
|
740
|
+
selected?: boolean;
|
|
741
|
+
byPosition?: boolean;
|
|
742
|
+
relative?: boolean;
|
|
743
|
+
defaultSubtotal?: boolean;
|
|
744
|
+
sumSubtotal?: boolean;
|
|
745
|
+
countASubtotal?: boolean;
|
|
746
|
+
avgSubtotal?: boolean;
|
|
747
|
+
maxSubtotal?: boolean;
|
|
748
|
+
minSubtotal?: boolean;
|
|
749
|
+
countSubtotal?: boolean;
|
|
750
|
+
productSubtotal?: boolean;
|
|
751
|
+
stdDevPSubtotal?: boolean;
|
|
752
|
+
stdDevSubtotal?: boolean;
|
|
753
|
+
varPSubtotal?: boolean;
|
|
754
|
+
varSubtotal?: boolean;
|
|
755
|
+
x?: number[];
|
|
756
|
+
}
|
|
757
|
+
interface PivotConditionalFormatOptions {
|
|
758
|
+
scope?: "selection" | "data" | "field";
|
|
759
|
+
type?: "none" | "all" | "row" | "column";
|
|
760
|
+
priority: number;
|
|
761
|
+
pivotAreas?: PivotAreaOptions[];
|
|
762
|
+
}
|
|
763
|
+
interface ChartFormatOptions {
|
|
764
|
+
chart: number;
|
|
765
|
+
format: number;
|
|
766
|
+
series?: boolean;
|
|
767
|
+
pivotArea?: PivotAreaOptions;
|
|
768
|
+
}
|
|
769
|
+
interface CacheHierarchyOptions {
|
|
770
|
+
uniqueName: string;
|
|
771
|
+
caption?: string;
|
|
772
|
+
measure?: boolean;
|
|
773
|
+
set?: boolean;
|
|
774
|
+
parentSet?: number;
|
|
775
|
+
iconSet?: number;
|
|
776
|
+
attribute?: boolean;
|
|
777
|
+
time?: boolean;
|
|
778
|
+
keyAttribute?: boolean;
|
|
779
|
+
defaultMemberUniqueName?: string;
|
|
780
|
+
allUniqueName?: string;
|
|
781
|
+
allCaption?: string;
|
|
782
|
+
dimensionUniqueName?: string;
|
|
783
|
+
displayFolder?: string;
|
|
784
|
+
measureGroup?: string;
|
|
785
|
+
measures?: boolean;
|
|
786
|
+
count: number;
|
|
787
|
+
oneField?: boolean;
|
|
788
|
+
hidden?: boolean;
|
|
789
|
+
memberValueDatatype?: "string" | "number" | "integer" | "boolean" | "error";
|
|
790
|
+
unbalanced?: boolean;
|
|
791
|
+
unbalancedGroup?: boolean;
|
|
792
|
+
groupLevels?: GroupLevelOptions[];
|
|
793
|
+
fieldsUsage?: FieldUsageOptions[];
|
|
794
|
+
}
|
|
795
|
+
interface KpiOptions {
|
|
796
|
+
uniqueName: string;
|
|
797
|
+
caption?: string;
|
|
798
|
+
displayFolder?: string;
|
|
799
|
+
measureGroup?: string;
|
|
800
|
+
parent?: string;
|
|
801
|
+
value: string;
|
|
802
|
+
goal?: string;
|
|
803
|
+
status?: string;
|
|
804
|
+
trend?: string;
|
|
805
|
+
weight?: string;
|
|
806
|
+
time?: string;
|
|
807
|
+
}
|
|
808
|
+
interface MeasureGroupOptions {
|
|
809
|
+
name: string;
|
|
810
|
+
caption: string;
|
|
811
|
+
}
|
|
812
|
+
interface SetOptions {
|
|
813
|
+
count?: number;
|
|
814
|
+
maxRank: number;
|
|
815
|
+
setDefinition: string;
|
|
816
|
+
sortType?: "none" | "ascending" | "descending" | "ascendingAlpha" | "descendingAlpha" | "ascendingNatural" | "descendingNatural";
|
|
817
|
+
queryFailed?: boolean;
|
|
818
|
+
}
|
|
819
|
+
interface ServerFormatOptions {
|
|
820
|
+
culture?: string;
|
|
821
|
+
format?: string;
|
|
822
|
+
}
|
|
823
|
+
interface FieldGroupOptions {
|
|
824
|
+
parent?: number;
|
|
825
|
+
base?: number;
|
|
826
|
+
rangePr?: RangePrOptions;
|
|
827
|
+
discretePr?: number[];
|
|
828
|
+
groupItems?: string[];
|
|
829
|
+
}
|
|
830
|
+
interface RangePrOptions {
|
|
831
|
+
autoStart?: boolean;
|
|
832
|
+
autoEnd?: boolean;
|
|
833
|
+
groupBy?: "range" | "seconds" | "minutes" | "hours" | "days" | "months" | "quarters" | "years";
|
|
834
|
+
startNum?: number;
|
|
835
|
+
endNum?: number;
|
|
836
|
+
startDate?: string;
|
|
837
|
+
endDate?: string;
|
|
838
|
+
groupInterval?: number;
|
|
839
|
+
}
|
|
840
|
+
interface PivotDimensionOptions {
|
|
841
|
+
measure?: boolean;
|
|
842
|
+
name: string;
|
|
843
|
+
uniqueName: string;
|
|
844
|
+
caption: string;
|
|
845
|
+
}
|
|
846
|
+
interface RangeSetOptions {
|
|
847
|
+
i1?: number;
|
|
848
|
+
i2?: number;
|
|
849
|
+
i3?: number;
|
|
850
|
+
i4?: number;
|
|
851
|
+
ref?: string;
|
|
852
|
+
name?: string;
|
|
853
|
+
sheet?: string;
|
|
854
|
+
rId?: string;
|
|
855
|
+
}
|
|
856
|
+
interface ConsolidationPageItemOptions {
|
|
857
|
+
name: string;
|
|
858
|
+
}
|
|
859
|
+
interface ConsolidationPageOptions {
|
|
860
|
+
items?: ConsolidationPageItemOptions[];
|
|
861
|
+
}
|
|
862
|
+
interface ConsolidationOptions {
|
|
863
|
+
autoPage?: boolean;
|
|
864
|
+
pages?: ConsolidationPageOptions[];
|
|
865
|
+
rangeSets: RangeSetOptions[];
|
|
866
|
+
}
|
|
867
|
+
interface TupleCacheEntryOptions {
|
|
868
|
+
type: "m" | "n" | "e" | "s";
|
|
869
|
+
value?: number | string;
|
|
870
|
+
}
|
|
871
|
+
interface GroupMemberOptions {
|
|
872
|
+
uniqueName: string;
|
|
873
|
+
group?: boolean;
|
|
874
|
+
}
|
|
875
|
+
interface LevelGroupOptions {
|
|
876
|
+
name: string;
|
|
877
|
+
uniqueName: string;
|
|
878
|
+
caption: string;
|
|
879
|
+
uniqueParent?: string;
|
|
880
|
+
id?: number;
|
|
881
|
+
members: GroupMemberOptions[];
|
|
882
|
+
}
|
|
883
|
+
interface GroupLevelOptions {
|
|
884
|
+
uniqueName: string;
|
|
885
|
+
caption: string;
|
|
886
|
+
user?: boolean;
|
|
887
|
+
customRollUp?: boolean;
|
|
888
|
+
groups?: LevelGroupOptions[];
|
|
889
|
+
}
|
|
890
|
+
interface FieldUsageOptions {
|
|
891
|
+
value: number;
|
|
892
|
+
}
|
|
893
|
+
interface HierarchyUsageOptions {
|
|
894
|
+
hierarchyUsage: number;
|
|
895
|
+
}
|
|
896
|
+
interface QueryCacheEntryOptions {
|
|
897
|
+
mdx: string;
|
|
898
|
+
tpls?: TupleOptions[];
|
|
899
|
+
}
|
|
900
|
+
interface TupleOptions {
|
|
901
|
+
items?: number[];
|
|
902
|
+
}
|
|
903
|
+
interface MpMapOptions {
|
|
904
|
+
x: number;
|
|
905
|
+
}
|
|
906
|
+
interface MeasureDimensionMapOptions {
|
|
907
|
+
measureGroup?: number;
|
|
908
|
+
dimension?: number;
|
|
909
|
+
}
|
|
910
|
+
interface OlapPrOptions {
|
|
911
|
+
local?: string;
|
|
912
|
+
localConnection?: string;
|
|
913
|
+
sendLocale?: boolean;
|
|
914
|
+
rowDrillCount?: number;
|
|
915
|
+
colDrillCount?: number;
|
|
916
|
+
localRefresh?: boolean;
|
|
917
|
+
serverFill?: boolean;
|
|
918
|
+
serverNumberFormat?: boolean;
|
|
919
|
+
serverFont?: boolean;
|
|
920
|
+
serverFontColor?: boolean;
|
|
921
|
+
}
|
|
922
|
+
interface PivotSourceData {
|
|
923
|
+
fieldNames: string[];
|
|
924
|
+
records: (string | number | null | Date)[][];
|
|
925
|
+
}
|
|
926
|
+
interface CacheFieldExtraAttrs {
|
|
927
|
+
databaseField?: boolean;
|
|
928
|
+
level?: number;
|
|
929
|
+
mappingCount?: number;
|
|
930
|
+
memberPropertyField?: number;
|
|
931
|
+
propertyName?: string;
|
|
932
|
+
serverField?: boolean;
|
|
933
|
+
uniqueList?: boolean;
|
|
934
|
+
containsMixedTypes?: boolean;
|
|
935
|
+
containsNonDate?: boolean;
|
|
936
|
+
longText?: boolean;
|
|
937
|
+
maxDate?: string;
|
|
938
|
+
minDate?: string;
|
|
939
|
+
}
|
|
940
|
+
interface PivotCacheDefinitionOptions {
|
|
941
|
+
invalid?: boolean;
|
|
942
|
+
saveData?: boolean;
|
|
943
|
+
optimizeMemory?: boolean;
|
|
944
|
+
enableRefresh?: boolean;
|
|
945
|
+
refreshedBy?: string;
|
|
946
|
+
refreshedDate?: number;
|
|
947
|
+
refreshedDateIso?: string;
|
|
948
|
+
backgroundQuery?: boolean;
|
|
949
|
+
missingItemsLimit?: number;
|
|
950
|
+
upgradeOnRefresh?: boolean;
|
|
951
|
+
supportSubquery?: boolean;
|
|
952
|
+
supportAdvancedDrill?: boolean;
|
|
953
|
+
cacheHierarchies?: CacheHierarchyOptions[];
|
|
954
|
+
kpis?: KpiOptions[];
|
|
955
|
+
measureGroups?: MeasureGroupOptions[];
|
|
956
|
+
dimensions?: PivotDimensionOptions[];
|
|
957
|
+
sets?: SetOptions[];
|
|
958
|
+
serverFormats?: ServerFormatOptions[];
|
|
959
|
+
fieldGroups?: ReadonlyMap<number, FieldGroupOptions>;
|
|
960
|
+
consolidation?: ConsolidationOptions;
|
|
961
|
+
entries?: TupleCacheEntryOptions[];
|
|
962
|
+
queryCache?: QueryCacheEntryOptions[];
|
|
963
|
+
mpMaps?: MpMapOptions[];
|
|
964
|
+
measureDimensionMaps?: MeasureDimensionMapOptions[];
|
|
965
|
+
cacheFieldOverrides?: ReadonlyMap<number, CacheFieldExtraAttrs>;
|
|
966
|
+
olapPr?: OlapPrOptions;
|
|
967
|
+
}
|
|
968
|
+
//#endregion
|
|
969
|
+
//#region src/parts/shared-strings.d.ts
|
|
970
|
+
type SstEntry = string | RichTextOptions;
|
|
971
|
+
declare class SharedStrings {
|
|
972
|
+
private entries;
|
|
973
|
+
private indexMap;
|
|
974
|
+
register(s: string): number;
|
|
975
|
+
registerRich(rst: RichTextOptions): number;
|
|
976
|
+
get count(): number;
|
|
977
|
+
toDescriptorOptions(): {
|
|
978
|
+
entries: SstEntry[];
|
|
979
|
+
uniqueCount: number;
|
|
980
|
+
};
|
|
981
|
+
serialize(): string;
|
|
982
|
+
}
|
|
983
|
+
interface SharedStringsDocOptions {
|
|
984
|
+
entries: (string | RichTextOptions)[];
|
|
985
|
+
uniqueCount: number;
|
|
986
|
+
}
|
|
987
|
+
declare const sharedStringsDesc: CustomDescriptor<SharedStringsDocOptions>;
|
|
988
|
+
//#endregion
|
|
989
|
+
//#region src/parts/table.d.ts
|
|
990
|
+
declare const TotalsRowFunction: {
|
|
991
|
+
readonly NONE: "none";
|
|
992
|
+
readonly SUM: "sum";
|
|
993
|
+
readonly MIN: "min";
|
|
994
|
+
readonly MAX: "max";
|
|
995
|
+
readonly AVERAGE: "average";
|
|
996
|
+
readonly COUNT: "count";
|
|
997
|
+
readonly COUNT_NUMS: "countNums";
|
|
998
|
+
readonly STD_DEV: "stdDev";
|
|
999
|
+
readonly VAR: "var";
|
|
1000
|
+
readonly CUSTOM: "custom";
|
|
1001
|
+
};
|
|
1002
|
+
type TotalsRowFunction = (typeof TotalsRowFunction)[keyof typeof TotalsRowFunction];
|
|
1003
|
+
declare const TableType: {
|
|
1004
|
+
readonly WORKSHEET: "worksheet";
|
|
1005
|
+
readonly XML: "xml";
|
|
1006
|
+
readonly QUERY_TABLE: "queryTable";
|
|
1007
|
+
};
|
|
1008
|
+
type TableType = (typeof TableType)[keyof typeof TableType];
|
|
1009
|
+
interface TableStyleInfoOptions {
|
|
1010
|
+
name?: string;
|
|
1011
|
+
showFirstColumn?: boolean;
|
|
1012
|
+
showLastColumn?: boolean;
|
|
1013
|
+
showRowStripes?: boolean;
|
|
1014
|
+
showColumnStripes?: boolean;
|
|
1015
|
+
}
|
|
1016
|
+
interface TableColumnOptions {
|
|
1017
|
+
name: string;
|
|
1018
|
+
totalsRowFunction?: TotalsRowFunction;
|
|
1019
|
+
totalsRowLabel?: string;
|
|
1020
|
+
calculatedColumnFormula?: string;
|
|
1021
|
+
totalsRowFormula?: string;
|
|
1022
|
+
totalsRowFormulaArray?: boolean;
|
|
1023
|
+
calculatedColumnFormulaArray?: boolean;
|
|
1024
|
+
uniqueName?: string;
|
|
1025
|
+
queryTableFieldId?: number;
|
|
1026
|
+
headerRowDxfId?: number;
|
|
1027
|
+
dataDxfId?: number;
|
|
1028
|
+
totalsRowDxfId?: number;
|
|
1029
|
+
headerRowCellStyle?: string;
|
|
1030
|
+
dataCellStyle?: string;
|
|
1031
|
+
totalsRowCellStyle?: string;
|
|
1032
|
+
}
|
|
1033
|
+
interface TableOptions {
|
|
1034
|
+
id: number;
|
|
1035
|
+
name?: string;
|
|
1036
|
+
displayName: string;
|
|
1037
|
+
ref: string;
|
|
1038
|
+
columns: TableColumnOptions[];
|
|
1039
|
+
headerRowCount?: number;
|
|
1040
|
+
totalsRowCount?: number;
|
|
1041
|
+
totalsRowShown?: boolean;
|
|
1042
|
+
tableType?: TableType;
|
|
1043
|
+
style?: TableStyleInfoOptions;
|
|
1044
|
+
autoFilter?: string;
|
|
1045
|
+
insertRowShift?: boolean;
|
|
1046
|
+
published?: boolean;
|
|
1047
|
+
headerRowDxfId?: number;
|
|
1048
|
+
dataDxfId?: number;
|
|
1049
|
+
totalsRowDxfId?: number;
|
|
1050
|
+
headerRowBorderDxfId?: number;
|
|
1051
|
+
tableBorderDxfId?: number;
|
|
1052
|
+
totalsRowBorderDxfId?: number;
|
|
1053
|
+
headerRowCellStyle?: string;
|
|
1054
|
+
dataCellStyle?: string;
|
|
1055
|
+
totalsRowCellStyle?: string;
|
|
1056
|
+
}
|
|
1057
|
+
declare const tableDesc: CustomDescriptor<TableOptions>;
|
|
1058
|
+
//#endregion
|
|
1059
|
+
//#region src/parts/worksheet.d.ts
|
|
1060
|
+
interface ColumnOptions {
|
|
1061
|
+
min: number;
|
|
1062
|
+
max: number;
|
|
1063
|
+
width?: number;
|
|
1064
|
+
hidden?: boolean;
|
|
1065
|
+
customWidth?: boolean;
|
|
1066
|
+
outlineLevel?: number;
|
|
1067
|
+
collapsed?: boolean;
|
|
1068
|
+
bestFit?: boolean;
|
|
1069
|
+
phonetic?: boolean;
|
|
1070
|
+
}
|
|
1071
|
+
interface RowOptions {
|
|
1072
|
+
cells?: CellOptions[];
|
|
1073
|
+
height?: number;
|
|
1074
|
+
hidden?: boolean;
|
|
1075
|
+
rowNumber?: number;
|
|
1076
|
+
spans?: string;
|
|
1077
|
+
customFormat?: boolean;
|
|
1078
|
+
thickTop?: boolean;
|
|
1079
|
+
thickBot?: boolean;
|
|
1080
|
+
ph?: boolean;
|
|
1081
|
+
}
|
|
1082
|
+
interface RichTextRunPrOptions {
|
|
1083
|
+
font?: string;
|
|
1084
|
+
charset?: number;
|
|
1085
|
+
family?: number;
|
|
1086
|
+
bold?: boolean;
|
|
1087
|
+
italic?: boolean;
|
|
1088
|
+
strike?: boolean;
|
|
1089
|
+
outline?: boolean;
|
|
1090
|
+
shadow?: boolean;
|
|
1091
|
+
condense?: boolean;
|
|
1092
|
+
extend?: boolean;
|
|
1093
|
+
color?: string;
|
|
1094
|
+
size?: number;
|
|
1095
|
+
underline?: "single" | "double" | "singleAccounting" | "doubleAccounting" | "none";
|
|
1096
|
+
vertAlign?: "superscript" | "subscript" | "baseline";
|
|
1097
|
+
scheme?: "major" | "minor" | "none";
|
|
1098
|
+
}
|
|
1099
|
+
interface RichTextRunOptions {
|
|
1100
|
+
properties?: RichTextRunPrOptions;
|
|
1101
|
+
text: string;
|
|
1102
|
+
}
|
|
1103
|
+
interface PhoneticRunOptions {
|
|
1104
|
+
sb: number;
|
|
1105
|
+
eb: number;
|
|
1106
|
+
text: string;
|
|
1107
|
+
}
|
|
1108
|
+
interface RichTextOptions {
|
|
1109
|
+
text?: string;
|
|
1110
|
+
runs?: RichTextRunOptions[];
|
|
1111
|
+
phonetics?: PhoneticRunOptions[];
|
|
1112
|
+
}
|
|
1113
|
+
interface CellOptions {
|
|
1114
|
+
value?: string | number | boolean | Date | RichTextOptions | null;
|
|
1115
|
+
reference?: string;
|
|
1116
|
+
styleIndex?: number;
|
|
1117
|
+
style?: StyleOptions;
|
|
1118
|
+
formula?: FormulaOptions;
|
|
1119
|
+
}
|
|
1120
|
+
declare const FormulaType: {
|
|
1121
|
+
readonly NORMAL: "normal";
|
|
1122
|
+
readonly ARRAY: "array";
|
|
1123
|
+
readonly SHARED: "shared";
|
|
1124
|
+
};
|
|
1125
|
+
type FormulaType = (typeof FormulaType)[keyof typeof FormulaType];
|
|
1126
|
+
interface FormulaOptions {
|
|
1127
|
+
formula: string;
|
|
1128
|
+
type?: FormulaType;
|
|
1129
|
+
reference?: string;
|
|
1130
|
+
sharedIndex?: number;
|
|
1131
|
+
aca?: boolean;
|
|
1132
|
+
dt2D?: boolean;
|
|
1133
|
+
dtr?: boolean;
|
|
1134
|
+
del1?: boolean;
|
|
1135
|
+
del2?: boolean;
|
|
1136
|
+
r1?: string;
|
|
1137
|
+
r2?: string;
|
|
1138
|
+
ca?: boolean;
|
|
1139
|
+
bx?: boolean;
|
|
1140
|
+
}
|
|
1141
|
+
interface ScenarioCellOptions {
|
|
1142
|
+
r: string;
|
|
1143
|
+
val: string | number;
|
|
1144
|
+
deleted?: boolean;
|
|
1145
|
+
undone?: boolean;
|
|
1146
|
+
}
|
|
1147
|
+
interface ScenarioDefinition {
|
|
1148
|
+
name: string;
|
|
1149
|
+
inputCells: ScenarioCellOptions[];
|
|
1150
|
+
count?: number;
|
|
1151
|
+
user?: string;
|
|
1152
|
+
comment?: string;
|
|
1153
|
+
hidden?: boolean;
|
|
1154
|
+
locked?: boolean;
|
|
1155
|
+
}
|
|
1156
|
+
interface ScenarioOptions {
|
|
1157
|
+
scenarios: ScenarioDefinition[];
|
|
1158
|
+
current?: number;
|
|
1159
|
+
show?: number;
|
|
1160
|
+
}
|
|
1161
|
+
interface MergeCellOptions {
|
|
1162
|
+
from: {
|
|
1163
|
+
row: number;
|
|
1164
|
+
col: number;
|
|
1165
|
+
};
|
|
1166
|
+
to: {
|
|
1167
|
+
row: number;
|
|
1168
|
+
col: number;
|
|
1169
|
+
};
|
|
1170
|
+
}
|
|
1171
|
+
interface SheetProtectionOptions {
|
|
1172
|
+
password?: string;
|
|
1173
|
+
algorithmName?: string;
|
|
1174
|
+
hashValue?: string;
|
|
1175
|
+
saltValue?: string;
|
|
1176
|
+
spinCount?: number;
|
|
1177
|
+
sheet?: boolean;
|
|
1178
|
+
objects?: boolean;
|
|
1179
|
+
scenarios?: boolean;
|
|
1180
|
+
formatCells?: boolean;
|
|
1181
|
+
formatColumns?: boolean;
|
|
1182
|
+
formatRows?: boolean;
|
|
1183
|
+
insertColumns?: boolean;
|
|
1184
|
+
insertRows?: boolean;
|
|
1185
|
+
insertHyperlinks?: boolean;
|
|
1186
|
+
deleteColumns?: boolean;
|
|
1187
|
+
deleteRows?: boolean;
|
|
1188
|
+
selectLockedCells?: boolean;
|
|
1189
|
+
sort?: boolean;
|
|
1190
|
+
autoFilter?: boolean;
|
|
1191
|
+
pivotTables?: boolean;
|
|
1192
|
+
selectUnlockedCells?: boolean;
|
|
1193
|
+
}
|
|
1194
|
+
interface ProtectedRangeOptions {
|
|
1195
|
+
sqref: string;
|
|
1196
|
+
name: string;
|
|
1197
|
+
password?: string;
|
|
1198
|
+
algorithmName?: string;
|
|
1199
|
+
hashValue?: string;
|
|
1200
|
+
saltValue?: string;
|
|
1201
|
+
spinCount?: number;
|
|
1202
|
+
securityDescriptor?: string;
|
|
1203
|
+
}
|
|
1204
|
+
interface FreezePaneOptions {
|
|
1205
|
+
row?: number;
|
|
1206
|
+
col?: number;
|
|
1207
|
+
}
|
|
1208
|
+
interface WorksheetImageOptions {
|
|
1209
|
+
data: Uint8Array;
|
|
1210
|
+
type: "png" | "jpeg" | "jpg";
|
|
1211
|
+
col: number;
|
|
1212
|
+
row: number;
|
|
1213
|
+
}
|
|
1214
|
+
interface WorksheetChartOptions extends ChartSpaceOptions {
|
|
1215
|
+
col: number;
|
|
1216
|
+
row: number;
|
|
1217
|
+
}
|
|
1218
|
+
interface SheetViewOptions {
|
|
1219
|
+
showGridLines?: boolean;
|
|
1220
|
+
showRowColHeaders?: boolean;
|
|
1221
|
+
showZeros?: boolean;
|
|
1222
|
+
zoomScale?: number;
|
|
1223
|
+
tabSelected?: boolean;
|
|
1224
|
+
rightToLeft?: boolean;
|
|
1225
|
+
windowProtection?: boolean;
|
|
1226
|
+
showFormulas?: boolean;
|
|
1227
|
+
showRuler?: boolean;
|
|
1228
|
+
showOutlineSymbols?: boolean;
|
|
1229
|
+
defaultGridColor?: boolean;
|
|
1230
|
+
showWhiteSpace?: boolean;
|
|
1231
|
+
view?: "normal" | "pageBreakPreview" | "pageLayout";
|
|
1232
|
+
colorId?: number;
|
|
1233
|
+
zoomScaleNormal?: number;
|
|
1234
|
+
zoomScaleSheetLayoutView?: number;
|
|
1235
|
+
zoomScalePageLayoutView?: number;
|
|
1236
|
+
pivotSelections?: PivotSelectionOptions[];
|
|
1237
|
+
}
|
|
1238
|
+
interface PivotSelectionOptions {
|
|
1239
|
+
pane?: "bottomRight" | "topRight" | "bottomLeft" | "topLeft";
|
|
1240
|
+
showHeader?: boolean;
|
|
1241
|
+
label?: boolean;
|
|
1242
|
+
data?: boolean;
|
|
1243
|
+
extendable?: boolean;
|
|
1244
|
+
count?: number;
|
|
1245
|
+
axis?: "axisRow" | "axisCol" | "axisPage" | "axisValues";
|
|
1246
|
+
dimension?: number;
|
|
1247
|
+
start?: number;
|
|
1248
|
+
min?: number;
|
|
1249
|
+
max?: number;
|
|
1250
|
+
activeRow?: number;
|
|
1251
|
+
activeCol?: number;
|
|
1252
|
+
previousRow?: number;
|
|
1253
|
+
previousCol?: number;
|
|
1254
|
+
click?: number;
|
|
1255
|
+
rId?: string;
|
|
1256
|
+
}
|
|
1257
|
+
type HyperlinkTarget = {
|
|
1258
|
+
type: "external";
|
|
1259
|
+
url: string;
|
|
1260
|
+
} | {
|
|
1261
|
+
type: "internal";
|
|
1262
|
+
location: string;
|
|
1263
|
+
};
|
|
1264
|
+
interface HyperlinkOptions {
|
|
1265
|
+
cell: string;
|
|
1266
|
+
target: HyperlinkTarget;
|
|
1267
|
+
tooltip?: string;
|
|
1268
|
+
display?: string;
|
|
1269
|
+
}
|
|
1270
|
+
interface HeaderFooterOptions {
|
|
1271
|
+
oddHeader?: string;
|
|
1272
|
+
oddFooter?: string;
|
|
1273
|
+
evenHeader?: string;
|
|
1274
|
+
evenFooter?: string;
|
|
1275
|
+
firstHeader?: string;
|
|
1276
|
+
firstFooter?: string;
|
|
1277
|
+
differentOddEven?: boolean;
|
|
1278
|
+
differentFirst?: boolean;
|
|
1279
|
+
scaleWithDoc?: boolean;
|
|
1280
|
+
alignWithMargins?: boolean;
|
|
1281
|
+
}
|
|
1282
|
+
type PageOrientation = "default" | "portrait" | "landscape";
|
|
1283
|
+
interface PageSetupOptions {
|
|
1284
|
+
paperSize?: number;
|
|
1285
|
+
orientation?: PageOrientation;
|
|
1286
|
+
scale?: number;
|
|
1287
|
+
fitToWidth?: number;
|
|
1288
|
+
fitToHeight?: number;
|
|
1289
|
+
pageOrder?: "downThenOver" | "overThenDown";
|
|
1290
|
+
useFirstPageNumber?: boolean;
|
|
1291
|
+
firstPageNumber?: number;
|
|
1292
|
+
paperHeight?: number;
|
|
1293
|
+
paperWidth?: number;
|
|
1294
|
+
usePrinterDefaults?: boolean;
|
|
1295
|
+
blackAndWhite?: boolean;
|
|
1296
|
+
draft?: boolean;
|
|
1297
|
+
cellComments?: "none" | "asDisplayed" | "atEnd";
|
|
1298
|
+
errors?: "displayed" | "blank" | "dash" | "NA";
|
|
1299
|
+
autoPageBreaks?: boolean;
|
|
1300
|
+
}
|
|
1301
|
+
interface TabColorOptions {
|
|
1302
|
+
rgb?: string;
|
|
1303
|
+
theme?: number;
|
|
1304
|
+
tint?: number;
|
|
1305
|
+
indexed?: number;
|
|
1306
|
+
}
|
|
1307
|
+
interface ObjectAnchorOptions {
|
|
1308
|
+
moveWithCells?: boolean;
|
|
1309
|
+
sizeWithCells?: boolean;
|
|
1310
|
+
}
|
|
1311
|
+
interface CommentPrOptions {
|
|
1312
|
+
locked?: boolean;
|
|
1313
|
+
defaultSize?: boolean;
|
|
1314
|
+
print?: boolean;
|
|
1315
|
+
disabled?: boolean;
|
|
1316
|
+
autoFill?: boolean;
|
|
1317
|
+
autoLine?: boolean;
|
|
1318
|
+
altText?: string;
|
|
1319
|
+
textHAlign?: "left" | "center" | "right" | "justify" | "distributed";
|
|
1320
|
+
textVAlign?: "top" | "center" | "bottom" | "justify" | "distributed";
|
|
1321
|
+
lockText?: boolean;
|
|
1322
|
+
justLastX?: boolean;
|
|
1323
|
+
autoScale?: boolean;
|
|
1324
|
+
anchor?: ObjectAnchorOptions;
|
|
1325
|
+
}
|
|
1326
|
+
interface CommentOptions {
|
|
1327
|
+
cell: string;
|
|
1328
|
+
author: string;
|
|
1329
|
+
text: string | RichTextOptions;
|
|
1330
|
+
commentPr?: CommentPrOptions;
|
|
1331
|
+
}
|
|
1332
|
+
type DataValidationType = "none" | "whole" | "decimal" | "list" | "date" | "time" | "textLength" | "custom";
|
|
1333
|
+
type DataValidationOperator = "between" | "notBetween" | "equal" | "notEqual" | "greaterThan" | "lessThan" | "greaterThanOrEqual" | "lessThanOrEqual";
|
|
1334
|
+
interface DataValidationOptions {
|
|
1335
|
+
sqref: string;
|
|
1336
|
+
type?: DataValidationType;
|
|
1337
|
+
operator?: DataValidationOperator;
|
|
1338
|
+
formula1?: string;
|
|
1339
|
+
formula2?: string;
|
|
1340
|
+
allowBlank?: boolean;
|
|
1341
|
+
showErrorMessage?: boolean;
|
|
1342
|
+
errorTitle?: string;
|
|
1343
|
+
error?: string;
|
|
1344
|
+
showInputMessage?: boolean;
|
|
1345
|
+
promptTitle?: string;
|
|
1346
|
+
prompt?: string;
|
|
1347
|
+
errorStyle?: "stop" | "warning" | "information";
|
|
1348
|
+
imeMode?: "noControl" | "on" | "off" | "disabled" | "hiragana" | "fullKatakana" | "halfKatakana" | "fullAlpha" | "halfAlpha" | "fullHangul" | "halfHangul";
|
|
1349
|
+
showDropDown?: boolean;
|
|
1350
|
+
}
|
|
1351
|
+
type ConditionalFormatType = "cellIs" | "containsText" | "expression" | "top10" | "aboveAverage" | "colorScale" | "dataBar" | "iconSet";
|
|
1352
|
+
type ConditionalFormatOperator = "lessThan" | "lessThanOrEqual" | "equal" | "notEqual" | "greaterThanOrEqual" | "greaterThan" | "between" | "notBetween" | "containsText" | "notContains" | "beginsWith" | "endsWith";
|
|
1353
|
+
type CfvoType = "num" | "percent" | "max" | "min" | "formula" | "percentile";
|
|
1354
|
+
interface CfvoOptions {
|
|
1355
|
+
type: CfvoType;
|
|
1356
|
+
val?: string | number;
|
|
1357
|
+
gte?: boolean;
|
|
1358
|
+
}
|
|
1359
|
+
type IconSetType = "3Arrows" | "3ArrowsGray" | "3Flags" | "3TrafficLights1" | "3TrafficLights2" | "3Signs" | "3Symbols" | "3Symbols2" | "4Arrows" | "4ArrowsGray" | "4RedToBlack" | "4Rating" | "4TrafficLights" | "5Arrows" | "5ArrowsGray" | "5Rating" | "5Quarters";
|
|
1360
|
+
interface ColorScaleOptions {
|
|
1361
|
+
cfvo: CfvoOptions[];
|
|
1362
|
+
colors: string[];
|
|
1363
|
+
}
|
|
1364
|
+
interface DataBarOptions {
|
|
1365
|
+
cfvo: [CfvoOptions, CfvoOptions];
|
|
1366
|
+
color: string;
|
|
1367
|
+
minLength?: number;
|
|
1368
|
+
maxLength?: number;
|
|
1369
|
+
showValue?: boolean;
|
|
1370
|
+
}
|
|
1371
|
+
interface IconSetOptions {
|
|
1372
|
+
cfvo: CfvoOptions[];
|
|
1373
|
+
iconSet?: IconSetType;
|
|
1374
|
+
showValue?: boolean;
|
|
1375
|
+
percent?: boolean;
|
|
1376
|
+
reverse?: boolean;
|
|
1377
|
+
}
|
|
1378
|
+
interface ConditionalFormatRule {
|
|
1379
|
+
type: ConditionalFormatType;
|
|
1380
|
+
operator?: ConditionalFormatOperator;
|
|
1381
|
+
formulas?: string[];
|
|
1382
|
+
priority?: number;
|
|
1383
|
+
dxfId?: number;
|
|
1384
|
+
colorScale?: ColorScaleOptions;
|
|
1385
|
+
dataBar?: DataBarOptions;
|
|
1386
|
+
iconSet?: IconSetOptions;
|
|
1387
|
+
stopIfTrue?: boolean;
|
|
1388
|
+
timePeriod?: "today" | "yesterday" | "tomorrow" | "last7Days" | "thisMonth" | "lastMonth" | "nextMonth" | "thisWeek" | "lastWeek" | "nextWeek";
|
|
1389
|
+
rank?: number;
|
|
1390
|
+
equalAverage?: boolean;
|
|
1391
|
+
}
|
|
1392
|
+
interface ConditionalFormatOptions {
|
|
1393
|
+
sqref: string;
|
|
1394
|
+
rules: ConditionalFormatRule[];
|
|
1395
|
+
}
|
|
1396
|
+
interface Top10FilterOptions {
|
|
1397
|
+
colId: number;
|
|
1398
|
+
top?: boolean;
|
|
1399
|
+
percent?: boolean;
|
|
1400
|
+
val: number;
|
|
1401
|
+
filterVal?: number;
|
|
1402
|
+
hiddenButton?: boolean;
|
|
1403
|
+
showButton?: boolean;
|
|
1404
|
+
}
|
|
1405
|
+
interface CustomFilterOptions {
|
|
1406
|
+
colId: number;
|
|
1407
|
+
operator?: "equal" | "notEqual" | "greaterThan" | "greaterThanOrEqual" | "lessThan" | "lessThanOrEqual";
|
|
1408
|
+
val?: string;
|
|
1409
|
+
and?: boolean;
|
|
1410
|
+
val2?: string;
|
|
1411
|
+
hiddenButton?: boolean;
|
|
1412
|
+
showButton?: boolean;
|
|
1413
|
+
}
|
|
1414
|
+
interface SortCondition {
|
|
1415
|
+
ref: string;
|
|
1416
|
+
descending?: boolean;
|
|
1417
|
+
sortBy?: "value" | "cellColor" | "fontColor" | "icon";
|
|
1418
|
+
customList?: string;
|
|
1419
|
+
iconId?: number;
|
|
1420
|
+
}
|
|
1421
|
+
interface AutoFilterOptions {
|
|
1422
|
+
ref: string;
|
|
1423
|
+
top10?: Top10FilterOptions[];
|
|
1424
|
+
customFilters?: CustomFilterOptions[];
|
|
1425
|
+
sort?: SortCondition[];
|
|
1426
|
+
sortState?: SortStateOptions;
|
|
1427
|
+
colorFilters?: ColorFilterOptions[];
|
|
1428
|
+
iconFilters?: IconFilterOptions[];
|
|
1429
|
+
dynamicFilters?: DynamicFilterOptions[];
|
|
1430
|
+
dateGroupItems?: DateGroupFilterOptions[];
|
|
1431
|
+
filters?: FilterItemsOptions[];
|
|
1432
|
+
}
|
|
1433
|
+
interface ColorFilterOptions {
|
|
1434
|
+
colId: number;
|
|
1435
|
+
dxfId?: number;
|
|
1436
|
+
cellColor?: boolean;
|
|
1437
|
+
}
|
|
1438
|
+
interface IconFilterOptions {
|
|
1439
|
+
colId: number;
|
|
1440
|
+
iconSet: number;
|
|
1441
|
+
iconId?: number;
|
|
1442
|
+
}
|
|
1443
|
+
interface FilterItemsOptions {
|
|
1444
|
+
colId: number;
|
|
1445
|
+
blank?: boolean;
|
|
1446
|
+
calendarType?: string;
|
|
1447
|
+
values?: string[];
|
|
1448
|
+
}
|
|
1449
|
+
interface DynamicFilterOptions {
|
|
1450
|
+
colId: number;
|
|
1451
|
+
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";
|
|
1452
|
+
val?: number;
|
|
1453
|
+
maxVal?: number;
|
|
1454
|
+
valIso?: string;
|
|
1455
|
+
maxValIso?: string;
|
|
1456
|
+
}
|
|
1457
|
+
interface DateGroupFilterOptions {
|
|
1458
|
+
colId: number;
|
|
1459
|
+
dateTimeGrouping: "year" | "month" | "day" | "hour" | "minute" | "second";
|
|
1460
|
+
year?: number;
|
|
1461
|
+
month?: number;
|
|
1462
|
+
day?: number;
|
|
1463
|
+
hour?: number;
|
|
1464
|
+
minute?: number;
|
|
1465
|
+
second?: number;
|
|
1466
|
+
}
|
|
1467
|
+
interface SortStateOptions {
|
|
1468
|
+
columnSort?: boolean;
|
|
1469
|
+
caseSensitive?: boolean;
|
|
1470
|
+
sortMethod?: "pinYin" | "stroke";
|
|
1471
|
+
}
|
|
1472
|
+
interface PrintOptions {
|
|
1473
|
+
horizontalCentered?: boolean;
|
|
1474
|
+
verticalCentered?: boolean;
|
|
1475
|
+
headings?: boolean;
|
|
1476
|
+
gridLines?: boolean;
|
|
1477
|
+
gridLinesSet?: boolean;
|
|
1478
|
+
}
|
|
1479
|
+
interface SheetFormatPrOptions {
|
|
1480
|
+
baseColWidth?: number;
|
|
1481
|
+
defaultColWidth?: number;
|
|
1482
|
+
defaultRowHeight?: number;
|
|
1483
|
+
zeroHeight?: boolean;
|
|
1484
|
+
thickTop?: boolean;
|
|
1485
|
+
thickBottom?: boolean;
|
|
1486
|
+
outlineLevelRow?: number;
|
|
1487
|
+
outlineLevelCol?: number;
|
|
1488
|
+
}
|
|
1489
|
+
interface SheetPrOptions {
|
|
1490
|
+
syncHorizontal?: boolean;
|
|
1491
|
+
syncVertical?: boolean;
|
|
1492
|
+
syncRef?: string;
|
|
1493
|
+
transitionEvaluation?: boolean;
|
|
1494
|
+
transitionEntry?: boolean;
|
|
1495
|
+
published?: boolean;
|
|
1496
|
+
filterMode?: boolean;
|
|
1497
|
+
enableFormatConditionsCalculation?: boolean;
|
|
1498
|
+
outlineApplyStyles?: boolean;
|
|
1499
|
+
outlineShowSymbols?: boolean;
|
|
1500
|
+
}
|
|
1501
|
+
interface IgnoredErrorOptions {
|
|
1502
|
+
sqref: string;
|
|
1503
|
+
evalError?: boolean;
|
|
1504
|
+
twoDigitTextYear?: boolean;
|
|
1505
|
+
numberStoredAsText?: boolean;
|
|
1506
|
+
formula?: boolean;
|
|
1507
|
+
formulaRange?: boolean;
|
|
1508
|
+
unlockedFormula?: boolean;
|
|
1509
|
+
emptyCellReference?: boolean;
|
|
1510
|
+
listDataValidation?: boolean;
|
|
1511
|
+
calculatedColumn?: boolean;
|
|
1512
|
+
}
|
|
1513
|
+
interface PhoneticPrOptions {
|
|
1514
|
+
fontId: number;
|
|
1515
|
+
type?: "fullwidthKatakana" | "halfwidthKatakana" | "Hiragana" | "noConversion";
|
|
1516
|
+
alignment?: "left" | "center" | "distributed";
|
|
1517
|
+
}
|
|
1518
|
+
interface SheetBackgroundImageOptions {
|
|
1519
|
+
data: Uint8Array;
|
|
1520
|
+
type: "png" | "jpeg" | "jpg";
|
|
1521
|
+
}
|
|
1522
|
+
interface PageBreakOptions {
|
|
1523
|
+
id: number;
|
|
1524
|
+
min?: number;
|
|
1525
|
+
max?: number;
|
|
1526
|
+
manual?: boolean;
|
|
1527
|
+
pivot?: boolean;
|
|
1528
|
+
}
|
|
1529
|
+
interface SelectionOptions {
|
|
1530
|
+
pane?: "bottomRight" | "topRight" | "bottomLeft" | "topLeft";
|
|
1531
|
+
activeCell?: string;
|
|
1532
|
+
activeCellId?: number;
|
|
1533
|
+
sqref?: string;
|
|
1534
|
+
}
|
|
1535
|
+
interface CustomSheetViewOptions {
|
|
1536
|
+
guid: string;
|
|
1537
|
+
scale?: number;
|
|
1538
|
+
showPageBreaks?: boolean;
|
|
1539
|
+
showFormulas?: boolean;
|
|
1540
|
+
showGridLines?: boolean;
|
|
1541
|
+
showRowColHeaders?: boolean;
|
|
1542
|
+
outlineSymbols?: boolean;
|
|
1543
|
+
zeroValues?: boolean;
|
|
1544
|
+
fitToPage?: boolean;
|
|
1545
|
+
printArea?: boolean;
|
|
1546
|
+
filter?: boolean;
|
|
1547
|
+
showAutoFilter?: boolean;
|
|
1548
|
+
hiddenRows?: boolean;
|
|
1549
|
+
hiddenColumns?: boolean;
|
|
1550
|
+
state?: "visible" | "hidden" | "veryHidden";
|
|
1551
|
+
filterUnique?: boolean;
|
|
1552
|
+
view?: "normal" | "pageBreakPreview" | "pageLayout";
|
|
1553
|
+
}
|
|
1554
|
+
interface CellWatchOptions {
|
|
1555
|
+
r: string;
|
|
1556
|
+
}
|
|
1557
|
+
interface DataConsolidateOptions {
|
|
1558
|
+
function?: "average" | "count" | "countNums" | "max" | "min" | "product" | "stdDev" | "stdDevp" | "sum" | "var" | "varp";
|
|
1559
|
+
topLabels?: boolean;
|
|
1560
|
+
leftLabels?: boolean;
|
|
1561
|
+
startLabels?: boolean;
|
|
1562
|
+
link?: boolean;
|
|
1563
|
+
refs?: string[];
|
|
1564
|
+
}
|
|
1565
|
+
interface DrawingHfOptions {
|
|
1566
|
+
rId: string;
|
|
1567
|
+
lho?: number;
|
|
1568
|
+
lhe?: number;
|
|
1569
|
+
lhf?: number;
|
|
1570
|
+
cho?: number;
|
|
1571
|
+
che?: number;
|
|
1572
|
+
chf?: number;
|
|
1573
|
+
rho?: number;
|
|
1574
|
+
rhe?: number;
|
|
1575
|
+
rhf?: number;
|
|
1576
|
+
lfo?: number;
|
|
1577
|
+
lfe?: number;
|
|
1578
|
+
lff?: number;
|
|
1579
|
+
cfo?: number;
|
|
1580
|
+
cfe?: number;
|
|
1581
|
+
cff?: number;
|
|
1582
|
+
rfo?: number;
|
|
1583
|
+
rfe?: number;
|
|
1584
|
+
rff?: number;
|
|
1585
|
+
}
|
|
1586
|
+
interface WorksheetOptions {
|
|
1587
|
+
name?: string;
|
|
1588
|
+
rows?: RowOptions[];
|
|
1589
|
+
columns?: ColumnOptions[];
|
|
1590
|
+
mergeCells?: MergeCellOptions[];
|
|
1591
|
+
freezePanes?: FreezePaneOptions;
|
|
1592
|
+
protection?: SheetProtectionOptions;
|
|
1593
|
+
protectedRanges?: ProtectedRangeOptions[];
|
|
1594
|
+
scenarios?: ScenarioOptions;
|
|
1595
|
+
autoFilter?: string | AutoFilterOptions;
|
|
1596
|
+
images?: WorksheetImageOptions[];
|
|
1597
|
+
charts?: WorksheetChartOptions[];
|
|
1598
|
+
dataValidations?: DataValidationOptions[];
|
|
1599
|
+
dataValidationsDisablePrompts?: boolean;
|
|
1600
|
+
conditionalFormats?: ConditionalFormatOptions[];
|
|
1601
|
+
hyperlinks?: HyperlinkOptions[];
|
|
1602
|
+
comments?: CommentOptions[];
|
|
1603
|
+
headerFooter?: HeaderFooterOptions;
|
|
1604
|
+
pageSetup?: PageSetupOptions;
|
|
1605
|
+
tabColor?: TabColorOptions;
|
|
1606
|
+
sheetView?: SheetViewOptions;
|
|
1607
|
+
pivotTables?: PivotTableOptions[];
|
|
1608
|
+
tables?: TableOptions[];
|
|
1609
|
+
ignoredErrors?: IgnoredErrorOptions[];
|
|
1610
|
+
phoneticPr?: PhoneticPrOptions;
|
|
1611
|
+
backgroundImage?: SheetBackgroundImageOptions;
|
|
1612
|
+
printOptions?: PrintOptions;
|
|
1613
|
+
sheetFormatPr?: SheetFormatPrOptions;
|
|
1614
|
+
sheetPr?: SheetPrOptions;
|
|
1615
|
+
rowBreaks?: PageBreakOptions[];
|
|
1616
|
+
colBreaks?: PageBreakOptions[];
|
|
1617
|
+
customSheetViews?: CustomSheetViewOptions[];
|
|
1618
|
+
cellWatches?: CellWatchOptions[];
|
|
1619
|
+
dataConsolidate?: DataConsolidateOptions;
|
|
1620
|
+
oleSize?: string;
|
|
1621
|
+
drawingHF?: DrawingHfOptions;
|
|
1622
|
+
legacyDrawingHF?: string;
|
|
1623
|
+
selection?: SelectionOptions;
|
|
1624
|
+
sheetCalcPr?: SheetCalcPrOptions;
|
|
1625
|
+
ext?: string;
|
|
1626
|
+
controls?: ControlOptions[];
|
|
1627
|
+
customProperties?: CustomPropertyOptions[];
|
|
1628
|
+
oleObjects?: OleObjectOptions[];
|
|
1629
|
+
webPublishItems?: WebPublishItemOptions[];
|
|
1630
|
+
}
|
|
1631
|
+
interface SheetCalcPrOptions {
|
|
1632
|
+
fullCalcOnLoad?: boolean;
|
|
1633
|
+
}
|
|
1634
|
+
interface ControlOptions {
|
|
1635
|
+
shapeId: number;
|
|
1636
|
+
rId: string;
|
|
1637
|
+
name?: string;
|
|
1638
|
+
locked?: boolean;
|
|
1639
|
+
uiObject?: boolean;
|
|
1640
|
+
recalcAlways?: boolean;
|
|
1641
|
+
linkedCell?: string;
|
|
1642
|
+
listFillRange?: string;
|
|
1643
|
+
cf?: string;
|
|
1644
|
+
}
|
|
1645
|
+
interface CustomPropertyOptions {
|
|
1646
|
+
name: string;
|
|
1647
|
+
rId: string;
|
|
1648
|
+
}
|
|
1649
|
+
interface OleObjectOptions {
|
|
1650
|
+
progId?: string;
|
|
1651
|
+
dvAspect?: "DVASPECT_CONTENT" | "DVASPECT_ICON";
|
|
1652
|
+
link?: string;
|
|
1653
|
+
oleUpdate?: "OLEUPDATE_ALWAYS" | "OLEUPDATE_ONCALL";
|
|
1654
|
+
autoLoad?: boolean;
|
|
1655
|
+
shapeId: number;
|
|
1656
|
+
rId?: string;
|
|
1657
|
+
objectPr?: OleObjectPrOptions;
|
|
1658
|
+
}
|
|
1659
|
+
interface OleObjectPrOptions {
|
|
1660
|
+
locked?: boolean;
|
|
1661
|
+
defaultSize?: boolean;
|
|
1662
|
+
print?: boolean;
|
|
1663
|
+
disabled?: boolean;
|
|
1664
|
+
uiObject?: boolean;
|
|
1665
|
+
autoFill?: boolean;
|
|
1666
|
+
autoLine?: boolean;
|
|
1667
|
+
autoPict?: boolean;
|
|
1668
|
+
macro?: string;
|
|
1669
|
+
altText?: string;
|
|
1670
|
+
dde?: boolean;
|
|
1671
|
+
rId?: string;
|
|
1672
|
+
}
|
|
1673
|
+
interface WebPublishItemOptions {
|
|
1674
|
+
id: number;
|
|
1675
|
+
divId: string;
|
|
1676
|
+
sourceType: "sheet" | "printArea" | "autoFilter" | "range" | "chart" | "pivotTable" | "query" | "label";
|
|
1677
|
+
sourceRef?: string;
|
|
1678
|
+
sourceObject?: string;
|
|
1679
|
+
destinationFile: string;
|
|
1680
|
+
title?: string;
|
|
1681
|
+
autoRepublish?: boolean;
|
|
1682
|
+
}
|
|
1683
|
+
interface WorksheetContext {
|
|
1684
|
+
sharedStrings?: SharedStrings;
|
|
1685
|
+
styles?: Styles;
|
|
1686
|
+
}
|
|
1687
|
+
declare const worksheetDesc: CustomDescriptor<WorksheetOptions>;
|
|
1688
|
+
declare function stringifyWorksheet(opts: WorksheetOptions, ctx: WorksheetContext): string;
|
|
1689
|
+
//#endregion
|
|
1690
|
+
export { OleLinkOptions as $, TableColumnOptions as A, PivotCacheDefinitionOptions as B, SheetBackgroundImageOptions as C, VolTypeOptions as Ct, WorksheetOptions as D, buildExternalReferencesXml as Dt, WorksheetContext as E, WorkbookProtectionOptions as Et, tableDesc as F, PivotTableOptions as G, PivotFilterOptions as H, SharedStrings as I, ExternalDefinedNameOptions as J, ExternalBookOptions as K, SharedStringsDocOptions as L, TableStyleInfoOptions as M, TableType as N, stringifyWorksheet as O, buildTablePartsXml as Ot, TotalsRowFunction as P, OleItemOptions as Q, sharedStringsDesc as R, ScenarioOptions as S, PivotCacheReference as St, WorksheetChartOptions as T, WebPublishingOptions as Tt, PivotFilterType as U, PivotDataField as V, PivotSourceData as W, ExternalRowOptions as X, ExternalLinkOptions as Y, ExternalSheetDataOptions as Z, PhoneticPrOptions as _, stylesDesc as _t, ColumnOptions as a, ChartsheetPageSetup as at, ScenarioCellOptions as b, FileRecoveryPrOptions as bt, ConditionalFormatRule as c, AlignmentOptions as ct, FormulaOptions as d, DxfOptions as dt, externalLinkDesc as et, FreezePaneOptions as f, FillOptions as ft, MergeCellOptions as g, StylesDocOptions as gt, IgnoredErrorOptions as h, Styles as ht, ColorScaleOptions as i, ChartsheetPageMargins as it, TableOptions as j, worksheetDesc as k, workbookDesc as kt, DataBarOptions as l, BorderOptions as lt, IconSetType as m, StyleOptions as mt, CfvoOptions as n, ChartsheetHeaderFooterOptions as nt, CommentOptions as o, ChartsheetProtectionOptions as ot, IconSetOptions as p, FontOptions as pt, ExternalCellOptions as q, CfvoType as r, ChartsheetOptions as rt, ConditionalFormatOptions as s, chartsheetDesc as st, CellOptions as t, ChartsheetDescriptorOptions as tt, DataValidationOptions as u, BorderSideOptions as ut, ProtectedRangeOptions as v, CorePropertiesOptions as vt, SheetProtectionOptions as w, WebPublishObjectOptions as wt, ScenarioDefinition as x, FileSharingOptions as xt, RowOptions as y, CustomWorkbookViewOptions as yt, ConsolidateFunction as z };
|
|
1691
|
+
//# sourceMappingURL=worksheet-BbJpRvw2.d.mts.map
|