@mescius/wijmo.xlsx 5.20232.939

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/index.d.ts ADDED
@@ -0,0 +1,2058 @@
1
+ /*!
2
+ *
3
+ * Wijmo Library 5.20232.939
4
+ * https://developer.mescius.com/wijmo
5
+ *
6
+ * Copyright(c) MESCIUS inc. All rights reserved.
7
+ *
8
+ * Licensed under the End-User License Agreement For MESCIUS Wijmo Software.
9
+ * us.sales@mescius.com
10
+ * https://developer.mescius.com/wijmo/licensing
11
+ *
12
+ */
13
+ /**
14
+ * {@module wijmo.xlsx}
15
+ * This module has a dependency on the <a href="https://stuk.github.io/jszip/" target="_blank">JSZip</a>
16
+ * library, which must be installed separately.
17
+ * * In order to use asynchronous {@link Workbook.saveAsync} and {@link Workbook.loadAsync}
18
+ * methods, install JSZip version 3.*:
19
+ * ```
20
+ * npm install jszip@3 --save
21
+ * ```
22
+ * * In order to use synchronous {@link Workbook.save} and {@link Workbook.load}
23
+ * methods, install JSZip version 2.*:
24
+ * ```
25
+ * npm install jszip@2 --save
26
+ * ```
27
+ * If your application is not based on npm, and you load modules using _script_ elements
28
+ * in _html_, you can load it from CDN with a markup like this:
29
+ * For JSZip 3
30
+ * ```html
31
+ * <script src="http://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js" />
32
+ * ```
33
+ * For JSZip 2
34
+ * ```html
35
+ * <script src="http://cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.min.js" />
36
+ * ```
37
+ */
38
+ /**
39
+ *
40
+ */
41
+ export declare var ___keepComment: any;
42
+ import * as selfModule from '@grapecity/wijmo.xlsx';
43
+ /**
44
+ * Represents an Excel workbook.
45
+ */
46
+ export declare class Workbook implements IWorkbook {
47
+ /**
48
+ * Gets or sets the name of application that generated the file that appears in the file properties.
49
+ */
50
+ application: string;
51
+ /**
52
+ * Gets or sets the name of company that generated the file that appears in the file properties.
53
+ */
54
+ company: string;
55
+ /**
56
+ * Gets or sets the creator of the xlsx file.
57
+ */
58
+ creator: string;
59
+ /**
60
+ * Gets or sets the creation time of the xlsx file.
61
+ */
62
+ created: Date;
63
+ /**
64
+ * Gets or sets the last modifier of the xlsx file.
65
+ */
66
+ lastModifiedBy: string;
67
+ /**
68
+ * Gets or sets the last modified time of the xlsx file.
69
+ */
70
+ modified: Date;
71
+ /**
72
+ * Gets or sets the index of the active sheet in the xlsx file.
73
+ */
74
+ activeWorksheet: number;
75
+ private _reservedContent;
76
+ private _sheets;
77
+ private _styles;
78
+ private _definedNames;
79
+ private _tableStyles;
80
+ private _colorThemes;
81
+ private static _alphabet;
82
+ private static _formatMap;
83
+ /**
84
+ * Initializes a new instance of the {@link Workbook} class.
85
+ */
86
+ constructor();
87
+ /**
88
+ * Gets the WorkSheet array of the workbook.
89
+ */
90
+ readonly sheets: WorkSheet[];
91
+ /**
92
+ * Gets the styles table of the workbook.
93
+ */
94
+ readonly styles: WorkbookStyle[];
95
+ /**
96
+ * Gets the defined name items of the workbook.
97
+ */
98
+ readonly definedNames: DefinedName[];
99
+ /**
100
+ * Gets the color of the workbook themes.
101
+ */
102
+ readonly colorThemes: string[];
103
+ /**
104
+ * Gets or sets the reserved content from xlsx file that flexgrid or flexsheet doesn't support yet.
105
+ */
106
+ reservedContent: any;
107
+ /**
108
+ * Saves the book to a file and returns a base-64 string representation of
109
+ * the book.
110
+ * This method works with JSZip version 2.* only.
111
+ *
112
+ * For example, this sample creates an xlsx file with a single cell:
113
+ *
114
+ * <pre>function exportXlsx(fileName) {
115
+ * var book = new wijmo.xlsx.Workbook(),
116
+ * sheet = new wijmo.xlsx.WorkSheet(),
117
+ * bookRow = new wijmo.xlsx.WorkbookRow(),
118
+ * bookCell = new wijmo.xlsx.WorkbookCell();
119
+ * bookCell.value = 'Hello, Excel!';
120
+ * bookRow.cells.push(bookCell);
121
+ * sheet.rows.push(bookRow);
122
+ * book.sheets.push(sheet);
123
+ * book.save(fileName);
124
+ * }</pre>
125
+ *
126
+ * The file name is optional. If not provided, the method still returns
127
+ * a base-64 string representing the book. This string can be used for
128
+ * further processing on the client or on the server.
129
+ *
130
+ * @param fileName Name of the xlsx file to save.
131
+ * @return A base-64 string that represents the content of the file.
132
+ */
133
+ save(fileName?: string): string;
134
+ private _cs;
135
+ /**
136
+ * Saves the book to a file asynchronously.
137
+ * This method works with JSZip version 3.* only.
138
+ *
139
+ * @param fileName Name of the xlsx file to save.
140
+ * @param onSaved This callback provides an approach to get the base-64 string
141
+ * that represents the content of the saved workbook. Since this method is an
142
+ * asynchronous method, user does not get the base-64 string immediately.
143
+ * User has to get the base-64 string via this callback.
144
+ * This has a single parameter, the base-64 string of the saved workbook.
145
+ * It will be passed to user.
146
+ * @param onError This callback catches error information when saving.
147
+ * This has a single parameter, the failure reason.
148
+ * Return value will be passed to user, if he wants to catch the save failure reason.
149
+ * @param onProgress Callback function that gives feedback about the progress of a task.
150
+ * The function accepts a single argument, the current progress as a number between 0 and 100.
151
+ *
152
+ * For example:
153
+ * <pre>
154
+ * workbook.saveAsync('', function (base64){
155
+ * // User can access the base64 string in this callback.
156
+ * document.getElementByID('export').href = 'data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;' + 'base64,' + base64;
157
+ * }, function (reason){
158
+ * // User can catch the failure reason in this callback.
159
+ * console.log('The reason of save failure is ' + reason);
160
+ * });
161
+ * </pre>
162
+ */
163
+ saveAsync(fileName?: string, onSaved?: (base64?: string) => any, onError?: (reason?: any) => any, onProgress?: (value: number) => void): void;
164
+ _externalCancellation: () => _ICancellationSource;
165
+ /**
166
+ * Cancels the export started by the {@link saveAsync} method.
167
+ * @param done Callback invoked when the method finishes executing.
168
+ */
169
+ cancelAsync(done?: () => void): void;
170
+ /**
171
+ * Loads from ArrayBuffer, base-64 string or data url.
172
+ * This method works with JSZip version 2.* only.
173
+ *
174
+ * For example:
175
+ * <pre>// This sample opens an xlsx file chosen from Open File
176
+ * // dialog and creates a workbook instance to load the file.
177
+ * &nbsp;
178
+ * // HTML
179
+ * &lt;input type="file"
180
+ * id="importFile"
181
+ * accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
182
+ * /&gt;
183
+ * &nbsp;
184
+ * // JavaScript
185
+ * var workbook, // receives imported IWorkbook
186
+ * importFile = document.getElementById('importFile');
187
+ * &nbsp;
188
+ * importFile.addEventListener('change', function () {
189
+ * loadWorkbook();
190
+ * });
191
+ * &nbsp;
192
+ * function loadWorkbook() {
193
+ * var reader,
194
+ * workbook,
195
+ * file = importFile.files[0];
196
+ * if (file) {
197
+ * reader = new FileReader();
198
+ * reader.onload = function (e) {
199
+ * workbook = new wijmo.xlsx.Workbook(),
200
+ * workbook.load(reader.result);
201
+ * };
202
+ * reader.readAsDataURL(file);
203
+ * }
204
+ * }</pre>
205
+ *
206
+ * @param data ArrayBuffer or base-64 string that contains the xlsx file content.
207
+ * @param includeStyles Indicates whether styles should be imported from xlsx file. The default value is **true**.
208
+ */
209
+ load(data: string | ArrayBuffer, includeStyles?: boolean): void;
210
+ /**
211
+ * Loads from ArrayBuffer or base-64 string or data url asynchronously.
212
+ * This method works with JSZip version 3.* only.
213
+ *
214
+ * @param data ArrayBuffer or base-64 string that contains the xlsx file content.
215
+ * @param onLoaded This callback provides an approach to get an instance of the loaded workbook.
216
+ * Since this method is an asynchronous method, user is not able to get instance of
217
+ * the loaded workbook immediately. User has to get the instance through this callback.
218
+ * This has a single parameter, instance of the loaded workbook. It will be passed to user.
219
+ * @param onError This callback catches error information when loading.
220
+ * This has a single parameter, the failure reason. Return value is
221
+ * be passed to user, if he wants to catch the load failure reason.
222
+ *
223
+ * For example:
224
+ * <pre>
225
+ * workbook.loadAsync(base64, function (workbook) {
226
+ * // User can access the loaded workbook instance in this callback.
227
+ * var app = worksheet.application ;
228
+ * ...
229
+ * }, function (reason) {
230
+ * // User can catch the failure reason in this callback.
231
+ * console.log('The reason of load failure is ' + reason);
232
+ * });
233
+ * </pre>
234
+ * @param includeStyles Indicates whether styles should be imported from xlsx file. The default value is **true**.
235
+ */
236
+ loadAsync(data: string | ArrayBuffer, onLoaded: (workbook: Workbook) => void, onError?: (reason?: any) => any, includeStyles?: boolean): void;
237
+ _serialize(): IWorkbook;
238
+ _deserialize(workbookOM: IWorkbook): void;
239
+ _addWorkSheet(workSheet: WorkSheet, sheetIndex?: number): void;
240
+ static _saveToFile(base64: string, fileName: string, containMarcos: boolean): void;
241
+ private _getBase64String;
242
+ /**
243
+ * Converts the wijmo date format to Excel format.
244
+ *
245
+ * @param format The wijmo date format.
246
+ * @return Excel format representation.
247
+ */
248
+ static toXlsxDateFormat(format: string): string;
249
+ /**
250
+ * Converts the wijmo number format to xlsx format.
251
+ *
252
+ * @param format The wijmo number format.
253
+ * @return Excel format representation.
254
+ */
255
+ static toXlsxNumberFormat(format: string): string;
256
+ /**
257
+ * Converts the xlsx multi-section format string to an array of corresponding wijmo formats.
258
+ *
259
+ * @param xlsxFormat The Excel format string, that may contain multiple format sections
260
+ * separated by a semicolon.
261
+ * @return An array of .Net format strings where each element corresponds to a separate
262
+ * Excel format section.
263
+ * The returning array always contains at least one element. It can be an empty string
264
+ * in case the passed Excel format is empty.
265
+ */
266
+ static fromXlsxFormat(xlsxFormat: string): string[];
267
+ static _fromXlsxDateFormat(format: string): string;
268
+ static _parseCellFormat(format: string, isDate: boolean): string;
269
+ static _parseExcelFormat(item: IWorkbookCell): string;
270
+ /**
271
+ * Converts zero-based cell, row or column index to Excel alphanumeric representation.
272
+ *
273
+ * @param row The zero-based row index or a null value if only column index
274
+ * is to be converted.
275
+ * @param col The zero-based column index or a null value if only row index
276
+ * is to be converted.
277
+ * @param absolute True value indicates that absolute indices is to be returned
278
+ * for both, row and column (like $D$7). The <b>absoluteCol</b> parameter allows
279
+ * to redefine this value for the column index.
280
+ * @param absoluteCol True value indicates that column index is absolute.
281
+ * @param isWholeRow Indicates whether the Cell reference is whole row, whole column or specific cell range.
282
+ * If isWholeRow is true means the cell reference is whole row.
283
+ * If isWholeRow is false means the cell reference is whole column.
284
+ * If isWholeRow is null means the cell reference is specific cell range.
285
+ * @return The alphanumeric Excel index representation.
286
+ */
287
+ static xlsxAddress(row: number, col: number, absolute?: boolean, absoluteCol?: boolean, isWholeRow?: boolean): string;
288
+ /**
289
+ * Convert Excel's alphanumeric cell, row or column index to the zero-based
290
+ * row/column indices pair.
291
+ *
292
+ * @param xlsxIndex The alphanumeric Excel index that may include alphabetic A-based
293
+ * column index and/or numeric 1-based row index, like "D15", "D" or "15". The
294
+ * alphabetic column index can be in lower or upper case.
295
+ * @return The object with <b>row</b> and <b>col</b> properties containing zero-based
296
+ * row and/or column indices.
297
+ * If row or column component is not specified in the alphanumeric index, then
298
+ * corresponding returning property is undefined.
299
+ */
300
+ static tableAddress(xlsxIndex: string): ITableAddress;
301
+ static _parseHAlignToString(hAlign: HAlign): string;
302
+ static _parseStringToHAlign(hAlign: string): HAlign;
303
+ static _parseVAlignToString(vAlign: VAlign): string;
304
+ static _parseStringToVAlign(vAlign: string): VAlign;
305
+ static _parseBorderTypeToString(type: BorderStyle): string;
306
+ static _parseStringToBorderType(type: string): BorderStyle;
307
+ static _escapeXML(s: any): string;
308
+ static _unescapeXML(val: any): string;
309
+ private static _numAlpha;
310
+ private static _alphaNum;
311
+ private _serializeWorkSheets;
312
+ private _serializeWorkbookStyles;
313
+ private _serializeDefinedNames;
314
+ private _serializeTableStyles;
315
+ private _deserializeWorkSheets;
316
+ private _deserializeWorkbookStyles;
317
+ private _deserializeDefinedNames;
318
+ private _deserializeTableStyles;
319
+ }
320
+ /**
321
+ * Represents the Workbook Object Model sheet definition that includes sheet
322
+ * properties and data.
323
+ *
324
+ * The sheet cells are stored in row objects and are accessible using JavaScript
325
+ * expressions like <b>sheet.rows[i].cells[j]</b>.
326
+ */
327
+ export declare class WorkSheet implements IWorkSheet {
328
+ /**
329
+ * Gets or sets the sheet name.
330
+ */
331
+ name: string;
332
+ /**
333
+ * Gets or sets the {@link WorkbookFrozenPane} settings.
334
+ */
335
+ frozenPane: WorkbookFrozenPane;
336
+ /**
337
+ * Gets or sets a value indicating whether summary rows appear below or
338
+ * above detail rows.
339
+ */
340
+ summaryBelow: boolean;
341
+ /**
342
+ * Gets or sets the worksheet visibility.
343
+ */
344
+ visible: boolean;
345
+ /**
346
+ * Gets or sets the row style.
347
+ *
348
+ * The property defines the style for all cells in the worksheet, and
349
+ * can be overridden by the specific cell styles.
350
+ */
351
+ style: WorkbookStyle;
352
+ /**
353
+ * Indicates whether the sheet is in "right to left" display mode, i.e. when Column A is placed on the far right.
354
+ * The default value is **undefined**, which means **false**.
355
+ */
356
+ rightToLeft: boolean;
357
+ private _columns;
358
+ private _rows;
359
+ private _tables;
360
+ _extraColumn: _WorkbookExtraColumn;
361
+ /**
362
+ * Initializes a new instance of the {@link WorkSheet} class.
363
+ */
364
+ constructor();
365
+ /**
366
+ * Gets or sets an array of sheet columns definitions.
367
+ *
368
+ * Each {@link WorkbookColumn} object in the array describes a column
369
+ * at the corresponding position in xlsx sheet, i.e. the column with index 0
370
+ * corresponds to xlsx sheet column with index A, object with
371
+ * index 1 defines sheet column with index B, and so on. If certain column
372
+ * has no description in xlsx file, then corresponding array element
373
+ * is undefined for both export and import operations.
374
+ *
375
+ * If {@link WorkbookColumn} object in the array doesn't specify the
376
+ * <b>width</b> property value, then the default column width is applied.
377
+ */
378
+ readonly columns: WorkbookColumn[];
379
+ /**
380
+ * Gets an array of sheet rows definition.
381
+ *
382
+ * Each {@link WorkbookRow} object in the array describes a row at the corresponding
383
+ * position in xlsx sheet, i.e. the row with index 0 corresponds to excel sheet
384
+ * row with index 1, object with index 1 defines sheet row with index 2, and so on.
385
+ * If certain row has no properties and data in xlsx file, then corresponding array
386
+ * element is undefined for both export and import operations.
387
+ *
388
+ * If {@link WorkbookRow} object in the array doesn't specify the <b>height</b> property
389
+ * value, then the default row height is applied.
390
+ */
391
+ readonly rows: WorkbookRow[];
392
+ /**
393
+ * Gets the name of tables refered in this worksheet.
394
+ */
395
+ readonly tables: WorkbookTable[];
396
+ _serialize(): IWorkSheet;
397
+ _deserialize(workSheetOM: _IWorkSheet): void;
398
+ _addWorkbookColumn(column: WorkbookColumn, columnIndex?: number): void;
399
+ _addWorkbookRow(row: WorkbookRow, rowIndex?: number): void;
400
+ private _serializeWorkbookColumns;
401
+ private _serializeWorkbookRows;
402
+ private _serializeTables;
403
+ private _deserializeWorkbookColumns;
404
+ private _deserializeWorkbookRows;
405
+ private _deserializeTables;
406
+ private _checkEmptyWorkSheet;
407
+ }
408
+ /**
409
+ * Represents the Workbook Object Model column definition.
410
+ */
411
+ export declare class WorkbookColumn implements IWorkbookColumn {
412
+ /**
413
+ * Gets or sets the width of the column in device-independent
414
+ * (1/96th inch) pixels or characters.
415
+ *
416
+ * The numeric value defines the width in pixels. On import,
417
+ * the widths are always expressed in pixels.
418
+ *
419
+ * The string value which is a number with the 'ch' suffix,
420
+ * for example '10ch', defines the width in characters.
421
+ * It has the same meaning as the column width defined through
422
+ * Excel UI. The width can be specified in characters
423
+ * for the export operations only.
424
+ *
425
+ * If width is not specified, then the default width is applied.
426
+ */
427
+ width: any;
428
+ /**
429
+ * Gets or sets the column visibility.
430
+ */
431
+ visible: boolean;
432
+ /**
433
+ * Gets or sets the column style.
434
+ *
435
+ * The property defines the style for all cells in the column,
436
+ * and can be overridden by the specific cell styles.
437
+ */
438
+ style: WorkbookStyle;
439
+ /**
440
+ * Gets or sets a value that determines whether the column width
441
+ * will be automatically increased to fit numeric/date contents
442
+ * after the user edits a cell.
443
+ */
444
+ autoWidth: boolean;
445
+ /**
446
+ * Initializes a new instance of the {@link WorkbookColumn} class.
447
+ */
448
+ constructor();
449
+ _serialize(): IWorkbookColumn;
450
+ _deserialize(workbookColumnOM: IWorkbookColumn): void;
451
+ private _checkEmptyWorkbookColumn;
452
+ }
453
+ export declare class _WorkbookExtraColumn extends WorkbookColumn implements _IWorkbookExtraColumn {
454
+ min: number;
455
+ max: number;
456
+ constructor();
457
+ _serialize(): _IWorkbookExtraColumn;
458
+ _deserialize(workbookColumnOM: _IWorkbookExtraColumn): void;
459
+ }
460
+ /**
461
+ * Represents the Workbook Object Model row definition.
462
+ */
463
+ export declare class WorkbookRow implements IWorkbookRow {
464
+ /**
465
+ * Gets or sets the row height in device-independent (1/96th inch) pixels.
466
+ *
467
+ * If height is not specified, then the default height is applied.
468
+ */
469
+ height: number;
470
+ /**
471
+ * Gets or sets the row visibility.
472
+ */
473
+ visible: boolean;
474
+ /**
475
+ * Gets or sets the group level of the row.
476
+ */
477
+ groupLevel: number;
478
+ /**
479
+ * Gets or sets the row style.
480
+ *
481
+ * The property defines the style for all cells in the row,
482
+ * and can be overridden by the specific cell styles.
483
+ */
484
+ style: WorkbookStyle;
485
+ /**
486
+ * Indicating if the row is in the collapsed outline state.
487
+ */
488
+ collapsed: boolean;
489
+ private _cells;
490
+ /**
491
+ * Initializes a new instance of the {@link WorkbookRow} class.
492
+ */
493
+ constructor();
494
+ /**
495
+ * Gets or sets an array of cells in the row.
496
+ *
497
+ * Each {@link WorkbookCell} object in the array describes a cell
498
+ * at the corresponding position in the row, i.e. a cell with
499
+ * index 0 pertains to column with index A, a cell with index 1
500
+ * defines cell pertaining to column with index B, and so on.
501
+ * If a certain cell has no definition (empty) in xlsx file,
502
+ * then corresponding array element is undefined for both export
503
+ * and import operations.
504
+ */
505
+ readonly cells: WorkbookCell[];
506
+ _serialize(): IWorkbookRow;
507
+ _deserialize(workbookRowOM: IWorkbookRow): void;
508
+ _addWorkbookCell(cell: WorkbookCell, cellIndex?: number): void;
509
+ private _serializeWorkbookCells;
510
+ private _deserializeWorkbookCells;
511
+ private _checkEmptyWorkbookRow;
512
+ }
513
+ /**
514
+ * Represents the Workbook Object Model cell definition.
515
+ */
516
+ export declare class WorkbookCell implements IWorkbookCell {
517
+ /**
518
+ * Gets or sets the cell value.
519
+ *
520
+ * The type of the value can be String, Number, Boolean or Date.
521
+ */
522
+ value: any;
523
+ /**
524
+ * Indicates whether the cell value is date or not.
525
+ */
526
+ isDate: boolean;
527
+ /**
528
+ * Indicates whether the cell value is number or not.
529
+ */
530
+ isNumber: boolean;
531
+ /**
532
+ * Gets or sets the formula of cell.
533
+ */
534
+ formula: string;
535
+ /**
536
+ * Gets or sets the style of cell.
537
+ */
538
+ style: WorkbookStyle;
539
+ /**
540
+ * Gets or sets the colSpan setting of cell.
541
+ */
542
+ colSpan: number;
543
+ /**
544
+ * Gets or sets the rowSpan setting of cell.
545
+ */
546
+ rowSpan: number;
547
+ /**
548
+ * Gets or sets the hyperlink of cell.
549
+ */
550
+ link: string;
551
+ /**
552
+ * Gets or sets the text runs represent the rich text of cell.
553
+ */
554
+ textRuns: WorkbookTextRun[];
555
+ /**
556
+ * Gets or sets the note of the cell.
557
+ */
558
+ note: WorkbookNote;
559
+ /**
560
+ * Initializes a new instance of the {@link WorkbookCell} class.
561
+ */
562
+ constructor();
563
+ _serialize(): IWorkbookCell;
564
+ _deserialize(workbookCellOM: IWorkbookCell): void;
565
+ private _checkEmptyWorkbookCell;
566
+ }
567
+ /**
568
+ * Represents the Workbook Object Model note definition.
569
+ */
570
+ export declare class WorkbookNote implements IWorkbookNote {
571
+ /**
572
+ * Gets or sets the author of the note.
573
+ * The default value is **undefined**.
574
+ */
575
+ author: string;
576
+ /**
577
+ * Gets or sets the text of the note.
578
+ * The default value is **undefined**.
579
+ *
580
+ * Note that on import both this and {@link textRuns} properties are filled and this property contains a plain text version of the {@link textRuns} content.
581
+ * On export {@link textRuns} takes precedence over this property if both are set.
582
+ */
583
+ text: string;
584
+ /**
585
+ * Gets or sets the text runs represent the rich text of the note.
586
+ * The default value is **undefined**.
587
+ *
588
+ * Note that on import both this and {@link text} properties are filled and {@link text} contains a plain text version of the content of this property.
589
+ * On export this property takes precedence over {@link text} if both are set.
590
+ */
591
+ textRuns: WorkbookTextRun[];
592
+ /**
593
+ * Indicates whether the note will be displayed when you open an .xlsx file or whether it will be displayed when your hover over the owner's cell.
594
+ * The default value is **undefined**, which means **true**.
595
+ */
596
+ visible: boolean;
597
+ /**
598
+ * Gets or sets the offset in the X coordinate relative to bottom-right corner of the cell, in pixels.
599
+ * The default value is **undefined**, which causes to use the default offset, 15 pixels.
600
+ */
601
+ offsetX: number;
602
+ /**
603
+ * Gets or sets the offset in the Y coordinate relative to bottom-right corner of the cell, in pixels.
604
+ * The default value is **undefined**, which causes to use the default offset, 2 pixels if the cell is in the first row, 15 pixels otherwise.
605
+ */
606
+ offsetY: number;
607
+ /**
608
+ * Gets or sets the width of the note, in pixels.
609
+ * The default value is **undefined**, which causes to use the default width, 144 pixels.
610
+ */
611
+ width: number;
612
+ /**
613
+ * Gets or sets the height of the note, in pixels.
614
+ * The default value is **undefined**, which causes to use the default height, 79 pixels.
615
+ */
616
+ height: number;
617
+ /**
618
+ * Initializes a new instance of the {@link WorkbookNote} class.
619
+ */
620
+ constructor();
621
+ _serialize(): IWorkbookNote;
622
+ _deserialize(om: IWorkbookNote): void;
623
+ }
624
+ /**
625
+ * Workbook frozen pane definition
626
+ */
627
+ export declare class WorkbookFrozenPane implements IWorkbookFrozenPane {
628
+ /**
629
+ * Gets or sets the number of frozen rows.
630
+ */
631
+ rows: number;
632
+ /**
633
+ * Gets or sets the number of frozen columns.
634
+ */
635
+ columns: number;
636
+ /**
637
+ * Initializes a new instance of the {@link WorkbookFrozenPane} class.
638
+ */
639
+ constructor();
640
+ _serialize(): IWorkbookFrozenPane;
641
+ _deserialize(workbookFrozenPaneOM: IWorkbookFrozenPane): void;
642
+ }
643
+ /**
644
+ * Represents the Workbook Object Model style definition used
645
+ * to style Excel cells, columns and rows.
646
+ */
647
+ export declare class WorkbookStyle implements IWorkbookStyle {
648
+ /**
649
+ * Cell value format, defined using Excel format syntax.
650
+ *
651
+ * The description of Excel format syntax can be found
652
+ * <a href="https://docs.microsoft.com/en-us/office/troubleshoot/excel/format-cells-settings" target="_blank">here</a>.
653
+ *
654
+ * You may use the <b>toXlsxNumberFormat</b> and <b>toXlsxDateFormat</b> static
655
+ * functions of the {@link Workbook} class to convert from .Net ({@link Globalize})
656
+ * format to Excel format.
657
+ */
658
+ format: string;
659
+ /**
660
+ * Defines the base style that this style inherits.
661
+ *
662
+ * This property is applicable for the export operations only.
663
+ * The style gets all the properties defined in the base style,
664
+ * and can override or augment them by setting its own properties.
665
+ */
666
+ basedOn: WorkbookStyle;
667
+ /**
668
+ * Gets or sets the font of style.
669
+ */
670
+ font: WorkbookFont;
671
+ /**
672
+ * Gets or sets the horizontal alignment of text.
673
+ */
674
+ hAlign: HAlign;
675
+ /**
676
+ * Gets or sets the vertical alignment of text.
677
+ */
678
+ vAlign: VAlign;
679
+ /**
680
+ * Gets or sets the indent setting of style.
681
+ */
682
+ indent: number;
683
+ /**
684
+ * Gets or sets the background setting.
685
+ */
686
+ fill: WorkbookFill;
687
+ /**
688
+ * Gets or sets the border setting.
689
+ */
690
+ borders: WorkbookBorder;
691
+ /**
692
+ * Gets or sets the word wrap setting of row.
693
+ */
694
+ wordWrap: boolean;
695
+ /**
696
+ * Initializes a new instance of the {@link WorkbookStyle} class.
697
+ */
698
+ constructor();
699
+ _serialize(): IWorkbookStyle;
700
+ _deserialize(workbookStyleOM: IWorkbookStyle): void;
701
+ private _checkEmptyWorkbookStyle;
702
+ }
703
+ /**
704
+ * Represents the Workbook Object Model font definition.
705
+ */
706
+ export declare class WorkbookFont implements IWorkbookFont {
707
+ /**
708
+ * Gets or sets the font family name.
709
+ */
710
+ family: string;
711
+ /**
712
+ * Gets or sets the font size in device-independent (1/96th inch) pixels.
713
+ */
714
+ size: number;
715
+ /**
716
+ * Indicates whether the current font is bold.
717
+ */
718
+ bold: boolean;
719
+ /**
720
+ * Indicates whether the current font has the italic style applied.
721
+ */
722
+ italic: boolean;
723
+ /**
724
+ * Indicates whether the current font is underlined.
725
+ */
726
+ underline: boolean;
727
+ /**
728
+ * Gets or sets the font color.
729
+ *
730
+ * For export, the color can be specified in any valid HTML format
731
+ * like 6-character dash notation or rgb/rgba/hsl/hsla functional form.
732
+ * In case of rgba/hsla representations, specified alpha channel value
733
+ * is ignored.
734
+ *
735
+ * For import, a value is always represented in the HTML 6-character dash
736
+ * notation, for example, "#afbfcf".
737
+ */
738
+ color: string;
739
+ /**
740
+ * Initializes a new instance of the {@link WorkbookFont} class.
741
+ */
742
+ constructor();
743
+ _serialize(): IWorkbookFont;
744
+ _deserialize(workbookFontOM: IWorkbookFont): void;
745
+ private _checkEmptyWorkbookFont;
746
+ }
747
+ /**
748
+ * Represents the Workbook Object Model background fill definition.
749
+ */
750
+ export declare class WorkbookFill implements IWorkbookFill {
751
+ /**
752
+ * Gets or sets the fill color.
753
+ *
754
+ * For export, the color can be specified in any valid HTML format
755
+ * like 6-character dash notation or rgb/rgba/hsl/hsla functional form.
756
+ * In case of rgba/hsla representations, specified alpha channel value
757
+ * is ignored.
758
+ *
759
+ * For import, a value is always represented in the HTML 6-character dash
760
+ * notation, for example, "#afbfcf".
761
+ */
762
+ color: string;
763
+ /**
764
+ * Initializes a new instance of the {@link WorkbookFill} class.
765
+ */
766
+ constructor();
767
+ _serialize(): IWorkbookFill;
768
+ _deserialize(workbookFillOM: IWorkbookFill): void;
769
+ }
770
+ /**
771
+ * Represents the Workbook Object Model border definition.
772
+ */
773
+ export declare class WorkbookBorder implements IWorkbookBorder {
774
+ /**
775
+ * Gets or sets the top border setting.
776
+ */
777
+ top: WorkbookBorderSetting;
778
+ /**
779
+ * Gets or sets the bottom border setting.
780
+ */
781
+ bottom: WorkbookBorderSetting;
782
+ /**
783
+ * Gets or sets the left border setting.
784
+ */
785
+ left: WorkbookBorderSetting;
786
+ /**
787
+ * Gets or sets the right border setting.
788
+ */
789
+ right: WorkbookBorderSetting;
790
+ /**
791
+ * Gets or sets the diagonal border setting.
792
+ */
793
+ diagonal: WorkbookBorderSetting;
794
+ /**
795
+ * Initializes a new instance of the {@link WorkbookBorder} class.
796
+ */
797
+ constructor();
798
+ _serialize(): IWorkbookBorder;
799
+ _deserialize(workbookBorderOM: IWorkbookBorder): void;
800
+ private _checkEmptyWorkbookBorder;
801
+ }
802
+ /**
803
+ * Represents the Workbook Object Model background setting definition.
804
+ */
805
+ export declare class WorkbookBorderSetting implements IWorkbookBorderSetting {
806
+ /**
807
+ * Gets or sets the border color.
808
+ *
809
+ * For export, the color can be specified in any valid HTML format
810
+ * like 6-character dash notation or rgb/rgba/hsl/hsla functional form.
811
+ * In case of rgba/hsla representations, specified alpha channel value
812
+ * is ignored.
813
+ *
814
+ * For import, a value is always represented in the HTML 6-character dash
815
+ * notation, for example, "#afbfcf".
816
+ */
817
+ color: string;
818
+ /**
819
+ * Gets or sets the border type.
820
+ */
821
+ style: BorderStyle;
822
+ /**
823
+ * Initializes a new instance of the {@link WorkbookBorderSetting} class.
824
+ */
825
+ constructor();
826
+ _serialize(): IWorkbookBorderSetting;
827
+ _deserialize(workbookBorderSettingOM: IWorkbookBorderSetting): void;
828
+ }
829
+ /**
830
+ * Represents the Workbook Object Model Defined Name item definition.
831
+ */
832
+ export declare class DefinedName implements IDefinedName {
833
+ /**
834
+ * The name of the defined name item.
835
+ */
836
+ name: string;
837
+ /**
838
+ * The value of the defined name item.
839
+ * The value could be a formula, a string constant or a cell range.
840
+ * For e.g. "Sum(1, 2, 3)", "test" or "sheet1!A1:B2"
841
+ */
842
+ value: any;
843
+ /**
844
+ * Indicates the defined name item works in which sheet.
845
+ * If omitted, the defined name item works in workbook
846
+ */
847
+ sheetName: string;
848
+ /**
849
+ * Initializes a new instance of the {@link DefinedName} class.
850
+ */
851
+ constructor();
852
+ _serialize(): IDefinedName;
853
+ _deserialize(definedNameOM: IDefinedName): void;
854
+ }
855
+ /**
856
+ * Represents the WorkbookTable Object Model background setting definition.
857
+ */
858
+ export declare class WorkbookTable implements IWorkbookTable {
859
+ /**
860
+ * The name of the table. It is used to reference the table programmatically.
861
+ */
862
+ name: string;
863
+ /**
864
+ * The range on the relevant sheet that the table occupies expressed using A1 style referencing. i.e. "A1:D4".
865
+ * The reference shall include the totals row if it is shown.
866
+ */
867
+ range: string;
868
+ /**
869
+ * Indicates whether show the header row for the table.
870
+ */
871
+ showHeaderRow: boolean;
872
+ /**
873
+ * Indicates whether show the total row for the table.
874
+ */
875
+ showTotalRow: boolean;
876
+ /**
877
+ * Indicating whether banded column formatting is applied.
878
+ */
879
+ showBandedColumns: boolean;
880
+ /**
881
+ * The table style to use with the table.
882
+ */
883
+ style: WorkbookTableStyle;
884
+ /**
885
+ * Indicating whether banded row formatting is applied.
886
+ */
887
+ showBandedRows: boolean;
888
+ /**
889
+ * Indicating whether the first column in the table should have the style applied.
890
+ */
891
+ alterFirstColumn: boolean;
892
+ /**
893
+ * Indicating whether the last column in the table should have the style applied.
894
+ */
895
+ alterLastColumn: boolean;
896
+ private _columns;
897
+ /**
898
+ * The columns of the table.
899
+ */
900
+ readonly columns: WorkbookTableColumn[];
901
+ /**
902
+ * Initializes a new instance of the {@link WorkbookTable} class.
903
+ */
904
+ constructor();
905
+ _serialize(): IWorkbookTable;
906
+ _deserialize(workbookTableOM: IWorkbookTable): void;
907
+ private _serializeTableColumns;
908
+ private _deserializeTableColumns;
909
+ }
910
+ /**
911
+ * Represents the WorkbookTableColumn Object Model background setting definition.
912
+ */
913
+ export declare class WorkbookTableColumn implements IWorkbookTableColumn {
914
+ /**
915
+ * The name of the table column. It is referenced through functions.
916
+ */
917
+ name: string;
918
+ /**
919
+ * The string to show in the totals row cell for the column.
920
+ */
921
+ totalRowLabel: string;
922
+ /**
923
+ * The function to show in the totals row cell for this column.
924
+ */
925
+ totalRowFunction: string;
926
+ /**
927
+ * Indicating whether show filter button for the column.
928
+ */
929
+ showFilterButton: boolean;
930
+ /**
931
+ * Initializes a new instance of the {@link WorkbookTableColumn} class.
932
+ */
933
+ constructor();
934
+ _serialize(): IWorkbookTableColumn;
935
+ _deserialize(workbookTableColumnOM: IWorkbookTableColumn): void;
936
+ }
937
+ /**
938
+ * Represents the WorkbookTableStyle Object Model background setting definition.
939
+ */
940
+ export declare class WorkbookTableStyle implements IWorkbookTableStyle {
941
+ /**
942
+ * The name of the table style.
943
+ */
944
+ name: string;
945
+ /**
946
+ * The whole table style.
947
+ */
948
+ wholeTableStyle: WorkbookTableCommonStyle;
949
+ /**
950
+ * The first column stripe style.
951
+ */
952
+ firstBandedColumnStyle: WorkbookTableBandedStyle;
953
+ /**
954
+ * The second column stripe style.
955
+ */
956
+ secondBandedColumnStyle: WorkbookTableBandedStyle;
957
+ /**
958
+ * The first row stripe style.
959
+ */
960
+ firstBandedRowStyle: WorkbookTableBandedStyle;
961
+ /**
962
+ * The second row stripe style.
963
+ */
964
+ secondBandedRowStyle: WorkbookTableBandedStyle;
965
+ /**
966
+ * The first column style.
967
+ */
968
+ firstColumnStyle: WorkbookTableCommonStyle;
969
+ /**
970
+ * The last column style.
971
+ */
972
+ lastColumnStyle: WorkbookTableCommonStyle;
973
+ /**
974
+ * The header row style.
975
+ */
976
+ headerRowStyle: WorkbookTableCommonStyle;
977
+ /**
978
+ * The total row style.
979
+ */
980
+ totalRowStyle: WorkbookTableCommonStyle;
981
+ /**
982
+ * The first cell style in the header row.
983
+ */
984
+ firstHeaderCellStyle: WorkbookTableCommonStyle;
985
+ /**
986
+ * The last cell style in the header row.
987
+ */
988
+ lastHeaderCellStyle: WorkbookTableCommonStyle;
989
+ /**
990
+ * The first cell style in the total row.
991
+ */
992
+ firstTotalCellStyle: WorkbookTableCommonStyle;
993
+ /**
994
+ * The last cell style in the total row.
995
+ */
996
+ lastTotalCellStyle: WorkbookTableCommonStyle;
997
+ /**
998
+ * Initializes a new instance of the {@link WorkbookTableStyle} class.
999
+ */
1000
+ constructor();
1001
+ _serialize(): IWorkbookTableStyle;
1002
+ _deserialize(workbookTableStyleOM: IWorkbookTableStyle): void;
1003
+ private _checkEmptyWorkbookTableStyle;
1004
+ }
1005
+ /**
1006
+ * Represents the WorkbookTableCommonStyle Object Model background setting definition.
1007
+ */
1008
+ export declare class WorkbookTableCommonStyle extends WorkbookStyle implements IWorkbookTableCommonStyle {
1009
+ /**
1010
+ * Table borders setting.
1011
+ */
1012
+ borders: WorkbookTableBorder;
1013
+ /**
1014
+ * Initializes a new instance of the {@link WorkbookTableCommonStyle} class.
1015
+ */
1016
+ constructor();
1017
+ _deserialize(workbookTableCommonStyleOM: IWorkbookTableCommonStyle): void;
1018
+ }
1019
+ /**
1020
+ * Represents the WorkbookTableBandedStyle Object Model background setting definition.
1021
+ */
1022
+ export declare class WorkbookTableBandedStyle extends WorkbookTableCommonStyle implements IWorkbookTableBandedStyle {
1023
+ /**
1024
+ * Number of rows or columns in a single band of striping.
1025
+ */
1026
+ size: number;
1027
+ /**
1028
+ * Initializes a new instance of the {@link WorkbookTableBandedStyle} class.
1029
+ */
1030
+ constructor();
1031
+ _serialize(): IWorkbookTableBandedStyle;
1032
+ _deserialize(workbookTableBandedStyleOM: IWorkbookTableBandedStyle): void;
1033
+ }
1034
+ /**
1035
+ * Represents the Workbook Object Model table border definition.
1036
+ */
1037
+ export declare class WorkbookTableBorder extends WorkbookBorder implements IWorkbookTableBorder {
1038
+ /**
1039
+ * Vertical border setting.
1040
+ */
1041
+ vertical: WorkbookBorderSetting;
1042
+ /**
1043
+ * Horizontal border setting.
1044
+ */
1045
+ horizontal: WorkbookBorderSetting;
1046
+ /**
1047
+ * Initializes a new instance of the {@link WorkbookTableBorder} class.
1048
+ */
1049
+ constructor();
1050
+ _serialize(): IWorkbookTableBorder;
1051
+ _deserialize(workbookBorderOM: IWorkbookTableBorder): void;
1052
+ }
1053
+ /**
1054
+ * Represents the Workbook Object Model text run definition.
1055
+ */
1056
+ export declare class WorkbookTextRun implements IWorkbookTextRun {
1057
+ /**
1058
+ * Gets or sets the font of the text run.
1059
+ */
1060
+ font: WorkbookFont;
1061
+ /**
1062
+ * Gets or sets the text of the text run.
1063
+ */
1064
+ text: string;
1065
+ /**
1066
+ * Initializes a new instance of the {@link WorkbookTextRun} class.
1067
+ */
1068
+ constructor();
1069
+ _serialize(): IWorkbookTextRun;
1070
+ _deserialize(workbookTextRunOM: IWorkbookTextRun): void;
1071
+ }
1072
+ export interface IXlsxFileContent {
1073
+ base64: string;
1074
+ base64Array: Uint8Array;
1075
+ href: Function;
1076
+ }
1077
+ /**
1078
+ * Represents the Workbook Object Model sheet definition that
1079
+ * includes sheet properties and data.
1080
+ *
1081
+ * The sheet cells are stored in row objects and are accessible
1082
+ * using JavaScript expressions like <b>sheet.rows[i].cells[j]</b>.
1083
+ */
1084
+ export interface IWorkSheet {
1085
+ /**
1086
+ * Gets or sets the sheet name.
1087
+ */
1088
+ name?: string;
1089
+ /**
1090
+ * Gets or sets an array of sheet columns definitions.
1091
+ *
1092
+ * Each {@link IWorkbookColumn} object in the array describes a column at the
1093
+ * corresponding position in xlsx sheet, i.e. column with index 0 corresponds
1094
+ * to xlsx sheet column with index A, object with index 1 defines sheet column
1095
+ * with index B, and so on. If certain column has no description in xlsx file,
1096
+ * then corresponding array element is undefined for both export and import operations.
1097
+ *
1098
+ * If {@link IWorkbookColumn} object in the array doesn't specify the <b>width</b>
1099
+ * property value, then the default column width is applied.
1100
+ */
1101
+ columns?: IWorkbookColumn[];
1102
+ /**
1103
+ * Gets or sets an array of sheet rows definition.
1104
+ *
1105
+ * Each {@link IWorkbookRow} object in the array describes a row at the
1106
+ * corresponding position in xlsx sheet, i.e. row with index 0 corresponds
1107
+ * to xlsx sheet row with index A, object with index 1 defines sheet row
1108
+ * with index B, and so on. If certain row has no description in xlsx file,
1109
+ * then corresponding array element is undefined for both export and import operations.
1110
+ *
1111
+ * If {@link IWorkbookRow} object in the array doesn't specify the <b>height</b>
1112
+ * property value, then the default row height is applied.
1113
+ */
1114
+ rows?: IWorkbookRow[];
1115
+ /**
1116
+ * Gets or sets the frozen pane settings.
1117
+ */
1118
+ frozenPane?: IWorkbookFrozenPane;
1119
+ /**
1120
+ * Gets or sets a value indicating whether summary rows appear below or above detail rows.
1121
+ */
1122
+ summaryBelow?: boolean;
1123
+ /**
1124
+ * Gets or sets the worksheet visibility.
1125
+ */
1126
+ visible?: boolean;
1127
+ /**
1128
+ * Gets or sets the sheet style.
1129
+ *
1130
+ * The property defines the style for all cells in the worksheet,
1131
+ * and can be overridden by the specific cell styles.
1132
+ */
1133
+ style?: IWorkbookStyle;
1134
+ /**
1135
+ * Gets the tables in this worksheet.
1136
+ */
1137
+ tables?: IWorkbookTable[];
1138
+ /**
1139
+ * Indicates whether the sheet is in "right to left" display mode, i.e. when Column A is placed on the far right.
1140
+ */
1141
+ rightToLeft?: boolean;
1142
+ }
1143
+ export interface _IWorkSheet extends IWorkSheet {
1144
+ maxCol?: number;
1145
+ maxRow?: number;
1146
+ tableRIds?: string[];
1147
+ externalLinks?: string[];
1148
+ _extraColumn?: _IWorkbookExtraColumn;
1149
+ }
1150
+ /**
1151
+ * Represents the Workbook Object Model column definition.
1152
+ */
1153
+ export interface IWorkbookColumn {
1154
+ /**
1155
+ * Gets or sets the width of the column in device-independent (1/96th inch) pixels
1156
+ * or characters.
1157
+ *
1158
+ * The numeric value defines the width in pixels. On import, the widths are
1159
+ * always expressed in pixels.
1160
+ *
1161
+ * The string value which is a number with the 'ch' suffix, for example '10ch',
1162
+ * defines the width in characters. It has the same meaning as the column width
1163
+ * defined through Excel UI. The width can be specified in characters
1164
+ * for the export operations only.
1165
+ *
1166
+ * If width is not specified, then the default width is applied.
1167
+ */
1168
+ width?: any;
1169
+ /**
1170
+ * Gets or sets the column visibility.
1171
+ */
1172
+ visible?: boolean;
1173
+ /**
1174
+ * Gets or sets the column style.
1175
+ *
1176
+ * The property defines the style for all cells in the column,
1177
+ * and can be overridden by the specific cell styles.
1178
+ */
1179
+ style?: IWorkbookStyle;
1180
+ /**
1181
+ * Gets or sets a value indicating whether the column width is
1182
+ * automatically adjusted to fit the content of its cells.
1183
+ */
1184
+ autoWidth?: boolean;
1185
+ }
1186
+ export interface _IWorkbookExtraColumn extends IWorkbookColumn {
1187
+ min?: number;
1188
+ max?: number;
1189
+ }
1190
+ /**
1191
+ * Represents the Workbook Object Model row definition.
1192
+ */
1193
+ export interface IWorkbookRow {
1194
+ /**
1195
+ * Gets or sets the row height in device-independent (1/96th inch) pixels.
1196
+ *
1197
+ * If height is not specified, then the default height is applied.
1198
+ */
1199
+ height?: number;
1200
+ /**
1201
+ * Gets or sets the row visibility.
1202
+ */
1203
+ visible?: boolean;
1204
+ /**
1205
+ * Gets or sets the group level of the row.
1206
+ */
1207
+ groupLevel?: number;
1208
+ /**
1209
+ * Gets or sets the row style.
1210
+ *
1211
+ * The property defines the style for all cells in the row,
1212
+ * and can be overridden by the specific cell styles.
1213
+ */
1214
+ style?: IWorkbookStyle;
1215
+ /**
1216
+ * TBD: Indicating if the row is in the collapsed outline state.
1217
+ */
1218
+ collapsed?: boolean;
1219
+ /**
1220
+ * Gets or sets an array of cells in the row.
1221
+ *
1222
+ * Each {@link IWorkbookCell} object in the array describes a cell at
1223
+ * the corresponding position in the row, i.e. cell with index 0
1224
+ * pertains to column with index A, cell with index 1 defines
1225
+ * cell pertaining to column with index B, and so on. If a certain cell
1226
+ * has no definition (empty) in xlsx file, then corresponding array
1227
+ * element is undefined for both export and import operations.
1228
+ */
1229
+ cells?: IWorkbookCell[];
1230
+ }
1231
+ /**
1232
+ * Represents the Workbook Object Model cell definition.
1233
+ */
1234
+ export interface IWorkbookCell {
1235
+ /**
1236
+ * Gets or sets the cell value.
1237
+ *
1238
+ * The type of the value can be String, Number, Boolean or Date.
1239
+ */
1240
+ value?: any;
1241
+ /**
1242
+ * Indicates whether the cell value is date or not.
1243
+ */
1244
+ isDate?: boolean;
1245
+ /**
1246
+ * Indicates whether the cell value is number or not.
1247
+ */
1248
+ isNumber?: boolean;
1249
+ /**
1250
+ * Cell formula
1251
+ */
1252
+ formula?: string;
1253
+ /**
1254
+ * Cell style
1255
+ */
1256
+ style?: IWorkbookStyle;
1257
+ /**
1258
+ * Cell colSpan setting
1259
+ */
1260
+ colSpan?: number;
1261
+ /**
1262
+ * Cell rowSpan setting
1263
+ */
1264
+ rowSpan?: number;
1265
+ /**
1266
+ * The hyperlink of the cell.
1267
+ */
1268
+ link?: string;
1269
+ /**
1270
+ * The text runs represent the rich text of cell.
1271
+ */
1272
+ textRuns?: IWorkbookTextRun[];
1273
+ /**
1274
+ * Represents the note of the cell.
1275
+ */
1276
+ note?: IWorkbookNote;
1277
+ }
1278
+ /**
1279
+ * Represents the Workbook Object Model note definition.
1280
+ */
1281
+ export interface IWorkbookNote {
1282
+ /**
1283
+ * Gets or sets the author of the note.
1284
+ * The default value is **undefined**.
1285
+ */
1286
+ author?: string;
1287
+ /**
1288
+ * Gets or sets the text of the note.
1289
+ * The default value is **undefined**.
1290
+ *
1291
+ * Note that on import both this and {@link textRuns} properties are filled and this property contains a plain text version of the {@link textRuns} content.
1292
+ * On export {@link textRuns} takes precedence over this property if both are set.
1293
+ */
1294
+ text?: string;
1295
+ /**
1296
+ * Gets or sets the text runs represent the rich text of the note.
1297
+ * The default value is **undefined**.
1298
+ *
1299
+ * Note that on import both this and {@link text} properties are filled and {@link text} contains a plain text version of the content of this property.
1300
+ * On export this property takes precedence over {@link text} if both are set.
1301
+ */
1302
+ textRuns?: IWorkbookTextRun[];
1303
+ /**
1304
+ * Indicates whether the note will be displayed when you open an .xlsx file or whether it will be displayed when your hover over the owner's cell.
1305
+ * The default value is **undefined**, which means **true**.
1306
+ */
1307
+ visible?: boolean;
1308
+ /**
1309
+ * Gets or sets the offset in the X coordinate relative to bottom-right corner of the cell, in pixels.
1310
+ * The default value is **undefined**, which causes to use the default offset, 15 pixels.
1311
+ */
1312
+ offsetX?: number;
1313
+ /**
1314
+ * Gets or sets the offset in the Y coordinate relative to bottom-right corner of the cell, in pixels.
1315
+ * The default value is **undefined**, which causes to use the default offset, 2 pixels if the cell is in the first row, 15 pixels otherwise.
1316
+ */
1317
+ offsetY?: number;
1318
+ /**
1319
+ * Gets or sets the width of the note, in pixels.
1320
+ * The default value is **undefined**, which causes to use the default width, 144 pixels.
1321
+ */
1322
+ width?: number;
1323
+ /**
1324
+ * Gets or sets the height of the note, in pixels.
1325
+ * The default value is **undefined**, which causes to use the default height, 79 pixels.
1326
+ */
1327
+ height?: number;
1328
+ _col?: number;
1329
+ _row?: number;
1330
+ }
1331
+ /**
1332
+ * Workbook frozen pane definition
1333
+ */
1334
+ export interface IWorkbookFrozenPane {
1335
+ /**
1336
+ * Gets or sets the number of frozen rows.
1337
+ */
1338
+ rows: number;
1339
+ /**
1340
+ * Gets or sets the number of frozen columns.
1341
+ */
1342
+ columns: number;
1343
+ }
1344
+ /**
1345
+ * Represents an Excel Workbook. This interface is the root of the Excel
1346
+ * Workbook Object Model (WOM) which provides a way to define properties
1347
+ * and data stored in xlsx file.
1348
+ *
1349
+ * To create an xlsx file, create a {@link Workbook} object and populate them
1350
+ * with {@link WorkSheet}, {@link WorkbookColumn}, {@link WorkbookRow}, and {@link WorkbookCell}
1351
+ * objects.
1352
+ *
1353
+ * To save xlsx files, use the {@link Workbook.save} method which can save the
1354
+ * book to a file or return it as a base-64 string.
1355
+ *
1356
+ * To load existing xlsx files, use the {@link Workbook.load} method which will
1357
+ * populate the book.
1358
+ */
1359
+ export interface IWorkbook {
1360
+ /**
1361
+ * Defines an array of Excel Workbook sheets.
1362
+ */
1363
+ sheets: IWorkSheet[];
1364
+ /**
1365
+ * Name of the application that generated the file that appears in the file properties.
1366
+ */
1367
+ application?: string;
1368
+ /**
1369
+ * Name of the company that generated the file that appears in the file properties.
1370
+ */
1371
+ company?: string;
1372
+ /**
1373
+ * Creator of the xlsx file.
1374
+ */
1375
+ creator?: string;
1376
+ /**
1377
+ * Creation time of the xlsx file.
1378
+ */
1379
+ created?: Date;
1380
+ /**
1381
+ * Last modifier of the xlsx file.
1382
+ */
1383
+ lastModifiedBy?: string;
1384
+ /**
1385
+ * Last modified time of the xlsx file.
1386
+ */
1387
+ modified?: Date;
1388
+ /**
1389
+ * Index of the active sheet in the xlsx file.
1390
+ */
1391
+ activeWorksheet?: number;
1392
+ /**
1393
+ * Styles table of the workbook.
1394
+ */
1395
+ styles?: IWorkbookStyle[];
1396
+ /**
1397
+ * The reserved content for the workbook.
1398
+ */
1399
+ reservedContent?: any;
1400
+ /**
1401
+ * The array of the defined name items.
1402
+ */
1403
+ definedNames?: IDefinedName[];
1404
+ /**
1405
+ * The color of the workbook themes.
1406
+ */
1407
+ colorThemes?: string[];
1408
+ }
1409
+ /**
1410
+ * Represents the Workbook Object Model style definition used to
1411
+ * style Excel cells, columns and rows.
1412
+ */
1413
+ export interface IWorkbookStyle {
1414
+ /**
1415
+ * Cell value format, defined using Excel format syntax.
1416
+ *
1417
+ * The description of Excel format syntax can be found
1418
+ * <a href="https://support.office.com/en-us/article/create-a-custom-number-format-78f2a361-936b-4c03-8772-09fab54be7f4" target="_blank">here</a>.
1419
+ *
1420
+ * You may use the <b>toXlsxNumberFormat</b> and <b>toXlsxDateFormat</b>
1421
+ * static functions of the {@link Workbook} class to convert from .Net
1422
+ * ({@link Globalize}) format to Excel format.
1423
+ */
1424
+ format?: string;
1425
+ /**
1426
+ * Defines the base style that this style inherits.
1427
+ *
1428
+ * This property is applicable for export operations only.
1429
+ * The style gets all the properties defined in the base style,
1430
+ * and can override or augment them by setting its own properties.
1431
+ */
1432
+ basedOn?: IWorkbookStyle;
1433
+ /**
1434
+ * Gets or sets the font properties.
1435
+ */
1436
+ font?: IWorkbookFont;
1437
+ /**
1438
+ * Gets or sets the horizontal alignment of a text.
1439
+ */
1440
+ hAlign?: HAlign;
1441
+ /**
1442
+ * Gets or sets the vertical alignment of a text.
1443
+ */
1444
+ vAlign?: VAlign;
1445
+ /**
1446
+ * Text indent.
1447
+ * It is an integer value, where an increment of 1 represents 3 spaces.
1448
+ */
1449
+ indent?: number;
1450
+ /**
1451
+ * Cell outline setting.
1452
+ */
1453
+ borders?: IWorkbookBorder;
1454
+ /**
1455
+ * Cells background.
1456
+ */
1457
+ fill?: IWorkbookFill;
1458
+ /**
1459
+ * Word wrap setting.
1460
+ */
1461
+ wordWrap?: boolean;
1462
+ }
1463
+ /**
1464
+ * Represents the Workbook Object Model font definition.
1465
+ */
1466
+ export interface IWorkbookFont {
1467
+ /**
1468
+ * Gets or sets the font family name.
1469
+ */
1470
+ family?: string;
1471
+ /**
1472
+ * Gets or sets the font size in device-independent (1/96th inch) pixels.
1473
+ */
1474
+ size?: number;
1475
+ /**
1476
+ * Gets or sets a value indicating whether this font is bold.
1477
+ */
1478
+ bold?: boolean;
1479
+ /**
1480
+ * Gets or sets a value indicating whether this font has the italic style applied.
1481
+ */
1482
+ italic?: boolean;
1483
+ /**
1484
+ * Gets or sets a value indicating whether this font is underlined.
1485
+ */
1486
+ underline?: boolean;
1487
+ /**
1488
+ * Gets or sets the font color.
1489
+ *
1490
+ * For export, the color can be specified in any valid HTML format like
1491
+ * 6-character dash notation or rgb/rgba/hsl/hsla functional form. In case
1492
+ * of rgba/hsla representations, specified alpha channel value
1493
+ * is ignored.
1494
+ *
1495
+ * For import, a value is always represented in the HTML 6-character
1496
+ * dash notation, for example, "#afbfcf".
1497
+ */
1498
+ color?: string;
1499
+ }
1500
+ /**
1501
+ * Workbook cell outline definition.
1502
+ */
1503
+ export interface IWorkbookBorder {
1504
+ /**
1505
+ * Top border setting.
1506
+ */
1507
+ top?: IWorkbookBorderSetting;
1508
+ /**
1509
+ * Bottom border setting.
1510
+ */
1511
+ bottom?: IWorkbookBorderSetting;
1512
+ /**
1513
+ * Left border setting.
1514
+ */
1515
+ left?: IWorkbookBorderSetting;
1516
+ /**
1517
+ * Right border setting.
1518
+ */
1519
+ right?: IWorkbookBorderSetting;
1520
+ /**
1521
+ * Diagonal border setting.
1522
+ */
1523
+ diagonal?: IWorkbookBorderSetting;
1524
+ }
1525
+ /**
1526
+ * Border style definition
1527
+ */
1528
+ export interface IWorkbookBorderSetting {
1529
+ /**
1530
+ * Border color.
1531
+ *
1532
+ * For export, the color can be specified in any valid HTML format like
1533
+ * 6-character dash notation or rgb/rgba/hsl/hsla functional form. In case
1534
+ * of rgba/hsla representations, specified alpha channel value
1535
+ * is ignored.
1536
+ *
1537
+ * For import, a value is always represented in the HTML 6-character
1538
+ * dash notation, for example, "#afbfcf".
1539
+ */
1540
+ color?: string;
1541
+ /**
1542
+ * Border type.
1543
+ */
1544
+ style?: BorderStyle;
1545
+ }
1546
+ /**
1547
+ * Represents the Workbook Object Model background fill definition.
1548
+ */
1549
+ export interface IWorkbookFill {
1550
+ /**
1551
+ * Gets or sets the fill color.
1552
+ *
1553
+ * For export, the color can be specified in any valid HTML format like
1554
+ * 6-character dash notation or rgb/rgba/hsl/hsla functional form. In case
1555
+ * of rgba/hsla representations, specified alpha channel value
1556
+ * is ignored.
1557
+ *
1558
+ * For import, a value is always represented in the HTML 6-character
1559
+ * dash notation, for example, "#afbfcf".
1560
+ */
1561
+ color?: string;
1562
+ }
1563
+ export interface ITableIndex {
1564
+ row: number;
1565
+ col: number;
1566
+ absCol: boolean;
1567
+ absRow: boolean;
1568
+ }
1569
+ /**
1570
+ * Defines a cell index with zero-based row and column components,
1571
+ * as well as the properties indicating whether the index component
1572
+ * is absolute (for example: "$D") or relative (for example: "D").
1573
+ *
1574
+ * It is not related with the WorkbookTable any more.
1575
+ * It is a zero-based row/column indices pair that stores the converted Excel's alphanumeric cell.
1576
+ */
1577
+ export interface ITableAddress {
1578
+ /**
1579
+ * A zero-based row index.
1580
+ */
1581
+ row: number;
1582
+ /**
1583
+ * A zero-based column index.
1584
+ */
1585
+ col: number;
1586
+ /**
1587
+ * Indicates whether the original column index is absolute (for example: "$D")
1588
+ * or relative (for example: "D").
1589
+ */
1590
+ absCol: boolean;
1591
+ /**
1592
+ * Indicates whether the original row index is absolute (for example: "$15")
1593
+ * or relative (for example: "15").
1594
+ */
1595
+ absRow: boolean;
1596
+ }
1597
+ /**
1598
+ * Represents the Defined name definition.
1599
+ */
1600
+ export interface IDefinedName {
1601
+ /**
1602
+ * The name of the defined name item.
1603
+ */
1604
+ name: string;
1605
+ /**
1606
+ * The value of the defined name item.
1607
+ * The value could be a formula, a string constant or a cell range.
1608
+ * For e.g. "Sum(1, 2, 3)", "test" or "sheet1!A1:B2"
1609
+ */
1610
+ value: any;
1611
+ /**
1612
+ * Indicates the defined name item works in which sheet.
1613
+ * If omitted, the defined name item works in workbook.
1614
+ */
1615
+ sheetName?: string;
1616
+ }
1617
+ /**
1618
+ * Represents the Table definition.
1619
+ */
1620
+ export interface IWorkbookTable {
1621
+ /**
1622
+ * The name of the table. It is used to reference the table programmatically.
1623
+ */
1624
+ name: string;
1625
+ /**
1626
+ * The range on the relevant sheet that the table occupies expressed using A1 style referencing. i.e. "A1:D4".
1627
+ * The reference shall include the totals row if it is shown.
1628
+ */
1629
+ range: string;
1630
+ /**
1631
+ * Indicates whether show the header row for the table.
1632
+ */
1633
+ showHeaderRow: boolean;
1634
+ /**
1635
+ * Indicates whether show the total row for the table.
1636
+ */
1637
+ showTotalRow: boolean;
1638
+ /**
1639
+ * Indicating whether banded column formatting is applied.
1640
+ */
1641
+ showBandedColumns: boolean;
1642
+ /**
1643
+ * The table style to use with the table.
1644
+ */
1645
+ style: IWorkbookTableStyle;
1646
+ /**
1647
+ * Indicating whether banded row formatting is applied.
1648
+ */
1649
+ showBandedRows: boolean;
1650
+ /**
1651
+ * Indicating whether the first column in the table should have the style applied.
1652
+ */
1653
+ alterFirstColumn: boolean;
1654
+ /**
1655
+ * Indicating whether the last column in the table should have the style applied.
1656
+ */
1657
+ alterLastColumn: boolean;
1658
+ /**
1659
+ * The columns of the table.
1660
+ */
1661
+ columns: IWorkbookTableColumn[];
1662
+ }
1663
+ export interface _IWorkbookTable extends IWorkbookTable {
1664
+ fileName?: string;
1665
+ }
1666
+ /**
1667
+ * Represents the Table Column definition.
1668
+ */
1669
+ export interface IWorkbookTableColumn {
1670
+ /**
1671
+ * The name of the table column. It is referenced through functions.
1672
+ */
1673
+ name: string;
1674
+ /**
1675
+ * The string to show in the totals row cell for the column.
1676
+ */
1677
+ totalRowLabel?: string;
1678
+ /**
1679
+ * The function to show in the totals row cell for this column.
1680
+ */
1681
+ totalRowFunction?: string;
1682
+ /**
1683
+ * Indicating whether show filter button for the column.
1684
+ */
1685
+ showFilterButton?: boolean;
1686
+ }
1687
+ /**
1688
+ * Represents the Table Style definition.
1689
+ */
1690
+ export interface IWorkbookTableStyle {
1691
+ /**
1692
+ * The name of the table style.
1693
+ */
1694
+ name: string;
1695
+ /**
1696
+ * The whole table style.
1697
+ */
1698
+ wholeTableStyle?: IWorkbookTableCommonStyle;
1699
+ /**
1700
+ * The first column stripe style.
1701
+ */
1702
+ firstBandedColumnStyle?: IWorkbookTableBandedStyle;
1703
+ /**
1704
+ * The second column stripe style.
1705
+ */
1706
+ secondBandedColumnStyle?: IWorkbookTableBandedStyle;
1707
+ /**
1708
+ * The first row stripe style.
1709
+ */
1710
+ firstBandedRowStyle?: IWorkbookTableBandedStyle;
1711
+ /**
1712
+ * The second row stripe style.
1713
+ */
1714
+ secondBandedRowStyle?: IWorkbookTableBandedStyle;
1715
+ /**
1716
+ * The first column style.
1717
+ */
1718
+ firstColumnStyle?: IWorkbookTableCommonStyle;
1719
+ /**
1720
+ * The last column style.
1721
+ */
1722
+ lastColumnStyle?: IWorkbookTableCommonStyle;
1723
+ /**
1724
+ * The header row style.
1725
+ */
1726
+ headerRowStyle?: IWorkbookTableCommonStyle;
1727
+ /**
1728
+ * The total row style.
1729
+ */
1730
+ totalRowStyle?: IWorkbookTableCommonStyle;
1731
+ /**
1732
+ * The first cell style in the header row.
1733
+ */
1734
+ firstHeaderCellStyle?: IWorkbookTableCommonStyle;
1735
+ /**
1736
+ * The last cell style in the header row.
1737
+ */
1738
+ lastHeaderCellStyle?: IWorkbookTableCommonStyle;
1739
+ /**
1740
+ * The first cell style in the total row.
1741
+ */
1742
+ firstTotalCellStyle?: IWorkbookTableCommonStyle;
1743
+ /**
1744
+ * The last cell style in the total row.
1745
+ */
1746
+ lastTotalCellStyle?: IWorkbookTableCommonStyle;
1747
+ }
1748
+ /**
1749
+ * Represents the Table Common Style definition.
1750
+ */
1751
+ export interface IWorkbookTableCommonStyle extends IWorkbookStyle {
1752
+ /**
1753
+ * Table borders setting.
1754
+ */
1755
+ borders?: IWorkbookTableBorder;
1756
+ }
1757
+ /**
1758
+ * Represents the Table Stripe Style definition.
1759
+ */
1760
+ export interface IWorkbookTableBandedStyle extends IWorkbookTableCommonStyle {
1761
+ /**
1762
+ * Number of rows or columns in a single band of striping.
1763
+ */
1764
+ size?: number;
1765
+ }
1766
+ /**
1767
+ * Table border definition.
1768
+ */
1769
+ export interface IWorkbookTableBorder extends IWorkbookBorder {
1770
+ /**
1771
+ * Vertical border setting.
1772
+ */
1773
+ vertical?: IWorkbookBorderSetting;
1774
+ /**
1775
+ * Horizontal border setting.
1776
+ */
1777
+ horizontal?: IWorkbookBorderSetting;
1778
+ }
1779
+ /**
1780
+ * Piece of text run for rich text.
1781
+ */
1782
+ export interface IWorkbookTextRun {
1783
+ /**
1784
+ * The font of the text run.
1785
+ */
1786
+ font?: IWorkbookFont;
1787
+ /**
1788
+ * The text of the text run.
1789
+ */
1790
+ text: string;
1791
+ }
1792
+ /**
1793
+ * Defines the Workbook Object Model horizontal text alignment.
1794
+ */
1795
+ export declare enum HAlign {
1796
+ /** Alignment depends on the cell value type. */
1797
+ General = 0,
1798
+ /** Text is aligned to the left. */
1799
+ Left = 1,
1800
+ /** Text is centered. */
1801
+ Center = 2,
1802
+ /** Text is aligned to the right. */
1803
+ Right = 3,
1804
+ /** Text is replicated to fill the whole cell width. */
1805
+ Fill = 4,
1806
+ /** Text is justified. */
1807
+ Justify = 5
1808
+ }
1809
+ /**
1810
+ * Vertical alignment
1811
+ */
1812
+ export declare enum VAlign {
1813
+ /** Top vertical alignment */
1814
+ Top = 0,
1815
+ /** Center vertical alignment */
1816
+ Center = 1,
1817
+ /** Bottom vertical alignment */
1818
+ Bottom = 2,
1819
+ /** Justified vertical alignment */
1820
+ Justify = 3
1821
+ }
1822
+ export declare enum TextDirection {
1823
+ /**
1824
+ * Text direction is context dependent.
1825
+ */
1826
+ Context = 0,
1827
+ /**
1828
+ * Text direction is from left to right.
1829
+ */
1830
+ LeftToRight = 1,
1831
+ /**
1832
+ * Text direction is from right to left.
1833
+ */
1834
+ RightToLeft = 2
1835
+ }
1836
+ export declare enum TextOrientation {
1837
+ /**
1838
+ * Orientates text horizontally.
1839
+ */
1840
+ Horizontal = 0,
1841
+ /**
1842
+ * Orientates text vertically.
1843
+ */
1844
+ Vertical = 1,
1845
+ /**
1846
+ * Rotates text 90 degrees counterclockwise.
1847
+ */
1848
+ RotateUp = 2,
1849
+ /**
1850
+ * Rotates text 90 degrees clockwise.
1851
+ */
1852
+ RotateDown = 3
1853
+ }
1854
+ /**
1855
+ * Border line style
1856
+ */
1857
+ export declare enum BorderStyle {
1858
+ /** No border */
1859
+ None = 0,
1860
+ /** Thin border */
1861
+ Thin = 1,
1862
+ /** Medium border */
1863
+ Medium = 2,
1864
+ /** Dashed border */
1865
+ Dashed = 3,
1866
+ /** Dotted border */
1867
+ Dotted = 4,
1868
+ /** Thick line border */
1869
+ Thick = 5,
1870
+ /** Double line border */
1871
+ Double = 6,
1872
+ /** Hair line border */
1873
+ Hair = 7,
1874
+ /** Medium dashed border */
1875
+ MediumDashed = 8,
1876
+ /** Thin dash dotted border */
1877
+ ThinDashDotted = 9,
1878
+ /** Medium dash dotted border */
1879
+ MediumDashDotted = 10,
1880
+ /** Thin dash dot dotted border */
1881
+ ThinDashDotDotted = 11,
1882
+ /** Medium dash dot dotted border */
1883
+ MediumDashDotDotted = 12,
1884
+ /** Slanted medium dash dotted border */
1885
+ SlantedMediumDashDotted = 13
1886
+ }
1887
+ /**
1888
+ * NOTE: This function is OBSOLETE and retained for compatibility.
1889
+ * It is no longer needed because wijmo.xlsx module loads
1890
+ * jszip module automatically. You should only ensure that jszip module is installed in
1891
+ * your application.
1892
+ *
1893
+ * Defines a reference to JSZip module that will be used by the Wijmo xlsx export modules.
1894
+ *
1895
+ * This method should be used in npm modules based applications to provide wijmo.xlsx module
1896
+ * with a reference to the JSZip module retrieved using the ES6 import statement. For example:
1897
+ * <pre>import * as JSZip from 'jszip';
1898
+ * import * as wjcXlsx from 'wijmo/wijmo.xlsx';
1899
+ * wjcXlsx.useJSZip(JSZip);
1900
+ * </pre>
1901
+ *
1902
+ * @param jszip Reference to the JSZip constructor function.
1903
+ */
1904
+ export declare function useJSZip(jszip: any): void;
1905
+ export declare class _xlsx {
1906
+ private static _alphabet;
1907
+ private static _alphabetMap;
1908
+ private static _indexedColors;
1909
+ private static _numFmts;
1910
+ private static _tableColumnFunctions;
1911
+ private static _xmlDescription;
1912
+ private static _workbookNS;
1913
+ private static _relationshipsNS;
1914
+ private static _defaultFontName;
1915
+ private static _defaultFontSize;
1916
+ private static _macroEnabled;
1917
+ private static _sharedStrings;
1918
+ static readonly _defaultColorThemes: string[];
1919
+ private static _colorThemes;
1920
+ private static _styles;
1921
+ private static _sharedFormulas;
1922
+ private static _borders;
1923
+ private static _fonts;
1924
+ private static _fills;
1925
+ private static _contentTypes;
1926
+ private static _props;
1927
+ private static _xlRels;
1928
+ private static _worksheets;
1929
+ private static _tableStyles;
1930
+ private static _dxfs;
1931
+ private static _tables;
1932
+ private static _notes;
1933
+ static load(data: string | ArrayBuffer, includeStyles?: boolean): IWorkbook;
1934
+ static loadAsync(data: string | ArrayBuffer, includeStyles?: boolean): any;
1935
+ static save(workbook: IWorkbook): any;
1936
+ static saveAsync(workbook: IWorkbook, cs: _ICancellationSource, onError?: (reason?: any) => any, onProgress?: (value: number) => void): _SyncPromise;
1937
+ private static _loadImpl;
1938
+ private static _readNotes;
1939
+ private static _saveWorkbookToZip;
1940
+ private static _writeNotes;
1941
+ private static _generateWorksheets;
1942
+ private static _getSharedString;
1943
+ private static _extractTextRuns;
1944
+ private static _getInlineString;
1945
+ private static _asciiCtrlReplacements;
1946
+ private static _escape;
1947
+ private static _unescape;
1948
+ private static _unescapeNumericEntities;
1949
+ private static _getCoreSetting;
1950
+ private static _getWorkbook;
1951
+ private static _getTheme;
1952
+ private static _getStyle;
1953
+ private static _getEdgeBorder;
1954
+ private static _getSheet;
1955
+ private static _getTable;
1956
+ private static _getTableColumn;
1957
+ private static _getSheetRelatedTable;
1958
+ private static _getSheetRelatedHyperlink;
1959
+ private static _getTableStyles;
1960
+ private static _getTableStyleElement;
1961
+ private static _getTableStyleByName;
1962
+ private static _getHyperlink;
1963
+ private static _getTextRunFont;
1964
+ private static _getTextOfTextRuns;
1965
+ private static _isBuiltInStyleName;
1966
+ private static _generateRelsDoc;
1967
+ private static _generateThemeDoc;
1968
+ private static _generateClrScheme;
1969
+ private static _generateFontScheme;
1970
+ private static _generateFmtScheme;
1971
+ private static _generateFillScheme;
1972
+ private static _generateLineStyles;
1973
+ private static _generateEffectScheme;
1974
+ private static _generateBgFillScheme;
1975
+ private static _generateCoreDoc;
1976
+ private static _generateSheetGlobalSetting;
1977
+ private static _generateCell;
1978
+ private static _generateMergeSetting;
1979
+ private static _generateStyleDoc;
1980
+ private static _generateBorderStyle;
1981
+ private static _generateFontStyle;
1982
+ private static _generateFillStyle;
1983
+ private static _generateCellXfs;
1984
+ private static _generateContentTypesDoc;
1985
+ private static _generateAppDoc;
1986
+ private static _generateWorkbookRels;
1987
+ private static _generateWorkbook;
1988
+ private static _generateWorksheetRows;
1989
+ private static _generateWorkSheet;
1990
+ private static _generateWorksheetColumn;
1991
+ private static _generateSharedStringsDoc;
1992
+ private static _generateTextRuns;
1993
+ private static _generatePlainText;
1994
+ private static _generateTable;
1995
+ private static _generateTableFilterSetting;
1996
+ private static _generateHyperlinkRel;
1997
+ private static _getDxfs;
1998
+ private static _generateDxfs;
1999
+ private static _generateTableStyles;
2000
+ private static _isEmptyStyleEle;
2001
+ private static _getTableFileName;
2002
+ private static _getColor;
2003
+ private static _getThemeColor;
2004
+ private static _parsedColors;
2005
+ private static _parseColor;
2006
+ private static _getsBaseSharedFormulas;
2007
+ private static _parseSharedFormulaInfo;
2008
+ private static _getSharedFormula;
2009
+ private static _convertDate;
2010
+ private static _parseBorder;
2011
+ private static _applyDefaultBorder;
2012
+ private static _resolveStyleInheritance;
2013
+ static _parsePixelToCharWidth(pixels: any): number;
2014
+ private static _parseCharWidthToPixel;
2015
+ private static _parseCharCountToCharWidth;
2016
+ private static _numAlpha;
2017
+ private static _alphaNum;
2018
+ private static _typeOf;
2019
+ private static _extend;
2020
+ private static _isEmpty;
2021
+ private static _cloneStyle;
2022
+ private static _cloneColumnsStyle;
2023
+ private static _getSheetIndex;
2024
+ private static _checkRangeForIntersections;
2025
+ private static _getAttr;
2026
+ private static _getChildNodeValue;
2027
+ private static _getElementValue;
2028
+ private static _getSubElement;
2029
+ private static _getSheetIndexBySheetName;
2030
+ private static _sheetHasNotes;
2031
+ private static _collectNotes;
2032
+ }
2033
+ export interface _ISyncPromiseCallback {
2034
+ onFulfilled?: (value?: any) => any;
2035
+ onRejected?: (reason?: any) => any;
2036
+ }
2037
+ export interface _ICancellationSource {
2038
+ cancelled: boolean;
2039
+ cancel(): void;
2040
+ }
2041
+ export declare class _SyncPromise implements _ISyncPromiseCallback, _ICancellationSource {
2042
+ static serial(cs: _ICancellationSource, promises: (() => _SyncPromise)[]): _SyncPromise;
2043
+ private _callbacks;
2044
+ private _resolved;
2045
+ private _cs;
2046
+ private _onCancel;
2047
+ private _cancelled;
2048
+ constructor(cs?: _ICancellationSource, onCancel?: Function);
2049
+ cancel(raiseEvent?: boolean): void;
2050
+ readonly cancelled: boolean;
2051
+ then(onFulfilled?: (value?: any) => any, onRejected?: (reason?: any) => any): this;
2052
+ catch(onRejected: (reason?: any) => any): _SyncPromise;
2053
+ resolve(value?: any): this;
2054
+ reject(reason?: any): this;
2055
+ onFulfilled(value: any): void;
2056
+ onRejected(reason: any): void;
2057
+ }
2058
+ export declare function _map(value: number, minIn: number, maxIn: number, minOut: number, maxOut: number): number;