@office-open/xlsx 0.10.14 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -16
- package/dist/index.d.mts +2777 -443
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +10268 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -28
- package/dist/chart.d.mts +0 -1
- package/dist/chart.mjs +0 -2
- package/dist/comments-Bvfeh76o.mjs +0 -1744
- package/dist/comments-Bvfeh76o.mjs.map +0 -1
- package/dist/context-CSCfAIfV.mjs +0 -4106
- package/dist/context-CSCfAIfV.mjs.map +0 -1
- package/dist/drawingml.d.mts +0 -1
- package/dist/drawingml.mjs +0 -2
- package/dist/file-Clpwutq2.d.mts +0 -589
- package/dist/file-Clpwutq2.d.mts.map +0 -1
- package/dist/generate-2S1-U1mL.mjs +0 -842
- package/dist/generate-2S1-U1mL.mjs.map +0 -1
- package/dist/generate.d.mts +0 -10
- package/dist/generate.d.mts.map +0 -1
- package/dist/generate.mjs +0 -2
- package/dist/parse.d.mts +0 -27
- package/dist/parse.d.mts.map +0 -1
- package/dist/parse.mjs +0 -316
- package/dist/parse.mjs.map +0 -1
- package/dist/patch.d.mts +0 -29
- package/dist/patch.d.mts.map +0 -1
- package/dist/patch.mjs +0 -460
- package/dist/patch.mjs.map +0 -1
- package/dist/smartart.d.mts +0 -1
- package/dist/smartart.mjs +0 -2
- package/dist/worksheet-C9CP2B97.d.mts +0 -1438
- package/dist/worksheet-C9CP2B97.d.mts.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,225 +1,476 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as ChartsheetProtectionOptions, B as buildExternalReferencesXml, C as OleLinkOptions, D as ChartsheetOptions, E as ChartsheetHeaderFooterOptions, F as FileRecoveryPropertiesOptions, H as workbookDesc, I as FileSharingOptions, L as PivotCacheReference, M as CalcChainOptions, N as calcChainDesc, O as ChartsheetPageMargins, P as CustomWorkbookViewOptions, R as WebPublishingOptions, S as OleItemOptions, T as ChartsheetDescriptorOptions, V as buildTablePartsXml, _ as ExternalCellOptions, a as RevisionEntry, b as ExternalRowOptions, c as RevisionHeadersOptions, d as RevisionMoveOptions, f as RevisionRowColumnOptions, g as ExternalBookOptions, h as pivotCacheRecordsDesc, i as RevisionDefinedNameOptions, j as chartsheetDesc, k as ChartsheetPageSetup, l as RevisionInsertSheetOptions, m as pivotCacheDefDesc, n as RevisionCellChangeOptions, o as RevisionFormattingOptions, p as PivotCacheDefDescriptorOptions, r as RevisionCommentOptions, s as RevisionHeaderEntry, t as WorkbookOptions, u as RevisionLogOptions, v as ExternalDefinedNameOptions, w as externalLinkDesc, x as ExternalSheetDataOptions, y as ExternalLinkOptions, z as WorkbookProtectionOptions } from "./file-Clpwutq2.mjs";
|
|
3
|
-
import { generateWorkbook, generateWorkbookStream, generateWorkbookSync } from "./generate.mjs";
|
|
4
|
-
import { XlsxDocument, XlsxPartRefs, parseWorkbook, parseXlsx } from "./parse.mjs";
|
|
5
|
-
import { Patch, PatchWorkbookOptions, ScalarValue, patchWorkbook } from "./patch.mjs";
|
|
1
|
+
import { AppPropertiesOptions, BaseConnectorOptions, BaseGroupOptions, BaseMediaEntry, BasePatchOptions, BasePictureOptions, ChartCollection, ChartSpaceOptions, CompressionOptions, CorePropertiesOptions, CorePropertiesOptions as CorePropertiesOptions$1, CustomPropertyOptions, DataType, Media, OutputByType, OutputByType as OutputByType$1, OutputType, OutputType as OutputType$1, PackerOptions, PackerOptions as PackerOptions$1, ParsedArchive, PositiveUniversalMeasure, RelationshipType, Relationships, UniversalMeasure, XmlifyedFile, Zippable } from "@office-open/core";
|
|
6
2
|
import { Element } from "@office-open/xml";
|
|
7
|
-
import {
|
|
8
|
-
import { createThemeXml } from "@office-open/core/theme";
|
|
9
|
-
import { CustomDescriptor, ReadContext, WriteContext } from "@office-open/core/descriptor";
|
|
3
|
+
import { GroupTransform2DOptions, NonVisualDrawingPropertiesOptions, ShapePropertiesOptions, TextBodyOptions } from "@office-open/core/drawing";
|
|
4
|
+
import { ThemeOptions, createThemeXml } from "@office-open/core/theme";
|
|
5
|
+
import { CustomDescriptor, HyperlinkTarget, ReadContext, WriteContext } from "@office-open/core/descriptor";
|
|
10
6
|
|
|
11
|
-
//#region src/parts/
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
//#region src/parts/styles/styles.d.ts
|
|
8
|
+
declare class Styles {
|
|
9
|
+
private fonts;
|
|
10
|
+
private fontKeys;
|
|
11
|
+
private fills;
|
|
12
|
+
private fillKeys;
|
|
13
|
+
private borders;
|
|
14
|
+
private borderKeys;
|
|
15
|
+
private customNumFmts;
|
|
16
|
+
private nextCustomNumFmtId;
|
|
17
|
+
private cellXfs;
|
|
18
|
+
private cellXfKeys;
|
|
19
|
+
private cellStyleXfs;
|
|
20
|
+
private dxfs;
|
|
21
|
+
private colors?;
|
|
22
|
+
private tableStyles?;
|
|
23
|
+
private customCellStyles?;
|
|
24
|
+
private styleExtensions?;
|
|
25
|
+
constructor();
|
|
26
|
+
register(opts: StyleOptions): number;
|
|
27
|
+
registerDxf(opts: DxfOptions): number;
|
|
28
|
+
setColors(opts: ColorsOptions): void;
|
|
29
|
+
setTableStyles(styles: CustomTableStyleOptions[]): void;
|
|
30
|
+
setExtensions(extensions: StyleExtensionOptions[]): void;
|
|
31
|
+
setCustomCellStyles(styles: CustomCellStyleOptions[]): void;
|
|
32
|
+
setCellStyleXfs(entries: CellStyleXfOptions[]): void;
|
|
33
|
+
toDescriptorOptions(): StylesState;
|
|
34
|
+
private registerFont;
|
|
35
|
+
private registerFill;
|
|
36
|
+
private registerBorder;
|
|
37
|
+
private registerNumFmt;
|
|
38
|
+
private cellXfKey;
|
|
39
|
+
serialize(): string;
|
|
40
|
+
private fontXmlStr;
|
|
41
|
+
private borderXmlStr;
|
|
42
|
+
private alignmentXmlStr;
|
|
43
|
+
private protectionXmlStr;
|
|
14
44
|
}
|
|
15
|
-
declare const commentsDesc: CustomDescriptor<CommentsDocOptions>;
|
|
16
|
-
declare const vmlNotesDesc: CustomDescriptor<CommentsDocOptions>;
|
|
17
45
|
//#endregion
|
|
18
|
-
//#region src/parts/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
toCol?: number;
|
|
37
|
-
toRow?: number;
|
|
38
|
-
toColOffset?: number | UniversalMeasure;
|
|
39
|
-
toRowOffset?: number | UniversalMeasure;
|
|
40
|
-
rId: string;
|
|
41
|
-
anchorType?: AnchorType;
|
|
42
|
-
editAs?: EditAsType;
|
|
43
|
-
absoluteX?: number | UniversalMeasure;
|
|
44
|
-
absoluteY?: number | UniversalMeasure;
|
|
45
|
-
extentCx?: number | UniversalMeasure;
|
|
46
|
-
extentCy?: number | UniversalMeasure;
|
|
47
|
-
locksWithSheet?: boolean;
|
|
48
|
-
printsWithSheet?: boolean;
|
|
46
|
+
//#region src/parts/styles/types.d.ts
|
|
47
|
+
interface FontOptions {
|
|
48
|
+
bold?: boolean;
|
|
49
|
+
italic?: boolean;
|
|
50
|
+
underline?: boolean;
|
|
51
|
+
strike?: boolean;
|
|
52
|
+
size?: number;
|
|
53
|
+
color?: string;
|
|
54
|
+
autoColor?: boolean;
|
|
55
|
+
font?: string;
|
|
56
|
+
charset?: number;
|
|
57
|
+
family?: number;
|
|
58
|
+
condense?: boolean;
|
|
59
|
+
extend?: boolean;
|
|
60
|
+
vertAlign?: "superscript" | "subscript" | "baseline";
|
|
61
|
+
scheme?: "major" | "minor" | "none";
|
|
62
|
+
shadow?: boolean;
|
|
63
|
+
outline?: boolean;
|
|
49
64
|
}
|
|
50
|
-
interface
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
row: number;
|
|
54
|
-
rowOffset?: number | UniversalMeasure;
|
|
55
|
-
rId: string;
|
|
56
|
-
locksWithSheet?: boolean;
|
|
57
|
-
printsWithSheet?: boolean;
|
|
65
|
+
interface CellGradientStopOptions {
|
|
66
|
+
position: number;
|
|
67
|
+
color: string;
|
|
58
68
|
}
|
|
59
|
-
interface
|
|
60
|
-
|
|
61
|
-
|
|
69
|
+
interface CellFillOptions {
|
|
70
|
+
type?: "solid" | "pattern" | "gradient";
|
|
71
|
+
color?: string;
|
|
72
|
+
patternType?: string;
|
|
73
|
+
bgColor?: string;
|
|
74
|
+
colorIndexed?: number;
|
|
75
|
+
stops?: CellGradientStopOptions[];
|
|
76
|
+
gradientType?: "linear" | "path";
|
|
77
|
+
gradientDegree?: number;
|
|
78
|
+
gradientLeft?: number;
|
|
79
|
+
gradientRight?: number;
|
|
80
|
+
gradientTop?: number;
|
|
81
|
+
gradientBottom?: number;
|
|
82
|
+
}
|
|
83
|
+
interface BorderOptions {
|
|
84
|
+
style?: "none" | "thin" | "medium" | "dashed" | "dotted" | "thick" | "double" | "hair" | "mediumDashed" | "dashDot" | "mediumDashDot" | "dashDotDot" | "mediumDashDotDot" | "slantDashDot";
|
|
85
|
+
color?: string;
|
|
86
|
+
}
|
|
87
|
+
interface BorderSideOptions {
|
|
88
|
+
top?: BorderOptions;
|
|
89
|
+
bottom?: BorderOptions;
|
|
90
|
+
left?: BorderOptions;
|
|
91
|
+
right?: BorderOptions;
|
|
92
|
+
diagonal?: BorderOptions;
|
|
93
|
+
diagonalUp?: boolean;
|
|
94
|
+
diagonalDown?: boolean;
|
|
95
|
+
start?: BorderOptions;
|
|
96
|
+
end?: BorderOptions;
|
|
97
|
+
vertical?: BorderOptions;
|
|
98
|
+
horizontal?: BorderOptions;
|
|
99
|
+
}
|
|
100
|
+
interface AlignmentOptions {
|
|
101
|
+
horizontal?: "general" | "left" | "center" | "right" | "fill" | "justify" | "centerContinuous" | "distributed";
|
|
102
|
+
vertical?: "top" | "center" | "bottom" | "justify" | "distributed";
|
|
103
|
+
wrapText?: boolean;
|
|
104
|
+
textRotation?: number;
|
|
105
|
+
indent?: number;
|
|
106
|
+
relativeIndent?: number;
|
|
107
|
+
justifyLastLine?: boolean;
|
|
108
|
+
shrinkToFit?: boolean;
|
|
109
|
+
readingOrder?: number;
|
|
110
|
+
}
|
|
111
|
+
interface StyleOptions {
|
|
112
|
+
font?: FontOptions;
|
|
113
|
+
fill?: CellFillOptions;
|
|
114
|
+
border?: BorderSideOptions;
|
|
115
|
+
numFmt?: string;
|
|
116
|
+
alignment?: AlignmentOptions;
|
|
117
|
+
quotePrefix?: boolean;
|
|
118
|
+
pivotButton?: boolean;
|
|
119
|
+
applyProtection?: boolean;
|
|
120
|
+
protection?: CellProtectionOptions;
|
|
121
|
+
}
|
|
122
|
+
interface CellProtectionOptions {
|
|
123
|
+
locked?: boolean;
|
|
124
|
+
hidden?: boolean;
|
|
125
|
+
}
|
|
126
|
+
interface IndexedColorOptions {
|
|
127
|
+
rgb: string;
|
|
128
|
+
}
|
|
129
|
+
interface ColorsOptions {
|
|
130
|
+
indexedColors?: IndexedColorOptions[];
|
|
131
|
+
mruColors?: string[];
|
|
132
|
+
}
|
|
133
|
+
interface DxfOptions {
|
|
134
|
+
font?: FontOptions;
|
|
135
|
+
fill?: CellFillOptions;
|
|
136
|
+
border?: BorderSideOptions;
|
|
137
|
+
numFmt?: string;
|
|
138
|
+
}
|
|
139
|
+
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";
|
|
140
|
+
interface TableStyleElementOptions {
|
|
141
|
+
type: TableStyleElementType;
|
|
142
|
+
dxfId?: number;
|
|
143
|
+
button?: boolean;
|
|
144
|
+
}
|
|
145
|
+
interface StyleExtensionOptions {
|
|
146
|
+
uri: string;
|
|
147
|
+
content?: string;
|
|
148
|
+
}
|
|
149
|
+
interface CustomTableStyleOptions {
|
|
150
|
+
name: string;
|
|
151
|
+
pivot?: boolean;
|
|
152
|
+
table?: boolean;
|
|
153
|
+
elements?: TableStyleElementOptions[];
|
|
154
|
+
}
|
|
155
|
+
interface CustomCellStyleOptions {
|
|
156
|
+
name: string;
|
|
157
|
+
xfId: number;
|
|
158
|
+
builtinId?: number;
|
|
159
|
+
customBuiltin?: boolean;
|
|
160
|
+
iLevel?: number;
|
|
161
|
+
hidden?: boolean;
|
|
162
|
+
}
|
|
163
|
+
interface CellXfEntry {
|
|
164
|
+
fontId: number;
|
|
165
|
+
fillId: number;
|
|
166
|
+
borderId: number;
|
|
167
|
+
numFmtId: number;
|
|
168
|
+
alignment?: AlignmentOptions;
|
|
169
|
+
quotePrefix?: boolean;
|
|
170
|
+
pivotButton?: boolean;
|
|
171
|
+
applyProtection?: boolean;
|
|
172
|
+
protection?: CellProtectionOptions;
|
|
173
|
+
}
|
|
174
|
+
interface CellStyleXfOptions {
|
|
175
|
+
font?: FontOptions;
|
|
176
|
+
fill?: CellFillOptions;
|
|
177
|
+
border?: BorderSideOptions;
|
|
178
|
+
numFmt?: string;
|
|
179
|
+
alignment?: AlignmentOptions;
|
|
180
|
+
protection?: CellProtectionOptions;
|
|
181
|
+
quotePrefix?: boolean;
|
|
182
|
+
pivotButton?: boolean;
|
|
183
|
+
applyNumberFormat?: boolean;
|
|
184
|
+
applyFont?: boolean;
|
|
185
|
+
applyFill?: boolean;
|
|
186
|
+
applyBorder?: boolean;
|
|
187
|
+
applyAlignment?: boolean;
|
|
188
|
+
applyProtection?: boolean;
|
|
189
|
+
}
|
|
190
|
+
interface StylesState {
|
|
191
|
+
customNumFmts: ReadonlyMap<string, number>;
|
|
192
|
+
fonts: FontOptions[];
|
|
193
|
+
fills: CellFillOptions[];
|
|
194
|
+
borders: BorderSideOptions[];
|
|
195
|
+
cellXfs: CellXfEntry[];
|
|
196
|
+
dxfs: DxfOptions[];
|
|
197
|
+
colors?: ColorsOptions;
|
|
198
|
+
tableStyles?: CustomTableStyleOptions[];
|
|
199
|
+
customCellStyles?: CustomCellStyleOptions[];
|
|
200
|
+
styleExtensions?: StyleExtensionOptions[];
|
|
201
|
+
}
|
|
202
|
+
interface IndexedXfEntry {
|
|
203
|
+
fontId?: number;
|
|
204
|
+
fillId?: number;
|
|
205
|
+
borderId?: number;
|
|
206
|
+
numFmtId?: number;
|
|
207
|
+
alignment?: AlignmentOptions;
|
|
208
|
+
protection?: CellProtectionOptions;
|
|
209
|
+
quotePrefix?: boolean;
|
|
210
|
+
pivotButton?: boolean;
|
|
211
|
+
}
|
|
212
|
+
interface TableStylesInfo {
|
|
213
|
+
count?: number;
|
|
214
|
+
defaultTableStyle?: string;
|
|
215
|
+
defaultPivotStyle?: string;
|
|
216
|
+
tableStyles?: CustomTableStyleOptions[];
|
|
217
|
+
}
|
|
218
|
+
interface StylesParseResult {
|
|
219
|
+
customNumFmtById?: Map<number, string>;
|
|
220
|
+
fonts?: FontOptions[];
|
|
221
|
+
fills?: CellFillOptions[];
|
|
222
|
+
borders?: BorderSideOptions[];
|
|
223
|
+
cellStyleXfs?: CellStyleXfOptions[];
|
|
224
|
+
cellXfs?: IndexedXfEntry[];
|
|
225
|
+
customCellStyles?: CustomCellStyleOptions[];
|
|
226
|
+
dxfs?: DxfOptions[];
|
|
227
|
+
tableStylesInfo?: TableStylesInfo;
|
|
228
|
+
colors?: ColorsOptions;
|
|
229
|
+
styleExtensions?: StyleExtensionOptions[];
|
|
230
|
+
}
|
|
231
|
+
interface StylesDocOptions {
|
|
232
|
+
styles: Styles;
|
|
62
233
|
}
|
|
63
|
-
declare const drawingDesc: CustomDescriptor<DrawingOptions>;
|
|
64
234
|
//#endregion
|
|
65
|
-
//#region src/parts/
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
235
|
+
//#region src/parts/styles/descriptor.d.ts
|
|
236
|
+
declare const stylesDesc: CustomDescriptor<StylesDocOptions, WriteContext, StylesParseResult>;
|
|
237
|
+
//#endregion
|
|
238
|
+
//#region src/parts/workbook/types.d.ts
|
|
239
|
+
interface SheetDefinition {
|
|
240
|
+
name: string;
|
|
241
|
+
sheetId: number;
|
|
242
|
+
rId: string;
|
|
243
|
+
state?: "visible" | "hidden" | "veryHidden";
|
|
244
|
+
}
|
|
245
|
+
interface PivotCacheReference {
|
|
69
246
|
cacheId: number;
|
|
247
|
+
rId: string;
|
|
70
248
|
}
|
|
71
|
-
interface
|
|
72
|
-
|
|
73
|
-
showAll?: boolean;
|
|
74
|
-
dataField?: boolean;
|
|
75
|
-
hierarchy?: string;
|
|
76
|
-
dragToRow?: boolean;
|
|
77
|
-
dragToCol?: boolean;
|
|
78
|
-
dragToPage?: boolean;
|
|
79
|
-
dragToData?: boolean;
|
|
80
|
-
dragOff?: boolean;
|
|
81
|
-
showDropDowns?: boolean;
|
|
82
|
-
insertBlankRow?: boolean;
|
|
83
|
-
showPropCell?: boolean;
|
|
84
|
-
showPropTip?: boolean;
|
|
85
|
-
showPropAsCaption?: boolean;
|
|
86
|
-
compact?: boolean;
|
|
87
|
-
outline?: boolean;
|
|
88
|
-
subtotalTop?: boolean;
|
|
89
|
-
includeNewItemsInFilter?: boolean;
|
|
249
|
+
interface TablePartReference {
|
|
250
|
+
rId: string;
|
|
90
251
|
}
|
|
91
|
-
interface
|
|
92
|
-
name
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
252
|
+
interface CustomWorkbookViewOptions {
|
|
253
|
+
name: string;
|
|
254
|
+
guid: string;
|
|
255
|
+
windowWidth: number;
|
|
256
|
+
windowHeight: number;
|
|
257
|
+
activeSheetId: number;
|
|
258
|
+
xWindow?: number;
|
|
259
|
+
yWindow?: number;
|
|
260
|
+
showFormulaBar?: boolean;
|
|
261
|
+
showStatusbar?: boolean;
|
|
262
|
+
showHorizontalScroll?: boolean;
|
|
263
|
+
showVerticalScroll?: boolean;
|
|
264
|
+
showSheetTabs?: boolean;
|
|
265
|
+
tabRatio?: number;
|
|
266
|
+
visibility?: "visible" | "hidden" | "veryHidden";
|
|
267
|
+
includeHiddenRowCol?: boolean;
|
|
268
|
+
includePrintSettings?: boolean;
|
|
269
|
+
personalView?: boolean;
|
|
270
|
+
maximized?: boolean;
|
|
271
|
+
minimized?: boolean;
|
|
272
|
+
autoUpdate?: boolean;
|
|
273
|
+
mergeInterval?: number;
|
|
274
|
+
changesSavedWin?: boolean;
|
|
275
|
+
onlySync?: boolean;
|
|
276
|
+
showComments?: string;
|
|
99
277
|
}
|
|
100
|
-
interface
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
278
|
+
interface WorkbookProtectionOptions {
|
|
279
|
+
lockStructure?: boolean;
|
|
280
|
+
lockWindows?: boolean;
|
|
281
|
+
lockRevision?: boolean;
|
|
282
|
+
workbookPassword?: string;
|
|
283
|
+
workbookAlgorithmName?: string;
|
|
284
|
+
workbookHashValue?: string;
|
|
285
|
+
workbookSaltValue?: string;
|
|
286
|
+
workbookSpinCount?: number;
|
|
287
|
+
revisionsPassword?: string;
|
|
288
|
+
revisionsAlgorithmName?: string;
|
|
289
|
+
revisionsHashValue?: string;
|
|
290
|
+
revisionsSaltValue?: string;
|
|
291
|
+
revisionsSpinCount?: number;
|
|
292
|
+
workbookPasswordCharacterSet?: string;
|
|
293
|
+
revisionsPasswordCharacterSet?: string;
|
|
104
294
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
295
|
+
type WorkbookConformance = "strict" | "transitional";
|
|
296
|
+
interface FileRecoveryPropertiesOptions {
|
|
297
|
+
autoRecover?: boolean;
|
|
298
|
+
crashSave?: boolean;
|
|
299
|
+
dataExtractLoad?: boolean;
|
|
300
|
+
repairLoad?: boolean;
|
|
109
301
|
}
|
|
110
|
-
interface
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
302
|
+
interface WebPublishingOptions {
|
|
303
|
+
css?: boolean;
|
|
304
|
+
thicket?: boolean;
|
|
305
|
+
longFileNames?: boolean;
|
|
306
|
+
vml?: boolean;
|
|
307
|
+
allowPng?: boolean;
|
|
308
|
+
targetScreenSize?: string;
|
|
309
|
+
dpi?: number;
|
|
310
|
+
codePage?: number;
|
|
311
|
+
characterSet?: string;
|
|
115
312
|
}
|
|
116
|
-
interface
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
dragToData?: boolean;
|
|
125
|
-
dragOff?: boolean;
|
|
126
|
-
includeNewItemsInFilter?: boolean;
|
|
127
|
-
caption?: string;
|
|
313
|
+
interface FileSharingOptions {
|
|
314
|
+
readOnlyRecommended?: boolean;
|
|
315
|
+
userName?: string;
|
|
316
|
+
reservationPassword?: string;
|
|
317
|
+
algorithmName?: string;
|
|
318
|
+
hashValue?: string;
|
|
319
|
+
saltValue?: string;
|
|
320
|
+
spinCount?: number;
|
|
128
321
|
}
|
|
129
|
-
interface
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
322
|
+
interface WorkbookPropertiesOptions {
|
|
323
|
+
date1904?: boolean;
|
|
324
|
+
defaultThemeVersion?: number;
|
|
325
|
+
showObjects?: string;
|
|
326
|
+
hidePivotFieldList?: boolean;
|
|
327
|
+
allowRefreshQuery?: boolean;
|
|
328
|
+
filterPrivacy?: boolean;
|
|
329
|
+
backupFile?: boolean;
|
|
330
|
+
codeName?: string;
|
|
331
|
+
showBorderUnselectedTables?: boolean;
|
|
332
|
+
promptedSolutions?: boolean;
|
|
333
|
+
showInkAnnotation?: boolean;
|
|
334
|
+
saveExternalLinkValues?: boolean;
|
|
335
|
+
updateLinks?: string;
|
|
336
|
+
showPivotChartFilter?: boolean;
|
|
337
|
+
publishItems?: boolean;
|
|
338
|
+
checkCompatibility?: boolean;
|
|
339
|
+
autoCompressPictures?: boolean;
|
|
340
|
+
refreshAllConnections?: boolean;
|
|
135
341
|
}
|
|
136
|
-
interface
|
|
137
|
-
|
|
342
|
+
interface VolTypeOptions {
|
|
343
|
+
type?: "realTimeData" | "olapFunctions";
|
|
344
|
+
mains?: VolMainOptions[];
|
|
138
345
|
}
|
|
139
|
-
interface
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
pivotArea?: Partial<PivotAreaOptions>;
|
|
346
|
+
interface VolMainOptions {
|
|
347
|
+
first: string;
|
|
348
|
+
topics?: VolTopicOptions[];
|
|
143
349
|
}
|
|
144
|
-
interface
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
parent?: string;
|
|
150
|
-
solveOrder?: number;
|
|
151
|
-
set?: boolean;
|
|
350
|
+
interface VolTopicOptions {
|
|
351
|
+
value: string;
|
|
352
|
+
valueType?: string;
|
|
353
|
+
stringTopics?: string[];
|
|
354
|
+
refs?: VolTopicRefOptions[];
|
|
152
355
|
}
|
|
153
|
-
interface
|
|
356
|
+
interface VolTopicRefOptions {
|
|
357
|
+
reference: string;
|
|
358
|
+
sheetIndex: number;
|
|
359
|
+
}
|
|
360
|
+
interface WebPublishObjectOptions {
|
|
361
|
+
rId: string;
|
|
362
|
+
destinationFile?: string;
|
|
363
|
+
autoRepublish?: boolean;
|
|
364
|
+
title?: string;
|
|
365
|
+
sourceObject?: string;
|
|
366
|
+
}
|
|
367
|
+
interface CalculationPropertiesOptions {
|
|
368
|
+
calcMode?: string;
|
|
369
|
+
calcId?: number;
|
|
370
|
+
fullCalcOnLoad?: boolean;
|
|
371
|
+
calcOnSave?: boolean;
|
|
372
|
+
forceFullCalc?: boolean;
|
|
373
|
+
concurrentCalc?: boolean;
|
|
374
|
+
concurrentManualCount?: number;
|
|
375
|
+
iterate?: boolean;
|
|
376
|
+
iterateCount?: number;
|
|
377
|
+
iterateDelta?: number;
|
|
378
|
+
refMode?: string;
|
|
379
|
+
fullPrecision?: boolean;
|
|
380
|
+
calcCompleted?: boolean;
|
|
381
|
+
}
|
|
382
|
+
interface WorkbookViewOptions {
|
|
383
|
+
activeTab?: number;
|
|
384
|
+
autoFilterDateGrouping?: boolean;
|
|
385
|
+
firstSheet?: number;
|
|
386
|
+
showHorizontalScroll?: boolean;
|
|
387
|
+
showSheetTabs?: boolean;
|
|
388
|
+
showVerticalScroll?: boolean;
|
|
389
|
+
tabRatio?: number;
|
|
390
|
+
visibility?: "visible" | "hidden" | "veryHidden";
|
|
391
|
+
windowWidth?: number;
|
|
392
|
+
windowHeight?: number;
|
|
393
|
+
xWindow?: number;
|
|
394
|
+
yWindow?: number;
|
|
395
|
+
}
|
|
396
|
+
interface DefinedNameOptions {
|
|
397
|
+
value: string;
|
|
398
|
+
name: string;
|
|
399
|
+
comment?: string;
|
|
400
|
+
customMenu?: string;
|
|
401
|
+
description?: string;
|
|
402
|
+
help?: string;
|
|
403
|
+
statusBar?: string;
|
|
404
|
+
localSheetId?: number;
|
|
405
|
+
hidden?: boolean;
|
|
406
|
+
function?: boolean;
|
|
407
|
+
vbProcedure?: boolean;
|
|
408
|
+
xlm?: boolean;
|
|
409
|
+
functionGroupId?: number;
|
|
410
|
+
shortcutKey?: string;
|
|
411
|
+
publishToServer?: boolean;
|
|
412
|
+
workbookParameter?: boolean;
|
|
413
|
+
}
|
|
414
|
+
interface FileVersionOptions {
|
|
415
|
+
appName?: string;
|
|
416
|
+
lastEdited?: number;
|
|
417
|
+
lowestEdited?: number;
|
|
418
|
+
rupBuild?: number;
|
|
419
|
+
}
|
|
420
|
+
type SmartTagShow = "all" | "none" | "noIndicator";
|
|
421
|
+
interface SmartTagPropertiesOptions {
|
|
422
|
+
embed?: boolean;
|
|
423
|
+
show?: SmartTagShow;
|
|
424
|
+
}
|
|
425
|
+
interface SmartTagTypeOptions {
|
|
426
|
+
namespaceUri?: string;
|
|
154
427
|
name?: string;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
printDrill?: boolean;
|
|
177
|
-
showMemberPropertyTips?: boolean;
|
|
178
|
-
showDataTips?: boolean;
|
|
179
|
-
enableWizard?: boolean;
|
|
180
|
-
enableDrill?: boolean;
|
|
181
|
-
enableFieldProperties?: boolean;
|
|
182
|
-
pageWrap?: number;
|
|
183
|
-
pageOverThenDown?: boolean;
|
|
184
|
-
subtotalHiddenItems?: boolean;
|
|
185
|
-
fieldPrintTitles?: boolean;
|
|
186
|
-
mergeItem?: boolean;
|
|
187
|
-
showDropZones?: boolean;
|
|
188
|
-
published?: boolean;
|
|
189
|
-
gridDropZones?: boolean;
|
|
190
|
-
multipleFieldFilters?: boolean;
|
|
191
|
-
rowHeaderCaption?: string;
|
|
192
|
-
colHeaderCaption?: string;
|
|
193
|
-
fieldListSortAscending?: boolean;
|
|
194
|
-
mdxSubqueries?: boolean;
|
|
195
|
-
customListSort?: boolean;
|
|
196
|
-
asteriskTotals?: boolean;
|
|
197
|
-
dataPosition?: number;
|
|
198
|
-
immersive?: boolean;
|
|
199
|
-
vacatedStyle?: string;
|
|
200
|
-
dataCaption?: string;
|
|
201
|
-
location?: string;
|
|
202
|
-
locationRowPageCount?: number;
|
|
203
|
-
locationColPageCount?: number;
|
|
204
|
-
pivotFields?: PivotFieldParseResult[];
|
|
205
|
-
dataFields?: DataFieldParseResult[];
|
|
206
|
-
rowFields?: number[];
|
|
207
|
-
colFields?: number[];
|
|
208
|
-
pageFields?: PageFieldParseResult[];
|
|
209
|
-
formats?: PivotFormatParseResult[];
|
|
210
|
-
chartFormats?: ChartFormatParseResult[];
|
|
211
|
-
pivotHierarchies?: PivotHierarchyParseResult[];
|
|
212
|
-
filters?: PivotFilterParseResult[];
|
|
213
|
-
rowHierarchiesUsage?: HierarchyUsageParseResult[];
|
|
214
|
-
colHierarchiesUsage?: HierarchyUsageParseResult[];
|
|
215
|
-
calculatedItems?: CalculatedItemParseResult[];
|
|
216
|
-
calculatedMembers?: CalculatedMemberParseResult[];
|
|
217
|
-
style?: string;
|
|
428
|
+
url?: string;
|
|
429
|
+
}
|
|
430
|
+
interface WorkbookDescriptorOptions {
|
|
431
|
+
fileVersion?: FileVersionOptions;
|
|
432
|
+
sheets: SheetDefinition[];
|
|
433
|
+
pivotCaches?: PivotCacheReference[];
|
|
434
|
+
protection?: WorkbookProtectionOptions;
|
|
435
|
+
customViews?: CustomWorkbookViewOptions[];
|
|
436
|
+
smartTagPr?: SmartTagPropertiesOptions;
|
|
437
|
+
smartTagTypes?: SmartTagTypeOptions[];
|
|
438
|
+
fileRecoveryPr?: FileRecoveryPropertiesOptions;
|
|
439
|
+
functionGroups?: string[];
|
|
440
|
+
webPublishing?: WebPublishingOptions;
|
|
441
|
+
fileSharing?: FileSharingOptions;
|
|
442
|
+
workbookPr?: WorkbookPropertiesOptions;
|
|
443
|
+
calcPr?: CalculationPropertiesOptions;
|
|
444
|
+
bookView?: WorkbookViewOptions;
|
|
445
|
+
volTypes?: VolTypeOptions[];
|
|
446
|
+
webPublishObjects?: WebPublishObjectOptions[];
|
|
447
|
+
definedNames?: DefinedNameOptions[];
|
|
448
|
+
conformance?: WorkbookConformance;
|
|
218
449
|
}
|
|
219
|
-
declare const pivotTableDesc: CustomDescriptor<PivotTableDescriptorOptions, WriteContext, PivotTableParseResult>;
|
|
220
450
|
//#endregion
|
|
221
|
-
//#region src/parts/
|
|
222
|
-
|
|
451
|
+
//#region src/parts/workbook/descriptor.d.ts
|
|
452
|
+
declare const workbookDesc: CustomDescriptor<WorkbookDescriptorOptions>;
|
|
453
|
+
//#endregion
|
|
454
|
+
//#region src/parts/workbook/stringify.d.ts
|
|
455
|
+
declare function buildTablePartsXml(tableParts: TablePartReference[]): string;
|
|
456
|
+
declare function buildExternalReferencesXml(refs: {
|
|
457
|
+
rId: string;
|
|
458
|
+
}[]): string;
|
|
459
|
+
//#endregion
|
|
460
|
+
//#region src/parts/calc-chain.d.ts
|
|
461
|
+
interface CalcCell {
|
|
462
|
+
reference: string;
|
|
463
|
+
sheetIndex: number;
|
|
464
|
+
array?: boolean;
|
|
465
|
+
childChain?: boolean;
|
|
466
|
+
}
|
|
467
|
+
interface CalcChainOptions {
|
|
468
|
+
cells: CalcCell[];
|
|
469
|
+
}
|
|
470
|
+
declare const calcChainDesc: CustomDescriptor<CalcChainOptions>;
|
|
471
|
+
//#endregion
|
|
472
|
+
//#region src/parts/chartsheet.d.ts
|
|
473
|
+
interface ChartsheetPageMargins {
|
|
223
474
|
left?: number | UniversalMeasure;
|
|
224
475
|
right?: number | UniversalMeasure;
|
|
225
476
|
top?: number | UniversalMeasure;
|
|
@@ -227,89 +478,251 @@ interface DialogsheetPageMargins {
|
|
|
227
478
|
header?: number | UniversalMeasure;
|
|
228
479
|
footer?: number | UniversalMeasure;
|
|
229
480
|
}
|
|
230
|
-
interface
|
|
481
|
+
interface ChartsheetPageSetup {
|
|
231
482
|
paperSize?: number;
|
|
232
483
|
orientation?: string;
|
|
233
484
|
horizontalDpi?: number;
|
|
234
485
|
verticalDpi?: number;
|
|
235
486
|
copies?: number;
|
|
236
487
|
}
|
|
237
|
-
interface
|
|
488
|
+
interface ChartsheetProtectionOptions {
|
|
238
489
|
content?: boolean;
|
|
239
490
|
objects?: boolean;
|
|
240
|
-
scenarios?: boolean;
|
|
241
491
|
}
|
|
242
|
-
interface
|
|
492
|
+
interface ChartsheetHeaderFooterOptions {
|
|
493
|
+
differentFirst?: boolean;
|
|
494
|
+
differentOddEven?: boolean;
|
|
495
|
+
oddHeader?: string;
|
|
496
|
+
oddFooter?: string;
|
|
497
|
+
}
|
|
498
|
+
interface ChartsheetOptions {
|
|
243
499
|
name?: string;
|
|
244
500
|
tabColor?: string;
|
|
245
|
-
pageMargins?:
|
|
246
|
-
pageSetup?:
|
|
247
|
-
|
|
501
|
+
pageMargins?: ChartsheetPageMargins;
|
|
502
|
+
pageSetup?: ChartsheetPageSetup;
|
|
503
|
+
headerFooter?: ChartsheetHeaderFooterOptions;
|
|
504
|
+
sheetProtection?: ChartsheetProtectionOptions;
|
|
505
|
+
published?: boolean;
|
|
506
|
+
codeName?: string;
|
|
507
|
+
zoomToFit?: boolean;
|
|
508
|
+
chart: {
|
|
509
|
+
type: string;
|
|
510
|
+
title?: string;
|
|
511
|
+
categories?: string[];
|
|
512
|
+
series: {
|
|
513
|
+
name: string;
|
|
514
|
+
values: number[];
|
|
515
|
+
}[];
|
|
516
|
+
};
|
|
248
517
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
interface QueryTableDeletedFieldOptions {
|
|
252
|
-
name: string;
|
|
518
|
+
interface ChartsheetDescriptorOptions extends ChartsheetOptions {
|
|
519
|
+
drawingRId: string;
|
|
253
520
|
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
borderFormatting?: boolean;
|
|
263
|
-
width?: number;
|
|
264
|
-
clipped?: boolean;
|
|
265
|
-
dataBound?: boolean;
|
|
521
|
+
declare const chartsheetDesc: CustomDescriptor<ChartsheetDescriptorOptions>;
|
|
522
|
+
//#endregion
|
|
523
|
+
//#region src/parts/connection.d.ts
|
|
524
|
+
interface DatabasePropertiesOptions {
|
|
525
|
+
connection: string;
|
|
526
|
+
command?: string;
|
|
527
|
+
serverCommand?: string;
|
|
528
|
+
commandType?: number;
|
|
266
529
|
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
530
|
+
type WebTableSelection = string | number | null;
|
|
531
|
+
interface WebPropertiesOptions {
|
|
532
|
+
url?: string;
|
|
533
|
+
xml?: boolean;
|
|
534
|
+
sourceData?: boolean;
|
|
535
|
+
parsePre?: boolean;
|
|
536
|
+
consecutive?: boolean;
|
|
537
|
+
firstRow?: boolean;
|
|
538
|
+
xl97?: boolean;
|
|
539
|
+
textDates?: boolean;
|
|
540
|
+
xl2000?: boolean;
|
|
541
|
+
post?: string;
|
|
542
|
+
htmlTables?: boolean;
|
|
543
|
+
htmlFormat?: string;
|
|
544
|
+
editPage?: string;
|
|
545
|
+
tables?: WebTableSelection[];
|
|
282
546
|
}
|
|
283
|
-
interface
|
|
547
|
+
interface ConnectionTextFieldOptions {
|
|
548
|
+
type?: string;
|
|
549
|
+
position?: number;
|
|
550
|
+
}
|
|
551
|
+
interface TextPropertiesOptions {
|
|
552
|
+
prompt?: boolean;
|
|
553
|
+
fileType?: "mac" | "win" | "dos";
|
|
554
|
+
codePage?: number;
|
|
555
|
+
characterSet?: string;
|
|
556
|
+
firstRow?: number;
|
|
557
|
+
sourceFile?: string;
|
|
558
|
+
delimited?: boolean;
|
|
559
|
+
delimiter?: string;
|
|
560
|
+
decimal?: string;
|
|
561
|
+
thousands?: string;
|
|
562
|
+
tab?: boolean;
|
|
563
|
+
space?: boolean;
|
|
564
|
+
comma?: boolean;
|
|
565
|
+
semicolon?: boolean;
|
|
566
|
+
consecutive?: boolean;
|
|
567
|
+
qualifier?: "doubleQuote" | "singleQuote" | "none";
|
|
568
|
+
textFields?: ConnectionTextFieldOptions[];
|
|
569
|
+
}
|
|
570
|
+
interface ParameterOptions {
|
|
284
571
|
name?: string;
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
572
|
+
sqlType?: number;
|
|
573
|
+
parameterType?: "prompt" | "value" | "cell";
|
|
574
|
+
refreshOnChange?: boolean;
|
|
575
|
+
prompt?: string;
|
|
576
|
+
boolean?: boolean;
|
|
577
|
+
double?: number;
|
|
578
|
+
integer?: number;
|
|
579
|
+
string?: string;
|
|
580
|
+
cell?: string;
|
|
581
|
+
}
|
|
582
|
+
interface ConnectionOptions {
|
|
583
|
+
id: number;
|
|
584
|
+
name?: string;
|
|
585
|
+
type?: number;
|
|
586
|
+
refreshedVersion: number;
|
|
587
|
+
minRefreshableVersion?: number;
|
|
289
588
|
refreshOnLoad?: boolean;
|
|
290
589
|
backgroundRefresh?: boolean;
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
590
|
+
saveData?: boolean;
|
|
591
|
+
savePassword?: boolean;
|
|
592
|
+
description?: string;
|
|
593
|
+
credentials?: string;
|
|
594
|
+
interval?: number;
|
|
595
|
+
keepAlive?: boolean;
|
|
596
|
+
new?: boolean;
|
|
597
|
+
deleted?: boolean;
|
|
598
|
+
sourceFile?: string;
|
|
599
|
+
odcFile?: string;
|
|
600
|
+
onlyUseConnectionFile?: boolean;
|
|
601
|
+
reconnectionMethod?: number;
|
|
602
|
+
singleSignOnId?: string;
|
|
603
|
+
dbPr?: DatabasePropertiesOptions;
|
|
604
|
+
webPr?: WebPropertiesOptions;
|
|
605
|
+
textPr?: TextPropertiesOptions;
|
|
606
|
+
parameters?: ParameterOptions[];
|
|
607
|
+
}
|
|
608
|
+
interface ConnectionsOptions {
|
|
609
|
+
connections: ConnectionOptions[];
|
|
610
|
+
}
|
|
611
|
+
declare const connectionsDesc: CustomDescriptor<ConnectionsOptions>;
|
|
612
|
+
//#endregion
|
|
613
|
+
//#region src/parts/dialogsheet.d.ts
|
|
614
|
+
interface DialogsheetPageMargins {
|
|
615
|
+
left?: number | UniversalMeasure;
|
|
616
|
+
right?: number | UniversalMeasure;
|
|
617
|
+
top?: number | UniversalMeasure;
|
|
618
|
+
bottom?: number | UniversalMeasure;
|
|
619
|
+
header?: number | UniversalMeasure;
|
|
620
|
+
footer?: number | UniversalMeasure;
|
|
621
|
+
}
|
|
622
|
+
interface DialogsheetPageSetup {
|
|
623
|
+
paperSize?: number;
|
|
624
|
+
orientation?: string;
|
|
625
|
+
horizontalDpi?: number;
|
|
626
|
+
verticalDpi?: number;
|
|
627
|
+
copies?: number;
|
|
628
|
+
}
|
|
629
|
+
interface DialogsheetProtectionOptions {
|
|
630
|
+
content?: boolean;
|
|
631
|
+
objects?: boolean;
|
|
632
|
+
scenarios?: boolean;
|
|
633
|
+
}
|
|
634
|
+
interface DialogsheetOptions {
|
|
635
|
+
name?: string;
|
|
636
|
+
tabColor?: string;
|
|
637
|
+
published?: boolean;
|
|
638
|
+
codeName?: string;
|
|
639
|
+
pageMargins?: DialogsheetPageMargins;
|
|
640
|
+
pageSetup?: DialogsheetPageSetup;
|
|
641
|
+
sheetProtection?: DialogsheetProtectionOptions;
|
|
642
|
+
extLst?: string;
|
|
643
|
+
}
|
|
644
|
+
declare const dialogsheetDesc: CustomDescriptor<DialogsheetOptions>;
|
|
645
|
+
//#endregion
|
|
646
|
+
//#region src/parts/external-link.d.ts
|
|
647
|
+
interface ExternalDefinedNameOptions {
|
|
648
|
+
name: string;
|
|
649
|
+
refersTo?: string;
|
|
650
|
+
sheetId?: number;
|
|
651
|
+
publishToServer?: boolean;
|
|
652
|
+
vbProcedure?: boolean;
|
|
653
|
+
workbookParameter?: boolean;
|
|
654
|
+
xlm?: boolean;
|
|
655
|
+
}
|
|
656
|
+
interface ExternalCellOptions {
|
|
657
|
+
reference: string;
|
|
658
|
+
type?: string;
|
|
659
|
+
value?: string;
|
|
660
|
+
valueMetadataIndex?: number;
|
|
661
|
+
}
|
|
662
|
+
interface ExternalBookOptions {
|
|
663
|
+
target?: string;
|
|
664
|
+
sheetNames?: string[];
|
|
665
|
+
definedNames?: ExternalDefinedNameOptions[];
|
|
666
|
+
sheetDataSet?: ExternalSheetDataOptions[];
|
|
300
667
|
}
|
|
668
|
+
interface ExternalRowOptions {
|
|
669
|
+
rowNumber: number;
|
|
670
|
+
cells?: ExternalCellOptions[];
|
|
671
|
+
}
|
|
672
|
+
interface ExternalSheetDataOptions {
|
|
673
|
+
sheetId: number;
|
|
674
|
+
refreshError?: boolean;
|
|
675
|
+
rows?: ExternalRowOptions[];
|
|
676
|
+
}
|
|
677
|
+
interface ExternalLinkOptions {
|
|
678
|
+
externalBook?: ExternalBookOptions;
|
|
679
|
+
bookRId?: string;
|
|
680
|
+
ddeLink?: DdeLinkOptions;
|
|
681
|
+
oleLink?: OleLinkOptions;
|
|
682
|
+
oleRId?: string;
|
|
683
|
+
}
|
|
684
|
+
interface DdeValueOptions {
|
|
685
|
+
type?: "nil" | "b" | "n" | "e" | "str";
|
|
686
|
+
value: string;
|
|
687
|
+
}
|
|
688
|
+
interface DdeValuesOptions {
|
|
689
|
+
rows?: number;
|
|
690
|
+
cols?: number;
|
|
691
|
+
values: DdeValueOptions[];
|
|
692
|
+
}
|
|
693
|
+
interface DdeItemOptions {
|
|
694
|
+
name?: string;
|
|
695
|
+
ole?: boolean;
|
|
696
|
+
advise?: boolean;
|
|
697
|
+
preferPic?: boolean;
|
|
698
|
+
values?: DdeValuesOptions;
|
|
699
|
+
}
|
|
700
|
+
interface DdeLinkOptions {
|
|
701
|
+
ddeService: string;
|
|
702
|
+
ddeTopic: string;
|
|
703
|
+
ddeItems?: DdeItemOptions[];
|
|
704
|
+
}
|
|
705
|
+
interface OleItemOptions {
|
|
706
|
+
name: string;
|
|
707
|
+
icon?: boolean;
|
|
708
|
+
advise?: boolean;
|
|
709
|
+
preferPic?: boolean;
|
|
710
|
+
}
|
|
711
|
+
interface OleLinkOptions {
|
|
712
|
+
progId?: string;
|
|
713
|
+
oleItems?: OleItemOptions[];
|
|
714
|
+
}
|
|
715
|
+
declare const externalLinkDesc: CustomDescriptor<ExternalLinkOptions>;
|
|
301
716
|
//#endregion
|
|
302
717
|
//#region src/parts/metadata.d.ts
|
|
303
718
|
interface MetadataTypeOptions {
|
|
304
719
|
name: string;
|
|
305
|
-
|
|
306
|
-
minSupportedVersion?: number;
|
|
720
|
+
minSupportedVersion: number;
|
|
307
721
|
ghostRow?: boolean;
|
|
308
722
|
ghostCol?: boolean;
|
|
309
723
|
edit?: boolean;
|
|
310
724
|
delete?: boolean;
|
|
311
725
|
copy?: boolean;
|
|
312
|
-
paste?: boolean;
|
|
313
726
|
pasteAll?: boolean;
|
|
314
727
|
pasteFormulas?: boolean;
|
|
315
728
|
pasteValues?: boolean;
|
|
@@ -335,250 +748,2166 @@ interface MetadataTypeOptions {
|
|
|
335
748
|
interface MetadataStringOptions {
|
|
336
749
|
value: string;
|
|
337
750
|
}
|
|
338
|
-
interface
|
|
339
|
-
|
|
340
|
-
|
|
751
|
+
interface MetadataStringIndexOptions {
|
|
752
|
+
index: number;
|
|
753
|
+
show?: boolean;
|
|
341
754
|
}
|
|
342
|
-
interface
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
755
|
+
interface MdxTupleOptions {
|
|
756
|
+
count?: number;
|
|
757
|
+
culture?: string;
|
|
758
|
+
styleIndex?: number;
|
|
759
|
+
formatIndex?: number;
|
|
760
|
+
backgroundColor?: string;
|
|
761
|
+
foregroundColor?: string;
|
|
762
|
+
italic?: boolean;
|
|
763
|
+
underline?: boolean;
|
|
764
|
+
strikethrough?: boolean;
|
|
765
|
+
bold?: boolean;
|
|
766
|
+
stringIndexes?: MetadataStringIndexOptions[];
|
|
767
|
+
}
|
|
768
|
+
interface MdxSetOptions {
|
|
769
|
+
namespaceCount: number;
|
|
770
|
+
count?: number;
|
|
771
|
+
order?: string;
|
|
772
|
+
stringIndexes?: MetadataStringIndexOptions[];
|
|
773
|
+
}
|
|
774
|
+
type MdxFunctionType = "m" | "v" | "s" | "c" | "r" | "p" | "k";
|
|
775
|
+
type MdxKpiProperty = "v" | "g" | "s" | "t" | "w" | "m";
|
|
776
|
+
interface MdxMemberPropOptions {
|
|
777
|
+
nameIndex: number;
|
|
778
|
+
namePairIndex: number;
|
|
779
|
+
}
|
|
780
|
+
interface MdxKpiOptions {
|
|
781
|
+
nameIndex: number;
|
|
782
|
+
namePairIndex: number;
|
|
783
|
+
property: MdxKpiProperty;
|
|
349
784
|
}
|
|
350
785
|
interface MdxOptions {
|
|
351
|
-
|
|
352
|
-
|
|
786
|
+
functionType: MdxFunctionType;
|
|
787
|
+
stringIndex: number;
|
|
353
788
|
tuple?: MdxTupleOptions;
|
|
354
789
|
set?: MdxSetOptions;
|
|
355
790
|
memberProp?: MdxMemberPropOptions;
|
|
356
791
|
kpi?: MdxKpiOptions;
|
|
357
792
|
}
|
|
358
|
-
interface
|
|
359
|
-
|
|
360
|
-
}
|
|
361
|
-
interface MdxSetOptions {
|
|
362
|
-
ns: number;
|
|
363
|
-
}
|
|
364
|
-
interface MdxMemberPropOptions {
|
|
365
|
-
n: number;
|
|
366
|
-
np: number;
|
|
793
|
+
interface FutureMetadataBlockOptions {
|
|
794
|
+
extLst?: string;
|
|
367
795
|
}
|
|
368
|
-
interface
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
p: string;
|
|
796
|
+
interface FutureMetadataOptions {
|
|
797
|
+
name: string;
|
|
798
|
+
blocks?: FutureMetadataBlockOptions[];
|
|
372
799
|
}
|
|
373
800
|
interface MetadataRecordOptions {
|
|
374
|
-
|
|
375
|
-
|
|
801
|
+
typeIndex: number;
|
|
802
|
+
valueIndex: number;
|
|
376
803
|
}
|
|
377
804
|
interface MetadataBlockOptions {
|
|
378
805
|
records?: MetadataRecordOptions[];
|
|
379
806
|
}
|
|
807
|
+
interface MetadataOptions {
|
|
808
|
+
types?: MetadataTypeOptions[];
|
|
809
|
+
strings?: MetadataStringOptions[];
|
|
810
|
+
mdx?: MdxOptions[];
|
|
811
|
+
futureMetadata?: FutureMetadataOptions[];
|
|
812
|
+
cellMetadata?: MetadataBlockOptions[];
|
|
813
|
+
valueMetadata?: MetadataBlockOptions[];
|
|
814
|
+
}
|
|
815
|
+
declare const metadataDesc: CustomDescriptor<MetadataOptions>;
|
|
380
816
|
//#endregion
|
|
381
|
-
//#region src/parts/
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
817
|
+
//#region src/parts/pivot/pivot-utils.d.ts
|
|
818
|
+
declare const ConsolidateFunction: {
|
|
819
|
+
readonly SUM: "sum";
|
|
820
|
+
readonly COUNT: "count";
|
|
821
|
+
readonly AVERAGE: "average";
|
|
822
|
+
readonly MAX: "max";
|
|
823
|
+
readonly MIN: "min";
|
|
824
|
+
readonly PRODUCT: "product";
|
|
825
|
+
readonly COUNT_NUMS: "countNums";
|
|
826
|
+
readonly STD_DEV: "stdDev";
|
|
827
|
+
readonly STD_DEV_P: "stdDevp";
|
|
828
|
+
readonly VAR: "var";
|
|
829
|
+
readonly VAR_P: "varp";
|
|
830
|
+
};
|
|
831
|
+
type ConsolidateFunction = (typeof ConsolidateFunction)[keyof typeof ConsolidateFunction];
|
|
832
|
+
interface PivotDataField {
|
|
833
|
+
field: string;
|
|
834
|
+
summarize?: ConsolidateFunction;
|
|
835
|
+
name?: string;
|
|
836
|
+
showDataAs?: string;
|
|
837
|
+
baseField?: number;
|
|
838
|
+
baseItem?: number;
|
|
839
|
+
sortByTupleItems?: number[];
|
|
387
840
|
}
|
|
388
|
-
interface
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
841
|
+
interface PivotFieldOverrideOptions {
|
|
842
|
+
field: string;
|
|
843
|
+
allDrilled?: boolean;
|
|
844
|
+
autoShow?: boolean;
|
|
845
|
+
countSubtotal?: boolean;
|
|
846
|
+
avgSubtotal?: boolean;
|
|
847
|
+
countASubtotal?: boolean;
|
|
848
|
+
maxSubtotal?: boolean;
|
|
849
|
+
minSubtotal?: boolean;
|
|
850
|
+
sumSubtotal?: boolean;
|
|
851
|
+
dataSourceSort?: boolean;
|
|
852
|
+
defaultAttributeDrillState?: boolean;
|
|
853
|
+
hiddenLevel?: boolean;
|
|
854
|
+
hideNewItems?: boolean;
|
|
855
|
+
insertBlankRow?: boolean;
|
|
856
|
+
insertPageBreak?: boolean;
|
|
857
|
+
itemPageCount?: boolean;
|
|
858
|
+
measureFilter?: boolean;
|
|
859
|
+
nonAutoSortDefault?: boolean;
|
|
860
|
+
productSubtotal?: boolean;
|
|
861
|
+
rankBy?: number;
|
|
862
|
+
serverField?: boolean;
|
|
863
|
+
showDropDowns?: boolean;
|
|
864
|
+
showPropAsCaption?: boolean;
|
|
865
|
+
showPropCell?: boolean;
|
|
866
|
+
showPropTip?: boolean;
|
|
867
|
+
stdDevPSubtotal?: boolean;
|
|
868
|
+
stdDevSubtotal?: boolean;
|
|
869
|
+
subtotalCaption?: string;
|
|
870
|
+
topAutoShow?: boolean;
|
|
871
|
+
uniqueMemberProperty?: boolean;
|
|
872
|
+
varPSubtotal?: boolean;
|
|
873
|
+
varSubtotal?: boolean;
|
|
874
|
+
defaultItemSd?: boolean;
|
|
403
875
|
}
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
876
|
+
declare const PivotFilterType: {
|
|
877
|
+
readonly UNKNOWN: "unknown";
|
|
878
|
+
readonly COUNT: "count";
|
|
879
|
+
readonly PERCENT: "percent";
|
|
880
|
+
readonly SUM: "sum";
|
|
881
|
+
readonly CAPTION_EQUAL: "captionEqual";
|
|
882
|
+
readonly CAPTION_NOT_EQUAL: "captionNotEqual";
|
|
883
|
+
readonly CAPTION_BEGINS_WITH: "captionBeginsWith";
|
|
884
|
+
readonly CAPTION_NOT_BEGINS_WITH: "captionNotBeginsWith";
|
|
885
|
+
readonly CAPTION_ENDS_WITH: "captionEndsWith";
|
|
886
|
+
readonly CAPTION_NOT_ENDS_WITH: "captionNotEndsWith";
|
|
887
|
+
readonly CAPTION_CONTAINS: "captionContains";
|
|
888
|
+
readonly CAPTION_NOT_CONTAINS: "captionNotContains";
|
|
889
|
+
readonly CAPTION_GREATER_THAN: "captionGreaterThan";
|
|
890
|
+
readonly CAPTION_GREATER_THAN_OR_EQUAL: "captionGreaterThanOrEqual";
|
|
891
|
+
readonly CAPTION_LESS_THAN: "captionLessThan";
|
|
892
|
+
readonly CAPTION_LESS_THAN_OR_EQUAL: "captionLessThanOrEqual";
|
|
893
|
+
readonly CAPTION_BETWEEN: "captionBetween";
|
|
894
|
+
readonly CAPTION_NOT_BETWEEN: "captionNotBetween";
|
|
895
|
+
readonly VALUE_EQUAL: "valueEqual";
|
|
896
|
+
readonly VALUE_NOT_EQUAL: "valueNotEqual";
|
|
897
|
+
readonly VALUE_GREATER_THAN: "valueGreaterThan";
|
|
898
|
+
readonly VALUE_GREATER_THAN_OR_EQUAL: "valueGreaterThanOrEqual";
|
|
899
|
+
readonly VALUE_LESS_THAN: "valueLessThan";
|
|
900
|
+
readonly VALUE_LESS_THAN_OR_EQUAL: "valueLessThanOrEqual";
|
|
901
|
+
readonly VALUE_BETWEEN: "valueBetween";
|
|
902
|
+
readonly VALUE_NOT_BETWEEN: "valueNotBetween";
|
|
903
|
+
readonly DATE_EQUAL: "dateEqual";
|
|
904
|
+
readonly DATE_NOT_EQUAL: "dateNotEqual";
|
|
905
|
+
readonly DATE_OLDER_THAN: "dateOlderThan";
|
|
906
|
+
readonly DATE_OLDER_THAN_OR_EQUAL: "dateOlderThanOrEqual";
|
|
907
|
+
readonly DATE_NEWER_THAN: "dateNewerThan";
|
|
908
|
+
readonly DATE_NEWER_THAN_OR_EQUAL: "dateNewerThanOrEqual";
|
|
909
|
+
readonly DATE_BETWEEN: "dateBetween";
|
|
910
|
+
readonly DATE_NOT_BETWEEN: "dateNotBetween";
|
|
911
|
+
readonly TOMORROW: "tomorrow";
|
|
912
|
+
readonly TODAY: "today";
|
|
913
|
+
readonly YESTERDAY: "yesterday";
|
|
914
|
+
readonly NEXT_WEEK: "nextWeek";
|
|
915
|
+
readonly THIS_WEEK: "thisWeek";
|
|
916
|
+
readonly LAST_WEEK: "lastWeek";
|
|
917
|
+
readonly NEXT_MONTH: "nextMonth";
|
|
918
|
+
readonly THIS_MONTH: "thisMonth";
|
|
919
|
+
readonly LAST_MONTH: "lastMonth";
|
|
920
|
+
readonly NEXT_QUARTER: "nextQuarter";
|
|
921
|
+
readonly THIS_QUARTER: "thisQuarter";
|
|
922
|
+
readonly LAST_QUARTER: "lastQuarter";
|
|
923
|
+
readonly NEXT_YEAR: "nextYear";
|
|
924
|
+
readonly THIS_YEAR: "thisYear";
|
|
925
|
+
readonly LAST_YEAR: "lastYear";
|
|
926
|
+
readonly YEAR_TO_DATE: "yearToDate";
|
|
927
|
+
readonly Q1: "Q1";
|
|
928
|
+
readonly Q2: "Q2";
|
|
929
|
+
readonly Q3: "Q3";
|
|
930
|
+
readonly Q4: "Q4";
|
|
931
|
+
readonly M1: "M1";
|
|
932
|
+
readonly M2: "M2";
|
|
933
|
+
readonly M3: "M3";
|
|
934
|
+
readonly M4: "M4";
|
|
935
|
+
readonly M5: "M5";
|
|
936
|
+
readonly M6: "M6";
|
|
937
|
+
readonly M7: "M7";
|
|
938
|
+
readonly M8: "M8";
|
|
939
|
+
readonly M9: "M9";
|
|
940
|
+
readonly M10: "M10";
|
|
941
|
+
readonly M11: "M11";
|
|
942
|
+
readonly M12: "M12";
|
|
943
|
+
};
|
|
944
|
+
type PivotFilterType = (typeof PivotFilterType)[keyof typeof PivotFilterType];
|
|
945
|
+
interface PivotFilterOptions {
|
|
946
|
+
fld: number;
|
|
947
|
+
type: PivotFilterType;
|
|
948
|
+
id: number;
|
|
949
|
+
mpFld?: number;
|
|
950
|
+
evalOrder?: number;
|
|
951
|
+
iMeasureHier?: number;
|
|
952
|
+
iMeasureFld?: number;
|
|
953
|
+
name?: string;
|
|
954
|
+
description?: string;
|
|
955
|
+
stringValue1?: string;
|
|
956
|
+
stringValue2?: string;
|
|
957
|
+
}
|
|
958
|
+
interface PivotTableOptions {
|
|
959
|
+
name?: string;
|
|
960
|
+
source: string;
|
|
961
|
+
sourceSheet?: string;
|
|
962
|
+
location?: string;
|
|
963
|
+
rows: string[];
|
|
964
|
+
columns?: string[];
|
|
965
|
+
data: PivotDataField[];
|
|
966
|
+
style?: string;
|
|
967
|
+
filters?: PivotFilterOptions[];
|
|
968
|
+
pages?: string[];
|
|
969
|
+
pageCaptions?: string[];
|
|
970
|
+
dataOnRows?: boolean;
|
|
971
|
+
grandTotalCaption?: string;
|
|
972
|
+
errorCaption?: string;
|
|
973
|
+
showError?: boolean;
|
|
974
|
+
missingCaption?: string;
|
|
975
|
+
showMissing?: boolean;
|
|
976
|
+
pageStyle?: string;
|
|
977
|
+
pivotTableStyle?: string;
|
|
978
|
+
tag?: string;
|
|
979
|
+
showItems?: boolean;
|
|
980
|
+
editData?: boolean;
|
|
981
|
+
disableFieldList?: boolean;
|
|
982
|
+
showCalcMbrs?: boolean;
|
|
983
|
+
visualTotals?: boolean;
|
|
984
|
+
showMultipleLabel?: boolean;
|
|
985
|
+
showDataDropDown?: boolean;
|
|
986
|
+
showDrill?: boolean;
|
|
987
|
+
printDrill?: boolean;
|
|
988
|
+
showMemberPropertyTips?: boolean;
|
|
989
|
+
showDataTips?: boolean;
|
|
990
|
+
enableWizard?: boolean;
|
|
991
|
+
enableDrill?: boolean;
|
|
992
|
+
enableFieldProperties?: boolean;
|
|
993
|
+
pageWrap?: number;
|
|
994
|
+
pageOverThenDown?: boolean;
|
|
995
|
+
subtotalHiddenItems?: boolean;
|
|
996
|
+
fieldPrintTitles?: boolean;
|
|
997
|
+
mergeItem?: boolean;
|
|
998
|
+
showDropZones?: boolean;
|
|
999
|
+
showEmptyRow?: boolean;
|
|
1000
|
+
showEmptyCol?: boolean;
|
|
1001
|
+
showHeaders?: boolean;
|
|
1002
|
+
published?: boolean;
|
|
1003
|
+
gridDropZones?: boolean;
|
|
1004
|
+
multipleFieldFilters?: boolean;
|
|
1005
|
+
rowHeaderCaption?: string;
|
|
1006
|
+
colHeaderCaption?: string;
|
|
1007
|
+
fieldListSortAscending?: boolean;
|
|
1008
|
+
mdxSubqueries?: boolean;
|
|
1009
|
+
customListSort?: boolean;
|
|
1010
|
+
asteriskTotals?: boolean;
|
|
1011
|
+
dataPosition?: number;
|
|
1012
|
+
immersive?: boolean;
|
|
1013
|
+
vacatedStyle?: string;
|
|
1014
|
+
calculatedItems?: CalculatedItemOptions[];
|
|
1015
|
+
calculatedMembers?: CalculatedMemberOptions[];
|
|
1016
|
+
pivotHierarchies?: PivotHierarchyOptions[];
|
|
1017
|
+
pivotConditionalFormats?: PivotConditionalFormatOptions[];
|
|
1018
|
+
chartFormats?: ChartFormatOptions[];
|
|
1019
|
+
chartFormat?: boolean;
|
|
1020
|
+
preserveFormatting?: boolean;
|
|
1021
|
+
pageFieldItems?: number[];
|
|
1022
|
+
autoSortScope?: PivotAreaOptions;
|
|
1023
|
+
memberProperties?: MemberPropertyOptions[];
|
|
1024
|
+
formats?: PivotFormatOptions[];
|
|
1025
|
+
rowHierarchiesUsage?: HierarchyUsageOptions[];
|
|
1026
|
+
colHierarchiesUsage?: HierarchyUsageOptions[];
|
|
1027
|
+
locationColPageCount?: number;
|
|
1028
|
+
locationRowPageCount?: number;
|
|
1029
|
+
fieldOverrides?: PivotFieldOverrideOptions[];
|
|
1030
|
+
}
|
|
1031
|
+
interface PivotFormatOptions {
|
|
1032
|
+
action?: "formatting" | "drill" | "formula" | "blank" | "subtotal" | "report";
|
|
1033
|
+
dxfId?: number;
|
|
1034
|
+
pivotArea: PivotAreaOptions;
|
|
1035
|
+
}
|
|
1036
|
+
interface CalculatedItemOptions {
|
|
1037
|
+
field?: number;
|
|
1038
|
+
formula?: string;
|
|
1039
|
+
pivotArea?: PivotAreaOptions;
|
|
1040
|
+
}
|
|
1041
|
+
interface CalculatedMemberOptions {
|
|
1042
|
+
name: string;
|
|
1043
|
+
mdx: string;
|
|
1044
|
+
memberName?: string;
|
|
1045
|
+
hierarchy?: string;
|
|
1046
|
+
parent?: string;
|
|
1047
|
+
solveOrder?: number;
|
|
1048
|
+
set?: boolean;
|
|
1049
|
+
}
|
|
1050
|
+
interface PivotHierarchyOptions {
|
|
1051
|
+
outline?: boolean;
|
|
1052
|
+
multipleItemSelectionAllowed?: boolean;
|
|
1053
|
+
subtotalTop?: boolean;
|
|
1054
|
+
showInFieldList?: boolean;
|
|
1055
|
+
dragToRow?: boolean;
|
|
1056
|
+
dragToCol?: boolean;
|
|
1057
|
+
dragToPage?: boolean;
|
|
1058
|
+
dragToData?: boolean;
|
|
1059
|
+
dragOff?: boolean;
|
|
1060
|
+
includeNewItemsInFilter?: boolean;
|
|
1061
|
+
caption?: string;
|
|
1062
|
+
members?: MemberOptions[];
|
|
1063
|
+
memberProperties?: MemberPropertyOptions[];
|
|
1064
|
+
}
|
|
1065
|
+
interface MemberOptions {
|
|
1066
|
+
name: string;
|
|
1067
|
+
level?: number;
|
|
1068
|
+
}
|
|
1069
|
+
interface MemberPropertyOptions {
|
|
1070
|
+
field: number;
|
|
1071
|
+
name?: string;
|
|
1072
|
+
showCell?: boolean;
|
|
1073
|
+
showTip?: boolean;
|
|
1074
|
+
showAsCaption?: boolean;
|
|
1075
|
+
nameLen?: number;
|
|
1076
|
+
pPos?: number;
|
|
1077
|
+
pLen?: number;
|
|
1078
|
+
}
|
|
1079
|
+
interface PivotAreaOptions {
|
|
1080
|
+
field?: number;
|
|
1081
|
+
type?: "none" | "normal" | "data" | "all" | "origin" | "button" | "topEnd" | "topRight";
|
|
1082
|
+
dataOnly?: boolean;
|
|
1083
|
+
labelOnly?: boolean;
|
|
1084
|
+
grandRow?: boolean;
|
|
1085
|
+
grandCol?: boolean;
|
|
1086
|
+
cacheIndex?: boolean;
|
|
1087
|
+
outline?: boolean;
|
|
1088
|
+
offset?: string;
|
|
1089
|
+
collapsedLevelsAreSubtotals?: boolean;
|
|
1090
|
+
axis?: "axisRow" | "axisCol" | "axisPage" | "axisValues";
|
|
1091
|
+
fieldPosition?: number;
|
|
1092
|
+
references?: PivotAreaReferenceOptions[];
|
|
1093
|
+
}
|
|
1094
|
+
interface PivotAreaReferenceOptions {
|
|
1095
|
+
field?: number;
|
|
1096
|
+
count?: number;
|
|
1097
|
+
selected?: boolean;
|
|
1098
|
+
byPosition?: boolean;
|
|
1099
|
+
relative?: boolean;
|
|
1100
|
+
defaultSubtotal?: boolean;
|
|
1101
|
+
sumSubtotal?: boolean;
|
|
1102
|
+
countASubtotal?: boolean;
|
|
1103
|
+
avgSubtotal?: boolean;
|
|
1104
|
+
maxSubtotal?: boolean;
|
|
1105
|
+
minSubtotal?: boolean;
|
|
1106
|
+
countSubtotal?: boolean;
|
|
1107
|
+
productSubtotal?: boolean;
|
|
1108
|
+
stdDevPSubtotal?: boolean;
|
|
1109
|
+
stdDevSubtotal?: boolean;
|
|
1110
|
+
varPSubtotal?: boolean;
|
|
1111
|
+
varSubtotal?: boolean;
|
|
1112
|
+
x?: number[];
|
|
1113
|
+
}
|
|
1114
|
+
interface PivotConditionalFormatOptions {
|
|
1115
|
+
scope?: "selection" | "data" | "field";
|
|
1116
|
+
type?: "none" | "all" | "row" | "column";
|
|
1117
|
+
priority: number;
|
|
1118
|
+
pivotAreas?: PivotAreaOptions[];
|
|
1119
|
+
}
|
|
1120
|
+
interface ChartFormatOptions {
|
|
1121
|
+
chart: number;
|
|
1122
|
+
format: number;
|
|
1123
|
+
series?: boolean;
|
|
1124
|
+
pivotArea?: PivotAreaOptions;
|
|
1125
|
+
}
|
|
1126
|
+
interface CacheHierarchyOptions {
|
|
1127
|
+
uniqueName: string;
|
|
1128
|
+
caption?: string;
|
|
1129
|
+
measure?: boolean;
|
|
1130
|
+
set?: boolean;
|
|
1131
|
+
parentSet?: number;
|
|
1132
|
+
iconSet?: number;
|
|
1133
|
+
attribute?: boolean;
|
|
1134
|
+
time?: boolean;
|
|
1135
|
+
keyAttribute?: boolean;
|
|
1136
|
+
defaultMemberUniqueName?: string;
|
|
1137
|
+
allUniqueName?: string;
|
|
1138
|
+
allCaption?: string;
|
|
1139
|
+
dimensionUniqueName?: string;
|
|
1140
|
+
displayFolder?: string;
|
|
1141
|
+
measureGroup?: string;
|
|
1142
|
+
measures?: boolean;
|
|
1143
|
+
count: number;
|
|
1144
|
+
oneField?: boolean;
|
|
1145
|
+
hidden?: boolean;
|
|
1146
|
+
memberValueDatatype?: "string" | "number" | "integer" | "boolean" | "error";
|
|
1147
|
+
unbalanced?: boolean;
|
|
1148
|
+
unbalancedGroup?: boolean;
|
|
1149
|
+
groupLevels?: GroupLevelOptions[];
|
|
1150
|
+
fieldsUsage?: FieldUsageOptions[];
|
|
1151
|
+
}
|
|
1152
|
+
interface KpiOptions {
|
|
1153
|
+
uniqueName: string;
|
|
1154
|
+
caption?: string;
|
|
1155
|
+
displayFolder?: string;
|
|
1156
|
+
measureGroup?: string;
|
|
1157
|
+
parent?: string;
|
|
1158
|
+
value: string;
|
|
1159
|
+
goal?: string;
|
|
1160
|
+
status?: string;
|
|
1161
|
+
trend?: string;
|
|
1162
|
+
weight?: string;
|
|
1163
|
+
time?: string;
|
|
1164
|
+
}
|
|
1165
|
+
interface MeasureGroupOptions {
|
|
1166
|
+
name: string;
|
|
1167
|
+
caption: string;
|
|
1168
|
+
}
|
|
1169
|
+
interface SetOptions {
|
|
1170
|
+
count?: number;
|
|
1171
|
+
maxRank: number;
|
|
1172
|
+
setDefinition: string;
|
|
1173
|
+
sortType?: "none" | "ascending" | "descending" | "ascendingAlpha" | "descendingAlpha" | "ascendingNatural" | "descendingNatural";
|
|
1174
|
+
queryFailed?: boolean;
|
|
1175
|
+
tpls?: TupleOptions[];
|
|
1176
|
+
sortByTuple?: TupleOptions[];
|
|
1177
|
+
}
|
|
1178
|
+
interface ServerFormatOptions {
|
|
1179
|
+
culture?: string;
|
|
1180
|
+
format?: string;
|
|
1181
|
+
}
|
|
1182
|
+
interface FieldGroupOptions {
|
|
1183
|
+
parent?: number;
|
|
1184
|
+
base?: number;
|
|
1185
|
+
rangePr?: RangePropertiesOptions;
|
|
1186
|
+
discretePr?: number[];
|
|
1187
|
+
groupItems?: string[];
|
|
1188
|
+
}
|
|
1189
|
+
interface RangePropertiesOptions {
|
|
1190
|
+
autoStart?: boolean;
|
|
1191
|
+
autoEnd?: boolean;
|
|
1192
|
+
groupBy?: "range" | "seconds" | "minutes" | "hours" | "days" | "months" | "quarters" | "years";
|
|
1193
|
+
startNum?: number;
|
|
1194
|
+
endNum?: number;
|
|
1195
|
+
startDate?: string;
|
|
1196
|
+
endDate?: string;
|
|
1197
|
+
groupInterval?: number;
|
|
1198
|
+
}
|
|
1199
|
+
interface PivotDimensionOptions {
|
|
1200
|
+
measure?: boolean;
|
|
1201
|
+
name: string;
|
|
1202
|
+
uniqueName: string;
|
|
1203
|
+
caption: string;
|
|
1204
|
+
}
|
|
1205
|
+
interface RangeSetOptions {
|
|
1206
|
+
pageFieldIndex1?: number;
|
|
1207
|
+
pageFieldIndex2?: number;
|
|
1208
|
+
pageFieldIndex3?: number;
|
|
1209
|
+
pageFieldIndex4?: number;
|
|
1210
|
+
ref?: string;
|
|
1211
|
+
name?: string;
|
|
1212
|
+
sheet?: string;
|
|
1213
|
+
rId?: string;
|
|
1214
|
+
}
|
|
1215
|
+
interface ConsolidationPageItemOptions {
|
|
1216
|
+
name: string;
|
|
1217
|
+
}
|
|
1218
|
+
interface ConsolidationPageOptions {
|
|
1219
|
+
items?: ConsolidationPageItemOptions[];
|
|
1220
|
+
}
|
|
1221
|
+
interface ConsolidationOptions {
|
|
1222
|
+
autoPage?: boolean;
|
|
1223
|
+
pages?: ConsolidationPageOptions[];
|
|
1224
|
+
rangeSets: RangeSetOptions[];
|
|
1225
|
+
}
|
|
1226
|
+
interface TupleCacheEntryOptions {
|
|
1227
|
+
type: "m" | "n" | "e" | "s";
|
|
1228
|
+
value?: number | string;
|
|
1229
|
+
captionIndex?: number;
|
|
1230
|
+
propertyIndex?: number;
|
|
1231
|
+
underline?: boolean;
|
|
1232
|
+
}
|
|
1233
|
+
interface GroupMemberOptions {
|
|
1234
|
+
uniqueName: string;
|
|
1235
|
+
group?: boolean;
|
|
1236
|
+
}
|
|
1237
|
+
interface LevelGroupOptions {
|
|
1238
|
+
name: string;
|
|
1239
|
+
uniqueName: string;
|
|
1240
|
+
caption: string;
|
|
1241
|
+
uniqueParent?: string;
|
|
1242
|
+
id?: number;
|
|
1243
|
+
members: GroupMemberOptions[];
|
|
1244
|
+
}
|
|
1245
|
+
interface GroupLevelOptions {
|
|
1246
|
+
uniqueName: string;
|
|
1247
|
+
caption: string;
|
|
1248
|
+
user?: boolean;
|
|
1249
|
+
customRollUp?: boolean;
|
|
1250
|
+
groups?: LevelGroupOptions[];
|
|
1251
|
+
}
|
|
1252
|
+
interface FieldUsageOptions {
|
|
1253
|
+
value: number;
|
|
1254
|
+
}
|
|
1255
|
+
interface HierarchyUsageOptions {
|
|
1256
|
+
hierarchyUsage: number;
|
|
1257
|
+
}
|
|
1258
|
+
interface QueryCacheEntryOptions {
|
|
1259
|
+
mdx: string;
|
|
1260
|
+
tpls?: TupleOptions[];
|
|
1261
|
+
}
|
|
1262
|
+
interface TupleOptions {
|
|
1263
|
+
items?: number[];
|
|
1264
|
+
}
|
|
1265
|
+
interface MpMapOptions {
|
|
1266
|
+
x: number;
|
|
1267
|
+
}
|
|
1268
|
+
interface MeasureDimensionMapOptions {
|
|
1269
|
+
measureGroup?: number;
|
|
1270
|
+
dimension?: number;
|
|
1271
|
+
}
|
|
1272
|
+
interface OLAPPropertiesOptions {
|
|
1273
|
+
local?: string;
|
|
1274
|
+
localConnection?: string;
|
|
1275
|
+
sendLocale?: boolean;
|
|
1276
|
+
rowDrillCount?: number;
|
|
1277
|
+
colDrillCount?: number;
|
|
1278
|
+
localRefresh?: boolean;
|
|
1279
|
+
serverFill?: boolean;
|
|
1280
|
+
serverNumberFormat?: boolean;
|
|
1281
|
+
serverFont?: boolean;
|
|
1282
|
+
serverFontColor?: boolean;
|
|
1283
|
+
}
|
|
1284
|
+
interface PivotSourceData {
|
|
1285
|
+
fieldNames: string[];
|
|
1286
|
+
records: (string | number | null | Date)[][];
|
|
1287
|
+
}
|
|
1288
|
+
interface CacheFieldExtraAttrs {
|
|
1289
|
+
databaseField?: boolean;
|
|
1290
|
+
level?: number;
|
|
1291
|
+
mappingCount?: number;
|
|
1292
|
+
memberPropertyField?: number;
|
|
1293
|
+
propertyName?: string;
|
|
1294
|
+
serverField?: boolean;
|
|
1295
|
+
uniqueList?: boolean;
|
|
1296
|
+
sqlType?: number;
|
|
1297
|
+
containsMixedTypes?: boolean;
|
|
1298
|
+
containsNonDate?: boolean;
|
|
1299
|
+
longText?: boolean;
|
|
1300
|
+
maxDate?: string;
|
|
1301
|
+
minDate?: string;
|
|
1302
|
+
}
|
|
1303
|
+
interface PivotCacheDefinitionOptions {
|
|
1304
|
+
invalid?: boolean;
|
|
1305
|
+
saveData?: boolean;
|
|
1306
|
+
optimizeMemory?: boolean;
|
|
1307
|
+
enableRefresh?: boolean;
|
|
1308
|
+
refreshedBy?: string;
|
|
1309
|
+
refreshedDate?: number;
|
|
1310
|
+
refreshedDateIso?: string;
|
|
1311
|
+
backgroundQuery?: boolean;
|
|
1312
|
+
missingItemsLimit?: number;
|
|
1313
|
+
upgradeOnRefresh?: boolean;
|
|
1314
|
+
supportSubquery?: boolean;
|
|
1315
|
+
supportAdvancedDrill?: boolean;
|
|
1316
|
+
refreshOnLoad?: boolean;
|
|
1317
|
+
tupleCache?: boolean;
|
|
1318
|
+
cacheHierarchies?: CacheHierarchyOptions[];
|
|
1319
|
+
kpis?: KpiOptions[];
|
|
1320
|
+
measureGroups?: MeasureGroupOptions[];
|
|
1321
|
+
dimensions?: PivotDimensionOptions[];
|
|
1322
|
+
sets?: SetOptions[];
|
|
1323
|
+
serverFormats?: ServerFormatOptions[];
|
|
1324
|
+
fieldGroups?: ReadonlyMap<number, FieldGroupOptions>;
|
|
1325
|
+
consolidation?: ConsolidationOptions;
|
|
1326
|
+
entries?: TupleCacheEntryOptions[];
|
|
1327
|
+
queryCache?: QueryCacheEntryOptions[];
|
|
1328
|
+
mpMaps?: MpMapOptions[];
|
|
1329
|
+
measureDimensionMaps?: MeasureDimensionMapOptions[];
|
|
1330
|
+
cacheFieldOverrides?: ReadonlyMap<number, CacheFieldExtraAttrs>;
|
|
1331
|
+
olapPr?: OLAPPropertiesOptions;
|
|
1332
|
+
}
|
|
1333
|
+
//#endregion
|
|
1334
|
+
//#region src/parts/pivot-cache.d.ts
|
|
1335
|
+
type PivotCacheRecordEntry = {
|
|
1336
|
+
type: "string";
|
|
1337
|
+
v: number;
|
|
1338
|
+
} | {
|
|
1339
|
+
type: "number";
|
|
1340
|
+
v: number;
|
|
1341
|
+
} | {
|
|
1342
|
+
type: "date";
|
|
1343
|
+
v: string;
|
|
1344
|
+
} | {
|
|
1345
|
+
type: "error";
|
|
1346
|
+
v: string;
|
|
1347
|
+
} | {
|
|
1348
|
+
type: "missing";
|
|
1349
|
+
};
|
|
1350
|
+
interface PivotCacheRecordsDescriptorOptions {
|
|
1351
|
+
sourceData: PivotSourceData;
|
|
1352
|
+
records?: PivotCacheRecordEntry[][];
|
|
1353
|
+
}
|
|
1354
|
+
interface PivotCacheDefDescriptorOptions {
|
|
1355
|
+
sourceRef: string;
|
|
1356
|
+
sourceSheet: string;
|
|
1357
|
+
sourceData: PivotSourceData;
|
|
1358
|
+
recordsRid: string;
|
|
1359
|
+
cacheDefOpts?: PivotCacheDefinitionOptions;
|
|
1360
|
+
}
|
|
1361
|
+
interface PivotCacheDefWorksheetSource {
|
|
1362
|
+
ref?: string;
|
|
1363
|
+
sheet?: string;
|
|
1364
|
+
}
|
|
1365
|
+
interface PivotCacheDefCacheField {
|
|
1366
|
+
name?: string;
|
|
1367
|
+
numFmtId?: number;
|
|
1368
|
+
sharedItems?: (string | number)[];
|
|
1369
|
+
}
|
|
1370
|
+
interface PivotCacheDefParseResult {
|
|
1371
|
+
invalid?: boolean;
|
|
1372
|
+
saveData?: boolean;
|
|
1373
|
+
optimizeMemory?: boolean;
|
|
1374
|
+
enableRefresh?: boolean;
|
|
1375
|
+
refreshedBy?: string;
|
|
1376
|
+
refreshedDate?: number;
|
|
1377
|
+
refreshedDateIso?: string;
|
|
1378
|
+
backgroundQuery?: boolean;
|
|
1379
|
+
missingItemsLimit?: number;
|
|
1380
|
+
upgradeOnRefresh?: boolean;
|
|
1381
|
+
supportSubquery?: boolean;
|
|
1382
|
+
supportAdvancedDrill?: boolean;
|
|
1383
|
+
refreshOnLoad?: boolean;
|
|
1384
|
+
tupleCache?: boolean;
|
|
1385
|
+
recordCount?: number;
|
|
1386
|
+
sourceType?: string;
|
|
1387
|
+
worksheetSource?: PivotCacheDefWorksheetSource;
|
|
1388
|
+
cacheFields?: PivotCacheDefCacheField[];
|
|
1389
|
+
}
|
|
1390
|
+
interface PivotCacheRecordsParseResult {
|
|
1391
|
+
records: PivotCacheRecordEntry[][];
|
|
1392
|
+
}
|
|
1393
|
+
declare const pivotCacheDefDesc: CustomDescriptor<PivotCacheDefDescriptorOptions, WriteContext, PivotCacheDefParseResult>;
|
|
1394
|
+
declare const pivotCacheRecordsDesc: CustomDescriptor<PivotCacheRecordsDescriptorOptions, WriteContext, PivotCacheRecordsParseResult>;
|
|
1395
|
+
//#endregion
|
|
1396
|
+
//#region src/parts/revision-log/types.d.ts
|
|
1397
|
+
type RowColumnAction = "insertRow" | "deleteRow" | "insertCol" | "deleteCol";
|
|
1398
|
+
type RevisionAction = "add" | "delete";
|
|
1399
|
+
interface RevisionHeaderEntry {
|
|
1400
|
+
guid: string;
|
|
1401
|
+
dateTime: string;
|
|
1402
|
+
userName: string;
|
|
1403
|
+
rId: string;
|
|
1404
|
+
maxSheetId: number;
|
|
1405
|
+
sheetIds: number[];
|
|
1406
|
+
reviewed?: number[];
|
|
1407
|
+
minRId?: number;
|
|
1408
|
+
maxRId?: number;
|
|
1409
|
+
}
|
|
1410
|
+
interface RevisionHeadersOptions {
|
|
1411
|
+
guid: string;
|
|
1412
|
+
headers: RevisionHeaderEntry[];
|
|
1413
|
+
lastGuid?: string;
|
|
1414
|
+
shared?: boolean;
|
|
1415
|
+
diskRevisions?: boolean;
|
|
1416
|
+
history?: boolean;
|
|
1417
|
+
trackRevisions?: boolean;
|
|
1418
|
+
exclusive?: boolean;
|
|
1419
|
+
revisionId?: number;
|
|
1420
|
+
version?: number;
|
|
1421
|
+
keepChangeHistory?: boolean;
|
|
1422
|
+
protected?: boolean;
|
|
1423
|
+
preserveHistory?: number;
|
|
1424
|
+
}
|
|
1425
|
+
interface SharedUserOptions {
|
|
1426
|
+
guid: string;
|
|
1427
|
+
name: string;
|
|
1428
|
+
id: number;
|
|
1429
|
+
dateTime: string;
|
|
1430
|
+
}
|
|
1431
|
+
interface UsersOptions {
|
|
1432
|
+
users?: SharedUserOptions[];
|
|
1433
|
+
}
|
|
1434
|
+
interface RevisionUndoOptions {
|
|
1435
|
+
index: number;
|
|
1436
|
+
expression: "ref" | "refError" | "area" | "areaError" | "computedArea";
|
|
1437
|
+
undoRange: string;
|
|
1438
|
+
ref3D?: boolean;
|
|
1439
|
+
array?: boolean;
|
|
1440
|
+
value?: boolean;
|
|
1441
|
+
numberFormat?: boolean;
|
|
1442
|
+
conditionalStyle?: boolean;
|
|
1443
|
+
definedName?: string;
|
|
1444
|
+
reference?: string;
|
|
1445
|
+
sId?: number;
|
|
1446
|
+
}
|
|
1447
|
+
type RevisionNestedChild = {
|
|
1448
|
+
kind: "undo";
|
|
1449
|
+
data: RevisionUndoOptions;
|
|
1450
|
+
} | {
|
|
1451
|
+
kind: "cellChange";
|
|
1452
|
+
data: RevisionCellChangeOptions;
|
|
1453
|
+
} | {
|
|
1454
|
+
kind: "formatting";
|
|
1455
|
+
data: RevisionFormattingOptions;
|
|
1456
|
+
};
|
|
1457
|
+
interface RevisionRowColumnOptions {
|
|
1458
|
+
rId: number;
|
|
1459
|
+
sheetId: number;
|
|
1460
|
+
ref: string;
|
|
1461
|
+
action: RowColumnAction;
|
|
1462
|
+
endOfList?: boolean;
|
|
1463
|
+
edge?: boolean;
|
|
1464
|
+
undo?: boolean;
|
|
1465
|
+
rejected?: boolean;
|
|
1466
|
+
children?: RevisionNestedChild[];
|
|
1467
|
+
}
|
|
1468
|
+
interface RevisionMoveOptions {
|
|
1469
|
+
rId: number;
|
|
1470
|
+
sheetId: number;
|
|
1471
|
+
source: string;
|
|
1472
|
+
destination: string;
|
|
1473
|
+
sourceSheetId?: number;
|
|
1474
|
+
undo?: boolean;
|
|
1475
|
+
rejected?: boolean;
|
|
1476
|
+
children?: RevisionNestedChild[];
|
|
1477
|
+
}
|
|
1478
|
+
interface RevisionCustomViewOptions {
|
|
1479
|
+
guid: string;
|
|
1480
|
+
action: RevisionAction;
|
|
1481
|
+
}
|
|
1482
|
+
interface RevisionSheetRenameOptions {
|
|
1483
|
+
rId: number;
|
|
1484
|
+
sheetId: number;
|
|
1485
|
+
oldName: string;
|
|
1486
|
+
newName: string;
|
|
1487
|
+
undo?: boolean;
|
|
1488
|
+
rejected?: boolean;
|
|
1489
|
+
}
|
|
1490
|
+
interface RevisionInsertSheetOptions {
|
|
1491
|
+
rId: number;
|
|
1492
|
+
sheetId: number;
|
|
1493
|
+
name: string;
|
|
1494
|
+
sheetPosition: number;
|
|
1495
|
+
undo?: boolean;
|
|
1496
|
+
rejected?: boolean;
|
|
1497
|
+
}
|
|
1498
|
+
interface RevisionCellChangeOptions {
|
|
1499
|
+
rId: number;
|
|
1500
|
+
sheetId: number;
|
|
1501
|
+
hasOldDxf?: boolean;
|
|
1502
|
+
xfDxf?: boolean;
|
|
1503
|
+
style?: boolean;
|
|
1504
|
+
hasDxf?: boolean;
|
|
1505
|
+
numFmtId?: number;
|
|
1506
|
+
quotePrefix?: boolean;
|
|
1507
|
+
oldQuotePrefix?: boolean;
|
|
1508
|
+
phonetic?: boolean;
|
|
1509
|
+
oldPhonetic?: boolean;
|
|
1510
|
+
endOfListFormulaUpdate?: boolean;
|
|
1511
|
+
undo?: boolean;
|
|
1512
|
+
rejected?: boolean;
|
|
1513
|
+
oldCellXml?: string;
|
|
1514
|
+
newCellXml: string;
|
|
1515
|
+
oldDxfXml?: string;
|
|
1516
|
+
newDxfXml?: string;
|
|
1517
|
+
}
|
|
1518
|
+
interface RevisionFormattingOptions {
|
|
1519
|
+
sheetId: number;
|
|
1520
|
+
sqref: string;
|
|
1521
|
+
xfDxf?: boolean;
|
|
1522
|
+
style?: boolean;
|
|
1523
|
+
start?: number;
|
|
1524
|
+
length?: number;
|
|
1525
|
+
dxfXml?: string;
|
|
1526
|
+
}
|
|
1527
|
+
interface RevisionAutoFormattingOptions {
|
|
1528
|
+
sheetId: number;
|
|
1529
|
+
ref: string;
|
|
1530
|
+
autoFormatXml?: string;
|
|
1531
|
+
}
|
|
1532
|
+
interface RevisionDefinedNameOptions {
|
|
1533
|
+
rId: number;
|
|
1534
|
+
name: string;
|
|
1535
|
+
localSheetId?: number;
|
|
1536
|
+
customView?: boolean;
|
|
1537
|
+
formula?: string;
|
|
1538
|
+
oldFormula?: string;
|
|
1539
|
+
function?: boolean;
|
|
1540
|
+
oldFunction?: boolean;
|
|
1541
|
+
functionGroupId?: number;
|
|
1542
|
+
oldFunctionGroupId?: number;
|
|
1543
|
+
shortcutKey?: number;
|
|
1544
|
+
oldShortcutKey?: number;
|
|
1545
|
+
hidden?: boolean;
|
|
1546
|
+
oldHidden?: boolean;
|
|
1547
|
+
customMenu?: string;
|
|
1548
|
+
oldCustomMenu?: string;
|
|
1549
|
+
description?: string;
|
|
1550
|
+
oldDescription?: string;
|
|
1551
|
+
help?: string;
|
|
1552
|
+
oldHelp?: string;
|
|
1553
|
+
statusBar?: string;
|
|
1554
|
+
oldStatusBar?: string;
|
|
1555
|
+
comment?: string;
|
|
1556
|
+
oldComment?: string;
|
|
1557
|
+
undo?: boolean;
|
|
1558
|
+
rejected?: boolean;
|
|
1559
|
+
}
|
|
1560
|
+
interface RevisionCommentOptions {
|
|
1561
|
+
sheetId: number;
|
|
1562
|
+
cell: string;
|
|
1563
|
+
guid: string;
|
|
1564
|
+
action?: RevisionAction;
|
|
1565
|
+
alwaysShow?: boolean;
|
|
1566
|
+
old?: boolean;
|
|
1567
|
+
hiddenRow?: boolean;
|
|
1568
|
+
hiddenColumn?: boolean;
|
|
1569
|
+
author: string;
|
|
1570
|
+
oldLength?: number;
|
|
1571
|
+
newLength?: number;
|
|
1572
|
+
}
|
|
1573
|
+
interface RevisionQueryTableFieldOptions {
|
|
1574
|
+
sheetId: number;
|
|
1575
|
+
ref: string;
|
|
1576
|
+
fieldId: number;
|
|
1577
|
+
}
|
|
1578
|
+
interface RevisionConflictOptions {
|
|
1579
|
+
rId: number;
|
|
1580
|
+
undo?: boolean;
|
|
1581
|
+
rejected?: boolean;
|
|
1582
|
+
sheetId?: number;
|
|
1583
|
+
}
|
|
1584
|
+
type RevisionEntry = {
|
|
1585
|
+
type: "rowColumn";
|
|
1586
|
+
data: RevisionRowColumnOptions;
|
|
1587
|
+
} | {
|
|
1588
|
+
type: "move";
|
|
1589
|
+
data: RevisionMoveOptions;
|
|
1590
|
+
} | {
|
|
1591
|
+
type: "customView";
|
|
1592
|
+
data: RevisionCustomViewOptions;
|
|
1593
|
+
} | {
|
|
1594
|
+
type: "sheetRename";
|
|
1595
|
+
data: RevisionSheetRenameOptions;
|
|
1596
|
+
} | {
|
|
1597
|
+
type: "insertSheet";
|
|
1598
|
+
data: RevisionInsertSheetOptions;
|
|
1599
|
+
} | {
|
|
1600
|
+
type: "cellChange";
|
|
1601
|
+
data: RevisionCellChangeOptions;
|
|
1602
|
+
} | {
|
|
1603
|
+
type: "formatting";
|
|
1604
|
+
data: RevisionFormattingOptions;
|
|
1605
|
+
} | {
|
|
1606
|
+
type: "autoFormatting";
|
|
1607
|
+
data: RevisionAutoFormattingOptions;
|
|
1608
|
+
} | {
|
|
1609
|
+
type: "definedName";
|
|
1610
|
+
data: RevisionDefinedNameOptions;
|
|
1611
|
+
} | {
|
|
1612
|
+
type: "comment";
|
|
1613
|
+
data: RevisionCommentOptions;
|
|
1614
|
+
} | {
|
|
1615
|
+
type: "queryTableField";
|
|
1616
|
+
data: RevisionQueryTableFieldOptions;
|
|
1617
|
+
} | {
|
|
1618
|
+
type: "conflict";
|
|
1619
|
+
data: RevisionConflictOptions;
|
|
1620
|
+
};
|
|
1621
|
+
interface RevisionLogOptions {
|
|
1622
|
+
revisions: RevisionEntry[];
|
|
1623
|
+
}
|
|
1624
|
+
//#endregion
|
|
1625
|
+
//#region src/parts/drawing/types.d.ts
|
|
1626
|
+
declare const ANCHOR_TYPES: {
|
|
1627
|
+
readonly twoCell: "twoCell";
|
|
1628
|
+
readonly oneCell: "oneCell";
|
|
1629
|
+
readonly absolute: "absolute";
|
|
1630
|
+
};
|
|
1631
|
+
type AnchorType = (typeof ANCHOR_TYPES)[keyof typeof ANCHOR_TYPES];
|
|
1632
|
+
declare const EDIT_AS_TYPES: {
|
|
1633
|
+
readonly twoCell: "twoCell";
|
|
1634
|
+
readonly oneCell: "oneCell";
|
|
1635
|
+
readonly absolute: "absolute";
|
|
1636
|
+
};
|
|
1637
|
+
type EditAsType = (typeof EDIT_AS_TYPES)[keyof typeof EDIT_AS_TYPES];
|
|
1638
|
+
interface DrawingAnchorOptions {
|
|
1639
|
+
col: number;
|
|
1640
|
+
colOffset?: number | UniversalMeasure;
|
|
1641
|
+
row: number;
|
|
1642
|
+
rowOffset?: number | UniversalMeasure;
|
|
1643
|
+
toCol?: number;
|
|
1644
|
+
toRow?: number;
|
|
1645
|
+
toColOffset?: number | UniversalMeasure;
|
|
1646
|
+
toRowOffset?: number | UniversalMeasure;
|
|
1647
|
+
anchorType?: AnchorType;
|
|
1648
|
+
editAs?: EditAsType;
|
|
1649
|
+
absoluteX?: number | UniversalMeasure;
|
|
1650
|
+
absoluteY?: number | UniversalMeasure;
|
|
1651
|
+
extentCx?: number | UniversalMeasure;
|
|
1652
|
+
extentCy?: number | UniversalMeasure;
|
|
1653
|
+
locksWithSheet?: boolean;
|
|
1654
|
+
printsWithSheet?: boolean;
|
|
1655
|
+
}
|
|
1656
|
+
interface DrawingPictureOptions extends DrawingAnchorOptions, NonVisualDrawingPropertiesOptions {
|
|
1657
|
+
rId: string;
|
|
1658
|
+
}
|
|
1659
|
+
interface DrawingChartOptions extends NonVisualDrawingPropertiesOptions {
|
|
1660
|
+
col: number;
|
|
1661
|
+
colOffset?: number | UniversalMeasure;
|
|
1662
|
+
row: number;
|
|
1663
|
+
rowOffset?: number | UniversalMeasure;
|
|
1664
|
+
rId: string;
|
|
1665
|
+
locksWithSheet?: boolean;
|
|
1666
|
+
printsWithSheet?: boolean;
|
|
1667
|
+
}
|
|
1668
|
+
interface ShapeOptions extends DrawingAnchorOptions, NonVisualDrawingPropertiesOptions {
|
|
1669
|
+
spPr: ShapePropertiesOptions;
|
|
1670
|
+
textBody?: TextBodyOptions;
|
|
1671
|
+
macro?: string;
|
|
1672
|
+
textlink?: string;
|
|
1673
|
+
}
|
|
1674
|
+
interface ConnectorOptions extends DrawingAnchorOptions, BaseConnectorOptions {
|
|
1675
|
+
spPr: ShapePropertiesOptions;
|
|
1676
|
+
macro?: string;
|
|
1677
|
+
}
|
|
1678
|
+
interface GroupShapeChildOptions extends NonVisualDrawingPropertiesOptions {
|
|
1679
|
+
spPr: ShapePropertiesOptions;
|
|
1680
|
+
textBody?: TextBodyOptions;
|
|
1681
|
+
macro?: string;
|
|
1682
|
+
textlink?: string;
|
|
1683
|
+
}
|
|
1684
|
+
interface GroupConnectorChildOptions extends BaseConnectorOptions {
|
|
1685
|
+
spPr: ShapePropertiesOptions;
|
|
1686
|
+
macro?: string;
|
|
1687
|
+
}
|
|
1688
|
+
interface GroupOptions extends DrawingAnchorOptions, BaseGroupOptions {
|
|
1689
|
+
grpSpPr: GroupTransform2DOptions;
|
|
1690
|
+
shapes?: GroupShapeChildOptions[];
|
|
1691
|
+
connectors?: GroupConnectorChildOptions[];
|
|
1692
|
+
}
|
|
1693
|
+
interface DrawingContentPartOptions extends DrawingAnchorOptions {
|
|
1694
|
+
rId: string;
|
|
1695
|
+
}
|
|
1696
|
+
interface DrawingOptions {
|
|
1697
|
+
images?: DrawingPictureOptions[];
|
|
1698
|
+
charts?: DrawingChartOptions[];
|
|
1699
|
+
shapes?: ShapeOptions[];
|
|
1700
|
+
connectors?: ConnectorOptions[];
|
|
1701
|
+
groups?: GroupOptions[];
|
|
1702
|
+
contentParts?: DrawingContentPartOptions[];
|
|
1703
|
+
}
|
|
1704
|
+
//#endregion
|
|
1705
|
+
//#region src/parts/drawing/descriptor.d.ts
|
|
1706
|
+
declare const drawingDesc: CustomDescriptor<DrawingOptions>;
|
|
1707
|
+
//#endregion
|
|
1708
|
+
//#region src/parts/query-table.d.ts
|
|
1709
|
+
interface QueryTableDeletedFieldOptions {
|
|
1710
|
+
name: string;
|
|
1711
|
+
}
|
|
1712
|
+
interface QueryTableFieldOptions {
|
|
1713
|
+
id: number;
|
|
1714
|
+
name?: string;
|
|
1715
|
+
dataBound?: boolean;
|
|
1716
|
+
rowNumbers?: boolean;
|
|
1717
|
+
fillFormulas?: boolean;
|
|
1718
|
+
clipped?: boolean;
|
|
1719
|
+
tableColumnId?: number;
|
|
1720
|
+
}
|
|
1721
|
+
interface QueryTableRefreshOptions {
|
|
1722
|
+
preserveSortFilterLayout?: boolean;
|
|
1723
|
+
fieldIdWrapped?: boolean;
|
|
1724
|
+
headersInLastRefresh?: boolean;
|
|
1725
|
+
minimumVersion?: number;
|
|
1726
|
+
nextId?: number;
|
|
1727
|
+
unboundColumnsLeft?: number;
|
|
1728
|
+
unboundColumnsRight?: number;
|
|
1729
|
+
queryTableFields?: QueryTableFieldOptions[];
|
|
1730
|
+
deletedFields?: QueryTableDeletedFieldOptions[];
|
|
1731
|
+
}
|
|
1732
|
+
interface QueryTableOptions {
|
|
1733
|
+
name?: string;
|
|
1734
|
+
headers?: boolean;
|
|
1735
|
+
rowNumbers?: boolean;
|
|
1736
|
+
disableRefresh?: boolean;
|
|
1737
|
+
backgroundRefresh?: boolean;
|
|
1738
|
+
firstBackgroundRefresh?: boolean;
|
|
1739
|
+
refreshOnLoad?: boolean;
|
|
1740
|
+
growShrinkType?: "insertDelete" | "insertWhole" | "overwriteWhole";
|
|
1741
|
+
fillFormulas?: boolean;
|
|
1742
|
+
removeDataOnSave?: boolean;
|
|
1743
|
+
disableEdit?: boolean;
|
|
1744
|
+
preserveFormatting?: boolean;
|
|
1745
|
+
adjustColumnWidth?: boolean;
|
|
1746
|
+
connectionId: number;
|
|
1747
|
+
autoFormat?: boolean;
|
|
1748
|
+
intermediate?: boolean;
|
|
1749
|
+
queryTableRefresh?: QueryTableRefreshOptions;
|
|
1750
|
+
}
|
|
1751
|
+
declare const queryTableDesc: CustomDescriptor<QueryTableOptions>;
|
|
1752
|
+
//#endregion
|
|
1753
|
+
//#region src/parts/shared-strings.d.ts
|
|
1754
|
+
type SstEntry = string | RichTextOptions;
|
|
1755
|
+
declare class SharedStrings {
|
|
1756
|
+
private entries;
|
|
1757
|
+
private indexMap;
|
|
1758
|
+
register(s: string): number;
|
|
1759
|
+
registerRich(rst: RichTextOptions): number;
|
|
1760
|
+
loadEntries(entries: SharedStringsDocOptions["entries"]): void;
|
|
1761
|
+
get count(): number;
|
|
1762
|
+
toDescriptorOptions(): {
|
|
1763
|
+
entries: SstEntry[];
|
|
1764
|
+
};
|
|
1765
|
+
serialize(): string;
|
|
1766
|
+
}
|
|
1767
|
+
interface SharedStringsDocOptions {
|
|
1768
|
+
entries: (string | RichTextOptions)[];
|
|
1769
|
+
}
|
|
1770
|
+
declare const sharedStringsDesc: CustomDescriptor<SharedStringsDocOptions>;
|
|
1771
|
+
//#endregion
|
|
1772
|
+
//#region src/parts/table.d.ts
|
|
1773
|
+
declare const TotalsRowFunction: {
|
|
1774
|
+
readonly NONE: "none";
|
|
1775
|
+
readonly SUM: "sum";
|
|
1776
|
+
readonly MIN: "min";
|
|
1777
|
+
readonly MAX: "max";
|
|
1778
|
+
readonly AVERAGE: "average";
|
|
1779
|
+
readonly COUNT: "count";
|
|
1780
|
+
readonly COUNT_NUMS: "countNums";
|
|
1781
|
+
readonly STD_DEV: "stdDev";
|
|
1782
|
+
readonly VAR: "var";
|
|
1783
|
+
readonly CUSTOM: "custom";
|
|
1784
|
+
};
|
|
1785
|
+
type TotalsRowFunction = (typeof TotalsRowFunction)[keyof typeof TotalsRowFunction];
|
|
1786
|
+
declare const TableType: {
|
|
1787
|
+
readonly WORKSHEET: "worksheet";
|
|
1788
|
+
readonly XML: "xml";
|
|
1789
|
+
readonly QUERY_TABLE: "queryTable";
|
|
1790
|
+
};
|
|
1791
|
+
type TableType = (typeof TableType)[keyof typeof TableType];
|
|
1792
|
+
interface TableStyleInfoOptions {
|
|
1793
|
+
name?: string;
|
|
1794
|
+
showFirstColumn?: boolean;
|
|
1795
|
+
showLastColumn?: boolean;
|
|
1796
|
+
showRowStripes?: boolean;
|
|
1797
|
+
showColumnStripes?: boolean;
|
|
1798
|
+
}
|
|
1799
|
+
interface TableColumnOptions {
|
|
1800
|
+
name: string;
|
|
1801
|
+
totalsRowFunction?: TotalsRowFunction;
|
|
1802
|
+
totalsRowLabel?: string;
|
|
1803
|
+
calculatedColumnFormula?: string;
|
|
1804
|
+
totalsRowFormula?: string;
|
|
1805
|
+
totalsRowFormulaArray?: boolean;
|
|
1806
|
+
calculatedColumnFormulaArray?: boolean;
|
|
1807
|
+
uniqueName?: string;
|
|
1808
|
+
queryTableFieldId?: number;
|
|
1809
|
+
headerRowDxfId?: number;
|
|
1810
|
+
dataDxfId?: number;
|
|
1811
|
+
totalsRowDxfId?: number;
|
|
1812
|
+
headerRowCellStyle?: string;
|
|
1813
|
+
dataCellStyle?: string;
|
|
1814
|
+
totalsRowCellStyle?: string;
|
|
1815
|
+
xmlColumnPr?: XmlColumnPrOptions;
|
|
1816
|
+
}
|
|
1817
|
+
interface XmlColumnPrOptions {
|
|
1818
|
+
mapId: number;
|
|
1819
|
+
xpath: string;
|
|
1820
|
+
denormalized?: boolean;
|
|
1821
|
+
xmlDataType: string;
|
|
1822
|
+
}
|
|
1823
|
+
interface TableOptions {
|
|
1824
|
+
id: number;
|
|
1825
|
+
name?: string;
|
|
1826
|
+
displayName: string;
|
|
1827
|
+
comment?: string;
|
|
1828
|
+
ref: string;
|
|
1829
|
+
columns: TableColumnOptions[];
|
|
1830
|
+
headerRowCount?: number;
|
|
1831
|
+
insertRow?: boolean;
|
|
1832
|
+
totalsRowCount?: number;
|
|
1833
|
+
totalsRowShown?: boolean;
|
|
1834
|
+
tableType?: TableType;
|
|
1835
|
+
style?: TableStyleInfoOptions;
|
|
1836
|
+
autoFilter?: string | AutoFilterOptions;
|
|
1837
|
+
insertRowShift?: boolean;
|
|
1838
|
+
published?: boolean;
|
|
1839
|
+
headerRowDxfId?: number;
|
|
1840
|
+
dataDxfId?: number;
|
|
1841
|
+
totalsRowDxfId?: number;
|
|
1842
|
+
headerRowBorderDxfId?: number;
|
|
1843
|
+
tableBorderDxfId?: number;
|
|
1844
|
+
totalsRowBorderDxfId?: number;
|
|
1845
|
+
headerRowCellStyle?: string;
|
|
1846
|
+
dataCellStyle?: string;
|
|
1847
|
+
totalsRowCellStyle?: string;
|
|
1848
|
+
connectionId?: number;
|
|
1849
|
+
}
|
|
1850
|
+
declare const tableDesc: CustomDescriptor<TableOptions>;
|
|
1851
|
+
//#endregion
|
|
1852
|
+
//#region src/parts/xml-mapping.d.ts
|
|
1853
|
+
interface SchemaOptions {
|
|
1854
|
+
id: string;
|
|
1855
|
+
schemaRef?: string;
|
|
1856
|
+
namespace?: string;
|
|
1857
|
+
schemaLanguage?: string;
|
|
1858
|
+
content?: string;
|
|
1859
|
+
}
|
|
1860
|
+
interface DataBindingOptions {
|
|
1861
|
+
dataBindingName?: string;
|
|
1862
|
+
fileBinding?: boolean;
|
|
1863
|
+
connectionId?: number;
|
|
1864
|
+
fileBindingName?: string;
|
|
1865
|
+
dataBindingLoadMode: number;
|
|
1866
|
+
}
|
|
1867
|
+
interface MapOptions {
|
|
1868
|
+
id: number;
|
|
1869
|
+
name: string;
|
|
1870
|
+
rootElement: string;
|
|
1871
|
+
schemaId: string;
|
|
1872
|
+
showImportExportValidationErrors?: boolean;
|
|
1873
|
+
autoFit?: boolean;
|
|
1874
|
+
append?: boolean;
|
|
1875
|
+
preserveSortAFLayout?: boolean;
|
|
1876
|
+
preserveFormat?: boolean;
|
|
1877
|
+
dataBinding?: DataBindingOptions;
|
|
1878
|
+
}
|
|
1879
|
+
interface MapInfoOptions {
|
|
1880
|
+
selectionNamespaces: string;
|
|
1881
|
+
schemas: SchemaOptions[];
|
|
1882
|
+
maps: MapOptions[];
|
|
1883
|
+
}
|
|
1884
|
+
interface XmlPropertiesOptions {
|
|
1885
|
+
mapId: number;
|
|
1886
|
+
xpath: string;
|
|
1887
|
+
xmlDataType: string;
|
|
1888
|
+
}
|
|
1889
|
+
interface XmlCellPropertiesOptions {
|
|
1890
|
+
id: number;
|
|
1891
|
+
uniqueName?: string;
|
|
1892
|
+
xmlPr: XmlPropertiesOptions;
|
|
1893
|
+
}
|
|
1894
|
+
interface SingleXmlCellOptions {
|
|
1895
|
+
id: number;
|
|
1896
|
+
reference: string;
|
|
1897
|
+
connectionId: number;
|
|
1898
|
+
xmlCellPr: XmlCellPropertiesOptions;
|
|
1899
|
+
}
|
|
1900
|
+
interface SingleXmlCellsOptions {
|
|
1901
|
+
cells: SingleXmlCellOptions[];
|
|
1902
|
+
}
|
|
1903
|
+
interface XmlColumnPropertiesOptions {
|
|
1904
|
+
xpath: string;
|
|
1905
|
+
xmlDataType: string;
|
|
1906
|
+
mapId: number;
|
|
1907
|
+
denormalized?: boolean;
|
|
1908
|
+
}
|
|
1909
|
+
declare const mapInfoDesc: CustomDescriptor<MapInfoOptions>;
|
|
1910
|
+
declare const singleXmlCellsDesc: CustomDescriptor<SingleXmlCellsOptions>;
|
|
1911
|
+
//#endregion
|
|
1912
|
+
//#region src/parts/worksheet/types.d.ts
|
|
1913
|
+
interface ColumnOptions {
|
|
1914
|
+
min: number;
|
|
1915
|
+
max: number;
|
|
1916
|
+
width?: number;
|
|
1917
|
+
hidden?: boolean;
|
|
1918
|
+
customWidth?: boolean;
|
|
1919
|
+
outlineLevel?: number;
|
|
1920
|
+
collapsed?: boolean;
|
|
1921
|
+
bestFit?: boolean;
|
|
1922
|
+
phonetic?: boolean;
|
|
1923
|
+
}
|
|
1924
|
+
interface RowOptions {
|
|
1925
|
+
cells?: CellOptions[];
|
|
1926
|
+
height?: number | UniversalMeasure;
|
|
1927
|
+
hidden?: boolean;
|
|
1928
|
+
rowNumber?: number;
|
|
1929
|
+
spans?: string;
|
|
1930
|
+
customFormat?: boolean;
|
|
1931
|
+
thickTop?: boolean;
|
|
1932
|
+
thickBot?: boolean;
|
|
1933
|
+
phonetic?: boolean;
|
|
1934
|
+
}
|
|
1935
|
+
interface RichTextRunPropertiesOptions {
|
|
1936
|
+
font?: string;
|
|
1937
|
+
charset?: number;
|
|
1938
|
+
family?: number;
|
|
1939
|
+
bold?: boolean;
|
|
1940
|
+
italic?: boolean;
|
|
1941
|
+
strike?: boolean;
|
|
1942
|
+
outline?: boolean;
|
|
1943
|
+
shadow?: boolean;
|
|
1944
|
+
condense?: boolean;
|
|
1945
|
+
extend?: boolean;
|
|
1946
|
+
color?: string;
|
|
1947
|
+
size?: number;
|
|
1948
|
+
underline?: "single" | "double" | "singleAccounting" | "doubleAccounting" | "none";
|
|
1949
|
+
vertAlign?: "superscript" | "subscript" | "baseline";
|
|
1950
|
+
scheme?: "major" | "minor" | "none";
|
|
1951
|
+
}
|
|
1952
|
+
interface RichTextRunOptions {
|
|
1953
|
+
properties?: RichTextRunPropertiesOptions;
|
|
1954
|
+
text: string;
|
|
1955
|
+
}
|
|
1956
|
+
interface PhoneticRunOptions {
|
|
1957
|
+
startByte: number;
|
|
1958
|
+
endByte: number;
|
|
1959
|
+
text: string;
|
|
1960
|
+
}
|
|
1961
|
+
interface RichTextOptions {
|
|
1962
|
+
text?: string;
|
|
1963
|
+
runs?: RichTextRunOptions[];
|
|
1964
|
+
phonetics?: PhoneticRunOptions[];
|
|
1965
|
+
}
|
|
1966
|
+
interface CellOptions {
|
|
1967
|
+
value?: string | number | boolean | Date | RichTextOptions | null;
|
|
1968
|
+
reference?: string;
|
|
1969
|
+
styleIndex?: number;
|
|
1970
|
+
style?: StyleOptions;
|
|
1971
|
+
formula?: string | FormulaOptions;
|
|
1972
|
+
cellMetadataId?: number;
|
|
1973
|
+
valueMetadataId?: number;
|
|
1974
|
+
}
|
|
1975
|
+
declare const FormulaType: {
|
|
1976
|
+
readonly NORMAL: "normal";
|
|
1977
|
+
readonly ARRAY: "array";
|
|
1978
|
+
readonly SHARED: "shared";
|
|
1979
|
+
};
|
|
1980
|
+
type FormulaType = (typeof FormulaType)[keyof typeof FormulaType];
|
|
1981
|
+
interface FormulaOptions {
|
|
1982
|
+
formula: string;
|
|
1983
|
+
type?: FormulaType;
|
|
1984
|
+
reference?: string;
|
|
1985
|
+
sharedIndex?: number;
|
|
1986
|
+
aca?: boolean;
|
|
1987
|
+
dt2D?: boolean;
|
|
1988
|
+
dtr?: boolean;
|
|
1989
|
+
del1?: boolean;
|
|
1990
|
+
del2?: boolean;
|
|
1991
|
+
inputCell1?: string;
|
|
1992
|
+
inputCell2?: string;
|
|
1993
|
+
calculateCell?: boolean;
|
|
1994
|
+
arrayContext?: boolean;
|
|
1995
|
+
}
|
|
1996
|
+
interface ScenarioCellOptions {
|
|
1997
|
+
reference: string;
|
|
1998
|
+
val: string | number;
|
|
1999
|
+
deleted?: boolean;
|
|
2000
|
+
undone?: boolean;
|
|
2001
|
+
}
|
|
2002
|
+
interface ScenarioDefinition {
|
|
2003
|
+
name: string;
|
|
2004
|
+
inputCells: ScenarioCellOptions[];
|
|
2005
|
+
count?: number;
|
|
2006
|
+
user?: string;
|
|
2007
|
+
comment?: string;
|
|
2008
|
+
hidden?: boolean;
|
|
2009
|
+
locked?: boolean;
|
|
2010
|
+
}
|
|
2011
|
+
interface ScenarioOptions {
|
|
2012
|
+
scenarios: ScenarioDefinition[];
|
|
2013
|
+
current?: number;
|
|
2014
|
+
show?: number;
|
|
2015
|
+
}
|
|
2016
|
+
interface MergeCellOptions {
|
|
2017
|
+
from: {
|
|
2018
|
+
row: number;
|
|
2019
|
+
col: number;
|
|
2020
|
+
};
|
|
2021
|
+
to: {
|
|
2022
|
+
row: number;
|
|
2023
|
+
col: number;
|
|
2024
|
+
};
|
|
2025
|
+
}
|
|
2026
|
+
interface SheetProtectionOptions {
|
|
2027
|
+
password?: string;
|
|
2028
|
+
algorithmName?: string;
|
|
2029
|
+
hashValue?: string;
|
|
2030
|
+
saltValue?: string;
|
|
2031
|
+
spinCount?: number;
|
|
2032
|
+
sheet?: boolean;
|
|
2033
|
+
objects?: boolean;
|
|
2034
|
+
scenarios?: boolean;
|
|
2035
|
+
formatCells?: boolean;
|
|
2036
|
+
formatColumns?: boolean;
|
|
2037
|
+
formatRows?: boolean;
|
|
2038
|
+
insertColumns?: boolean;
|
|
2039
|
+
insertRows?: boolean;
|
|
2040
|
+
insertHyperlinks?: boolean;
|
|
2041
|
+
deleteColumns?: boolean;
|
|
2042
|
+
deleteRows?: boolean;
|
|
2043
|
+
selectLockedCells?: boolean;
|
|
2044
|
+
sort?: boolean;
|
|
2045
|
+
autoFilter?: boolean;
|
|
2046
|
+
pivotTables?: boolean;
|
|
2047
|
+
selectUnlockedCells?: boolean;
|
|
2048
|
+
}
|
|
2049
|
+
interface ProtectedRangeOptions {
|
|
2050
|
+
sqref: string;
|
|
2051
|
+
name: string;
|
|
2052
|
+
password?: string;
|
|
2053
|
+
algorithmName?: string;
|
|
2054
|
+
hashValue?: string;
|
|
2055
|
+
saltValue?: string;
|
|
2056
|
+
spinCount?: number;
|
|
2057
|
+
securityDescriptor?: string;
|
|
2058
|
+
}
|
|
2059
|
+
interface FreezePaneOptions {
|
|
2060
|
+
row?: number;
|
|
2061
|
+
col?: number;
|
|
2062
|
+
}
|
|
2063
|
+
interface PictureOptions extends Omit<BasePictureOptions, "type"> {
|
|
2064
|
+
type: "png" | "jpg";
|
|
2065
|
+
col: number;
|
|
2066
|
+
row: number;
|
|
2067
|
+
}
|
|
2068
|
+
interface WorksheetChartOptions extends ChartSpaceOptions {
|
|
2069
|
+
col: number;
|
|
2070
|
+
row: number;
|
|
2071
|
+
}
|
|
2072
|
+
interface SheetViewOptions {
|
|
2073
|
+
showGridLines?: boolean;
|
|
2074
|
+
showRowColHeaders?: boolean;
|
|
2075
|
+
showZeros?: boolean;
|
|
2076
|
+
zoomScale?: number;
|
|
2077
|
+
tabSelected?: boolean;
|
|
2078
|
+
rightToLeft?: boolean;
|
|
2079
|
+
windowProtection?: boolean;
|
|
2080
|
+
showFormulas?: boolean;
|
|
2081
|
+
showRuler?: boolean;
|
|
2082
|
+
showOutlineSymbols?: boolean;
|
|
2083
|
+
defaultGridColor?: boolean;
|
|
2084
|
+
showWhiteSpace?: boolean;
|
|
2085
|
+
view?: "normal" | "pageBreakPreview" | "pageLayout";
|
|
2086
|
+
colorId?: number;
|
|
2087
|
+
zoomScaleNormal?: number;
|
|
2088
|
+
zoomScaleSheetLayoutView?: number;
|
|
2089
|
+
zoomScalePageLayoutView?: number;
|
|
2090
|
+
}
|
|
2091
|
+
type HyperlinkTarget$1 = {
|
|
2092
|
+
type: "external";
|
|
2093
|
+
url: string;
|
|
2094
|
+
} | {
|
|
2095
|
+
type: "internal";
|
|
2096
|
+
location: string;
|
|
2097
|
+
};
|
|
2098
|
+
interface HyperlinkOptions {
|
|
2099
|
+
cell: string;
|
|
2100
|
+
target: HyperlinkTarget$1;
|
|
2101
|
+
tooltip?: string;
|
|
2102
|
+
display?: string;
|
|
2103
|
+
}
|
|
2104
|
+
interface HeaderFooterOptions {
|
|
2105
|
+
oddHeader?: string;
|
|
2106
|
+
oddFooter?: string;
|
|
2107
|
+
evenHeader?: string;
|
|
2108
|
+
evenFooter?: string;
|
|
2109
|
+
firstHeader?: string;
|
|
2110
|
+
firstFooter?: string;
|
|
2111
|
+
differentOddEven?: boolean;
|
|
2112
|
+
differentFirst?: boolean;
|
|
2113
|
+
scaleWithDoc?: boolean;
|
|
2114
|
+
alignWithMargins?: boolean;
|
|
2115
|
+
}
|
|
2116
|
+
type PageOrientation = "default" | "portrait" | "landscape";
|
|
2117
|
+
interface PageSetupOptions {
|
|
2118
|
+
paperSize?: number;
|
|
2119
|
+
orientation?: PageOrientation;
|
|
2120
|
+
scale?: number;
|
|
2121
|
+
fitToWidth?: number;
|
|
2122
|
+
fitToHeight?: number;
|
|
2123
|
+
pageOrder?: "downThenOver" | "overThenDown";
|
|
2124
|
+
useFirstPageNumber?: boolean;
|
|
2125
|
+
firstPageNumber?: number;
|
|
2126
|
+
paperHeight?: number | PositiveUniversalMeasure;
|
|
2127
|
+
paperWidth?: number | PositiveUniversalMeasure;
|
|
2128
|
+
usePrinterDefaults?: boolean;
|
|
2129
|
+
blackAndWhite?: boolean;
|
|
2130
|
+
draft?: boolean;
|
|
2131
|
+
cellComments?: "none" | "asDisplayed" | "atEnd";
|
|
2132
|
+
errors?: "displayed" | "blank" | "dash" | "NA";
|
|
2133
|
+
autoPageBreaks?: boolean;
|
|
2134
|
+
fitToPage?: boolean;
|
|
2135
|
+
}
|
|
2136
|
+
interface TabColorOptions {
|
|
2137
|
+
rgb?: string;
|
|
2138
|
+
theme?: number;
|
|
2139
|
+
tint?: number;
|
|
2140
|
+
indexed?: number;
|
|
2141
|
+
}
|
|
2142
|
+
interface AnchorMarkerOptions {
|
|
2143
|
+
col: number;
|
|
2144
|
+
colOff?: number;
|
|
2145
|
+
row: number;
|
|
2146
|
+
rowOff?: number;
|
|
2147
|
+
}
|
|
2148
|
+
interface ObjectAnchorOptions {
|
|
2149
|
+
moveWithCells?: boolean;
|
|
2150
|
+
sizeWithCells?: boolean;
|
|
2151
|
+
from?: AnchorMarkerOptions;
|
|
2152
|
+
to?: AnchorMarkerOptions;
|
|
2153
|
+
}
|
|
2154
|
+
interface CommentPropertiesOptions {
|
|
2155
|
+
locked?: boolean;
|
|
2156
|
+
defaultSize?: boolean;
|
|
2157
|
+
print?: boolean;
|
|
2158
|
+
disabled?: boolean;
|
|
2159
|
+
autoFill?: boolean;
|
|
2160
|
+
autoLine?: boolean;
|
|
2161
|
+
altText?: string;
|
|
2162
|
+
textHAlign?: "left" | "center" | "right" | "justify" | "distributed";
|
|
2163
|
+
textVAlign?: "top" | "center" | "bottom" | "justify" | "distributed";
|
|
2164
|
+
lockText?: boolean;
|
|
2165
|
+
justLastX?: boolean;
|
|
2166
|
+
autoScale?: boolean;
|
|
2167
|
+
anchor?: ObjectAnchorOptions;
|
|
2168
|
+
}
|
|
2169
|
+
interface CommentOptions {
|
|
2170
|
+
cell: string;
|
|
2171
|
+
author: string;
|
|
2172
|
+
text: string | RichTextOptions;
|
|
2173
|
+
commentPr?: CommentPropertiesOptions;
|
|
2174
|
+
anchor?: number[];
|
|
2175
|
+
visible?: boolean;
|
|
2176
|
+
size?: {
|
|
2177
|
+
width: number;
|
|
2178
|
+
height: number;
|
|
2179
|
+
};
|
|
2180
|
+
}
|
|
2181
|
+
type DataValidationType = "none" | "whole" | "decimal" | "list" | "date" | "time" | "textLength" | "custom";
|
|
2182
|
+
type DataValidationOperator = "between" | "notBetween" | "equal" | "notEqual" | "greaterThan" | "lessThan" | "greaterThanOrEqual" | "lessThanOrEqual";
|
|
2183
|
+
interface DataValidationOptions {
|
|
2184
|
+
sqref: string;
|
|
2185
|
+
type?: DataValidationType;
|
|
2186
|
+
operator?: DataValidationOperator;
|
|
2187
|
+
formula1?: string;
|
|
2188
|
+
formula2?: string;
|
|
2189
|
+
allowBlank?: boolean;
|
|
2190
|
+
showErrorMessage?: boolean;
|
|
2191
|
+
errorTitle?: string;
|
|
2192
|
+
error?: string;
|
|
2193
|
+
showInputMessage?: boolean;
|
|
2194
|
+
promptTitle?: string;
|
|
2195
|
+
prompt?: string;
|
|
2196
|
+
errorStyle?: "stop" | "warning" | "information";
|
|
2197
|
+
imeMode?: "noControl" | "on" | "off" | "disabled" | "hiragana" | "fullKatakana" | "halfKatakana" | "fullAlpha" | "halfAlpha" | "fullHangul" | "halfHangul";
|
|
2198
|
+
showDropDown?: boolean;
|
|
2199
|
+
}
|
|
2200
|
+
type ConditionalFormatType = "cellIs" | "containsText" | "expression" | "top10" | "aboveAverage" | "colorScale" | "dataBar" | "iconSet";
|
|
2201
|
+
type ConditionalFormatOperator = "lessThan" | "lessThanOrEqual" | "equal" | "notEqual" | "greaterThanOrEqual" | "greaterThan" | "between" | "notBetween" | "containsText" | "notContains" | "beginsWith" | "endsWith";
|
|
2202
|
+
type CfvoType = "num" | "percent" | "max" | "min" | "formula" | "percentile";
|
|
2203
|
+
interface CfvoOptions {
|
|
2204
|
+
type: CfvoType;
|
|
2205
|
+
val?: string | number;
|
|
2206
|
+
gte?: boolean;
|
|
2207
|
+
}
|
|
2208
|
+
type IconSetType = "3Arrows" | "3ArrowsGray" | "3Flags" | "3TrafficLights1" | "3TrafficLights2" | "3Signs" | "3Symbols" | "3Symbols2" | "4Arrows" | "4ArrowsGray" | "4RedToBlack" | "4Rating" | "4TrafficLights" | "5Arrows" | "5ArrowsGray" | "5Rating" | "5Quarters";
|
|
2209
|
+
interface ColorScaleOptions {
|
|
2210
|
+
cfvo: CfvoOptions[];
|
|
2211
|
+
colors: string[];
|
|
2212
|
+
}
|
|
2213
|
+
interface DataBarOptions {
|
|
2214
|
+
cfvo: [CfvoOptions, CfvoOptions];
|
|
2215
|
+
color: string;
|
|
2216
|
+
minLength?: number;
|
|
2217
|
+
maxLength?: number;
|
|
2218
|
+
showValue?: boolean;
|
|
2219
|
+
}
|
|
2220
|
+
interface IconSetOptions {
|
|
2221
|
+
cfvo: CfvoOptions[];
|
|
2222
|
+
iconSet?: IconSetType;
|
|
2223
|
+
showValue?: boolean;
|
|
2224
|
+
percent?: boolean;
|
|
2225
|
+
reverse?: boolean;
|
|
2226
|
+
}
|
|
2227
|
+
interface ConditionalFormatRule {
|
|
2228
|
+
type: ConditionalFormatType;
|
|
2229
|
+
operator?: ConditionalFormatOperator;
|
|
2230
|
+
formulas?: string[];
|
|
2231
|
+
priority?: number;
|
|
2232
|
+
dxfId?: number;
|
|
2233
|
+
colorScale?: ColorScaleOptions;
|
|
2234
|
+
dataBar?: DataBarOptions;
|
|
2235
|
+
iconSet?: IconSetOptions;
|
|
2236
|
+
stopIfTrue?: boolean;
|
|
2237
|
+
timePeriod?: "today" | "yesterday" | "tomorrow" | "last7Days" | "thisMonth" | "lastMonth" | "nextMonth" | "thisWeek" | "lastWeek" | "nextWeek";
|
|
2238
|
+
rank?: number;
|
|
2239
|
+
equalAverage?: boolean;
|
|
2240
|
+
aboveAverage?: boolean;
|
|
2241
|
+
stdDev?: number;
|
|
2242
|
+
}
|
|
2243
|
+
interface ConditionalFormatOptions {
|
|
2244
|
+
sqref: string;
|
|
2245
|
+
rules: ConditionalFormatRule[];
|
|
2246
|
+
}
|
|
2247
|
+
interface Top10FilterOptions {
|
|
2248
|
+
colId: number;
|
|
2249
|
+
top?: boolean;
|
|
2250
|
+
percent?: boolean;
|
|
2251
|
+
val: number;
|
|
2252
|
+
filterVal?: number;
|
|
2253
|
+
hiddenButton?: boolean;
|
|
2254
|
+
showButton?: boolean;
|
|
2255
|
+
}
|
|
2256
|
+
interface CustomFilterOptions {
|
|
2257
|
+
colId: number;
|
|
2258
|
+
operator?: "equal" | "notEqual" | "greaterThan" | "greaterThanOrEqual" | "lessThan" | "lessThanOrEqual";
|
|
2259
|
+
val?: string;
|
|
2260
|
+
and?: boolean;
|
|
2261
|
+
val2?: string;
|
|
2262
|
+
hiddenButton?: boolean;
|
|
2263
|
+
showButton?: boolean;
|
|
2264
|
+
}
|
|
2265
|
+
interface SortCondition {
|
|
2266
|
+
ref: string;
|
|
2267
|
+
descending?: boolean;
|
|
2268
|
+
sortBy?: "value" | "cellColor" | "fontColor" | "icon";
|
|
2269
|
+
customList?: string;
|
|
2270
|
+
iconId?: number;
|
|
2271
|
+
}
|
|
2272
|
+
interface AutoFilterOptions {
|
|
2273
|
+
ref: string;
|
|
2274
|
+
top10?: Top10FilterOptions[];
|
|
2275
|
+
customFilters?: CustomFilterOptions[];
|
|
2276
|
+
sort?: SortCondition[];
|
|
2277
|
+
sortState?: SortStateOptions;
|
|
2278
|
+
colorFilters?: ColorFilterOptions[];
|
|
2279
|
+
iconFilters?: IconFilterOptions[];
|
|
2280
|
+
dynamicFilters?: DynamicFilterOptions[];
|
|
2281
|
+
dateGroupItems?: DateGroupFilterOptions[];
|
|
2282
|
+
filters?: FilterItemsOptions[];
|
|
2283
|
+
}
|
|
2284
|
+
interface ColorFilterOptions {
|
|
2285
|
+
colId: number;
|
|
2286
|
+
dxfId?: number;
|
|
2287
|
+
cellColor?: boolean;
|
|
2288
|
+
}
|
|
2289
|
+
interface IconFilterOptions {
|
|
2290
|
+
colId: number;
|
|
2291
|
+
iconSet: number;
|
|
2292
|
+
iconId?: number;
|
|
2293
|
+
}
|
|
2294
|
+
interface FilterItemsOptions {
|
|
2295
|
+
colId: number;
|
|
2296
|
+
blank?: boolean;
|
|
2297
|
+
calendarType?: string;
|
|
2298
|
+
values?: string[];
|
|
2299
|
+
}
|
|
2300
|
+
interface DynamicFilterOptions {
|
|
2301
|
+
colId: number;
|
|
2302
|
+
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";
|
|
2303
|
+
val?: number;
|
|
2304
|
+
maxVal?: number;
|
|
2305
|
+
valIso?: string;
|
|
2306
|
+
maxValIso?: string;
|
|
2307
|
+
}
|
|
2308
|
+
interface DateGroupFilterOptions {
|
|
2309
|
+
colId: number;
|
|
2310
|
+
dateTimeGrouping: "year" | "month" | "day" | "hour" | "minute" | "second";
|
|
2311
|
+
year?: number;
|
|
2312
|
+
month?: number;
|
|
2313
|
+
day?: number;
|
|
2314
|
+
hour?: number;
|
|
2315
|
+
minute?: number;
|
|
2316
|
+
second?: number;
|
|
2317
|
+
}
|
|
2318
|
+
interface SortStateOptions {
|
|
2319
|
+
columnSort?: boolean;
|
|
2320
|
+
caseSensitive?: boolean;
|
|
2321
|
+
sortMethod?: "pinYin" | "stroke" | "none";
|
|
2322
|
+
}
|
|
2323
|
+
interface PrintOptions {
|
|
2324
|
+
horizontalCentered?: boolean;
|
|
2325
|
+
verticalCentered?: boolean;
|
|
2326
|
+
headings?: boolean;
|
|
2327
|
+
gridLines?: boolean;
|
|
2328
|
+
gridLinesSet?: boolean;
|
|
2329
|
+
}
|
|
2330
|
+
interface SheetFormatPropertiesOptions {
|
|
2331
|
+
baseColWidth?: number;
|
|
2332
|
+
defaultColWidth?: number;
|
|
2333
|
+
defaultRowHeight?: number;
|
|
2334
|
+
zeroHeight?: boolean;
|
|
2335
|
+
thickTop?: boolean;
|
|
2336
|
+
thickBottom?: boolean;
|
|
2337
|
+
outlineLevelRow?: number;
|
|
2338
|
+
outlineLevelCol?: number;
|
|
2339
|
+
}
|
|
2340
|
+
interface SheetPropertiesOptions {
|
|
2341
|
+
syncHorizontal?: boolean;
|
|
2342
|
+
syncVertical?: boolean;
|
|
2343
|
+
syncRef?: string;
|
|
2344
|
+
transitionEvaluation?: boolean;
|
|
2345
|
+
transitionEntry?: boolean;
|
|
2346
|
+
published?: boolean;
|
|
2347
|
+
filterMode?: boolean;
|
|
2348
|
+
enableFormatConditionsCalculation?: boolean;
|
|
2349
|
+
outlineApplyStyles?: boolean;
|
|
2350
|
+
outlineShowSymbols?: boolean;
|
|
2351
|
+
outlineSummaryBelow?: boolean;
|
|
2352
|
+
outlineSummaryRight?: boolean;
|
|
2353
|
+
}
|
|
2354
|
+
interface IgnoredErrorOptions {
|
|
2355
|
+
sqref: string;
|
|
2356
|
+
evalError?: boolean;
|
|
2357
|
+
twoDigitTextYear?: boolean;
|
|
2358
|
+
numberStoredAsText?: boolean;
|
|
2359
|
+
formula?: boolean;
|
|
2360
|
+
formulaRange?: boolean;
|
|
2361
|
+
unlockedFormula?: boolean;
|
|
2362
|
+
emptyCellReference?: boolean;
|
|
2363
|
+
listDataValidation?: boolean;
|
|
2364
|
+
calculatedColumn?: boolean;
|
|
2365
|
+
}
|
|
2366
|
+
interface PhoneticPropertiesOptions {
|
|
2367
|
+
fontId: number;
|
|
2368
|
+
type?: "fullwidthKatakana" | "halfwidthKatakana" | "Hiragana" | "noConversion";
|
|
2369
|
+
alignment?: "left" | "center" | "distributed";
|
|
2370
|
+
}
|
|
2371
|
+
interface SheetBackgroundImageOptions {
|
|
2372
|
+
data: DataType;
|
|
2373
|
+
type: "png" | "jpg";
|
|
2374
|
+
}
|
|
2375
|
+
interface PageBreakOptions {
|
|
2376
|
+
id: number;
|
|
2377
|
+
min?: number;
|
|
2378
|
+
max?: number;
|
|
2379
|
+
manual?: boolean;
|
|
2380
|
+
pivot?: boolean;
|
|
2381
|
+
}
|
|
2382
|
+
interface SelectionOptions {
|
|
2383
|
+
pane?: "bottomRight" | "topRight" | "bottomLeft" | "topLeft";
|
|
2384
|
+
activeCell?: string;
|
|
2385
|
+
activeCellId?: number;
|
|
2386
|
+
sqref?: string;
|
|
2387
|
+
}
|
|
2388
|
+
interface PivotSelectionOptions {
|
|
2389
|
+
pane?: "bottomRight" | "topRight" | "bottomLeft" | "topLeft";
|
|
2390
|
+
showHeader?: boolean;
|
|
2391
|
+
label?: boolean;
|
|
2392
|
+
data?: boolean;
|
|
2393
|
+
extendable?: boolean;
|
|
2394
|
+
count?: number;
|
|
2395
|
+
axis?: "axisRow" | "axisCol" | "axisPage" | "axisValues";
|
|
2396
|
+
dimension?: number;
|
|
2397
|
+
start?: number;
|
|
2398
|
+
min?: number;
|
|
2399
|
+
max?: number;
|
|
2400
|
+
activeRow?: number;
|
|
2401
|
+
activeCol?: number;
|
|
2402
|
+
previousRow?: number;
|
|
2403
|
+
previousCol?: number;
|
|
2404
|
+
click?: number;
|
|
2405
|
+
rId?: string;
|
|
2406
|
+
pivotArea?: PivotAreaOptions;
|
|
2407
|
+
}
|
|
2408
|
+
interface CellSmartTagPropertyOptions {
|
|
2409
|
+
key: string;
|
|
2410
|
+
val: string;
|
|
2411
|
+
}
|
|
2412
|
+
interface CellSmartTagOptions {
|
|
2413
|
+
type: number;
|
|
2414
|
+
deleted?: boolean;
|
|
2415
|
+
xmlBased?: boolean;
|
|
2416
|
+
properties?: CellSmartTagPropertyOptions[];
|
|
2417
|
+
}
|
|
2418
|
+
interface CellSmartTagsOptions {
|
|
2419
|
+
reference: string;
|
|
2420
|
+
smartTags: CellSmartTagOptions[];
|
|
2421
|
+
}
|
|
2422
|
+
interface CustomSheetViewOptions {
|
|
2423
|
+
guid: string;
|
|
2424
|
+
scale?: number;
|
|
2425
|
+
showPageBreaks?: boolean;
|
|
2426
|
+
showFormulas?: boolean;
|
|
2427
|
+
showGridLines?: boolean;
|
|
2428
|
+
showRowColHeaders?: boolean;
|
|
2429
|
+
outlineSymbols?: boolean;
|
|
2430
|
+
zeroValues?: boolean;
|
|
2431
|
+
fitToPage?: boolean;
|
|
2432
|
+
printArea?: boolean;
|
|
2433
|
+
filter?: boolean;
|
|
2434
|
+
showAutoFilter?: boolean;
|
|
2435
|
+
hiddenRows?: boolean;
|
|
2436
|
+
hiddenColumns?: boolean;
|
|
2437
|
+
state?: "visible" | "hidden" | "veryHidden";
|
|
2438
|
+
filterUnique?: boolean;
|
|
2439
|
+
view?: "normal" | "pageBreakPreview" | "pageLayout";
|
|
2440
|
+
}
|
|
2441
|
+
interface CellWatchOptions {
|
|
2442
|
+
reference: string;
|
|
2443
|
+
}
|
|
2444
|
+
interface DataConsolidateOptions {
|
|
2445
|
+
function?: "average" | "count" | "countNums" | "max" | "min" | "product" | "stdDev" | "stdDevp" | "sum" | "var" | "varp";
|
|
2446
|
+
topLabels?: boolean;
|
|
2447
|
+
leftLabels?: boolean;
|
|
2448
|
+
startLabels?: boolean;
|
|
2449
|
+
link?: boolean;
|
|
2450
|
+
refs?: string[];
|
|
2451
|
+
}
|
|
2452
|
+
interface DrawingHfOptions {
|
|
2453
|
+
rId: string;
|
|
2454
|
+
lho?: number;
|
|
2455
|
+
lhe?: number;
|
|
2456
|
+
lhf?: number;
|
|
2457
|
+
cho?: number;
|
|
2458
|
+
che?: number;
|
|
2459
|
+
chf?: number;
|
|
2460
|
+
rho?: number;
|
|
2461
|
+
rhe?: number;
|
|
2462
|
+
rhf?: number;
|
|
2463
|
+
lfo?: number;
|
|
2464
|
+
lfe?: number;
|
|
2465
|
+
lff?: number;
|
|
2466
|
+
cfo?: number;
|
|
2467
|
+
cfe?: number;
|
|
2468
|
+
cff?: number;
|
|
2469
|
+
rfo?: number;
|
|
2470
|
+
rfe?: number;
|
|
2471
|
+
rff?: number;
|
|
2472
|
+
}
|
|
2473
|
+
interface WorksheetOptions {
|
|
2474
|
+
name?: string;
|
|
2475
|
+
rows?: RowOptions[];
|
|
2476
|
+
columns?: ColumnOptions[];
|
|
2477
|
+
mergeCells?: MergeCellOptions[];
|
|
2478
|
+
freezePanes?: FreezePaneOptions;
|
|
2479
|
+
protection?: SheetProtectionOptions;
|
|
2480
|
+
protectedRanges?: ProtectedRangeOptions[];
|
|
2481
|
+
scenarios?: ScenarioOptions;
|
|
2482
|
+
autoFilter?: string | AutoFilterOptions;
|
|
2483
|
+
images?: PictureOptions[];
|
|
2484
|
+
charts?: WorksheetChartOptions[];
|
|
2485
|
+
shapes?: ShapeOptions[];
|
|
2486
|
+
connectors?: ConnectorOptions[];
|
|
2487
|
+
groups?: GroupOptions[];
|
|
2488
|
+
dataValidations?: DataValidationOptions[];
|
|
2489
|
+
dataValidationsDisablePrompts?: boolean;
|
|
2490
|
+
conditionalFormats?: ConditionalFormatOptions[];
|
|
2491
|
+
hyperlinks?: HyperlinkOptions[];
|
|
2492
|
+
comments?: CommentOptions[];
|
|
2493
|
+
headerFooter?: HeaderFooterOptions;
|
|
2494
|
+
pageSetup?: PageSetupOptions;
|
|
2495
|
+
tabColor?: TabColorOptions;
|
|
2496
|
+
sheetView?: SheetViewOptions;
|
|
2497
|
+
pivotTables?: PivotTableOptions[];
|
|
2498
|
+
tables?: TableOptions[];
|
|
2499
|
+
ignoredErrors?: IgnoredErrorOptions[];
|
|
2500
|
+
phoneticPr?: PhoneticPropertiesOptions;
|
|
2501
|
+
backgroundImage?: SheetBackgroundImageOptions;
|
|
2502
|
+
printOptions?: PrintOptions;
|
|
2503
|
+
sheetFormatPr?: SheetFormatPropertiesOptions;
|
|
2504
|
+
sheetPr?: SheetPropertiesOptions;
|
|
2505
|
+
rowBreaks?: PageBreakOptions[];
|
|
2506
|
+
colBreaks?: PageBreakOptions[];
|
|
2507
|
+
customSheetViews?: CustomSheetViewOptions[];
|
|
2508
|
+
cellWatches?: CellWatchOptions[];
|
|
2509
|
+
dataConsolidate?: DataConsolidateOptions;
|
|
2510
|
+
oleSize?: string;
|
|
2511
|
+
drawingHF?: DrawingHfOptions;
|
|
2512
|
+
legacyDrawingHF?: string;
|
|
2513
|
+
selection?: SelectionOptions;
|
|
2514
|
+
pivotSelection?: PivotSelectionOptions;
|
|
2515
|
+
smartTags?: CellSmartTagsOptions[];
|
|
2516
|
+
queryTables?: QueryTableOptions[];
|
|
2517
|
+
singleXmlCells?: SingleXmlCellOptions[];
|
|
2518
|
+
sheetCalcPr?: SheetCalculationPropertiesOptions;
|
|
2519
|
+
ext?: string;
|
|
2520
|
+
controls?: ControlOptions[];
|
|
2521
|
+
customProperties?: CustomSheetPropertyOptions[];
|
|
2522
|
+
oleObjects?: OleObjectOptions[];
|
|
2523
|
+
webPublishItems?: WebPublishItemOptions[];
|
|
2524
|
+
pageMargins?: PageMarginsOptions;
|
|
2525
|
+
dimension?: string;
|
|
2526
|
+
}
|
|
2527
|
+
interface PageMarginsOptions {
|
|
2528
|
+
left?: number | UniversalMeasure;
|
|
2529
|
+
right?: number | UniversalMeasure;
|
|
2530
|
+
top?: number | UniversalMeasure;
|
|
2531
|
+
bottom?: number | UniversalMeasure;
|
|
2532
|
+
header?: number | UniversalMeasure;
|
|
2533
|
+
footer?: number | UniversalMeasure;
|
|
422
2534
|
}
|
|
423
|
-
interface
|
|
424
|
-
|
|
425
|
-
dataType?: string;
|
|
2535
|
+
interface SheetCalculationPropertiesOptions {
|
|
2536
|
+
fullCalcOnLoad?: boolean;
|
|
426
2537
|
}
|
|
427
|
-
interface
|
|
2538
|
+
interface ControlOptions {
|
|
2539
|
+
shapeId: number;
|
|
2540
|
+
rId: string;
|
|
2541
|
+
name?: string;
|
|
2542
|
+
locked?: boolean;
|
|
2543
|
+
uiObject?: boolean;
|
|
2544
|
+
recalcAlways?: boolean;
|
|
2545
|
+
linkedCell?: string;
|
|
2546
|
+
listFillRange?: string;
|
|
2547
|
+
formula?: string;
|
|
2548
|
+
}
|
|
2549
|
+
interface CustomSheetPropertyOptions {
|
|
428
2550
|
name: string;
|
|
429
|
-
|
|
430
|
-
characterSet?: string;
|
|
431
|
-
stringValue?: string;
|
|
432
|
-
integerValue?: number;
|
|
433
|
-
booleanValue?: boolean;
|
|
434
|
-
refreshOnChange?: boolean;
|
|
435
|
-
prompt?: boolean;
|
|
436
|
-
integer?: boolean;
|
|
437
|
-
reference?: string;
|
|
438
|
-
parameterType?: string;
|
|
2551
|
+
rId: string;
|
|
439
2552
|
}
|
|
440
|
-
interface
|
|
2553
|
+
interface OleObjectOptions {
|
|
2554
|
+
progId?: string;
|
|
2555
|
+
dvAspect?: "DVASPECT_CONTENT" | "DVASPECT_ICON";
|
|
2556
|
+
link?: string;
|
|
2557
|
+
oleUpdate?: "OLEUPDATE_ALWAYS" | "OLEUPDATE_ONCALL";
|
|
2558
|
+
autoLoad?: boolean;
|
|
2559
|
+
shapeId: number;
|
|
2560
|
+
rId?: string;
|
|
2561
|
+
objectPr?: OleObjectPropertiesOptions;
|
|
2562
|
+
}
|
|
2563
|
+
interface OleObjectPropertiesOptions {
|
|
2564
|
+
locked?: boolean;
|
|
2565
|
+
defaultSize?: boolean;
|
|
2566
|
+
print?: boolean;
|
|
2567
|
+
disabled?: boolean;
|
|
2568
|
+
uiObject?: boolean;
|
|
2569
|
+
autoFill?: boolean;
|
|
2570
|
+
autoLine?: boolean;
|
|
2571
|
+
autoPict?: boolean;
|
|
2572
|
+
macro?: string;
|
|
2573
|
+
altText?: string;
|
|
2574
|
+
dde?: boolean;
|
|
2575
|
+
rId?: string;
|
|
2576
|
+
}
|
|
2577
|
+
interface WebPublishItemOptions {
|
|
441
2578
|
id: number;
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
new?: boolean;
|
|
454
|
-
odcFile?: string;
|
|
455
|
-
onlyUseConnectionFile?: boolean;
|
|
456
|
-
reconnectionMethod?: number;
|
|
457
|
-
singleSignOnId?: string;
|
|
458
|
-
dbPr?: DatabasePropertiesOptions;
|
|
459
|
-
webPr?: WebPropertiesOptions;
|
|
460
|
-
textPr?: TextPropertiesOptions;
|
|
461
|
-
parameters?: ParameterOptions[];
|
|
2579
|
+
divId: string;
|
|
2580
|
+
sourceType: "sheet" | "printArea" | "autoFilter" | "range" | "chart" | "pivotTable" | "query" | "label";
|
|
2581
|
+
sourceRef?: string;
|
|
2582
|
+
sourceObject?: string;
|
|
2583
|
+
destinationFile: string;
|
|
2584
|
+
title?: string;
|
|
2585
|
+
autoRepublish?: boolean;
|
|
2586
|
+
}
|
|
2587
|
+
interface WorksheetContext {
|
|
2588
|
+
sharedStrings?: SharedStrings;
|
|
2589
|
+
styles?: Styles;
|
|
462
2590
|
}
|
|
463
2591
|
//#endregion
|
|
464
|
-
//#region src/parts/
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
2592
|
+
//#region src/parts/worksheet/descriptor.d.ts
|
|
2593
|
+
declare const worksheetDesc: CustomDescriptor<WorksheetOptions>;
|
|
2594
|
+
//#endregion
|
|
2595
|
+
//#region src/parts/worksheet/stringify.d.ts
|
|
2596
|
+
declare function stringifyWorksheet(opts: WorksheetOptions, ctx: WorksheetContext): string;
|
|
2597
|
+
//#endregion
|
|
2598
|
+
//#region src/parts/file.d.ts
|
|
2599
|
+
interface WorkbookOptions extends CorePropertiesOptions$1 {
|
|
2600
|
+
worksheets?: WorksheetOptions[];
|
|
2601
|
+
chartsheets?: ChartsheetOptions[];
|
|
2602
|
+
dialogsheets?: DialogsheetOptions[];
|
|
2603
|
+
dxfs?: DxfOptions[];
|
|
2604
|
+
colors?: ColorsOptions;
|
|
2605
|
+
tableStyles?: CustomTableStyleOptions[];
|
|
2606
|
+
theme?: ThemeOptions;
|
|
2607
|
+
cellStyles?: CustomCellStyleOptions[];
|
|
2608
|
+
cellStyleXfs?: CellStyleXfOptions[];
|
|
2609
|
+
styleExtensions?: StyleExtensionOptions[];
|
|
2610
|
+
workbookProtection?: WorkbookProtectionOptions;
|
|
2611
|
+
externalLinks?: ExternalLinkOptions[];
|
|
2612
|
+
connections?: ConnectionOptions[];
|
|
2613
|
+
metadata?: MetadataOptions;
|
|
2614
|
+
xmlMaps?: MapInfoOptions;
|
|
2615
|
+
customWorkbookViews?: CustomWorkbookViewOptions[];
|
|
2616
|
+
fileRecoveryPr?: FileRecoveryPropertiesOptions;
|
|
2617
|
+
functionGroups?: string[];
|
|
2618
|
+
webPublishing?: WebPublishingOptions;
|
|
2619
|
+
fileSharing?: FileSharingOptions;
|
|
2620
|
+
volTypes?: VolTypeOptions[];
|
|
2621
|
+
webPublishObjects?: WebPublishObjectOptions[];
|
|
2622
|
+
definedNames?: DefinedNameOptions[];
|
|
2623
|
+
bookView?: WorkbookViewOptions;
|
|
2624
|
+
calcPr?: CalculationPropertiesOptions;
|
|
2625
|
+
workbookPr?: WorkbookPropertiesOptions;
|
|
2626
|
+
calcChain?: CalcCell[];
|
|
2627
|
+
pivotCaches?: PivotCacheDefParseResult[];
|
|
2628
|
+
pivotCacheRecords?: PivotCacheRecordsParseResult[];
|
|
2629
|
+
appProperties?: AppPropertiesOptions;
|
|
2630
|
+
customProperties?: CustomPropertyOptions[];
|
|
2631
|
+
revisionLog?: SharedWorkbookOptions;
|
|
473
2632
|
}
|
|
474
|
-
interface
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
connectionID?: number;
|
|
479
|
-
dataBindingLoadMode?: number;
|
|
2633
|
+
interface SharedWorkbookOptions {
|
|
2634
|
+
headers: RevisionHeadersOptions;
|
|
2635
|
+
logs: RevisionLogOptions[];
|
|
2636
|
+
users?: UsersOptions;
|
|
480
2637
|
}
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
schemaID: string;
|
|
486
|
-
showImportExportValidationErrors?: boolean;
|
|
487
|
-
append?: boolean;
|
|
488
|
-
dataBindingLoadMode?: number;
|
|
489
|
-
autoFit?: boolean;
|
|
490
|
-
fileBinding?: boolean;
|
|
491
|
-
fileBindingName?: string;
|
|
492
|
-
preserveFormat?: boolean;
|
|
493
|
-
preserveSortAFLayout?: boolean;
|
|
494
|
-
dataBinding?: DataBindingOptions;
|
|
2638
|
+
//#endregion
|
|
2639
|
+
//#region src/parts/comments.d.ts
|
|
2640
|
+
interface CommentsDocOptions {
|
|
2641
|
+
comments: CommentOptions[];
|
|
495
2642
|
}
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
2643
|
+
declare const commentsDesc: CustomDescriptor<CommentsDocOptions>;
|
|
2644
|
+
interface VmlNoteAnchor {
|
|
2645
|
+
row: number;
|
|
2646
|
+
column: number;
|
|
2647
|
+
anchor?: number[];
|
|
2648
|
+
visible: boolean;
|
|
2649
|
+
width?: number;
|
|
2650
|
+
height?: number;
|
|
500
2651
|
}
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
2652
|
+
declare const vmlNotesDesc: CustomDescriptor<CommentsDocOptions, WriteContext, VmlNoteAnchor[]>;
|
|
2653
|
+
//#endregion
|
|
2654
|
+
//#region src/parts/pivot-table/types.d.ts
|
|
2655
|
+
interface PivotTableDescriptorOptions {
|
|
2656
|
+
options: PivotTableOptions;
|
|
2657
|
+
sourceData: PivotSourceData;
|
|
2658
|
+
cacheId: number;
|
|
506
2659
|
}
|
|
507
|
-
interface
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
2660
|
+
interface PivotFieldParseResult {
|
|
2661
|
+
axis?: string;
|
|
2662
|
+
showAll?: boolean;
|
|
2663
|
+
dataField?: boolean;
|
|
2664
|
+
hierarchy?: string;
|
|
2665
|
+
dragToRow?: boolean;
|
|
2666
|
+
dragToCol?: boolean;
|
|
2667
|
+
dragToPage?: boolean;
|
|
2668
|
+
dragToData?: boolean;
|
|
2669
|
+
dragOff?: boolean;
|
|
2670
|
+
showDropDowns?: boolean;
|
|
2671
|
+
insertBlankRow?: boolean;
|
|
2672
|
+
showPropCell?: boolean;
|
|
2673
|
+
showPropTip?: boolean;
|
|
2674
|
+
showPropAsCaption?: boolean;
|
|
2675
|
+
compact?: boolean;
|
|
2676
|
+
outline?: boolean;
|
|
2677
|
+
subtotalTop?: boolean;
|
|
2678
|
+
includeNewItemsInFilter?: boolean;
|
|
2679
|
+
avgSubtotal?: boolean;
|
|
2680
|
+
countASubtotal?: boolean;
|
|
2681
|
+
maxSubtotal?: boolean;
|
|
2682
|
+
minSubtotal?: boolean;
|
|
2683
|
+
sumSubtotal?: boolean;
|
|
511
2684
|
}
|
|
512
|
-
interface
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
2685
|
+
interface DataFieldParseResult {
|
|
2686
|
+
name?: string;
|
|
2687
|
+
fld?: number;
|
|
2688
|
+
subtotal?: string;
|
|
2689
|
+
showDataAs?: string;
|
|
2690
|
+
baseField?: number;
|
|
2691
|
+
baseItem?: number;
|
|
2692
|
+
numFmtId?: string;
|
|
517
2693
|
}
|
|
518
|
-
interface
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
2694
|
+
interface PageFieldParseResult {
|
|
2695
|
+
fld?: number;
|
|
2696
|
+
hier?: number;
|
|
2697
|
+
cap?: string;
|
|
2698
|
+
item?: number;
|
|
2699
|
+
}
|
|
2700
|
+
interface PivotFormatParseResult {
|
|
2701
|
+
action?: string;
|
|
2702
|
+
dxfId?: number;
|
|
2703
|
+
pivotArea?: Partial<PivotAreaOptions>;
|
|
2704
|
+
}
|
|
2705
|
+
interface ConditionalFormatParseResult {
|
|
2706
|
+
scope?: string;
|
|
2707
|
+
type?: string;
|
|
2708
|
+
priority?: number;
|
|
2709
|
+
pivotAreas?: Partial<PivotAreaOptions>[];
|
|
2710
|
+
}
|
|
2711
|
+
interface ChartFormatParseResult {
|
|
2712
|
+
chart?: number;
|
|
2713
|
+
format?: number;
|
|
2714
|
+
series?: boolean;
|
|
2715
|
+
pivotArea?: Partial<PivotAreaOptions>;
|
|
2716
|
+
}
|
|
2717
|
+
interface PivotHierarchyParseResult {
|
|
2718
|
+
outline?: boolean;
|
|
2719
|
+
multipleItemSelectionAllowed?: boolean;
|
|
2720
|
+
subtotalTop?: boolean;
|
|
2721
|
+
showInFieldList?: boolean;
|
|
2722
|
+
dragToRow?: boolean;
|
|
2723
|
+
dragToCol?: boolean;
|
|
2724
|
+
dragToPage?: boolean;
|
|
2725
|
+
dragToData?: boolean;
|
|
2726
|
+
dragOff?: boolean;
|
|
2727
|
+
includeNewItemsInFilter?: boolean;
|
|
2728
|
+
caption?: string;
|
|
2729
|
+
}
|
|
2730
|
+
interface PivotFilterParseResult {
|
|
2731
|
+
fld?: number;
|
|
2732
|
+
type?: string;
|
|
2733
|
+
id?: number;
|
|
2734
|
+
mpFld?: number;
|
|
2735
|
+
evalOrder?: number;
|
|
2736
|
+
iMeasureHier?: number;
|
|
2737
|
+
iMeasureFld?: number;
|
|
2738
|
+
stringValue1?: string;
|
|
2739
|
+
stringValue2?: string;
|
|
2740
|
+
}
|
|
2741
|
+
interface HierarchyUsageParseResult {
|
|
2742
|
+
hierarchyUsage: number;
|
|
2743
|
+
}
|
|
2744
|
+
interface CalculatedItemParseResult {
|
|
2745
|
+
field?: number;
|
|
2746
|
+
formula?: string;
|
|
2747
|
+
pivotArea?: Partial<PivotAreaOptions>;
|
|
2748
|
+
}
|
|
2749
|
+
interface CalculatedMemberParseResult {
|
|
2750
|
+
name?: string;
|
|
2751
|
+
mdx?: string;
|
|
2752
|
+
memberName?: string;
|
|
2753
|
+
hierarchy?: string;
|
|
2754
|
+
parent?: string;
|
|
2755
|
+
solveOrder?: number;
|
|
2756
|
+
set?: boolean;
|
|
2757
|
+
}
|
|
2758
|
+
interface PivotTableParseResult {
|
|
2759
|
+
name?: string;
|
|
2760
|
+
cacheId?: number;
|
|
2761
|
+
dataOnRows?: boolean;
|
|
2762
|
+
showHeaders?: boolean;
|
|
2763
|
+
showEmptyRow?: boolean;
|
|
2764
|
+
showEmptyCol?: boolean;
|
|
2765
|
+
grandTotalCaption?: string;
|
|
2766
|
+
errorCaption?: string;
|
|
2767
|
+
showError?: boolean;
|
|
2768
|
+
missingCaption?: string;
|
|
2769
|
+
showMissing?: boolean;
|
|
2770
|
+
pageStyle?: string;
|
|
2771
|
+
pivotTableStyle?: string;
|
|
2772
|
+
tag?: string;
|
|
2773
|
+
showItems?: boolean;
|
|
2774
|
+
editData?: boolean;
|
|
2775
|
+
disableFieldList?: boolean;
|
|
2776
|
+
showCalcMbrs?: boolean;
|
|
2777
|
+
visualTotals?: boolean;
|
|
2778
|
+
showMultipleLabel?: boolean;
|
|
2779
|
+
showDataDropDown?: boolean;
|
|
2780
|
+
showDrill?: boolean;
|
|
2781
|
+
printDrill?: boolean;
|
|
2782
|
+
showMemberPropertyTips?: boolean;
|
|
2783
|
+
showDataTips?: boolean;
|
|
2784
|
+
enableWizard?: boolean;
|
|
2785
|
+
enableDrill?: boolean;
|
|
2786
|
+
enableFieldProperties?: boolean;
|
|
2787
|
+
pageWrap?: number;
|
|
2788
|
+
pageOverThenDown?: boolean;
|
|
2789
|
+
subtotalHiddenItems?: boolean;
|
|
2790
|
+
fieldPrintTitles?: boolean;
|
|
2791
|
+
mergeItem?: boolean;
|
|
2792
|
+
showDropZones?: boolean;
|
|
2793
|
+
published?: boolean;
|
|
2794
|
+
gridDropZones?: boolean;
|
|
2795
|
+
multipleFieldFilters?: boolean;
|
|
2796
|
+
rowHeaderCaption?: string;
|
|
2797
|
+
colHeaderCaption?: string;
|
|
2798
|
+
fieldListSortAscending?: boolean;
|
|
2799
|
+
mdxSubqueries?: boolean;
|
|
2800
|
+
customListSort?: boolean;
|
|
2801
|
+
asteriskTotals?: boolean;
|
|
2802
|
+
dataPosition?: number;
|
|
2803
|
+
immersive?: boolean;
|
|
2804
|
+
vacatedStyle?: string;
|
|
2805
|
+
chartFormat?: boolean;
|
|
2806
|
+
preserveFormatting?: boolean;
|
|
2807
|
+
dataCaption?: string;
|
|
2808
|
+
location?: string;
|
|
2809
|
+
locationRowPageCount?: number;
|
|
2810
|
+
locationColPageCount?: number;
|
|
2811
|
+
pivotFields?: PivotFieldParseResult[];
|
|
2812
|
+
dataFields?: DataFieldParseResult[];
|
|
2813
|
+
rowFields?: number[];
|
|
2814
|
+
colFields?: number[];
|
|
2815
|
+
pageFields?: PageFieldParseResult[];
|
|
2816
|
+
formats?: PivotFormatParseResult[];
|
|
2817
|
+
conditionalFormats?: ConditionalFormatParseResult[];
|
|
2818
|
+
chartFormats?: ChartFormatParseResult[];
|
|
2819
|
+
pivotHierarchies?: PivotHierarchyParseResult[];
|
|
2820
|
+
filters?: PivotFilterParseResult[];
|
|
2821
|
+
rowHierarchiesUsage?: HierarchyUsageParseResult[];
|
|
2822
|
+
colHierarchiesUsage?: HierarchyUsageParseResult[];
|
|
2823
|
+
calculatedItems?: CalculatedItemParseResult[];
|
|
2824
|
+
calculatedMembers?: CalculatedMemberParseResult[];
|
|
2825
|
+
style?: string;
|
|
523
2826
|
}
|
|
524
2827
|
//#endregion
|
|
2828
|
+
//#region src/parts/pivot-table/descriptor.d.ts
|
|
2829
|
+
declare const pivotTableDesc: CustomDescriptor<PivotTableDescriptorOptions, WriteContext, PivotTableParseResult>;
|
|
2830
|
+
//#endregion
|
|
525
2831
|
//#region src/shared/media.d.ts
|
|
526
|
-
interface MediaData {
|
|
527
|
-
fileName: string;
|
|
528
|
-
type: string;
|
|
529
|
-
data: Uint8Array;
|
|
2832
|
+
interface MediaData extends BaseMediaEntry {
|
|
530
2833
|
width: number;
|
|
531
2834
|
height: number;
|
|
532
2835
|
}
|
|
533
2836
|
//#endregion
|
|
534
2837
|
//#region src/util/index.d.ts
|
|
535
2838
|
declare function columnToLetter(col: number): string;
|
|
2839
|
+
declare function letterToColumn(letters: string): number;
|
|
536
2840
|
declare function dateToSerialNumber(date: Date): number;
|
|
2841
|
+
declare function hashPassword(password: string): string;
|
|
537
2842
|
//#endregion
|
|
538
|
-
//#region src/
|
|
539
|
-
|
|
2843
|
+
//#region src/parse.d.ts
|
|
2844
|
+
interface XlsxPartRefs {
|
|
2845
|
+
worksheets: string[];
|
|
2846
|
+
charts: string[];
|
|
2847
|
+
media: string[];
|
|
2848
|
+
drawings: string[];
|
|
2849
|
+
}
|
|
2850
|
+
interface XlsxDocument {
|
|
2851
|
+
doc: ParsedArchive;
|
|
2852
|
+
workbook?: Element;
|
|
2853
|
+
worksheets: string[];
|
|
2854
|
+
styles?: Element;
|
|
2855
|
+
sharedStrings?: Element;
|
|
2856
|
+
theme?: string;
|
|
2857
|
+
partRefs: XlsxPartRefs;
|
|
2858
|
+
coreProps?: string;
|
|
2859
|
+
appProps?: string;
|
|
2860
|
+
customProps?: string;
|
|
2861
|
+
}
|
|
2862
|
+
declare function parseXlsx(data: DataType): XlsxDocument;
|
|
2863
|
+
declare function parseWorkbook(data: DataType): WorkbookOptions;
|
|
540
2864
|
//#endregion
|
|
541
|
-
//#region src/
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
addVmlDrawing(): void;
|
|
554
|
-
addImageType(extension: "png" | "jpeg"): void;
|
|
555
|
-
addPivotTable(index: number): void;
|
|
556
|
-
addPivotCacheDefinition(index: number): void;
|
|
557
|
-
addPivotCacheRecords(index: number): void;
|
|
558
|
-
addTable(index: number): void;
|
|
559
|
-
addExternalLink(index: number): void;
|
|
560
|
-
addCalcChain(): void;
|
|
561
|
-
addDialogsheet(index: number): void;
|
|
562
|
-
addRevisionHeaders(): void;
|
|
563
|
-
addRevisionLog(index: number): void;
|
|
564
|
-
addUsers(): void;
|
|
565
|
-
addQueryTable(index: number): void;
|
|
566
|
-
addMetadata(): void;
|
|
567
|
-
serialize(): string;
|
|
2865
|
+
//#region src/patch.d.ts
|
|
2866
|
+
type ScalarValue = string | number | boolean | Date;
|
|
2867
|
+
type Patch = ScalarValue;
|
|
2868
|
+
interface PatchWorkbookOptions<T extends OutputType$1 = OutputType$1> extends BasePatchOptions<T> {
|
|
2869
|
+
placeholders?: Readonly<Record<string, ScalarValue>>;
|
|
2870
|
+
findReplace?: Readonly<Record<string, ScalarValue>>;
|
|
2871
|
+
coreProperties?: Partial<CorePropertiesOptions$1>;
|
|
2872
|
+
worksheets?: {
|
|
2873
|
+
replace?: Readonly<Record<string, WorksheetOptions>>;
|
|
2874
|
+
append?: Readonly<WorksheetOptions[]>;
|
|
2875
|
+
};
|
|
2876
|
+
comments?: Readonly<Record<string, CommentOptions[]>>;
|
|
568
2877
|
}
|
|
2878
|
+
declare const patchWorkbook: <T extends OutputType$1 = OutputType$1>({
|
|
2879
|
+
outputType,
|
|
2880
|
+
data,
|
|
2881
|
+
placeholders,
|
|
2882
|
+
findReplace,
|
|
2883
|
+
coreProperties,
|
|
2884
|
+
worksheets,
|
|
2885
|
+
comments,
|
|
2886
|
+
placeholderDelimiters
|
|
2887
|
+
}: PatchWorkbookOptions<T>) => Promise<OutputByType$1[T]>;
|
|
2888
|
+
//#endregion
|
|
2889
|
+
//#region src/compiler.d.ts
|
|
2890
|
+
declare function compileWorkbook(options: WorkbookOptions, overrides?: XmlifyedFile[], mediaLevel?: number): Zippable;
|
|
569
2891
|
//#endregion
|
|
570
2892
|
//#region src/context.d.ts
|
|
2893
|
+
interface HyperlinkEntry {
|
|
2894
|
+
key: string;
|
|
2895
|
+
url: string;
|
|
2896
|
+
tooltip?: string;
|
|
2897
|
+
}
|
|
571
2898
|
declare class XlsxWriteContext implements WriteContext {
|
|
572
2899
|
sharedStrings: SharedStrings;
|
|
573
2900
|
styles: Styles;
|
|
574
2901
|
media: Media<MediaData>;
|
|
575
2902
|
charts: ChartCollection;
|
|
576
|
-
contentTypes: ContentTypes;
|
|
577
2903
|
workbookRels: Relationships;
|
|
578
2904
|
pivotCacheRefs: PivotCacheReference[];
|
|
2905
|
+
private _hyperlinks;
|
|
579
2906
|
addRelationship(type: RelationshipType, target: string, _mode?: string): string;
|
|
580
|
-
addMedia(
|
|
2907
|
+
addMedia(data: Uint8Array, type: string): string;
|
|
2908
|
+
addHyperlink(key: string, target: HyperlinkTarget): void;
|
|
581
2909
|
registerDxf(opts: DxfOptions): number;
|
|
2910
|
+
get hyperlinks(): HyperlinkEntry[];
|
|
582
2911
|
}
|
|
583
2912
|
declare class XlsxReadContext implements ReadContext {
|
|
584
2913
|
private xlsx;
|
|
@@ -596,5 +2925,10 @@ declare class XlsxReadContext implements ReadContext {
|
|
|
596
2925
|
resolveStyle(styleIndex: number): StyleOptions | undefined;
|
|
597
2926
|
}
|
|
598
2927
|
//#endregion
|
|
599
|
-
|
|
2928
|
+
//#region src/generate.d.ts
|
|
2929
|
+
declare function generateWorkbook<T extends OutputType$1 = "nodebuffer">(options: WorkbookOptions, packerOptions?: PackerOptions$1<T>): Promise<OutputByType$1[T]>;
|
|
2930
|
+
declare function generateWorkbookSync<T extends OutputType$1 = "nodebuffer">(options: WorkbookOptions, packerOptions?: PackerOptions$1<T>): OutputByType$1[T];
|
|
2931
|
+
declare function generateWorkbookStream(options: WorkbookOptions, packerOptions?: PackerOptions$1): ReadableStream<Uint8Array>;
|
|
2932
|
+
//#endregion
|
|
2933
|
+
export { type AlignmentOptions, type AnchorType, type BorderOptions, type BorderSideOptions, type CalcChainOptions, type CellFillOptions, type CellOptions, type CellStyleXfOptions, 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 ConnectionTextFieldOptions, type ConnectionsOptions, type ConnectorOptions, type ConsolidateFunction, type CorePropertiesOptions, type CustomCellStyleOptions, type CustomTableStyleOptions, type CustomWorkbookViewOptions, type DataBarOptions, type DataBindingOptions, type DataValidationOptions, type DatabasePropertiesOptions, type DefinedNameOptions, type DialogsheetOptions, type DialogsheetPageMargins, type DialogsheetPageSetup, type DialogsheetProtectionOptions, type DrawingAnchorOptions, type DrawingChartOptions, type DrawingContentPartOptions, type DrawingOptions, type DrawingPictureOptions, type EditAsType, type ExternalBookOptions, type ExternalCellOptions, type ExternalDefinedNameOptions, type ExternalLinkOptions, type ExternalRowOptions, type ExternalSheetDataOptions, type FileRecoveryPropertiesOptions, type FileSharingOptions, type FontOptions, type FormulaOptions, type FreezePaneOptions, type FutureMetadataBlockOptions, type FutureMetadataOptions, type GroupConnectorChildOptions, type GroupOptions, type GroupShapeChildOptions, type IconSetOptions, type IconSetType, type IgnoredErrorOptions, type MapInfoOptions, type MapOptions, type MdxFunctionType, type MdxKpiOptions, type MdxKpiProperty, type MdxMemberPropOptions, type MdxOptions, type MdxSetOptions, type MdxTupleOptions, Media, type MediaData, type MergeCellOptions, type MetadataBlockOptions, type MetadataOptions, type MetadataRecordOptions, type MetadataStringIndexOptions, type MetadataStringOptions, type MetadataTypeOptions, type OleItemOptions, type OleLinkOptions, type OutputByType, type OutputType, type PackerOptions, type ParameterOptions, type Patch, type PatchWorkbookOptions, type PhoneticPropertiesOptions, type PictureOptions, type PivotCacheDefDescriptorOptions, type PivotDataField, type PivotFilterOptions, PivotFilterType as PivotFilterTypeValue, type PivotTableDescriptorOptions, type PivotTableOptions, type ProtectedRangeOptions, type QueryTableDeletedFieldOptions, type QueryTableFieldOptions, type QueryTableOptions, type QueryTableRefreshOptions, 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 ScalarValue, type ScenarioCellOptions, type ScenarioDefinition, type ScenarioOptions, type SchemaOptions, type ShapeOptions, SharedStrings, type SharedStringsDocOptions, type SheetBackgroundImageOptions, type SheetProtectionOptions, type SingleXmlCellOptions, type SingleXmlCellsOptions, type StyleExtensionOptions, type StyleOptions, Styles, type StylesDocOptions, type TableColumnOptions, type TableOptions, type TableStyleInfoOptions, TableType, type TextPropertiesOptions, TotalsRowFunction, type WebPropertiesOptions, type WebPublishingOptions, type WebTableSelection, type WorkbookOptions, type WorkbookProtectionOptions, type WorksheetChartOptions, type WorksheetContext, type WorksheetOptions, type XlsxDocument, type XlsxPartRefs, XlsxReadContext, XlsxWriteContext, type XmlCellPropertiesOptions, type XmlColumnPropertiesOptions, type XmlPropertiesOptions, buildExternalReferencesXml, buildTablePartsXml, stringifyWorksheet as buildWorksheetXml, stringifyWorksheet, calcChainDesc, chartsheetDesc, columnToLetter, commentsDesc, compileWorkbook, connectionsDesc, createThemeXml, dateToSerialNumber, dialogsheetDesc, drawingDesc, externalLinkDesc, generateWorkbook, generateWorkbookStream, generateWorkbookSync, hashPassword, letterToColumn, mapInfoDesc, metadataDesc, parseWorkbook, parseXlsx, patchWorkbook, pivotCacheDefDesc, pivotCacheRecordsDesc, pivotTableDesc, queryTableDesc, sharedStringsDesc, singleXmlCellsDesc, stylesDesc, tableDesc, vmlNotesDesc, workbookDesc, worksheetDesc };
|
|
600
2934
|
//# sourceMappingURL=index.d.mts.map
|