@mescius/wijmo.grid.sheet 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/COMMERCIAL-LICENSE.html +485 -0
- package/README.md +363 -0
- package/es2015-commonjs.js +14 -0
- package/es2015-esm.js +14 -0
- package/es5-esm.js +14 -0
- package/index.d.ts +3032 -0
- package/index.js +14 -0
- package/package.json +47 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,3032 @@
|
|
|
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.grid.sheet}
|
|
15
|
+
* Defines the {@link FlexSheet} control and associated classes.
|
|
16
|
+
*
|
|
17
|
+
* The {@link FlexSheet} control extends the {@link FlexGrid} control to provide
|
|
18
|
+
* Excel-like features.
|
|
19
|
+
*
|
|
20
|
+
* {@sample Grid/FlexSheet/Bound/purejs Example}
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare var ___keepComment: any;
|
|
26
|
+
import { CollectionView, Point, ObservableArray, Control, Event, EventArgs, PropertyChangedEventArgs, NotifyCollectionChangedEventArgs, CancelEventArgs } from '@grapecity/wijmo';
|
|
27
|
+
import { Row, Column, CellRange, GridPanel, FlexGrid, DataMap, CellRangeEventArgs, HitTestInfo, CellFactory, CellType, _SelectionHandler, SelMove, RowColCollection, RowCollection, ColumnCollection, SelectedState } from '@grapecity/wijmo.grid';
|
|
28
|
+
import { ColumnFilter, FilterType, ValueFilter, ConditionFilter, ValueFilterEditor, ColumnFilterEditor, FlexGridFilter } from '@grapecity/wijmo.grid.filter';
|
|
29
|
+
import { Workbook } from '@grapecity/wijmo.xlsx';
|
|
30
|
+
import { HtmlEntityConversion } from '@grapecity/wijmo.grid.xlsx';
|
|
31
|
+
import * as mInput from '@grapecity/wijmo.input';
|
|
32
|
+
import * as mXlsx from '@grapecity/wijmo.xlsx';
|
|
33
|
+
import * as selfModule from '@grapecity/wijmo.grid.sheet';
|
|
34
|
+
export declare function softInput(): typeof mInput;
|
|
35
|
+
export declare function softXlsx(): typeof mXlsx;
|
|
36
|
+
export declare var _ErrorMessages: {
|
|
37
|
+
InvalidCellRef: string;
|
|
38
|
+
InvalidSheetRef: string;
|
|
39
|
+
InvalidTableRef: string;
|
|
40
|
+
InvalidTableColRef: string;
|
|
41
|
+
InvalidParameters: string;
|
|
42
|
+
BadExpression: string;
|
|
43
|
+
CircRef: string;
|
|
44
|
+
InvalidParameter: (name: string) => string;
|
|
45
|
+
ParameterIsOutOfRange: (name: string) => string;
|
|
46
|
+
RowIsOutOfTableRange: (name: string) => string;
|
|
47
|
+
UnkFuncName: (name: string) => string;
|
|
48
|
+
DefNameInvalidSheet: (sheetName: string) => string;
|
|
49
|
+
InvalidTable: (name: string) => string;
|
|
50
|
+
InvalidExpression: (expression: string) => string;
|
|
51
|
+
Atan2ArgsLessThanZero: string;
|
|
52
|
+
RateCriteriaFails: string;
|
|
53
|
+
RangesMustBeTheSame: string;
|
|
54
|
+
TooFewParameters: string;
|
|
55
|
+
TooManyParameters: string;
|
|
56
|
+
ExpressionExpected: string;
|
|
57
|
+
UnbalancedParenthesis: string;
|
|
58
|
+
UnbalancedSquareBrackets: string;
|
|
59
|
+
TableReferencesExpected: string;
|
|
60
|
+
IdentifierExpected: string;
|
|
61
|
+
CantFindFinalQuote: string;
|
|
62
|
+
IllegalCrossSheetReference: string;
|
|
63
|
+
CantFindFinalDateDelimiter: string;
|
|
64
|
+
CellRefMustBeInSameSheet: string;
|
|
65
|
+
SyntaxError: string;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Represents the error that occurs when evaluating the formula.
|
|
69
|
+
*
|
|
70
|
+
* This class is not intended to be instantiated in your code.
|
|
71
|
+
*/
|
|
72
|
+
export declare class FormulaError {
|
|
73
|
+
private _error;
|
|
74
|
+
private _data;
|
|
75
|
+
protected constructor(error: string, data?: any);
|
|
76
|
+
/**
|
|
77
|
+
* Gets the error code, for example "#DIV/0!".
|
|
78
|
+
*/
|
|
79
|
+
readonly error: string;
|
|
80
|
+
/**
|
|
81
|
+
* Ges the data associated with the error.
|
|
82
|
+
*
|
|
83
|
+
* It could be a text that explains the error or a JavaScript exception object associated with the error.
|
|
84
|
+
*/
|
|
85
|
+
readonly data: any;
|
|
86
|
+
/**
|
|
87
|
+
* Returns the string that represents the error.
|
|
88
|
+
*/
|
|
89
|
+
toString(): any;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Represents the "#DIV/0!" error that occurs when a number is divided by zero.
|
|
93
|
+
*
|
|
94
|
+
* This class is not intended to be instantiated in your code.
|
|
95
|
+
*/
|
|
96
|
+
export declare class DivideByZeroError extends FormulaError {
|
|
97
|
+
constructor(data?: string);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Represents the "#NAME?" error that occurs when FlexSheet is unable to recognize text in a formula (for example, when function name is mistyped).
|
|
101
|
+
*
|
|
102
|
+
* This class is not intended to be instantiated in your code.
|
|
103
|
+
*/
|
|
104
|
+
export declare class NameError extends FormulaError {
|
|
105
|
+
constructor(data?: string);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Represents the "#REF!" error that occurs when a cell reference is not valid.
|
|
109
|
+
*
|
|
110
|
+
* This class is not intended to be instantiated in your code.
|
|
111
|
+
*/
|
|
112
|
+
export declare class ReferenceError extends FormulaError {
|
|
113
|
+
constructor(data?: string);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Represents the "#NUM!" error that occurs when when a formula contains invalid numeric values.
|
|
117
|
+
*
|
|
118
|
+
* This class is not intended to be instantiated in your code.
|
|
119
|
+
*/
|
|
120
|
+
export declare class NumericError extends FormulaError {
|
|
121
|
+
constructor(data?: string);
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Represents the "#VALUE!" error that occurs when value is not the expected type or when the formula is badly formed (incorrect number of parameters in function, unbalanced parenthesis etc).
|
|
125
|
+
*
|
|
126
|
+
* This class is not intended to be instantiated in your code.
|
|
127
|
+
*/
|
|
128
|
+
export declare class ValueError extends FormulaError {
|
|
129
|
+
constructor(data?: string);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Represents the "#N/A" error that occurs when value a value is not available to a formula.
|
|
133
|
+
*
|
|
134
|
+
* This class is not intended to be instantiated in your code.
|
|
135
|
+
*/
|
|
136
|
+
export declare class NotAvailableError extends FormulaError {
|
|
137
|
+
constructor(data?: string);
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Represents the "#NULL!" error that occurs when you specify an intersection of two areas that do not intersect.
|
|
141
|
+
*
|
|
142
|
+
* This class is not intended to be instantiated in your code.
|
|
143
|
+
*/
|
|
144
|
+
export declare class NullError extends FormulaError {
|
|
145
|
+
constructor(data?: string);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Represents an unknown error, for example a JavaScript exception that raises during the formula evaluation.
|
|
149
|
+
*
|
|
150
|
+
* This class is not intended to be instantiated in your code.
|
|
151
|
+
*/
|
|
152
|
+
export declare class UnknownError extends FormulaError {
|
|
153
|
+
constructor(data: any);
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Represents a syntax error that occurs during parsing the formula.
|
|
157
|
+
*
|
|
158
|
+
* This class is not intended to be instantiated in your code.
|
|
159
|
+
*/
|
|
160
|
+
export declare class SyntaxError extends FormulaError {
|
|
161
|
+
constructor(data: string);
|
|
162
|
+
}
|
|
163
|
+
export declare class _FormulaErrorHelper {
|
|
164
|
+
private static _errTypeMap;
|
|
165
|
+
static asError(value: FormulaError | string): FormulaError;
|
|
166
|
+
private static fromString;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Represents a Table within the {@link FlexSheet} control.
|
|
170
|
+
*/
|
|
171
|
+
export declare class Table {
|
|
172
|
+
_owner: FlexSheet;
|
|
173
|
+
_attached: boolean;
|
|
174
|
+
private _sheet;
|
|
175
|
+
private _name;
|
|
176
|
+
private _columns;
|
|
177
|
+
private _range;
|
|
178
|
+
private _style;
|
|
179
|
+
private _showHeaderRow;
|
|
180
|
+
private _showTotalRow;
|
|
181
|
+
private _showBandedColumns;
|
|
182
|
+
private _showBandedRows;
|
|
183
|
+
private _alterFirstColumn;
|
|
184
|
+
private _alterLastColumn;
|
|
185
|
+
_orgHeaderCellsContent: any[];
|
|
186
|
+
/**
|
|
187
|
+
* Initializes a new instance of the {@link Table} class.
|
|
188
|
+
*
|
|
189
|
+
* @param name The name of the table.
|
|
190
|
+
* @param range The range of the table.
|
|
191
|
+
* @param style The table style to use with the table. The default style is the 'TableStyleMedium9' built-in table style, if the style is omitted.
|
|
192
|
+
* @param columns The columns of the table.
|
|
193
|
+
* @param options The options {@link ITableOptions} of the table.
|
|
194
|
+
*/
|
|
195
|
+
constructor(name: string, range: CellRange, style?: TableStyle, columns?: TableColumn[], options?: ITableOptions);
|
|
196
|
+
/**
|
|
197
|
+
* Gets or sets the table name.
|
|
198
|
+
*
|
|
199
|
+
* The table name is used to reference the table programmatically.
|
|
200
|
+
*/
|
|
201
|
+
name: string;
|
|
202
|
+
/**
|
|
203
|
+
* Gets the {@link Sheet} this table belongs to.
|
|
204
|
+
*/
|
|
205
|
+
readonly sheet: Sheet;
|
|
206
|
+
/**
|
|
207
|
+
* Gets or sets the {@link TableStyle} associated with this table.
|
|
208
|
+
*/
|
|
209
|
+
style: TableStyle;
|
|
210
|
+
/**
|
|
211
|
+
* Indicates whether the table should include a header row.
|
|
212
|
+
*/
|
|
213
|
+
showHeaderRow: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* Indicates whether the table should include a total row.
|
|
216
|
+
*/
|
|
217
|
+
showTotalRow: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* Indicating whether banded column formatting is applied.
|
|
220
|
+
*/
|
|
221
|
+
showBandedColumns: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* Gets or sets a value that determines whether banded row
|
|
224
|
+
* formatting is applied.
|
|
225
|
+
*/
|
|
226
|
+
showBandedRows: boolean;
|
|
227
|
+
/**
|
|
228
|
+
* Gets or sets a value that determines whether the first table
|
|
229
|
+
* column should have the style applied.
|
|
230
|
+
*/
|
|
231
|
+
alterFirstColumn: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* Gets or sets a value that determines whether the last table
|
|
234
|
+
* column should have the style applied.
|
|
235
|
+
*/
|
|
236
|
+
alterLastColumn: boolean;
|
|
237
|
+
_isHeaderRow(row: number): boolean;
|
|
238
|
+
_getTableRange(): CellRange;
|
|
239
|
+
_getColumns(): TableColumn[];
|
|
240
|
+
/**
|
|
241
|
+
* Gets the range of the specific section and column on the relevant sheet that the table occupies.
|
|
242
|
+
*
|
|
243
|
+
* @param section The section of Table. If the section is omitted. It will get the range of entire table.
|
|
244
|
+
* @param column The column of Table. The column could be {@link TableColumn} instance, column name or column index.
|
|
245
|
+
* If the column is omitted. It will get the range for all columns in the table.
|
|
246
|
+
* If the section is null, the reference of the specific column includes the header row and the totals row if they are visible.
|
|
247
|
+
* @return the range of the specific table section and specific column, if the specific column doesn't exist in table it will return null.
|
|
248
|
+
*/
|
|
249
|
+
getRange(section?: TableSection, column?: any): CellRange;
|
|
250
|
+
/**
|
|
251
|
+
* Gets the table's columns.
|
|
252
|
+
*/
|
|
253
|
+
getColumns(): TableColumn[];
|
|
254
|
+
/**
|
|
255
|
+
* Insert rows into Table.
|
|
256
|
+
*
|
|
257
|
+
* @param index The position where new rows should be added in table.
|
|
258
|
+
* @param count The numbers of rows to add. If not specified then one row will be added.
|
|
259
|
+
* @param shift Indicates whether cells beneath the table should be shifted or not. If not specified cells beneath will be shifted.
|
|
260
|
+
* @return True if the rows are inserted successfully.
|
|
261
|
+
*/
|
|
262
|
+
insertRows(index: number, count?: number, shift?: boolean): boolean;
|
|
263
|
+
/**
|
|
264
|
+
* Delete rows of Table.
|
|
265
|
+
*
|
|
266
|
+
* @param index The starting index of the deleting rows in Table.
|
|
267
|
+
* @param count The numbers of rows to delete. If not specified then one row will be deleted.
|
|
268
|
+
* @param shift Indicates whether cells beneath the table should be shifted or not. If not specified cells beneath will be shifted.
|
|
269
|
+
*/
|
|
270
|
+
deleteRows(index: number, count?: number, shift?: boolean): void;
|
|
271
|
+
_addColumn(index: number, columnName?: string): void;
|
|
272
|
+
_updateCell(rowIndex: number, colIndex: number, cell: HTMLElement): void;
|
|
273
|
+
_updateTableRange(topRowChange: number, bottomRowChage: number, leftColChange: number, rightColChange: number): void;
|
|
274
|
+
_setTableRange(range: CellRange, columns?: TableColumn[]): void;
|
|
275
|
+
_updateColumnName(tblColIndex: number, columnName: string, updateCell?: boolean): void;
|
|
276
|
+
_updateColumnTotalRowContent(column: TableColumn, columnIndex?: number): void;
|
|
277
|
+
_attachSheet(sheet: Sheet): void;
|
|
278
|
+
_detachSheet(): void;
|
|
279
|
+
private readonly _flex;
|
|
280
|
+
private _pushTableColumns;
|
|
281
|
+
private _generateColumns;
|
|
282
|
+
_getTableCellAppliedStyles(cellRowIndex: number, cellColIndex: number): ITableSectionStyle;
|
|
283
|
+
private _applyStylesForCell;
|
|
284
|
+
private _extendStyle;
|
|
285
|
+
private _getSubtotalFunction;
|
|
286
|
+
private _checkColumnNameExist;
|
|
287
|
+
private _adjustTableRangeWithHeaderRow;
|
|
288
|
+
private _adjustTableRangeWithTotalRow;
|
|
289
|
+
private _updateTotalRow;
|
|
290
|
+
private _getUniqueColumnName;
|
|
291
|
+
_moveColumns(src: number, dst: number): void;
|
|
292
|
+
private _canInsertRowsWithoutShift;
|
|
293
|
+
private _beneathRowIsEmpty;
|
|
294
|
+
private _getDataRange;
|
|
295
|
+
private _getHeaderRange;
|
|
296
|
+
private _getFooterRange;
|
|
297
|
+
private _getColumnIndex;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Represents a column within the {@link Table}.
|
|
301
|
+
*/
|
|
302
|
+
export declare class TableColumn {
|
|
303
|
+
private _table;
|
|
304
|
+
private _name;
|
|
305
|
+
_totalRowLabel: string;
|
|
306
|
+
_totalRowFunction: string;
|
|
307
|
+
private _showFilterButton;
|
|
308
|
+
/**
|
|
309
|
+
* Initializes a new instance of the {@link TableColumn} class.
|
|
310
|
+
*
|
|
311
|
+
* @param name The name of the table column.
|
|
312
|
+
* @param totalRowLabel The string to show in the totals row cell for the column.
|
|
313
|
+
* @param totalRowFunction The function to show in the totals row cell for this column.
|
|
314
|
+
* @param showFilterButton Indicating whether show the filter button for the table column. The default value of showFilterButton is true.
|
|
315
|
+
*/
|
|
316
|
+
constructor(name: string, totalRowLabel?: string, totalRowFunction?: string, showFilterButton?: boolean);
|
|
317
|
+
/**
|
|
318
|
+
* Gets the Table the table columns belongs to.
|
|
319
|
+
*/
|
|
320
|
+
readonly table: Table;
|
|
321
|
+
/**
|
|
322
|
+
* Gets the name of the table column. It is referenced through functions.
|
|
323
|
+
*/
|
|
324
|
+
name: string;
|
|
325
|
+
/**
|
|
326
|
+
* The string to show in the totals row cell for the column.
|
|
327
|
+
*/
|
|
328
|
+
totalRowLabel: string;
|
|
329
|
+
/**
|
|
330
|
+
* The function to show in the totals row cell for the column.
|
|
331
|
+
*/
|
|
332
|
+
totalRowFunction: string;
|
|
333
|
+
/**
|
|
334
|
+
* Indicating whether show the filter button for the table column.
|
|
335
|
+
*
|
|
336
|
+
* As FlexSheet has not supported filter for table yet, this property is used for import/export operation only by now.
|
|
337
|
+
*/
|
|
338
|
+
showFilterButton: boolean;
|
|
339
|
+
_attach(table: Table): void;
|
|
340
|
+
private _updateTableTotalInfo;
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Represents a Table style for the {@link Table}.
|
|
344
|
+
*/
|
|
345
|
+
export declare class TableStyle {
|
|
346
|
+
private _name;
|
|
347
|
+
private _isBuiltIn;
|
|
348
|
+
private _wholeTableStyle;
|
|
349
|
+
private _firstBandedColumnStyle;
|
|
350
|
+
private _secondBandedColumnStyle;
|
|
351
|
+
private _firstBandedRowStyle;
|
|
352
|
+
private _secondBandedRowStyle;
|
|
353
|
+
private _firstColumnStyle;
|
|
354
|
+
private _lastColumnStyle;
|
|
355
|
+
private _headerRowStyle;
|
|
356
|
+
private _totalRowStyle;
|
|
357
|
+
private _firstHeaderCellStyle;
|
|
358
|
+
private _lastHeaderCellStyle;
|
|
359
|
+
private _firstTotalCellStyle;
|
|
360
|
+
private _lastTotalCellStyle;
|
|
361
|
+
/**
|
|
362
|
+
* Initializes a new instance of the {@link TableStyle} class.
|
|
363
|
+
*
|
|
364
|
+
* @param name The name of the table style.
|
|
365
|
+
* @param isBuiltIn Indicates whether the table style is built-in style.
|
|
366
|
+
*/
|
|
367
|
+
constructor(name: string, isBuiltIn?: boolean);
|
|
368
|
+
/**
|
|
369
|
+
* Gets or sets the name of the table style.
|
|
370
|
+
*/
|
|
371
|
+
name: string;
|
|
372
|
+
/**
|
|
373
|
+
* Gets or sets the whole table style.
|
|
374
|
+
*/
|
|
375
|
+
wholeTableStyle: ITableSectionStyle;
|
|
376
|
+
/**
|
|
377
|
+
* Gets or sets the first banded column style.
|
|
378
|
+
*/
|
|
379
|
+
firstBandedColumnStyle: IBandedTableSectionStyle;
|
|
380
|
+
/**
|
|
381
|
+
* Gets or sets the second banded column style.
|
|
382
|
+
*/
|
|
383
|
+
secondBandedColumnStyle: IBandedTableSectionStyle;
|
|
384
|
+
/**
|
|
385
|
+
* Gets or sets the first banded row style.
|
|
386
|
+
*/
|
|
387
|
+
firstBandedRowStyle: IBandedTableSectionStyle;
|
|
388
|
+
/**
|
|
389
|
+
* Gets or sets the second banded row style.
|
|
390
|
+
*/
|
|
391
|
+
secondBandedRowStyle: IBandedTableSectionStyle;
|
|
392
|
+
/**
|
|
393
|
+
* Gets or sets the first column style.
|
|
394
|
+
*/
|
|
395
|
+
firstColumnStyle: ITableSectionStyle;
|
|
396
|
+
/**
|
|
397
|
+
* Gets or sets the last column style.
|
|
398
|
+
*/
|
|
399
|
+
lastColumnStyle: ITableSectionStyle;
|
|
400
|
+
/**
|
|
401
|
+
* Gets or sets the header row style.
|
|
402
|
+
*/
|
|
403
|
+
headerRowStyle: ITableSectionStyle;
|
|
404
|
+
/**
|
|
405
|
+
* Gets or sets the total row style.
|
|
406
|
+
*/
|
|
407
|
+
totalRowStyle: ITableSectionStyle;
|
|
408
|
+
/**
|
|
409
|
+
* Gets or sets the first cell style in the header row.
|
|
410
|
+
*/
|
|
411
|
+
firstHeaderCellStyle: ITableSectionStyle;
|
|
412
|
+
/**
|
|
413
|
+
* Gets or sets the last cell style in the header row.
|
|
414
|
+
*/
|
|
415
|
+
lastHeaderCellStyle: ITableSectionStyle;
|
|
416
|
+
/**
|
|
417
|
+
* Gets or sets the first cell style in the total row.
|
|
418
|
+
*/
|
|
419
|
+
firstTotalCellStyle: ITableSectionStyle;
|
|
420
|
+
/**
|
|
421
|
+
* Gets or sets the last cell style in the total row.
|
|
422
|
+
*/
|
|
423
|
+
lastTotalCellStyle: ITableSectionStyle;
|
|
424
|
+
/**
|
|
425
|
+
* Indicates whether the table style is built-in style.
|
|
426
|
+
*/
|
|
427
|
+
readonly isBuiltIn: boolean;
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Defines the table styling properties.
|
|
431
|
+
*/
|
|
432
|
+
export interface ITableSectionStyle extends ICellStyle {
|
|
433
|
+
/**
|
|
434
|
+
* Color of the Horizontal border.
|
|
435
|
+
*/
|
|
436
|
+
borderHorizontalColor?: any;
|
|
437
|
+
/**
|
|
438
|
+
* Style of the Horizontal border.
|
|
439
|
+
*/
|
|
440
|
+
borderHorizontalStyle?: string;
|
|
441
|
+
/**
|
|
442
|
+
* Width of the Horizontal border.
|
|
443
|
+
*/
|
|
444
|
+
borderHorizontalWidth?: string;
|
|
445
|
+
/**
|
|
446
|
+
* Color of the Vertical border.
|
|
447
|
+
*/
|
|
448
|
+
borderVerticalColor?: any;
|
|
449
|
+
/**
|
|
450
|
+
* Style of the Vertical border.
|
|
451
|
+
*/
|
|
452
|
+
borderVerticalStyle?: string;
|
|
453
|
+
/**
|
|
454
|
+
* Width of the Vertical border.
|
|
455
|
+
*/
|
|
456
|
+
borderVerticalWidth?: string;
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* Defines the table stripe styling properties.
|
|
460
|
+
*/
|
|
461
|
+
export interface IBandedTableSectionStyle extends ITableSectionStyle {
|
|
462
|
+
/**
|
|
463
|
+
* Number of rows or columns in a single band of striping.
|
|
464
|
+
*/
|
|
465
|
+
size?: number;
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Defines the table options for creating table.
|
|
469
|
+
*/
|
|
470
|
+
export interface ITableOptions {
|
|
471
|
+
/**
|
|
472
|
+
* Indicates whether show the header row for the table.
|
|
473
|
+
*/
|
|
474
|
+
showHeaderRow?: boolean;
|
|
475
|
+
/**
|
|
476
|
+
* Indicates whether show the total row for the table.
|
|
477
|
+
*/
|
|
478
|
+
showTotalRow?: boolean;
|
|
479
|
+
/**
|
|
480
|
+
* Indicating whether banded column formatting is applied.
|
|
481
|
+
*/
|
|
482
|
+
showBandedColumns?: boolean;
|
|
483
|
+
/**
|
|
484
|
+
* Indicating whether banded row formatting is applied.
|
|
485
|
+
*/
|
|
486
|
+
showBandedRows?: boolean;
|
|
487
|
+
/**
|
|
488
|
+
* Indicating whether the first column in the table should have the style applied.
|
|
489
|
+
*/
|
|
490
|
+
alterFirstColumn?: boolean;
|
|
491
|
+
/**
|
|
492
|
+
* Indicating whether the last column in the table should have the style applied.
|
|
493
|
+
*/
|
|
494
|
+
alterLastColumn?: boolean;
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* Specifies constants define the section of Table.
|
|
498
|
+
*/
|
|
499
|
+
export declare enum TableSection {
|
|
500
|
+
/** The entire table, including header, data and footer **/
|
|
501
|
+
All = 0,
|
|
502
|
+
/** The data rows **/
|
|
503
|
+
Data = 1,
|
|
504
|
+
/** The header row **/
|
|
505
|
+
Header = 2,
|
|
506
|
+
/** The footer row **/
|
|
507
|
+
Footer = 3
|
|
508
|
+
}
|
|
509
|
+
export declare class _UndoAction {
|
|
510
|
+
_owner: FlexSheet;
|
|
511
|
+
private _sheetUuid;
|
|
512
|
+
constructor(owner: FlexSheet);
|
|
513
|
+
readonly sheetUid: number;
|
|
514
|
+
undo(): void;
|
|
515
|
+
redo(): void;
|
|
516
|
+
saveNewState(): boolean;
|
|
517
|
+
}
|
|
518
|
+
export declare class _EditAction extends _UndoAction {
|
|
519
|
+
private _selections;
|
|
520
|
+
private _oldValues;
|
|
521
|
+
private _newValues;
|
|
522
|
+
private _isPaste;
|
|
523
|
+
private _mergeAction;
|
|
524
|
+
private _cellStyleAction;
|
|
525
|
+
private _deletedTables;
|
|
526
|
+
_affectedFormulas: any;
|
|
527
|
+
constructor(owner: FlexSheet, selection?: CellRange);
|
|
528
|
+
readonly isPaste: boolean;
|
|
529
|
+
undo(): void;
|
|
530
|
+
redo(): void;
|
|
531
|
+
saveNewState(): boolean;
|
|
532
|
+
markIsPaste(): void;
|
|
533
|
+
updateForPasting(rng: CellRange): void;
|
|
534
|
+
_storeDeletedTables(table: Table): void;
|
|
535
|
+
private _checkActionState;
|
|
536
|
+
private _saveValues;
|
|
537
|
+
private _handleUndoRedo;
|
|
538
|
+
}
|
|
539
|
+
export declare class _ColumnResizeAction extends _UndoAction {
|
|
540
|
+
private _colIndex;
|
|
541
|
+
private _panel;
|
|
542
|
+
private _oldColWidth;
|
|
543
|
+
private _newColWidth;
|
|
544
|
+
constructor(owner: FlexSheet, panel: GridPanel, colIndex: number);
|
|
545
|
+
undo(): void;
|
|
546
|
+
redo(): void;
|
|
547
|
+
saveNewState(): boolean;
|
|
548
|
+
private _handleUndoRedo;
|
|
549
|
+
}
|
|
550
|
+
export declare class _RowResizeAction extends _UndoAction {
|
|
551
|
+
private _rowIndex;
|
|
552
|
+
private _panel;
|
|
553
|
+
private _oldRowHeight;
|
|
554
|
+
private _newRowHeight;
|
|
555
|
+
constructor(owner: FlexSheet, panel: GridPanel, rowIndex: number);
|
|
556
|
+
undo(): void;
|
|
557
|
+
redo(): void;
|
|
558
|
+
saveNewState(): boolean;
|
|
559
|
+
private _handleUndoRedo;
|
|
560
|
+
}
|
|
561
|
+
export declare class _ColumnsChangedAction extends _UndoAction {
|
|
562
|
+
private _oldValue;
|
|
563
|
+
private _newValue;
|
|
564
|
+
private _columnIndex;
|
|
565
|
+
private _count;
|
|
566
|
+
private _isAdding;
|
|
567
|
+
_delSubActions: _ColumnsChangedAction[];
|
|
568
|
+
_affectedFormulas: any;
|
|
569
|
+
_affectedDefinedNameVals: any;
|
|
570
|
+
_deletedTables: Table[];
|
|
571
|
+
constructor(owner: FlexSheet, columnIndex?: number, count?: number, isAdding?: boolean);
|
|
572
|
+
undo(): void;
|
|
573
|
+
redo(): void;
|
|
574
|
+
saveNewState(): boolean;
|
|
575
|
+
private _saveValues;
|
|
576
|
+
private _handleUndoRedo;
|
|
577
|
+
}
|
|
578
|
+
export declare class _RowsChangedAction extends _UndoAction {
|
|
579
|
+
private _oldValue;
|
|
580
|
+
private _newValue;
|
|
581
|
+
private _rowIndex;
|
|
582
|
+
private _count;
|
|
583
|
+
private _isAdding;
|
|
584
|
+
private _delSubActions;
|
|
585
|
+
private _headerRowAtTop;
|
|
586
|
+
private _headerRowIndex;
|
|
587
|
+
_affectedFormulas: any;
|
|
588
|
+
_affectedDefinedNameVals: any;
|
|
589
|
+
_deletedTables: Table[];
|
|
590
|
+
constructor(owner: FlexSheet, rowIndex?: number, count?: number, isAdding?: boolean);
|
|
591
|
+
undo(): void;
|
|
592
|
+
redo(): void;
|
|
593
|
+
saveNewState(): boolean;
|
|
594
|
+
addDeleteSubAction(sub: _RowsChangedAction): void;
|
|
595
|
+
private _saveValues;
|
|
596
|
+
private _handleUndoRedo;
|
|
597
|
+
}
|
|
598
|
+
export declare class _CellStyleAction extends _UndoAction {
|
|
599
|
+
private _oldStyledCells;
|
|
600
|
+
private _newStyledCells;
|
|
601
|
+
constructor(owner: FlexSheet, styledCells?: any);
|
|
602
|
+
undo(): void;
|
|
603
|
+
redo(): void;
|
|
604
|
+
saveNewState(): boolean;
|
|
605
|
+
_checkActionState(): boolean;
|
|
606
|
+
private _handleUndoRedo;
|
|
607
|
+
}
|
|
608
|
+
export declare class _CellMergeAction extends _UndoAction {
|
|
609
|
+
private _oldMergedCells;
|
|
610
|
+
private _newMergedCells;
|
|
611
|
+
constructor(owner: FlexSheet);
|
|
612
|
+
undo(): void;
|
|
613
|
+
redo(): void;
|
|
614
|
+
saveNewState(): boolean;
|
|
615
|
+
private _handleUndoRedo;
|
|
616
|
+
_checkActionState(): boolean;
|
|
617
|
+
}
|
|
618
|
+
export declare class _SortColumnAction extends _UndoAction {
|
|
619
|
+
private _oldValue;
|
|
620
|
+
private _newValue;
|
|
621
|
+
constructor(owner: FlexSheet);
|
|
622
|
+
undo(): void;
|
|
623
|
+
redo(): void;
|
|
624
|
+
saveNewState(): boolean;
|
|
625
|
+
private _saveValues;
|
|
626
|
+
private _handleUndoRedo;
|
|
627
|
+
}
|
|
628
|
+
export declare class _MoveCellsAction extends _UndoAction {
|
|
629
|
+
private _draggingCells;
|
|
630
|
+
private _draggingColumnSetting;
|
|
631
|
+
private _oldDroppingCells;
|
|
632
|
+
private _newDroppingCells;
|
|
633
|
+
private _oldDroppingColumnSetting;
|
|
634
|
+
private _newDroppingColumnSetting;
|
|
635
|
+
private _dragRange;
|
|
636
|
+
private _dropRange;
|
|
637
|
+
private _isCopyCells;
|
|
638
|
+
private _isDraggingColumns;
|
|
639
|
+
private _draggingTableColumns;
|
|
640
|
+
_affectedFormulas: any;
|
|
641
|
+
_affectedDefinedNameVals: any;
|
|
642
|
+
constructor(owner: FlexSheet, draggingCells: CellRange, droppingCells: CellRange, isCopyCells: boolean);
|
|
643
|
+
undo(): void;
|
|
644
|
+
redo(): void;
|
|
645
|
+
saveNewState(): boolean;
|
|
646
|
+
private _saveValues;
|
|
647
|
+
private _handleUndoRedo;
|
|
648
|
+
}
|
|
649
|
+
export declare class _CutAction extends _UndoAction {
|
|
650
|
+
private _selection;
|
|
651
|
+
private _cutSelection;
|
|
652
|
+
private _cutSheet;
|
|
653
|
+
private _oldValues;
|
|
654
|
+
private _newValues;
|
|
655
|
+
private _oldCutValues;
|
|
656
|
+
private _newCutValues;
|
|
657
|
+
private _mergeAction;
|
|
658
|
+
private _celltyleAction;
|
|
659
|
+
constructor(owner: FlexSheet);
|
|
660
|
+
undo(): void;
|
|
661
|
+
redo(): void;
|
|
662
|
+
saveNewState(): boolean;
|
|
663
|
+
updateForPasting(rng: CellRange): void;
|
|
664
|
+
private _saveCutValues;
|
|
665
|
+
private _handleUndoRedo;
|
|
666
|
+
}
|
|
667
|
+
export declare class _TableSettingAction extends _UndoAction {
|
|
668
|
+
private _table;
|
|
669
|
+
private _oldTableSetting;
|
|
670
|
+
private _newTableSetting;
|
|
671
|
+
constructor(owner: FlexSheet, table: Table);
|
|
672
|
+
undo(): void;
|
|
673
|
+
redo(): void;
|
|
674
|
+
saveNewState(): boolean;
|
|
675
|
+
private _saveValues;
|
|
676
|
+
private _handleUndoRedo;
|
|
677
|
+
}
|
|
678
|
+
export declare class _TableAction extends _UndoAction {
|
|
679
|
+
private _addedTable;
|
|
680
|
+
private _orgHeaderCellsContent;
|
|
681
|
+
constructor(owner: FlexSheet, table: Table);
|
|
682
|
+
undo(): void;
|
|
683
|
+
redo(): void;
|
|
684
|
+
private _handleUndoRedo;
|
|
685
|
+
}
|
|
686
|
+
export declare class _FilteringAction extends _UndoAction {
|
|
687
|
+
private _oldFilterDefinition;
|
|
688
|
+
private _newFilterDefinition;
|
|
689
|
+
private _oldRowsVisible;
|
|
690
|
+
private _newRowsVisible;
|
|
691
|
+
constructor(owner: FlexSheet);
|
|
692
|
+
undo(): void;
|
|
693
|
+
redo(): void;
|
|
694
|
+
saveNewState(): boolean;
|
|
695
|
+
private _handleUndoRedo;
|
|
696
|
+
private _getRowsVisible;
|
|
697
|
+
private _setRowVisible;
|
|
698
|
+
}
|
|
699
|
+
export declare class _FillAction extends _UndoAction {
|
|
700
|
+
private _fillSource;
|
|
701
|
+
private _fillRange;
|
|
702
|
+
private _oldCellSettings;
|
|
703
|
+
private _newCellSettings;
|
|
704
|
+
constructor(owner: FlexSheet, source: CellRange);
|
|
705
|
+
undo(): void;
|
|
706
|
+
redo(): void;
|
|
707
|
+
saveNewState(): boolean;
|
|
708
|
+
private _handleUndoRedo;
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* Maintains sorting of the selected {@link Sheet} of the {@link FlexSheet}.
|
|
712
|
+
*/
|
|
713
|
+
export declare class SortManager {
|
|
714
|
+
private _sortDescriptions;
|
|
715
|
+
private _owner;
|
|
716
|
+
_committedList: ColumnSortDescription[];
|
|
717
|
+
/**
|
|
718
|
+
* Initializes a new instance of the {@link SortManager} class.
|
|
719
|
+
*
|
|
720
|
+
* @param owner The {@link FlexSheet} control that owns this <b>SortManager</b>.
|
|
721
|
+
*/
|
|
722
|
+
constructor(owner: FlexSheet);
|
|
723
|
+
/**
|
|
724
|
+
* Gets or sets the collection of the sort descriptions represented by the {@link ColumnSortDescription} objects.
|
|
725
|
+
*/
|
|
726
|
+
sortDescriptions: CollectionView;
|
|
727
|
+
/**
|
|
728
|
+
* Adds a blank sorting level to the sort descriptions.
|
|
729
|
+
*
|
|
730
|
+
* @param columnIndex The index of the column in the FlexSheet control.
|
|
731
|
+
* @param ascending The sort order for the sort level.
|
|
732
|
+
*/
|
|
733
|
+
addSortLevel(columnIndex?: number, ascending?: boolean): void;
|
|
734
|
+
/**
|
|
735
|
+
* Removes the current sorting level from the sort descriptions.
|
|
736
|
+
*
|
|
737
|
+
* @param columnIndex The index of the column in the FlexSheet control.
|
|
738
|
+
*/
|
|
739
|
+
deleteSortLevel(columnIndex?: number): void;
|
|
740
|
+
/**
|
|
741
|
+
* Adds a copy of the current sorting level to the sort descriptions.
|
|
742
|
+
*/
|
|
743
|
+
copySortLevel(): void;
|
|
744
|
+
/**
|
|
745
|
+
* Updates the current sort level.
|
|
746
|
+
*
|
|
747
|
+
* @param columnIndex The column index for the sort level.
|
|
748
|
+
* @param ascending The sort order for the sort level.
|
|
749
|
+
*/
|
|
750
|
+
editSortLevel(columnIndex?: number, ascending?: boolean): void;
|
|
751
|
+
/**
|
|
752
|
+
* Moves the current sorting level to a new position.
|
|
753
|
+
*
|
|
754
|
+
* @param offset The offset to move the current level by.
|
|
755
|
+
*/
|
|
756
|
+
moveSortLevel(offset: number): void;
|
|
757
|
+
/**
|
|
758
|
+
* Check whether the sort item of specific column exists or not
|
|
759
|
+
*
|
|
760
|
+
* @param columnIndex The index of the column in the FlexSheet control.
|
|
761
|
+
*/
|
|
762
|
+
checkSortItemExists(columnIndex: any): number;
|
|
763
|
+
/**
|
|
764
|
+
* Commits the current sort descriptions to the FlexSheet control.
|
|
765
|
+
*
|
|
766
|
+
* @param undoable The boolean value indicating whether the commit sort action is undoable.
|
|
767
|
+
*/
|
|
768
|
+
commitSort(undoable?: boolean): void;
|
|
769
|
+
/**
|
|
770
|
+
* Cancel the current sort descriptions to the FlexSheet control.
|
|
771
|
+
*/
|
|
772
|
+
cancelSort(): void;
|
|
773
|
+
/**
|
|
774
|
+
* Clear the sort descriptions.
|
|
775
|
+
*/
|
|
776
|
+
clearSort(): void;
|
|
777
|
+
private _getSortItem;
|
|
778
|
+
_cloneSortList(sortList: ColumnSortDescription[]): ColumnSortDescription[];
|
|
779
|
+
_updateSortDescriptions(colIndex: number, count: number, isAdd?: boolean): void;
|
|
780
|
+
_handleColumnMoving(from: number, to: number): void;
|
|
781
|
+
private _isEmpty;
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* Describes a {@link FlexSheet} column sorting criterion.
|
|
785
|
+
*/
|
|
786
|
+
export declare class ColumnSortDescription {
|
|
787
|
+
private _columnIndex;
|
|
788
|
+
private _ascending;
|
|
789
|
+
/**
|
|
790
|
+
* Initializes a new instance of the {@link ColumnSortDescription} class.
|
|
791
|
+
*
|
|
792
|
+
* @param columnIndex Indicates which column to sort the rows by.
|
|
793
|
+
* @param ascending The sort order.
|
|
794
|
+
*/
|
|
795
|
+
constructor(columnIndex: number, ascending: boolean);
|
|
796
|
+
/**
|
|
797
|
+
* Gets or sets the column index.
|
|
798
|
+
*/
|
|
799
|
+
columnIndex: number;
|
|
800
|
+
/**
|
|
801
|
+
* Gets or sets the ascending.
|
|
802
|
+
*/
|
|
803
|
+
ascending: boolean;
|
|
804
|
+
/**
|
|
805
|
+
* Creates a copy of the ColumnSortDescription.
|
|
806
|
+
*/
|
|
807
|
+
clone(): ColumnSortDescription;
|
|
808
|
+
}
|
|
809
|
+
/**
|
|
810
|
+
* Defines the {@link FlexSheet} control.
|
|
811
|
+
*
|
|
812
|
+
* The {@link FlexSheet} control extends the {@link FlexGrid} control to provide Excel-like
|
|
813
|
+
* features such as a calculation engine, multiple sheets, undo/redo, and
|
|
814
|
+
* XLSX import/export.
|
|
815
|
+
*
|
|
816
|
+
* A complete list of the functions supported by the {@link FlexSheet}'s calculation
|
|
817
|
+
* engine can be found here:
|
|
818
|
+
* <a href="/wijmo/docs/Topics/Grid/FlexSheet/FlexSheet-Fomulas">FlexSheet Functions</a>.
|
|
819
|
+
*
|
|
820
|
+
* {@sample Grid/FlexSheet/Bound/purejs Example}
|
|
821
|
+
*/
|
|
822
|
+
export declare class FlexSheet extends FlexGrid {
|
|
823
|
+
_heights: (number | null)[];
|
|
824
|
+
private _sheets;
|
|
825
|
+
private _selectedSheetIndex;
|
|
826
|
+
_tabHolder: _TabHolder;
|
|
827
|
+
private _contextMenu;
|
|
828
|
+
private _divContainer;
|
|
829
|
+
private _columnHeaderClicked;
|
|
830
|
+
private _htDown;
|
|
831
|
+
private _filter;
|
|
832
|
+
private _calcEngine;
|
|
833
|
+
private _functionListHost;
|
|
834
|
+
private _functionList;
|
|
835
|
+
private _functionTarget;
|
|
836
|
+
private _undoStack;
|
|
837
|
+
private _longClickTimer;
|
|
838
|
+
private _cloneStyle;
|
|
839
|
+
private _sortManager;
|
|
840
|
+
private _dragable;
|
|
841
|
+
private _isDragging;
|
|
842
|
+
private _draggingColumn;
|
|
843
|
+
private _draggingRow;
|
|
844
|
+
private _draggingSingleRow;
|
|
845
|
+
private _draggingTooltip;
|
|
846
|
+
private _draggingCells;
|
|
847
|
+
private _dropRange;
|
|
848
|
+
private _addingSheet;
|
|
849
|
+
private _mouseMoveHdl;
|
|
850
|
+
private _clickHdl;
|
|
851
|
+
private _touchStartHdl;
|
|
852
|
+
private _touchEndHdl;
|
|
853
|
+
private _keydownHdl;
|
|
854
|
+
private _toRefresh;
|
|
855
|
+
_copiedRanges: CellRange[];
|
|
856
|
+
_copiedSheet: Sheet;
|
|
857
|
+
_isCutting: boolean;
|
|
858
|
+
private _cutValue;
|
|
859
|
+
private _isContextMenuKeyDown;
|
|
860
|
+
_colorThemes: string[];
|
|
861
|
+
_enableMulSel: boolean;
|
|
862
|
+
_isClicking: boolean;
|
|
863
|
+
_isCopying: boolean;
|
|
864
|
+
_isDeletingRows: boolean;
|
|
865
|
+
_isDeletingColumns: boolean;
|
|
866
|
+
_isUndoing: boolean;
|
|
867
|
+
_reservedContent: any;
|
|
868
|
+
_lastVisibleFrozenRow: number;
|
|
869
|
+
_lastVisibleFrozenColumn: number;
|
|
870
|
+
private _defNames;
|
|
871
|
+
private _builtInTableStylesCache;
|
|
872
|
+
_needCopyToSheet: boolean;
|
|
873
|
+
_isPasting: boolean;
|
|
874
|
+
private _resizing;
|
|
875
|
+
_isSorting: boolean;
|
|
876
|
+
private _fillingData;
|
|
877
|
+
private _fillingPoint;
|
|
878
|
+
private _fillingSource;
|
|
879
|
+
private _fillingRange;
|
|
880
|
+
private _fillingMarker;
|
|
881
|
+
_orgCellSettings: any[];
|
|
882
|
+
private _fillingTooltip;
|
|
883
|
+
private _enableDragDrop;
|
|
884
|
+
private _enableFormulas;
|
|
885
|
+
private _allowAutoFill;
|
|
886
|
+
private _headerRowRemoved;
|
|
887
|
+
private _lsmPos;
|
|
888
|
+
private _clearCalcCacheOnRefresh;
|
|
889
|
+
private _copyingTo;
|
|
890
|
+
private _ignoreBindGrid;
|
|
891
|
+
private _loadingFromWorkbook;
|
|
892
|
+
private _precision;
|
|
893
|
+
private insertedColumnIndex;
|
|
894
|
+
private dropzoneMarker;
|
|
895
|
+
private dropzonePrevHit;
|
|
896
|
+
private dropzoneTimeout;
|
|
897
|
+
private dropzone;
|
|
898
|
+
/**
|
|
899
|
+
* Overrides the template used to instantiate {@link FlexSheet} control.
|
|
900
|
+
*/
|
|
901
|
+
static controlTemplate: string;
|
|
902
|
+
/**
|
|
903
|
+
* Initializes a new instance of the {@link FlexSheet} class.
|
|
904
|
+
*
|
|
905
|
+
* @param element The DOM element that hosts the control, or a CSS selector for the host element (e.g. '#theCtrl').
|
|
906
|
+
* @param options JavaScript object containing initialization data for the control.
|
|
907
|
+
*/
|
|
908
|
+
constructor(element: any, options?: any);
|
|
909
|
+
_getProductInfo(): string;
|
|
910
|
+
/**
|
|
911
|
+
* Gets the collection of {@link Sheet} objects representing workbook sheets.
|
|
912
|
+
*/
|
|
913
|
+
readonly sheets: SheetCollection;
|
|
914
|
+
/**
|
|
915
|
+
* Gets or sets the index of the current sheet in the {@link FlexSheet}.
|
|
916
|
+
*/
|
|
917
|
+
selectedSheetIndex: number;
|
|
918
|
+
/**
|
|
919
|
+
* Gets the current {@link Sheet} in the <b>FlexSheet</b>.
|
|
920
|
+
*/
|
|
921
|
+
readonly selectedSheet: Sheet;
|
|
922
|
+
/**
|
|
923
|
+
* Gets a value indicating whether the function list is opened.
|
|
924
|
+
*/
|
|
925
|
+
readonly isFunctionListOpen: boolean;
|
|
926
|
+
/**
|
|
927
|
+
* Gets or sets a value indicating whether the TabHolder is visible.
|
|
928
|
+
*/
|
|
929
|
+
isTabHolderVisible: boolean;
|
|
930
|
+
/**
|
|
931
|
+
* Gets the {@link UndoStack} instance that controls undo and redo operations of the <b>FlexSheet</b>.
|
|
932
|
+
*/
|
|
933
|
+
readonly undoStack: UndoStack;
|
|
934
|
+
/**
|
|
935
|
+
* Gets the {@link SortManager} instance that controls <b>FlexSheet</b> sorting.
|
|
936
|
+
*/
|
|
937
|
+
readonly sortManager: SortManager;
|
|
938
|
+
/**
|
|
939
|
+
* Gets the {@link FlexSheetFilter} instance that controls <b>FlexSheet</b> filtering.
|
|
940
|
+
*/
|
|
941
|
+
readonly filter: FlexSheetFilter;
|
|
942
|
+
/**
|
|
943
|
+
* Gets or sets the visiblity of the filter icon.
|
|
944
|
+
*/
|
|
945
|
+
showFilterIcons: boolean;
|
|
946
|
+
/**
|
|
947
|
+
* Gets or sets the number of digits after the decimal point to round to when calculating formulas.
|
|
948
|
+
*
|
|
949
|
+
* Negative value means that no rounding is performed.
|
|
950
|
+
*
|
|
951
|
+
* The default value for this property is **14**.
|
|
952
|
+
*/
|
|
953
|
+
calculationPrecision: number;
|
|
954
|
+
/**
|
|
955
|
+
* Gets an array the {@link DefinedName} objects representing named ranges/expressions
|
|
956
|
+
* defined in the <b>FlexSheet</b>.
|
|
957
|
+
*/
|
|
958
|
+
readonly definedNames: DefinedNameCollection;
|
|
959
|
+
/**
|
|
960
|
+
* Gets or sets the value to indicates whether enable drag and drop rows or columns in FlexSheet.
|
|
961
|
+
*/
|
|
962
|
+
enableDragDrop: boolean;
|
|
963
|
+
/**
|
|
964
|
+
* Gets or sets the value to indicates whether enable formulas in FlexSheet.
|
|
965
|
+
*/
|
|
966
|
+
enableFormulas: boolean;
|
|
967
|
+
/**
|
|
968
|
+
* Gets or sets the value to indicates whether enable autofill, the feature to fill cells with data that follows
|
|
969
|
+
* a pattern by dragging the bottom right corner of the cell.
|
|
970
|
+
*/
|
|
971
|
+
allowAutoFill: boolean;
|
|
972
|
+
_lastSelMovePos: CellRange;
|
|
973
|
+
_setvalidateEdits(value: boolean): void;
|
|
974
|
+
/**
|
|
975
|
+
* Occurs when current sheet index changed.
|
|
976
|
+
*/
|
|
977
|
+
readonly selectedSheetChanged: Event<FlexSheet, PropertyChangedEventArgs>;
|
|
978
|
+
/**
|
|
979
|
+
* Raises the currentSheetChanged event.
|
|
980
|
+
*
|
|
981
|
+
* @param e {@link PropertyChangedEventArgs} that contains the event data.
|
|
982
|
+
*/
|
|
983
|
+
onSelectedSheetChanged(e: PropertyChangedEventArgs): void;
|
|
984
|
+
/**
|
|
985
|
+
* Occurs when dragging the rows or the columns of the <b>FlexSheet</b>.
|
|
986
|
+
*/
|
|
987
|
+
readonly draggingRowColumn: Event<FlexSheet, DraggingRowColumnEventArgs>;
|
|
988
|
+
/**
|
|
989
|
+
* Raises the draggingRowColumn event.
|
|
990
|
+
*/
|
|
991
|
+
onDraggingRowColumn(e: DraggingRowColumnEventArgs): void;
|
|
992
|
+
/**
|
|
993
|
+
* Occurs when dropping the rows or the columns of the <b>FlexSheet</b>.
|
|
994
|
+
* This event has been deprecated. Please use beginDroppingRowColumn and endDroppingRowColumn event instead.
|
|
995
|
+
*/
|
|
996
|
+
readonly droppingRowColumn: Event<FlexSheet, EventArgs>;
|
|
997
|
+
/**
|
|
998
|
+
* Raises the droppingRowColumn event.
|
|
999
|
+
*/
|
|
1000
|
+
onDroppingRowColumn(e?: EventArgs): void;
|
|
1001
|
+
/**
|
|
1002
|
+
* Occurs when begin dropping the rows or the columns of the <b>FlexSheet</b>.
|
|
1003
|
+
*/
|
|
1004
|
+
readonly beginDroppingRowColumn: Event<FlexSheet, DroppingRowColumnEventArgs>;
|
|
1005
|
+
/**
|
|
1006
|
+
* Raises the beginDroppingRowColumn event.
|
|
1007
|
+
*/
|
|
1008
|
+
onBeginDroppingRowColumn(e: DroppingRowColumnEventArgs): void;
|
|
1009
|
+
/**
|
|
1010
|
+
* Occurs when end dropping the rows or the columns of the <b>FlexSheet</b>.
|
|
1011
|
+
*/
|
|
1012
|
+
readonly endDroppingRowColumn: Event<FlexSheet, CancelEventArgs>;
|
|
1013
|
+
/**
|
|
1014
|
+
* Raises the endDroppingRowColumn event.
|
|
1015
|
+
*/
|
|
1016
|
+
onEndDroppingRowColumn(e: CancelEventArgs): void;
|
|
1017
|
+
/**
|
|
1018
|
+
* Occurs after the {@link FlexSheet} loads the {@link Workbook} instance
|
|
1019
|
+
*/
|
|
1020
|
+
readonly loaded: Event<FlexSheet, EventArgs>;
|
|
1021
|
+
/**
|
|
1022
|
+
* Raises the loaded event.
|
|
1023
|
+
*/
|
|
1024
|
+
onLoaded(e?: EventArgs): void;
|
|
1025
|
+
/**
|
|
1026
|
+
* Occurs when the {@link FlexSheet} meets the unknown formula.
|
|
1027
|
+
*/
|
|
1028
|
+
readonly unknownFunction: Event<FlexSheet, UnknownFunctionEventArgs>;
|
|
1029
|
+
/**
|
|
1030
|
+
* Raises the unknownFunction event.
|
|
1031
|
+
*/
|
|
1032
|
+
onUnknownFunction(e: UnknownFunctionEventArgs): void;
|
|
1033
|
+
/**
|
|
1034
|
+
* Occurs when the {@link FlexSheet} is cleared.
|
|
1035
|
+
*/
|
|
1036
|
+
readonly sheetCleared: Event<FlexSheet, EventArgs>;
|
|
1037
|
+
/**
|
|
1038
|
+
* Raises the sheetCleared event.
|
|
1039
|
+
*/
|
|
1040
|
+
onSheetCleared(e?: EventArgs): void;
|
|
1041
|
+
/**
|
|
1042
|
+
* Occurs before the {@link FlexSheet} insert\delete rows.
|
|
1043
|
+
*/
|
|
1044
|
+
readonly prepareChangingRow: Event<FlexSheet, RowColumnChangedEventArgs>;
|
|
1045
|
+
/**
|
|
1046
|
+
* Raises the prepareChangingRow event.
|
|
1047
|
+
*/
|
|
1048
|
+
onPrepareChangingRow(e: RowColumnChangedEventArgs): void;
|
|
1049
|
+
/**
|
|
1050
|
+
* Occurs before the {@link FlexSheet} inserts or deletes columns.
|
|
1051
|
+
*/
|
|
1052
|
+
readonly prepareChangingColumn: Event<FlexSheet, RowColumnChangedEventArgs>;
|
|
1053
|
+
/**
|
|
1054
|
+
* Raises the prepareChangingColumn event.
|
|
1055
|
+
*/
|
|
1056
|
+
onPrepareChangingColumn(e: RowColumnChangedEventArgs): void;
|
|
1057
|
+
/**
|
|
1058
|
+
* Occurs after the {@link FlexSheet} insert\delete rows.
|
|
1059
|
+
*/
|
|
1060
|
+
readonly rowChanged: Event<FlexSheet, RowColumnChangedEventArgs>;
|
|
1061
|
+
/**
|
|
1062
|
+
* Raises the rowChanged event.
|
|
1063
|
+
*/
|
|
1064
|
+
onRowChanged(e: RowColumnChangedEventArgs): void;
|
|
1065
|
+
/**
|
|
1066
|
+
* Occurs after the {@link FlexSheet} inserted or deleted columns.
|
|
1067
|
+
*/
|
|
1068
|
+
readonly columnChanged: Event<FlexSheet, RowColumnChangedEventArgs>;
|
|
1069
|
+
/**
|
|
1070
|
+
* Raises the columnChanged event.
|
|
1071
|
+
*/
|
|
1072
|
+
onColumnChanged(e: RowColumnChangedEventArgs): void;
|
|
1073
|
+
/**
|
|
1074
|
+
* Occurs before the {@link FlexSheet} performs the auto-fill operation.
|
|
1075
|
+
*/
|
|
1076
|
+
readonly autoFilling: Event<FlexSheet, AutoFillingEventArgs>;
|
|
1077
|
+
/**
|
|
1078
|
+
* Raises the autoFilling event.
|
|
1079
|
+
*/
|
|
1080
|
+
onAutoFilling(e: AutoFillingEventArgs): void;
|
|
1081
|
+
/**
|
|
1082
|
+
* Occurs after the {@link FlexSheet} has performed the auto-fill operation.
|
|
1083
|
+
*/
|
|
1084
|
+
readonly autoFilled: Event<FlexSheet, AutoFilledEventArgs>;
|
|
1085
|
+
/**
|
|
1086
|
+
* Raises the autoFilled event.
|
|
1087
|
+
*/
|
|
1088
|
+
onAutoFilled(e: AutoFillingEventArgs): void;
|
|
1089
|
+
/**
|
|
1090
|
+
* Overridden to refresh the sheet and the TabHolder.
|
|
1091
|
+
*
|
|
1092
|
+
* @param fullUpdate Whether to update the control layout as well as the content.
|
|
1093
|
+
*/
|
|
1094
|
+
refresh(fullUpdate?: boolean): void;
|
|
1095
|
+
/**
|
|
1096
|
+
* Overrides the setCellData function of the base class.
|
|
1097
|
+
*
|
|
1098
|
+
* @param r Index of the row that contains the cell.
|
|
1099
|
+
* @param c Index, name, or binding of the column that contains the cell.
|
|
1100
|
+
* @param value Value to store in the cell.
|
|
1101
|
+
* @param coerce Whether to change the value automatically to match the column's data type.
|
|
1102
|
+
* @param invalidate Whether to invalidate the FlexSheet to show the change.
|
|
1103
|
+
* @param isMapKeyValue value passed is already key value of dataMap, don't need re-find.
|
|
1104
|
+
* @return True if the value was stored successfully, false otherwise.
|
|
1105
|
+
*/
|
|
1106
|
+
setCellData(r: number, c: any, value: any, coerce?: boolean, invalidate?: boolean, isMapKeyValue?: boolean): boolean;
|
|
1107
|
+
/**
|
|
1108
|
+
* Overrides the base class method to take into account the function list.
|
|
1109
|
+
*/
|
|
1110
|
+
containsFocus(): boolean;
|
|
1111
|
+
/**
|
|
1112
|
+
* Add an unbound {@link Sheet} to the <b>FlexSheet</b>.
|
|
1113
|
+
*
|
|
1114
|
+
* @param sheetName The name of the Sheet.
|
|
1115
|
+
* @param rows The row count of the Sheet.
|
|
1116
|
+
* @param cols The column count of the Sheet.
|
|
1117
|
+
* @param pos The position in the <b>sheets</b> collection.
|
|
1118
|
+
* @param grid The {@link FlexGrid} instance associated with the {@link Sheet}. If not specified then new {@link FlexGrid} instance
|
|
1119
|
+
* will be created.
|
|
1120
|
+
*/
|
|
1121
|
+
addUnboundSheet(sheetName?: string, rows?: number, cols?: number, pos?: number, grid?: FlexGrid): Sheet;
|
|
1122
|
+
/**
|
|
1123
|
+
* Add a bound {@link Sheet} to the <b>FlexSheet</b>.
|
|
1124
|
+
*
|
|
1125
|
+
* @param sheetName The name of the {@link Sheet}.
|
|
1126
|
+
* @param source The items source for the {@link Sheet}.
|
|
1127
|
+
* @param pos The position in the <b>sheets</b> collection.
|
|
1128
|
+
* @param grid The {@link FlexGrid} instance associated with the {@link Sheet}. If not specified then new {@link FlexGrid} instance
|
|
1129
|
+
* will be created.
|
|
1130
|
+
*/
|
|
1131
|
+
addBoundSheet(sheetName: string, source: any, pos?: number, grid?: FlexGrid): Sheet;
|
|
1132
|
+
/**
|
|
1133
|
+
* Apply the style to a range of cells.
|
|
1134
|
+
*
|
|
1135
|
+
* @param cellStyle The {@link ICellStyle} object to apply.
|
|
1136
|
+
* @param cells An array of {@link CellRange} objects to apply the style to. If not specified then
|
|
1137
|
+
* style is applied to the currently selected cells.
|
|
1138
|
+
* @param isPreview Indicates whether the applied style is just for preview.
|
|
1139
|
+
*/
|
|
1140
|
+
applyCellsStyle(cellStyle: ICellStyle, cells?: CellRange[], isPreview?: boolean): void;
|
|
1141
|
+
/**
|
|
1142
|
+
* Freeze or unfreeze the columns and rows of the <b>FlexSheet</b> control.
|
|
1143
|
+
*/
|
|
1144
|
+
freezeAtCursor(): void;
|
|
1145
|
+
/**
|
|
1146
|
+
* Show the filter editor.
|
|
1147
|
+
*/
|
|
1148
|
+
showColumnFilter(): void;
|
|
1149
|
+
/**
|
|
1150
|
+
* Clears the content of the <b>FlexSheet</b> control.
|
|
1151
|
+
*/
|
|
1152
|
+
clear(): void;
|
|
1153
|
+
/**
|
|
1154
|
+
* Gets the {@link IFormatState} object describing formatting of the selected cells.
|
|
1155
|
+
*
|
|
1156
|
+
* @return The {@link IFormatState} object containing formatting properties.
|
|
1157
|
+
*/
|
|
1158
|
+
getSelectionFormatState(): IFormatState;
|
|
1159
|
+
/**
|
|
1160
|
+
* Inserts rows in the current {@link Sheet} of the <b>FlexSheet</b> control.
|
|
1161
|
+
*
|
|
1162
|
+
* @param index The position where new rows should be added. If not specified then rows will be added
|
|
1163
|
+
* before the first row of the current selection.
|
|
1164
|
+
* @param count The numbers of rows to add. If not specified then one row will be added.
|
|
1165
|
+
*/
|
|
1166
|
+
insertRows(index?: number, count?: number): void;
|
|
1167
|
+
/**
|
|
1168
|
+
* Deletes rows from the current @see:Sheet of the <b>FlexSheet</b> control.
|
|
1169
|
+
*
|
|
1170
|
+
* @param index The starting index of the deleting rows. If not specified then rows will be deleted
|
|
1171
|
+
* starting from the first row of the current selection.
|
|
1172
|
+
* @param count The numbers of rows to delete. If not specified then one row will be deleted.
|
|
1173
|
+
*/
|
|
1174
|
+
deleteRows(index?: number, count?: number): void;
|
|
1175
|
+
/**
|
|
1176
|
+
* Deletes rows from the current {@link Sheet} of the <b>FlexSheet</b> control.
|
|
1177
|
+
* @param ranges An array of {@link CellRange} instances that determines the deleting rows.
|
|
1178
|
+
*/
|
|
1179
|
+
deleteRows(ranges: CellRange[]): void;
|
|
1180
|
+
/**
|
|
1181
|
+
* Inserts columns in the current {@link Sheet} of the <b>FlexSheet</b> control.
|
|
1182
|
+
*
|
|
1183
|
+
* @param index The position where new columns should be added. If not specified then columns will be added
|
|
1184
|
+
* before the left column of the current selection.
|
|
1185
|
+
* @param count The numbers of columns to add. If not specified then one column will be added.
|
|
1186
|
+
*/
|
|
1187
|
+
insertColumns(index?: number, count?: number): void;
|
|
1188
|
+
/**
|
|
1189
|
+
* Deletes columns from the current @see:Sheet of the <b>FlexSheet</b> control.
|
|
1190
|
+
*
|
|
1191
|
+
* @param index The starting index of the deleting columns. If not specified then columns will be deleted
|
|
1192
|
+
* starting from the first column of the current selection.
|
|
1193
|
+
* @param count The numbers of columns to delete. If not specified then one column will be deleted.
|
|
1194
|
+
*/
|
|
1195
|
+
deleteColumns(index?: number, count?: number): void;
|
|
1196
|
+
/**
|
|
1197
|
+
* Deletes columns from the current {@link Sheet} of the <b>FlexSheet</b> control.
|
|
1198
|
+
* @param ranges An array of {@link CellRange} instances that determines the deleting columns.
|
|
1199
|
+
*/
|
|
1200
|
+
deleteColumns(ranges: CellRange[]): void;
|
|
1201
|
+
/**
|
|
1202
|
+
* Merges the selected {@link CellRange} into one cell.
|
|
1203
|
+
*
|
|
1204
|
+
* @param cells The {@link CellRange} to merge.
|
|
1205
|
+
* @param isCopyMergeCell This parameter indicates that merge operation is done by copy\paste merge cell or not.
|
|
1206
|
+
*/
|
|
1207
|
+
mergeRange(cells?: CellRange, isCopyMergeCell?: boolean): void;
|
|
1208
|
+
/**
|
|
1209
|
+
* Gets a {@link CellRange} that specifies the merged extent of a cell
|
|
1210
|
+
* in a {@link GridPanel}.
|
|
1211
|
+
* This method overrides the getMergedRange method of its parent class FlexGrid
|
|
1212
|
+
*
|
|
1213
|
+
* @param panel {@link GridPanel} that contains the range.
|
|
1214
|
+
* @param r Index of the row that contains the cell.
|
|
1215
|
+
* @param c Index of the column that contains the cell.
|
|
1216
|
+
* @param clip Whether to clip the merged range to the grid's current view range.
|
|
1217
|
+
* @return A {@link CellRange} that specifies the merged range, or null if the cell is not merged.
|
|
1218
|
+
*/
|
|
1219
|
+
getMergedRange(panel: GridPanel, r: number, c: number, clip?: boolean): CellRange;
|
|
1220
|
+
/**
|
|
1221
|
+
* Evaluates a formula.
|
|
1222
|
+
*
|
|
1223
|
+
* {@link FlexSheet} formulas follow the Excel syntax, including a large subset of the
|
|
1224
|
+
* functions supported by Excel. A complete list of the functions supported by
|
|
1225
|
+
* {@link FlexSheet} can be found here:
|
|
1226
|
+
* <a href="/wijmo/docs/Topics/Grid/FlexSheet/FlexSheet-Fomulas">FlexSheet Functions</a>.
|
|
1227
|
+
*
|
|
1228
|
+
* @param formula The formula to evaluate. The formula may start with an optional equals sign ('=').
|
|
1229
|
+
* @param format If specified, defines the .Net format that will be applied to the evaluated value.
|
|
1230
|
+
* @param sheet The {@link Sheet} whose data will be used for evaluation.
|
|
1231
|
+
* If not specified then the current sheet is used.
|
|
1232
|
+
* @param getPrimitiveResult Indicates whether need convert the non-primitive result to primitive type.
|
|
1233
|
+
*/
|
|
1234
|
+
evaluate(formula: string, format?: string, sheet?: Sheet, getPrimitiveResult?: boolean): any;
|
|
1235
|
+
/**
|
|
1236
|
+
* Gets the evaluated cell value.
|
|
1237
|
+
*
|
|
1238
|
+
* Unlike the <b>getCellData</b> method that returns a raw data that can be a value or a formula, the <b>getCellValue</b>
|
|
1239
|
+
* method always returns an evaluated value, that is if the cell contains a formula then it will be evaluated first and the
|
|
1240
|
+
* resulting value will be returned.
|
|
1241
|
+
*
|
|
1242
|
+
* @param rowIndex The row index of the cell.
|
|
1243
|
+
* @param colIndex The column index of the cell.
|
|
1244
|
+
* @param formatted Indicates whether to return an original or a formatted value of the cell.
|
|
1245
|
+
* @param sheet The {@link Sheet} whose value to evaluate. If not specified then the data from current sheet
|
|
1246
|
+
* is used.
|
|
1247
|
+
*/
|
|
1248
|
+
getCellValue(rowIndex: number, colIndex: number, formatted?: boolean, sheet?: Sheet): any;
|
|
1249
|
+
/**
|
|
1250
|
+
* Open the function list.
|
|
1251
|
+
*
|
|
1252
|
+
* @param target The DOM element that toggle the function list.
|
|
1253
|
+
*/
|
|
1254
|
+
showFunctionList(target: HTMLElement): void;
|
|
1255
|
+
/**
|
|
1256
|
+
* Close the function list.
|
|
1257
|
+
*/
|
|
1258
|
+
hideFunctionList(): void;
|
|
1259
|
+
/**
|
|
1260
|
+
* Select previous function in the function list.
|
|
1261
|
+
*/
|
|
1262
|
+
selectPreviousFunction(): void;
|
|
1263
|
+
/**
|
|
1264
|
+
* Select next function in the function list.
|
|
1265
|
+
*/
|
|
1266
|
+
selectNextFunction(): void;
|
|
1267
|
+
/**
|
|
1268
|
+
* Inserts the selected function from the function list to the cell value editor.
|
|
1269
|
+
*/
|
|
1270
|
+
applyFunctionToCell(): void;
|
|
1271
|
+
/**
|
|
1272
|
+
* Saves <b>FlexSheet</b> to xlsx file.
|
|
1273
|
+
* This method works with JSZip 2.5.
|
|
1274
|
+
*
|
|
1275
|
+
* For example:
|
|
1276
|
+
* <pre>// This sample exports FlexSheet content to an xlsx file.
|
|
1277
|
+
* // click.
|
|
1278
|
+
*
|
|
1279
|
+
* // HTML
|
|
1280
|
+
* <button
|
|
1281
|
+
* onclick="saveXlsx('FlexSheet.xlsx')">
|
|
1282
|
+
* Save
|
|
1283
|
+
* </button>
|
|
1284
|
+
*
|
|
1285
|
+
* // JavaScript
|
|
1286
|
+
* function saveXlsx(fileName) {
|
|
1287
|
+
* // Save the flexGrid to xlsx file.
|
|
1288
|
+
* flexsheet.save(fileName);
|
|
1289
|
+
* }</pre>
|
|
1290
|
+
*
|
|
1291
|
+
* @param fileName Name of the file that is generated.
|
|
1292
|
+
* @param options {@link IFlexSheetXlsxOptions} object specifying the save options.
|
|
1293
|
+
* @return A workbook instance containing the generated xlsx file content.
|
|
1294
|
+
*/
|
|
1295
|
+
save(fileName?: string, options?: IFlexSheetXlsxOptions): mXlsx.Workbook;
|
|
1296
|
+
/**
|
|
1297
|
+
* Saves the <b>FlexSheet</b> to xlsx file asynchronously.
|
|
1298
|
+
* This method works with JSZip 3.0.
|
|
1299
|
+
*
|
|
1300
|
+
* @param fileName Name of the file that is generated.
|
|
1301
|
+
* @param onSaved This callback provides an approach to get the base-64 string that
|
|
1302
|
+
* represents the content of the saved FlexSheet. Since this method is an asynchronous
|
|
1303
|
+
* method, user is not able to get the base-64 string immediately. User has to get the
|
|
1304
|
+
* base-64 string through this callback. This has a single parameter, the base64 string
|
|
1305
|
+
* of the saved flexsheet. It is passed to user.
|
|
1306
|
+
* @param onError This callback catches error information when saving.
|
|
1307
|
+
* This has a single parameter, the failure reason. The return value is passed to user
|
|
1308
|
+
* if he wants to catch the save failure reason.
|
|
1309
|
+
*
|
|
1310
|
+
* For example:
|
|
1311
|
+
* <pre>
|
|
1312
|
+
* flexsheet.saveAsync('', function (base64) {
|
|
1313
|
+
* // user can access the base64 string in this callback.
|
|
1314
|
+
* document.getElementByID('export').href = 'data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;' + 'base64,' + base64;
|
|
1315
|
+
* }, function (reason) {
|
|
1316
|
+
* // User can catch the failure reason in this callback.
|
|
1317
|
+
* console.log('The reason of save failure is ' + reason);
|
|
1318
|
+
* });
|
|
1319
|
+
* </pre>
|
|
1320
|
+
* @param options {@link IFlexSheetXlsxOptions} object specifying the save options.
|
|
1321
|
+
* @return A workbook instance containing the generated xlsx file content.
|
|
1322
|
+
*/
|
|
1323
|
+
saveAsync(fileName?: string, onSaved?: (base64?: string) => any, onError?: (reason?: any) => any, options?: IFlexSheetXlsxOptions): Workbook;
|
|
1324
|
+
saveToWorkbookOM(options?: IFlexSheetXlsxOptions): mXlsx.IWorkbook;
|
|
1325
|
+
/**
|
|
1326
|
+
* Loads the workbook into <b>FlexSheet</b>.
|
|
1327
|
+
* This method works with JSZip 2.5.
|
|
1328
|
+
*
|
|
1329
|
+
* For example:
|
|
1330
|
+
* <pre>// This sample opens an xlsx file chosen through Open File
|
|
1331
|
+
* // dialog and fills FlexSheet
|
|
1332
|
+
*
|
|
1333
|
+
* // HTML
|
|
1334
|
+
* <input type="file"
|
|
1335
|
+
* id="importFile"
|
|
1336
|
+
* accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
1337
|
+
* />
|
|
1338
|
+
* <div id="flexHost"></>
|
|
1339
|
+
*
|
|
1340
|
+
* // JavaScript
|
|
1341
|
+
* var flexSheet = new wijmo.grid.FlexSheet("#flexHost"),
|
|
1342
|
+
* importFile = document.getElementById('importFile');
|
|
1343
|
+
*
|
|
1344
|
+
* importFile.addEventListener('change', function () {
|
|
1345
|
+
* loadWorkbook();
|
|
1346
|
+
* });
|
|
1347
|
+
*
|
|
1348
|
+
* function loadWorkbook() {
|
|
1349
|
+
* var reader,
|
|
1350
|
+
* file = importFile.files[0];
|
|
1351
|
+
* if (file) {
|
|
1352
|
+
* reader = new FileReader();
|
|
1353
|
+
* reader.onload = function (e) {
|
|
1354
|
+
* flexSheet.load(reader.result);
|
|
1355
|
+
* };
|
|
1356
|
+
* reader.readAsArrayBuffer(file);
|
|
1357
|
+
* }
|
|
1358
|
+
* }</pre>
|
|
1359
|
+
*
|
|
1360
|
+
* @param workbook A {@link wijmo.xlsx.Workbook}, Blob, base-64 string, or ArrayBuffer
|
|
1361
|
+
* containing the xlsx file content.
|
|
1362
|
+
*/
|
|
1363
|
+
load(workbook: string | ArrayBuffer | Blob | mXlsx.Workbook): void;
|
|
1364
|
+
/**
|
|
1365
|
+
* Loads the workbook into <b>FlexSheet</b> asynchronously.
|
|
1366
|
+
* This method works with JSZip 3.0.
|
|
1367
|
+
*
|
|
1368
|
+
* @param workbook A {@link wijmo.xlsx.Workbook}, Blob, base-64 string, or ArrayBuffer
|
|
1369
|
+
* containing the xlsx file content.
|
|
1370
|
+
* @param onLoaded This callback provides access to the loaded workbook instance.
|
|
1371
|
+
* Since this method is asynchronous, users cannot get the loaded workbook
|
|
1372
|
+
* instance immediately.
|
|
1373
|
+
* This callback has a single parameter, the loaded workbook instance.
|
|
1374
|
+
* @param onError This callback catches errors when loading workbooks.
|
|
1375
|
+
* It has a single parameter, the failure reason.
|
|
1376
|
+
*
|
|
1377
|
+
* For example:
|
|
1378
|
+
* <pre>
|
|
1379
|
+
* flexsheet.loadAsync(blob, function (workbook) {
|
|
1380
|
+
* // user can access the loaded workbook instance in this callback.
|
|
1381
|
+
* var app = worksheet.application ;
|
|
1382
|
+
* ...
|
|
1383
|
+
* }, function (reason) {
|
|
1384
|
+
* // User can catch the failure reason in this callback.
|
|
1385
|
+
* console.log('The reason of load failure is ' + reason);
|
|
1386
|
+
* });
|
|
1387
|
+
* </pre>
|
|
1388
|
+
*/
|
|
1389
|
+
loadAsync(workbook: string | ArrayBuffer | Blob | mXlsx.Workbook, onLoaded?: (workbook: mXlsx.Workbook) => void, onError?: (reason?: any) => any): void;
|
|
1390
|
+
loadFromWorkbookOM(workbook: mXlsx.IWorkbook): void;
|
|
1391
|
+
/**
|
|
1392
|
+
* Undo the last user action.
|
|
1393
|
+
*/
|
|
1394
|
+
undo(): void;
|
|
1395
|
+
/**
|
|
1396
|
+
* Redo the last user action.
|
|
1397
|
+
*/
|
|
1398
|
+
redo(): void;
|
|
1399
|
+
/**
|
|
1400
|
+
* Selects a cell range and optionally scrolls it into view.
|
|
1401
|
+
*
|
|
1402
|
+
* {@link FlexSheet} overrides this method to adjust the selection cell range for the merged cells in the {@link FlexSheet}.
|
|
1403
|
+
*
|
|
1404
|
+
* @param rng The cell range to select.
|
|
1405
|
+
* @param show Indicates whether to scroll the new selection into view.
|
|
1406
|
+
*/
|
|
1407
|
+
select(rng: any, show?: any): boolean;
|
|
1408
|
+
addCustomFunction(name: string, func: Function, description?: string, minParamsCount?: number, maxParamsCount?: number): void;
|
|
1409
|
+
/**
|
|
1410
|
+
* Add custom function in {@link FlexSheet}.
|
|
1411
|
+
* @param name the name of the custom function.
|
|
1412
|
+
* @param func the custom function.
|
|
1413
|
+
* <br/>
|
|
1414
|
+
* The function signature looks as follows:
|
|
1415
|
+
* <br/>
|
|
1416
|
+
* <pre>function (...params: any[][][]): any;</pre>
|
|
1417
|
+
* The function takes a variable number of parameters, each parameter corresponds to an expression
|
|
1418
|
+
* passed as a function argument. Independently of whether the expression passed as a function argument
|
|
1419
|
+
* resolves to a single value or to a cell range, each parameter value is always a two dimensional array
|
|
1420
|
+
* of resolved values. The number of rows (first index) and columns (second index) in the array corresponds
|
|
1421
|
+
* to the size of the specified cell range. In case where argument is an expression that resolves
|
|
1422
|
+
* to a single value, it will be a one-to-one array where its value can be retrieved using the
|
|
1423
|
+
* param[0][0] indexer.
|
|
1424
|
+
* <br/>
|
|
1425
|
+
* The sample below adds a custom Sum Product function ('customSumProduct') to the FlexSheet:
|
|
1426
|
+
* <pre>flexSheet.addFunction('customSumProduct', (...params: any[][][]) => {
|
|
1427
|
+
* let result = 0,
|
|
1428
|
+
* range1 = params[0],
|
|
1429
|
+
* range2 = params[1];
|
|
1430
|
+
*
|
|
1431
|
+
* if (range1.length > 0 && range1.length === range2.length && range1[0].length === range2[0].length) {
|
|
1432
|
+
* for (let i = 0; i < range1.length; i++) {
|
|
1433
|
+
* for (let j = 0; j < range1[0].length; j++) {
|
|
1434
|
+
* result += range1[i][j] * range2[i][j];
|
|
1435
|
+
* }
|
|
1436
|
+
* }
|
|
1437
|
+
* }
|
|
1438
|
+
* return result;
|
|
1439
|
+
* }, 'Custom SumProduct Function', 2, 2);</pre>
|
|
1440
|
+
* After adding this function, it can be used it in sheet cell expressions, like here:
|
|
1441
|
+
* <pre>=customSumProduct(A1:B5, B1:C5)</pre>
|
|
1442
|
+
* @param description the description of the custom function, it will be shown in the function autocompletion of the {@link FlexSheet}.
|
|
1443
|
+
* @param minParamsCount the minimum count of the parameter that the function need.
|
|
1444
|
+
* @param maxParamsCount the maximum count of the parameter that the function need.
|
|
1445
|
+
* If the count of the parameters in the custom function is arbitrary, the minParamsCount and maxParamsCount should be set to null.
|
|
1446
|
+
*/
|
|
1447
|
+
addFunction(name: string, func: Function, description?: string, minParamsCount?: number, maxParamsCount?: number): void;
|
|
1448
|
+
/**
|
|
1449
|
+
* Disposes of the control by removing its association with the host element.
|
|
1450
|
+
*/
|
|
1451
|
+
dispose(): void;
|
|
1452
|
+
/**
|
|
1453
|
+
* Gets the content of a {@link CellRange} as a string suitable for
|
|
1454
|
+
* copying to the clipboard.
|
|
1455
|
+
*
|
|
1456
|
+
* {@link FlexSheet} overrides this method to support multiple rows or columns selection in {@link FlexSheet}.
|
|
1457
|
+
*
|
|
1458
|
+
* Hidden rows and columns are not included in the clip string.
|
|
1459
|
+
*
|
|
1460
|
+
* @param rng {@link CellRange} to copy. If omitted, the current selection is used.
|
|
1461
|
+
*/
|
|
1462
|
+
getClipString(rng?: CellRange): string;
|
|
1463
|
+
/**
|
|
1464
|
+
* Parses a string into rows and columns and applies the content to a given range.
|
|
1465
|
+
*
|
|
1466
|
+
* Override the <b>setClipString</b> method of {@link FlexGrid}.
|
|
1467
|
+
*
|
|
1468
|
+
* @param text Tab and newline delimited text to parse into the grid.
|
|
1469
|
+
* @param rng {@link CellRange} to copy. If omitted, the current selection is used.
|
|
1470
|
+
*/
|
|
1471
|
+
setClipString(text: string, rng?: CellRange): void;
|
|
1472
|
+
/**
|
|
1473
|
+
* Get the built-in table style via its name.
|
|
1474
|
+
*
|
|
1475
|
+
* @param styleName The name of the built-in table style.
|
|
1476
|
+
*/
|
|
1477
|
+
getBuiltInTableStyle(styleName: string): TableStyle;
|
|
1478
|
+
onSortingColumn(e: CellRangeEventArgs): boolean;
|
|
1479
|
+
_getCvIndex(index: number): number;
|
|
1480
|
+
_headerRowAtTop(): boolean;
|
|
1481
|
+
_getDataRowsOffset(): number;
|
|
1482
|
+
protected _bindGrid(full: boolean): void;
|
|
1483
|
+
private _init;
|
|
1484
|
+
private _flexSheetSyncSelection;
|
|
1485
|
+
private _initFuncsList;
|
|
1486
|
+
private _getFunctions;
|
|
1487
|
+
private _addCustomFunctionDescription;
|
|
1488
|
+
private _getCurrentFormulaIndex;
|
|
1489
|
+
private _prepareCellForEditHandler;
|
|
1490
|
+
private _addSheet;
|
|
1491
|
+
private _showSheet;
|
|
1492
|
+
private _selectedSheetChange;
|
|
1493
|
+
private _sourceChange;
|
|
1494
|
+
private _sheetVisibleChange;
|
|
1495
|
+
private _applyStyleForCell;
|
|
1496
|
+
private _checkCellFormat;
|
|
1497
|
+
_resetMergedRange(range: CellRange): boolean;
|
|
1498
|
+
private _updateCellsForUpdatingRow;
|
|
1499
|
+
private _updateCellsForUpdatingColumn;
|
|
1500
|
+
_cloneObject(source: any): any;
|
|
1501
|
+
private _evaluate;
|
|
1502
|
+
private _clearAndCheckItemsOwner;
|
|
1503
|
+
_checkCollectionOwner(col: RowColCollection, undefOnly?: boolean): void;
|
|
1504
|
+
_checkCollectionsOwner(): void;
|
|
1505
|
+
_copyTo(sheet: Sheet): void;
|
|
1506
|
+
_copyFrom(sheet: Sheet, needUpdate?: boolean): void;
|
|
1507
|
+
private _updateScrollPos;
|
|
1508
|
+
onUpdatedLayout(e?: EventArgs): void;
|
|
1509
|
+
private _resetMappedColumns;
|
|
1510
|
+
private _loadFromWorkbook;
|
|
1511
|
+
private _saveToWorkbook;
|
|
1512
|
+
private _saveSheetToWorkbook;
|
|
1513
|
+
private _mouseDown;
|
|
1514
|
+
private _mouseMove;
|
|
1515
|
+
private _mouseUp;
|
|
1516
|
+
private _click;
|
|
1517
|
+
private _touchStart;
|
|
1518
|
+
private _touchEnd;
|
|
1519
|
+
private _keydown;
|
|
1520
|
+
private createDropzone;
|
|
1521
|
+
private updateDropzoneArea;
|
|
1522
|
+
private updateDropzone;
|
|
1523
|
+
private destroyDropzone;
|
|
1524
|
+
private _showFillMarker;
|
|
1525
|
+
_updateMarquee(): void;
|
|
1526
|
+
private _updateFillingMarquee;
|
|
1527
|
+
private _showFillTooltip;
|
|
1528
|
+
private _selections;
|
|
1529
|
+
private _isCellSelected;
|
|
1530
|
+
private _isColumnSelected;
|
|
1531
|
+
private _isRowSelected;
|
|
1532
|
+
private _handleDropping;
|
|
1533
|
+
private _moveCellContent;
|
|
1534
|
+
private _allowExchangeCells;
|
|
1535
|
+
private _exchangeTableColumns;
|
|
1536
|
+
private _exchangeCellStyle;
|
|
1537
|
+
_containsMergedCells(rng: CellRange, sheet?: Sheet): boolean;
|
|
1538
|
+
private _multiSelectColumns;
|
|
1539
|
+
private _cumulativeOffset;
|
|
1540
|
+
private _cumulativeScrollOffset;
|
|
1541
|
+
private _checkHitWithinSelection;
|
|
1542
|
+
private _clearForEmptySheet;
|
|
1543
|
+
private _containsGroupRows;
|
|
1544
|
+
private _delSeletionContent;
|
|
1545
|
+
_updateAffectedFormula(index: number, count: number, isAdding: boolean, isRow: boolean, affectRange?: CellRange): {
|
|
1546
|
+
oldFormulas: {
|
|
1547
|
+
sheet: Sheet;
|
|
1548
|
+
point: Point;
|
|
1549
|
+
formula: any;
|
|
1550
|
+
}[];
|
|
1551
|
+
newFormulas: {
|
|
1552
|
+
sheet: Sheet;
|
|
1553
|
+
point: Point;
|
|
1554
|
+
formula: any;
|
|
1555
|
+
}[];
|
|
1556
|
+
};
|
|
1557
|
+
private _updateAffectedNamedRanges;
|
|
1558
|
+
private _updateFormulaBoundaryForEditingCell;
|
|
1559
|
+
_updateColumnFiler(srcColIndex: number, descColIndex: number): void;
|
|
1560
|
+
_isDescendant(paranet: any, child: any): boolean;
|
|
1561
|
+
_clearCalcEngine(): void;
|
|
1562
|
+
private _getRangeString;
|
|
1563
|
+
_getSelectionForListBoxMode(flex: FlexGrid): CellRange;
|
|
1564
|
+
private _containsRandFormula;
|
|
1565
|
+
private _isMultipleRowsSelected;
|
|
1566
|
+
private _isMultipleColumnsSelected;
|
|
1567
|
+
private _postSetClipStringProcess;
|
|
1568
|
+
private _delCutData;
|
|
1569
|
+
private _containsMultiLineText;
|
|
1570
|
+
private _sortByRow;
|
|
1571
|
+
private _sortByColumn;
|
|
1572
|
+
_setFlexSheetToDirty(): void;
|
|
1573
|
+
/**
|
|
1574
|
+
* Converts the number value to its corresponding alpha value.
|
|
1575
|
+
* For instance: 0, 1, 2...to a, b, c...
|
|
1576
|
+
* @param c The number value need to be converted.
|
|
1577
|
+
*/
|
|
1578
|
+
static convertNumberToAlpha(c: number): string;
|
|
1579
|
+
_updateFormulaForReorderingRows(srcRow: number, dstRow: number, isResetFormula?: boolean): void;
|
|
1580
|
+
private _updateFormulaForDropping;
|
|
1581
|
+
private _updateNamedRangesForDropping;
|
|
1582
|
+
private _updateCellRefForDropping;
|
|
1583
|
+
_updateCellStyleForReorderingRows(srcRow: number, dstRow: number, sortedCellsStyle: any): void;
|
|
1584
|
+
_scanFormulas(): any[];
|
|
1585
|
+
_resetFormulas(formulas: any[]): void;
|
|
1586
|
+
_getCellStyle(rowIndex: number, colIndex: number, sheet?: Sheet): ICellStyle;
|
|
1587
|
+
_getSheet(name: string): Sheet;
|
|
1588
|
+
_validateSheetName(sheetName: string): boolean;
|
|
1589
|
+
_sheetNameChanged(oldName: string, newName: string): void;
|
|
1590
|
+
_updateFormulasTableColumn(table: Table, col: number, oldColName: string, newColName: string): void;
|
|
1591
|
+
_updateFormulasWithNameUpdating(oldName: string, newName: string, isTable?: boolean): void;
|
|
1592
|
+
private _updateTablesForUpdatingRow;
|
|
1593
|
+
private _updateTablesForUpdatingColumn;
|
|
1594
|
+
private _updateDivContainerHeight;
|
|
1595
|
+
_isDisableDeleteRow(topRow: number, bottomRow: number): boolean;
|
|
1596
|
+
_copy(key: string, value: any): boolean;
|
|
1597
|
+
private _getTableSheetIndex;
|
|
1598
|
+
private _sheetSortConverter;
|
|
1599
|
+
_formatEvaluatedResult(result: any, col: Column, format: string): any;
|
|
1600
|
+
private _updateCellRef;
|
|
1601
|
+
private _updateCellBoundary;
|
|
1602
|
+
private _fillData;
|
|
1603
|
+
private _getFillData;
|
|
1604
|
+
private _fillFormula;
|
|
1605
|
+
private _getFillSeries;
|
|
1606
|
+
private _getLinearBestFitTrendData;
|
|
1607
|
+
_getCellSettingsForFill(fillSource?: CellRange, fillRange?: CellRange): any[];
|
|
1608
|
+
private _resetCellsForFillRange;
|
|
1609
|
+
private _canDoFillOperation;
|
|
1610
|
+
_updateItemIndexForInsertingRow(items: any[], newItemIndex: number, rowCount: number): void;
|
|
1611
|
+
_updateItemIndexForRemovingRow(items: any[], itemIndex: number): void;
|
|
1612
|
+
_copyRowsToSelectedSheet(): void;
|
|
1613
|
+
_copyColumnsToSelectedSheet(): void;
|
|
1614
|
+
private _getUniqueColumnName;
|
|
1615
|
+
private _hideContextMenu;
|
|
1616
|
+
private _parseFromWorkbookTable;
|
|
1617
|
+
private _parseFromWorkbookTableStyle;
|
|
1618
|
+
private _parseFromWorkbookTableStyleElement;
|
|
1619
|
+
private _parseToWorkbookTable;
|
|
1620
|
+
private _parseToWorkbookTableStyle;
|
|
1621
|
+
private _parseToWorkbookTableStyleElement;
|
|
1622
|
+
private _isBuiltInStyleName;
|
|
1623
|
+
_getTable(name: string): Table;
|
|
1624
|
+
private _checkTableHeaderRow;
|
|
1625
|
+
private _getThemeColor;
|
|
1626
|
+
private _createBuiltInTableStyle;
|
|
1627
|
+
private _generateTableLightStyle1;
|
|
1628
|
+
private _generateTableLightStyle2;
|
|
1629
|
+
private _generateTableMediumStyle1;
|
|
1630
|
+
private _generateTableMediumStyle2;
|
|
1631
|
+
private _generateTableMediumStyle3;
|
|
1632
|
+
private _generateTableMediumStyle4;
|
|
1633
|
+
private _generateTableDarkStyle1;
|
|
1634
|
+
private _generateTableDarkStyle2;
|
|
1635
|
+
static _getHeaderRowText(col: Column): string;
|
|
1636
|
+
static _toOADate(val: Date): number;
|
|
1637
|
+
static _fromOADate(oADate: number): Date;
|
|
1638
|
+
setHeights(heights: (number | null)[]): void;
|
|
1639
|
+
updateRowHeights(): void;
|
|
1640
|
+
}
|
|
1641
|
+
/**
|
|
1642
|
+
* Provides arguments for the {@link FlexSheet.draggingRowColumn} event.
|
|
1643
|
+
*/
|
|
1644
|
+
export declare class DraggingRowColumnEventArgs extends EventArgs {
|
|
1645
|
+
private _isDraggingRows;
|
|
1646
|
+
private _isShiftKey;
|
|
1647
|
+
private _draggingRange;
|
|
1648
|
+
/**
|
|
1649
|
+
* Initializes a new instance of the {@link DraggingRowColumnEventArgs} class.
|
|
1650
|
+
*
|
|
1651
|
+
* @param draggingRange The dragging cells range.
|
|
1652
|
+
* @param isDraggingRows Indicates whether the dragging event is triggered due to dragging rows or columns.
|
|
1653
|
+
* @param isShiftKey Indicates whether the shift key is pressed when dragging.
|
|
1654
|
+
*/
|
|
1655
|
+
constructor(draggingRange: CellRange, isDraggingRows: boolean, isShiftKey: boolean);
|
|
1656
|
+
/**
|
|
1657
|
+
* Gets the dragging cells range.
|
|
1658
|
+
*/
|
|
1659
|
+
readonly draggingRange: CellRange;
|
|
1660
|
+
/**
|
|
1661
|
+
* Gets a value indicating whether the event refers to dragging rows or columns.
|
|
1662
|
+
*/
|
|
1663
|
+
readonly isDraggingRows: boolean;
|
|
1664
|
+
/**
|
|
1665
|
+
* Gets a value indicating whether the shift key is pressed.
|
|
1666
|
+
*/
|
|
1667
|
+
readonly isShiftKey: boolean;
|
|
1668
|
+
}
|
|
1669
|
+
/**
|
|
1670
|
+
* Provides arguments for the {@link FlexSheet.beginDroppingRowColumn} event.
|
|
1671
|
+
*/
|
|
1672
|
+
export declare class DroppingRowColumnEventArgs extends CancelEventArgs {
|
|
1673
|
+
private _droppingRange;
|
|
1674
|
+
private _isDroppingRows;
|
|
1675
|
+
/**
|
|
1676
|
+
* Initializes a new instance of the {@link DroppingRowColumnEventArgs} class.
|
|
1677
|
+
*
|
|
1678
|
+
* @param droppingRange The dropping cells range.
|
|
1679
|
+
* @param isDroppingRows Indicates whether the dropping event is triggered due to dropping rows or columns.
|
|
1680
|
+
*/
|
|
1681
|
+
constructor(droppingRange: CellRange, isDroppingRows: boolean);
|
|
1682
|
+
/**
|
|
1683
|
+
* Gets the dragging cells range.
|
|
1684
|
+
*/
|
|
1685
|
+
readonly droppingRange: CellRange;
|
|
1686
|
+
/**
|
|
1687
|
+
* Gets a value indicating whether the event refers to dropping rows or columns.
|
|
1688
|
+
*/
|
|
1689
|
+
readonly isDroppingRows: boolean;
|
|
1690
|
+
}
|
|
1691
|
+
/**
|
|
1692
|
+
* Provides arguments for unknown function events.
|
|
1693
|
+
*/
|
|
1694
|
+
export declare class UnknownFunctionEventArgs extends EventArgs {
|
|
1695
|
+
private _funcName;
|
|
1696
|
+
private _params;
|
|
1697
|
+
/**
|
|
1698
|
+
* Gets or sets the result for the unknown funtion.
|
|
1699
|
+
*/
|
|
1700
|
+
value: string;
|
|
1701
|
+
/**
|
|
1702
|
+
* Initializes a new instance of the {@link UnknownFunctionEventArgs} class.
|
|
1703
|
+
*
|
|
1704
|
+
* @param funcName The name of the unknown function.
|
|
1705
|
+
* @param params The parameters' value list of the nuknown function.
|
|
1706
|
+
*/
|
|
1707
|
+
constructor(funcName: string, params: any[]);
|
|
1708
|
+
/**
|
|
1709
|
+
* Gets the name of the unknown function.
|
|
1710
|
+
*/
|
|
1711
|
+
readonly funcName: string;
|
|
1712
|
+
/**
|
|
1713
|
+
* Gets the parameters' value list of the nuknown function.
|
|
1714
|
+
*/
|
|
1715
|
+
readonly params: any[];
|
|
1716
|
+
}
|
|
1717
|
+
/**
|
|
1718
|
+
* Provides arguments for rows or columns changed events.
|
|
1719
|
+
*/
|
|
1720
|
+
export declare class RowColumnChangedEventArgs extends EventArgs {
|
|
1721
|
+
private _index;
|
|
1722
|
+
private _count;
|
|
1723
|
+
private _added;
|
|
1724
|
+
private _ranges;
|
|
1725
|
+
/**
|
|
1726
|
+
* Initializes a new instance of the @see:RowColumnChangedEventArgs class.
|
|
1727
|
+
*
|
|
1728
|
+
* @param index The start index of the changed rows or columns.
|
|
1729
|
+
* @param count The added or removed count of the rows or columns.
|
|
1730
|
+
* @param added The value indicates the event is for adding ot removing rows or columns.
|
|
1731
|
+
* @param isCol Determines whether the changes are related to columns or rows.
|
|
1732
|
+
*/
|
|
1733
|
+
constructor(index: number, count: number, added: boolean, isCol: boolean);
|
|
1734
|
+
/**
|
|
1735
|
+
* Initializes a new instance of the {@link RowColumnChangedEventArgs} class.
|
|
1736
|
+
*
|
|
1737
|
+
* @param ranges An array of {@link CellRange} instances that determines the changed rows or columns.
|
|
1738
|
+
* @param added The value indicates the event is for adding ot removing rows or columns.
|
|
1739
|
+
* @param isCol Determines whether the changes are related to columns or rows.
|
|
1740
|
+
*/
|
|
1741
|
+
constructor(ranges: CellRange[], added: boolean, isCol: boolean);
|
|
1742
|
+
/**
|
|
1743
|
+
* Gets an array of {@link CellRange} instances that determines the changed rows or columns.
|
|
1744
|
+
*/
|
|
1745
|
+
readonly ranges: CellRange[];
|
|
1746
|
+
/**
|
|
1747
|
+
* Gets the start index of the changed rows or columns.
|
|
1748
|
+
* Returns -1 if an array of {@link CellRange} objects containing more than 1 element was used when creating the instance.
|
|
1749
|
+
*/
|
|
1750
|
+
readonly index: number;
|
|
1751
|
+
/**
|
|
1752
|
+
* Gets the added or removed count of the rows or columns.
|
|
1753
|
+
* Returns -1 if an array of {@link CellRange} objects containing more than 1 element was used when creating the instance.
|
|
1754
|
+
*/
|
|
1755
|
+
readonly count: number;
|
|
1756
|
+
/**
|
|
1757
|
+
* Gets the value indicates the event is for adding ot removing rows or columns.
|
|
1758
|
+
*/
|
|
1759
|
+
readonly added: boolean;
|
|
1760
|
+
readonly isAdd: boolean;
|
|
1761
|
+
}
|
|
1762
|
+
/**
|
|
1763
|
+
* Provides arguments for the {@link FlexSheet.autoFilling} event.
|
|
1764
|
+
*/
|
|
1765
|
+
export declare class AutoFillingEventArgs extends CancelEventArgs {
|
|
1766
|
+
private _range;
|
|
1767
|
+
private _op;
|
|
1768
|
+
/**
|
|
1769
|
+
* Initializes a new instance of the {@link AutoFillingEventArgs} class.
|
|
1770
|
+
* @param range Range of cells affected by the event.
|
|
1771
|
+
* @param operation The auto-fill operation.
|
|
1772
|
+
*/
|
|
1773
|
+
constructor(range: CellRange, operation: AutoFillOperation);
|
|
1774
|
+
/**
|
|
1775
|
+
* Gets the {@link CellRange} affected by this event.
|
|
1776
|
+
*/
|
|
1777
|
+
readonly range: CellRange;
|
|
1778
|
+
/**
|
|
1779
|
+
* Gets the auto-fill operation.
|
|
1780
|
+
*/
|
|
1781
|
+
readonly operation: AutoFillOperation;
|
|
1782
|
+
}
|
|
1783
|
+
/**
|
|
1784
|
+
* Provides arguments for the {@link FlexSheet.autoFilled} event.
|
|
1785
|
+
*/
|
|
1786
|
+
export declare class AutoFilledEventArgs extends EventArgs {
|
|
1787
|
+
private _range;
|
|
1788
|
+
private _op;
|
|
1789
|
+
/**
|
|
1790
|
+
* Initializes a new instance of the {@link AutoFilledEventArgs} class.
|
|
1791
|
+
* @param range Range of cells affected by the event.
|
|
1792
|
+
* @param operation The auto-fill operation.
|
|
1793
|
+
*/
|
|
1794
|
+
constructor(range: CellRange, operation: AutoFillOperation);
|
|
1795
|
+
/**
|
|
1796
|
+
* Gets the {@link CellRange} affected by this event.
|
|
1797
|
+
*/
|
|
1798
|
+
readonly range: CellRange;
|
|
1799
|
+
/**
|
|
1800
|
+
* Gets the auto-fill operation.
|
|
1801
|
+
*/
|
|
1802
|
+
readonly operation: AutoFillOperation;
|
|
1803
|
+
}
|
|
1804
|
+
/**
|
|
1805
|
+
* Defines the extension of the {@link GridPanel} class, which is used by <b>FlexSheet</b> where
|
|
1806
|
+
* the base {@link FlexGrid} class uses {@link GridPanel}. For example, the <b>cells</b> property returns an instance
|
|
1807
|
+
* of this class.
|
|
1808
|
+
*/
|
|
1809
|
+
export declare class FlexSheetPanel extends GridPanel {
|
|
1810
|
+
/**
|
|
1811
|
+
* Initializes a new instance of the {@link FlexSheetPanel} class.
|
|
1812
|
+
*
|
|
1813
|
+
* @param grid The {@link FlexGrid} object that owns the panel.
|
|
1814
|
+
* @param cellType The type of cell in the panel.
|
|
1815
|
+
* @param rows The rows displayed in the panel.
|
|
1816
|
+
* @param cols The columns displayed in the panel.
|
|
1817
|
+
* @param element The HTMLElement that hosts the cells in the control.
|
|
1818
|
+
*/
|
|
1819
|
+
constructor(grid: FlexGrid, cellType: CellType, rows: RowCollection, cols: ColumnCollection, element: HTMLElement);
|
|
1820
|
+
/**
|
|
1821
|
+
* Gets a {@link SelectedState} value that indicates the selected state of a cell.
|
|
1822
|
+
*
|
|
1823
|
+
* Overrides this method to support multiple selection showSelectedHeaders for {@link FlexSheet}
|
|
1824
|
+
*
|
|
1825
|
+
* @param r Row index of the cell to inspect.
|
|
1826
|
+
* @param c Column index of the cell to inspect.
|
|
1827
|
+
* @param rng {@link CellRange} that contains the cell to inspect.
|
|
1828
|
+
*/
|
|
1829
|
+
getSelectedState(r: number, c: number, rng: CellRange): SelectedState;
|
|
1830
|
+
/**
|
|
1831
|
+
* Gets the value stored in a cell in the panel.
|
|
1832
|
+
*
|
|
1833
|
+
* @param r The row index of the cell.
|
|
1834
|
+
* @param c The index, name, or binding of the column that contains the cell.
|
|
1835
|
+
* @param formatted Whether to format the value for display.
|
|
1836
|
+
*/
|
|
1837
|
+
getCellData(r: number, c: any, formatted: boolean): any;
|
|
1838
|
+
/**
|
|
1839
|
+
* Sets the content of a cell in the panel.
|
|
1840
|
+
*
|
|
1841
|
+
* @param r The index of the row that contains the cell.
|
|
1842
|
+
* @param c The index, name, or binding of the column that contains the cell.
|
|
1843
|
+
* @param value The value to store in the cell.
|
|
1844
|
+
* @param coerce A value indicating whether to change the value automatically to match the column's data type.
|
|
1845
|
+
* @param invalidate Whether to invalidate the FlexSheet to show the change.
|
|
1846
|
+
* @param isMapKeyValue value passed is already key value of dataMap, don't need re-find.
|
|
1847
|
+
* @return Returns true if the value is stored successfully, otherwise false (failed cast).
|
|
1848
|
+
*/
|
|
1849
|
+
setCellData(r: number, c: any, value: any, coerce?: boolean, invalidate?: boolean, isMapKeyValue?: boolean): boolean;
|
|
1850
|
+
_renderCell(row: HTMLElement, r: number, c: number, vrng: CellRange, state: boolean, ctr: number): number;
|
|
1851
|
+
private _drkColors;
|
|
1852
|
+
private _darker;
|
|
1853
|
+
}
|
|
1854
|
+
/**
|
|
1855
|
+
* Represents a row used to display column header information for a bound sheet.
|
|
1856
|
+
*/
|
|
1857
|
+
export declare class HeaderRow extends Row {
|
|
1858
|
+
/**
|
|
1859
|
+
* Initializes a new instance of the HeaderRow class.
|
|
1860
|
+
*/
|
|
1861
|
+
constructor();
|
|
1862
|
+
}
|
|
1863
|
+
/**
|
|
1864
|
+
* Defines the cell styling properties.
|
|
1865
|
+
*/
|
|
1866
|
+
export interface ICellStyle {
|
|
1867
|
+
/**
|
|
1868
|
+
* The CSS class name to add to a cell.
|
|
1869
|
+
*/
|
|
1870
|
+
className?: string;
|
|
1871
|
+
/**
|
|
1872
|
+
* The font family.
|
|
1873
|
+
*/
|
|
1874
|
+
fontFamily?: string;
|
|
1875
|
+
/**
|
|
1876
|
+
* The font size.
|
|
1877
|
+
*/
|
|
1878
|
+
fontSize?: string;
|
|
1879
|
+
/**
|
|
1880
|
+
* The font style.
|
|
1881
|
+
*/
|
|
1882
|
+
fontStyle?: string;
|
|
1883
|
+
/**
|
|
1884
|
+
* The font weight.
|
|
1885
|
+
*/
|
|
1886
|
+
fontWeight?: string;
|
|
1887
|
+
/**
|
|
1888
|
+
* The text decoration.
|
|
1889
|
+
*/
|
|
1890
|
+
textDecoration?: string;
|
|
1891
|
+
/**
|
|
1892
|
+
* The text alignment.
|
|
1893
|
+
*/
|
|
1894
|
+
textAlign?: string;
|
|
1895
|
+
/**
|
|
1896
|
+
* The vertical alignment.
|
|
1897
|
+
*/
|
|
1898
|
+
verticalAlign?: string;
|
|
1899
|
+
/**
|
|
1900
|
+
* The background color.
|
|
1901
|
+
*/
|
|
1902
|
+
backgroundColor?: string;
|
|
1903
|
+
/**
|
|
1904
|
+
* The font color.
|
|
1905
|
+
*/
|
|
1906
|
+
color?: string;
|
|
1907
|
+
/**
|
|
1908
|
+
* Format string for formatting the value of the cell.
|
|
1909
|
+
*/
|
|
1910
|
+
format?: string;
|
|
1911
|
+
/**
|
|
1912
|
+
* Describes how whitespace inside the element is handled.
|
|
1913
|
+
*/
|
|
1914
|
+
whiteSpace?: string;
|
|
1915
|
+
/**
|
|
1916
|
+
* Color of the Left border.
|
|
1917
|
+
*/
|
|
1918
|
+
borderLeftColor?: string;
|
|
1919
|
+
/**
|
|
1920
|
+
* Style of the Left border.
|
|
1921
|
+
*/
|
|
1922
|
+
borderLeftStyle?: string;
|
|
1923
|
+
/**
|
|
1924
|
+
* Width of the Left border.
|
|
1925
|
+
*/
|
|
1926
|
+
borderLeftWidth?: string;
|
|
1927
|
+
/**
|
|
1928
|
+
* Color of the Right border.
|
|
1929
|
+
*/
|
|
1930
|
+
borderRightColor?: string;
|
|
1931
|
+
/**
|
|
1932
|
+
* Style of the Right border.
|
|
1933
|
+
*/
|
|
1934
|
+
borderRightStyle?: string;
|
|
1935
|
+
/**
|
|
1936
|
+
* Width of the Right border.
|
|
1937
|
+
*/
|
|
1938
|
+
borderRightWidth?: string;
|
|
1939
|
+
/**
|
|
1940
|
+
* Color of the Top border.
|
|
1941
|
+
*/
|
|
1942
|
+
borderTopColor?: string;
|
|
1943
|
+
/**
|
|
1944
|
+
* Style of the Top border.
|
|
1945
|
+
*/
|
|
1946
|
+
borderTopStyle?: string;
|
|
1947
|
+
/**
|
|
1948
|
+
* Width of the Top border.
|
|
1949
|
+
*/
|
|
1950
|
+
borderTopWidth?: string;
|
|
1951
|
+
/**
|
|
1952
|
+
* Color of the Bottom border.
|
|
1953
|
+
*/
|
|
1954
|
+
borderBottomColor?: string;
|
|
1955
|
+
/**
|
|
1956
|
+
* Style of the Bottom border.
|
|
1957
|
+
*/
|
|
1958
|
+
borderBottomStyle?: string;
|
|
1959
|
+
/**
|
|
1960
|
+
* Width of the Bottom border.
|
|
1961
|
+
*/
|
|
1962
|
+
borderBottomWidth?: string;
|
|
1963
|
+
}
|
|
1964
|
+
/**
|
|
1965
|
+
* Defines the format states for the cells.
|
|
1966
|
+
*/
|
|
1967
|
+
export interface IFormatState {
|
|
1968
|
+
/**
|
|
1969
|
+
* Indicates whether the bold style is applied.
|
|
1970
|
+
*/
|
|
1971
|
+
isBold?: boolean;
|
|
1972
|
+
/**
|
|
1973
|
+
* Indicates whether the italic style is applied.
|
|
1974
|
+
*/
|
|
1975
|
+
isItalic?: boolean;
|
|
1976
|
+
/**
|
|
1977
|
+
* Indicates whether the underlined style is applied.
|
|
1978
|
+
*/
|
|
1979
|
+
isUnderline?: boolean;
|
|
1980
|
+
/**
|
|
1981
|
+
* Gets the applied text alignment.
|
|
1982
|
+
*/
|
|
1983
|
+
textAlign?: string;
|
|
1984
|
+
/**
|
|
1985
|
+
* Indicate whether the current selection is a merged cell.
|
|
1986
|
+
*/
|
|
1987
|
+
isMergedCell?: boolean;
|
|
1988
|
+
/**
|
|
1989
|
+
* The vertical alignment.
|
|
1990
|
+
*/
|
|
1991
|
+
verticalAlign?: string;
|
|
1992
|
+
}
|
|
1993
|
+
/**
|
|
1994
|
+
* FlexSheet Xlsx export options
|
|
1995
|
+
*/
|
|
1996
|
+
export interface IFlexSheetXlsxOptions {
|
|
1997
|
+
/**
|
|
1998
|
+
* Export only.
|
|
1999
|
+
*
|
|
2000
|
+
* Defines the conversion behavior for HTML entities such as """, "<", ">" and "&" when exporting.
|
|
2001
|
+
*
|
|
2002
|
+
* The default value is {@link wijmo.grid.xlsx.HtmlEntityConversion.Auto}.
|
|
2003
|
+
*/
|
|
2004
|
+
convertHtmlEntities?: HtmlEntityConversion;
|
|
2005
|
+
/**
|
|
2006
|
+
* Export only.
|
|
2007
|
+
*
|
|
2008
|
+
* Indicates whether export the calculated value for formula cells.
|
|
2009
|
+
*/
|
|
2010
|
+
includeFormulaValues?: boolean;
|
|
2011
|
+
}
|
|
2012
|
+
export declare function _isFormula(val: any): val is string;
|
|
2013
|
+
export declare function _isEditingCell(g: FlexGrid, r: number, c: number): boolean;
|
|
2014
|
+
export declare enum AutoFillOperation {
|
|
2015
|
+
CopyFormat = 1,
|
|
2016
|
+
CopyContent = 2,
|
|
2017
|
+
FillSeries = 4
|
|
2018
|
+
}
|
|
2019
|
+
/**
|
|
2020
|
+
* Controls undo and redo operations in the {@link FlexSheet}.
|
|
2021
|
+
*/
|
|
2022
|
+
export declare class UndoStack {
|
|
2023
|
+
private MAX_STACK_SIZE;
|
|
2024
|
+
private _owner;
|
|
2025
|
+
private _stack;
|
|
2026
|
+
private _pointer;
|
|
2027
|
+
_pendingAction: _UndoAction;
|
|
2028
|
+
private _resizingTriggered;
|
|
2029
|
+
private _stackSize;
|
|
2030
|
+
/**
|
|
2031
|
+
* Initializes a new instance of the {@link UndoStack} class.
|
|
2032
|
+
*
|
|
2033
|
+
* @param owner The {@link FlexSheet} control that the {@link UndoStack} works for.
|
|
2034
|
+
*/
|
|
2035
|
+
constructor(owner: FlexSheet);
|
|
2036
|
+
/**
|
|
2037
|
+
* Gets or sets the size of the undo stack.
|
|
2038
|
+
*/
|
|
2039
|
+
stackSize: number;
|
|
2040
|
+
/**
|
|
2041
|
+
* Checks whether an undo action can be performed.
|
|
2042
|
+
*/
|
|
2043
|
+
readonly canUndo: boolean;
|
|
2044
|
+
/**
|
|
2045
|
+
* Checks whether a redo action can be performed.
|
|
2046
|
+
*/
|
|
2047
|
+
readonly canRedo: boolean;
|
|
2048
|
+
/**
|
|
2049
|
+
* Occurs after the undo stack has changed.
|
|
2050
|
+
*/
|
|
2051
|
+
readonly undoStackChanged: Event<UndoStack, EventArgs>;
|
|
2052
|
+
/**
|
|
2053
|
+
* Raises the {@link undoStackChanged} event.
|
|
2054
|
+
*/
|
|
2055
|
+
onUndoStackChanged(e?: EventArgs): void;
|
|
2056
|
+
/**
|
|
2057
|
+
* Undo the last action.
|
|
2058
|
+
*/
|
|
2059
|
+
undo(): void;
|
|
2060
|
+
/**
|
|
2061
|
+
* Redo the last undone action.
|
|
2062
|
+
*/
|
|
2063
|
+
redo(): void;
|
|
2064
|
+
/**
|
|
2065
|
+
* Clears the undo stack.
|
|
2066
|
+
*/
|
|
2067
|
+
clear(): void;
|
|
2068
|
+
_addAction(action: _UndoAction): void;
|
|
2069
|
+
_pop(): _UndoAction;
|
|
2070
|
+
private _initCellEditAction;
|
|
2071
|
+
private _initCellEditActionForPasting;
|
|
2072
|
+
private _afterProcessCellEditAction;
|
|
2073
|
+
private _beforeUndoRedo;
|
|
2074
|
+
}
|
|
2075
|
+
/**
|
|
2076
|
+
* The editor used to inspect and modify {@link FlexSheetValueFilter} objects.
|
|
2077
|
+
*
|
|
2078
|
+
* This class is used by the {@link FlexSheetFilter} class; you
|
|
2079
|
+
* rarely use it directly.
|
|
2080
|
+
*/
|
|
2081
|
+
export declare class FlexSheetValueFilterEditor extends ValueFilterEditor {
|
|
2082
|
+
/**
|
|
2083
|
+
* Updates editor with current filter settings.
|
|
2084
|
+
*/
|
|
2085
|
+
updateEditor(): void;
|
|
2086
|
+
/**
|
|
2087
|
+
* Updates filter to reflect the current editor values.
|
|
2088
|
+
*/
|
|
2089
|
+
updateFilter(): void;
|
|
2090
|
+
}
|
|
2091
|
+
/**
|
|
2092
|
+
* Defines a condition filter for a column on a {@link FlexSheet} control.
|
|
2093
|
+
*
|
|
2094
|
+
* Condition filters contain two conditions that may be combined
|
|
2095
|
+
* using an 'and' or an 'or' operator.
|
|
2096
|
+
*
|
|
2097
|
+
* This class is used by the {@link FlexSheetFilter} class; you will
|
|
2098
|
+
* rarely use it directly.
|
|
2099
|
+
*/
|
|
2100
|
+
export declare class FlexSheetConditionFilter extends ConditionFilter {
|
|
2101
|
+
/**
|
|
2102
|
+
* Initializes a new instance of the {@link ConditionFilter} class.
|
|
2103
|
+
*
|
|
2104
|
+
* @param column The column to filter.
|
|
2105
|
+
*/
|
|
2106
|
+
constructor(column: Column);
|
|
2107
|
+
/**
|
|
2108
|
+
* Returns a value indicating whether a value passes this filter.
|
|
2109
|
+
*
|
|
2110
|
+
* @param value The value to test.
|
|
2111
|
+
*/
|
|
2112
|
+
apply(value: any): boolean;
|
|
2113
|
+
}
|
|
2114
|
+
/**
|
|
2115
|
+
* Defines a value filter for a column on a {@link FlexSheet} control.
|
|
2116
|
+
*
|
|
2117
|
+
* Value filters contain an explicit list of values that should be
|
|
2118
|
+
* displayed by the sheet.
|
|
2119
|
+
*/
|
|
2120
|
+
export declare class FlexSheetValueFilter extends ValueFilter {
|
|
2121
|
+
/**
|
|
2122
|
+
* Initializes a new instance of the {@link FlexSheetValueFilter} class.
|
|
2123
|
+
*
|
|
2124
|
+
* @param column The column to filter.
|
|
2125
|
+
*/
|
|
2126
|
+
constructor(column: Column);
|
|
2127
|
+
/**
|
|
2128
|
+
* Gets a value that indicates whether a value passes the filter.
|
|
2129
|
+
*
|
|
2130
|
+
* @param value The value to test.
|
|
2131
|
+
*/
|
|
2132
|
+
apply(value: any): boolean;
|
|
2133
|
+
}
|
|
2134
|
+
/**
|
|
2135
|
+
* Defines a filter for a column on a {@link FlexSheet} control.
|
|
2136
|
+
*
|
|
2137
|
+
* The {@link FlexSheetColumnFilter} contains a {@link FlexSheetConditionFilter} and a
|
|
2138
|
+
* {@link FlexSheetValueFilter}; only one of them may be active at a time.
|
|
2139
|
+
*
|
|
2140
|
+
* This class is used by the {@link FlexSheetFilter} class; you
|
|
2141
|
+
* rarely use it directly.
|
|
2142
|
+
*/
|
|
2143
|
+
export declare class FlexSheetColumnFilter extends ColumnFilter {
|
|
2144
|
+
/**
|
|
2145
|
+
* Initializes a new instance of the {@link FlexSheetColumnFilter} class.
|
|
2146
|
+
*
|
|
2147
|
+
* @param owner The {@link FlexSheetFilter} that owns this column filter.
|
|
2148
|
+
* @param column The {@link Column} to filter.
|
|
2149
|
+
*/
|
|
2150
|
+
constructor(owner: FlexSheetFilter, column: Column);
|
|
2151
|
+
}
|
|
2152
|
+
/**
|
|
2153
|
+
* The editor used to inspect and modify column filters.
|
|
2154
|
+
*
|
|
2155
|
+
* This class is used by the {@link FlexSheetFilter} class; you
|
|
2156
|
+
* rarely use it directly.
|
|
2157
|
+
*/
|
|
2158
|
+
export declare class FlexSheetColumnFilterEditor extends ColumnFilterEditor {
|
|
2159
|
+
private _btnSortAsc;
|
|
2160
|
+
private _btnSortDsc;
|
|
2161
|
+
/**
|
|
2162
|
+
* Initializes a new instance of the {@link FlexSheetColumnFilterEditor} class.
|
|
2163
|
+
*
|
|
2164
|
+
* @param element The DOM element that hosts the control, or a selector
|
|
2165
|
+
* for the host element (e.g. '#theCtrl').
|
|
2166
|
+
* @param filter The {@link FlexSheetColumnFilter} to edit.
|
|
2167
|
+
* @param sortButtons Whether to show sort buttons in the editor.
|
|
2168
|
+
*/
|
|
2169
|
+
constructor(element: any, filter: FlexSheetColumnFilter, sortButtons?: boolean);
|
|
2170
|
+
_showFilter(filterType: FilterType): void;
|
|
2171
|
+
private _sortBtnClick;
|
|
2172
|
+
private cloneElement;
|
|
2173
|
+
private _updateSortButtonStateUnbound;
|
|
2174
|
+
}
|
|
2175
|
+
/**
|
|
2176
|
+
* Implements an Excel-style filter for {@link FlexSheet} controls.
|
|
2177
|
+
*
|
|
2178
|
+
* To enable filtering on a {@link FlexSheet} control, create an instance
|
|
2179
|
+
* of the {@link FlexSheetFilter} and pass the grid as a parameter to the
|
|
2180
|
+
* constructor.
|
|
2181
|
+
*/
|
|
2182
|
+
export declare class FlexSheetFilter extends FlexGridFilter {
|
|
2183
|
+
private _undoAcion;
|
|
2184
|
+
private _filterChanged;
|
|
2185
|
+
/**
|
|
2186
|
+
* Gets or sets the current filter definition as a JSON string.
|
|
2187
|
+
*/
|
|
2188
|
+
filterDefinition: string;
|
|
2189
|
+
/**
|
|
2190
|
+
* Applies the current column filters to the sheet.
|
|
2191
|
+
*/
|
|
2192
|
+
apply(): void;
|
|
2193
|
+
/**
|
|
2194
|
+
* Shows the filter editor for the given grid column.
|
|
2195
|
+
*
|
|
2196
|
+
* @param col The {@link Column} that contains the filter to edit.
|
|
2197
|
+
* @param ht A {@link wijmo.chart.HitTestInfo} object containing the range of the cell that
|
|
2198
|
+
* triggered the filter display.
|
|
2199
|
+
*/
|
|
2200
|
+
editColumnFilter(col: any, ht?: HitTestInfo): void;
|
|
2201
|
+
/**
|
|
2202
|
+
* Update the filter for the given grid column. (Internal use only)
|
|
2203
|
+
*
|
|
2204
|
+
* @param col The {@link Column} that contains the filter.
|
|
2205
|
+
*/
|
|
2206
|
+
_updateColumnFilter(col: any): void;
|
|
2207
|
+
_getValueFilters(col: Column): any[];
|
|
2208
|
+
/**
|
|
2209
|
+
* Closes the filter editor.
|
|
2210
|
+
*/
|
|
2211
|
+
closeEditor(): void;
|
|
2212
|
+
/**
|
|
2213
|
+
* Gets the filter for the given column.
|
|
2214
|
+
*
|
|
2215
|
+
* @param col The {@link Column} that the filter applies to (or column name or index).
|
|
2216
|
+
* @param create Whether to create the filter if it does not exist.
|
|
2217
|
+
*/
|
|
2218
|
+
getColumnFilter(col: string | number | Column, create?: boolean): FlexSheetColumnFilter;
|
|
2219
|
+
_isActive(): boolean;
|
|
2220
|
+
_isEditorOpened(): boolean;
|
|
2221
|
+
private _checkGroupVisible;
|
|
2222
|
+
}
|
|
2223
|
+
export declare class _SmartTag extends Control {
|
|
2224
|
+
private readonly CopyCells;
|
|
2225
|
+
private readonly FillSeries;
|
|
2226
|
+
private readonly FillFormat;
|
|
2227
|
+
private readonly FillWithoutFormat;
|
|
2228
|
+
private readonly FullWidth;
|
|
2229
|
+
private readonly CompactWidth;
|
|
2230
|
+
static controlTemplate: string;
|
|
2231
|
+
private _owner;
|
|
2232
|
+
private _icon;
|
|
2233
|
+
private _btnMenu;
|
|
2234
|
+
private _menu;
|
|
2235
|
+
private _op;
|
|
2236
|
+
private _uiEventHdl;
|
|
2237
|
+
constructor(element: HTMLElement, owner: FlexSheet, fillOperation: AutoFillOperation, options?: any);
|
|
2238
|
+
dispose(): void;
|
|
2239
|
+
readonly operation: AutoFillOperation;
|
|
2240
|
+
readonly operationSelected: Event<_SmartTag, EventArgs>;
|
|
2241
|
+
onOperationSelected(e?: EventArgs): void;
|
|
2242
|
+
readonly cancelled: Event<_SmartTag, EventArgs>;
|
|
2243
|
+
onCancelled(e?: EventArgs): void;
|
|
2244
|
+
private _getPos;
|
|
2245
|
+
private _showFillOpMenu;
|
|
2246
|
+
private _onUIEvent;
|
|
2247
|
+
}
|
|
2248
|
+
export declare class _FlexSheetSelectionHandler extends _SelectionHandler {
|
|
2249
|
+
private _fs;
|
|
2250
|
+
constructor(flexSheet: FlexSheet);
|
|
2251
|
+
moveSelection(rowMove: SelMove, colMove: SelMove, extend: boolean): void;
|
|
2252
|
+
}
|
|
2253
|
+
/**
|
|
2254
|
+
* Represents a defined name item of FlexSheet.
|
|
2255
|
+
*/
|
|
2256
|
+
export declare class DefinedName {
|
|
2257
|
+
private _owner;
|
|
2258
|
+
private _name;
|
|
2259
|
+
private _value;
|
|
2260
|
+
_sheetName: string;
|
|
2261
|
+
/**
|
|
2262
|
+
* Initializes a new instance of the DefinedName class.
|
|
2263
|
+
*
|
|
2264
|
+
* @param owner The owner {@link FlexSheet} control.
|
|
2265
|
+
* @param name The name of the defined name item.
|
|
2266
|
+
* @param value The value of the defined name item.
|
|
2267
|
+
* @param sheetName The sheet name indicates the defined name item works in which sheet of FlexSheet. If omitted, the defined name item works in all sheets of FlexSheet.
|
|
2268
|
+
*/
|
|
2269
|
+
constructor(owner: FlexSheet, name: string, value: any, sheetName?: string);
|
|
2270
|
+
/**
|
|
2271
|
+
* Gets or sets the name of the defined name item.
|
|
2272
|
+
*/
|
|
2273
|
+
name: string;
|
|
2274
|
+
/**
|
|
2275
|
+
* Gets or sets the value of the defined name item.
|
|
2276
|
+
*/
|
|
2277
|
+
value: any;
|
|
2278
|
+
/**
|
|
2279
|
+
* Gets the sheetName of the defined name item.
|
|
2280
|
+
*/
|
|
2281
|
+
readonly sheetName: string;
|
|
2282
|
+
}
|
|
2283
|
+
/**
|
|
2284
|
+
* Represents a collection of {@link DefinedName} objects in a {@link FlexSheet} control.
|
|
2285
|
+
*/
|
|
2286
|
+
export declare class DefinedNameCollection extends ObservableArray<DefinedName> {
|
|
2287
|
+
private _owner;
|
|
2288
|
+
/**
|
|
2289
|
+
* Initializes a new instance of the {@link DefinedNameCollection} class.
|
|
2290
|
+
*
|
|
2291
|
+
* @param owner The {@link FlexSheet} that owns the collection.
|
|
2292
|
+
*/
|
|
2293
|
+
constructor(owner: FlexSheet);
|
|
2294
|
+
_find(name: string, sheetName: string, ignoreIndex?: number, strictMatchSheetNames?: boolean): DefinedName;
|
|
2295
|
+
_getIndexByName(name: string): number;
|
|
2296
|
+
_updateSheetName(oldSheetName: string, newSheetName: string): void;
|
|
2297
|
+
}
|
|
2298
|
+
export declare class _ContextMenu extends Control {
|
|
2299
|
+
protected _owner: FlexSheet;
|
|
2300
|
+
protected _idx: number;
|
|
2301
|
+
constructor(element: any, owner: FlexSheet);
|
|
2302
|
+
readonly visible: boolean;
|
|
2303
|
+
show(e: MouseEvent, point?: Point): void;
|
|
2304
|
+
hide(): void;
|
|
2305
|
+
moveToNext(): void;
|
|
2306
|
+
moveToPrev(): void;
|
|
2307
|
+
moveToFirst(): void;
|
|
2308
|
+
moveToLast(): void;
|
|
2309
|
+
handleContextMenu(): void;
|
|
2310
|
+
/**
|
|
2311
|
+
* Refreshes the control.
|
|
2312
|
+
*
|
|
2313
|
+
* @param fullUpdate Indicates whether to update the control layout as well as the content.
|
|
2314
|
+
*/
|
|
2315
|
+
refresh(fullUpdate?: boolean): void;
|
|
2316
|
+
protected _init(): void;
|
|
2317
|
+
protected _handleMenuItemOperation(menuItems: NodeListOf<Element>): void;
|
|
2318
|
+
protected _localize(): void;
|
|
2319
|
+
private _removeSelectedState;
|
|
2320
|
+
}
|
|
2321
|
+
export declare class _SheetContextMenu extends _ContextMenu {
|
|
2322
|
+
private _insRows;
|
|
2323
|
+
private _delRows;
|
|
2324
|
+
private _insCols;
|
|
2325
|
+
private _delCols;
|
|
2326
|
+
private _splitter;
|
|
2327
|
+
private _convertTable;
|
|
2328
|
+
private _isDisableDelRow;
|
|
2329
|
+
private _isDisableConvertTable;
|
|
2330
|
+
static controlTemplate: string;
|
|
2331
|
+
constructor(element: any, owner: FlexSheet);
|
|
2332
|
+
show(e: MouseEvent, point?: Point): void;
|
|
2333
|
+
hide(): void;
|
|
2334
|
+
protected _init(): void;
|
|
2335
|
+
protected _handleMenuItemOperation(menuItems: NodeListOf<Element>): void;
|
|
2336
|
+
protected _localize(): void;
|
|
2337
|
+
private _showTableOperation;
|
|
2338
|
+
private _addTable;
|
|
2339
|
+
}
|
|
2340
|
+
export declare class _SheetTabContextMenu extends _ContextMenu {
|
|
2341
|
+
private _insSheet;
|
|
2342
|
+
private _delSheet;
|
|
2343
|
+
private _renameSheet;
|
|
2344
|
+
static controlTemplate: string;
|
|
2345
|
+
constructor(element: any, owner: FlexSheet);
|
|
2346
|
+
protected _init(): void;
|
|
2347
|
+
protected _handleMenuItemOperation(menuItems: NodeListOf<Element>): void;
|
|
2348
|
+
protected _localize(): void;
|
|
2349
|
+
}
|
|
2350
|
+
/**
|
|
2351
|
+
* Represents a sheet within the {@link FlexSheet} control.
|
|
2352
|
+
*/
|
|
2353
|
+
export declare class Sheet {
|
|
2354
|
+
private static GenId;
|
|
2355
|
+
private _name;
|
|
2356
|
+
_owner: FlexSheet;
|
|
2357
|
+
private _visible;
|
|
2358
|
+
_unboundSortDesc: ObservableArray<_UnboundSortDescription>;
|
|
2359
|
+
private _currentStyledCells;
|
|
2360
|
+
private _currentMergedRanges;
|
|
2361
|
+
private _grid;
|
|
2362
|
+
private _selectionRanges;
|
|
2363
|
+
private _isEmptyGrid;
|
|
2364
|
+
_rowSettings: any[];
|
|
2365
|
+
_filterDefinition: string;
|
|
2366
|
+
_scrollPosition: Point;
|
|
2367
|
+
_freezeHiddenRows: boolean[];
|
|
2368
|
+
_freezeHiddenCols: boolean[];
|
|
2369
|
+
private _tables;
|
|
2370
|
+
_sortList: ColumnSortDescription[];
|
|
2371
|
+
private _filterSetting;
|
|
2372
|
+
_dataView: any[];
|
|
2373
|
+
_ownerHeaderRowRemoved: boolean;
|
|
2374
|
+
private _uuid;
|
|
2375
|
+
workingAs: string;
|
|
2376
|
+
/**
|
|
2377
|
+
* Initializes a new instance of the {@link Sheet} class.
|
|
2378
|
+
*
|
|
2379
|
+
* @param owner The owner {@link FlexSheet} control.
|
|
2380
|
+
* @param grid The associated {@link FlexGrid} control used to store the sheet data. If not specified then the
|
|
2381
|
+
* new <b>FlexGrid</b> control will be created.
|
|
2382
|
+
* @param sheetName The name of the sheet within the {@link FlexSheet} control.
|
|
2383
|
+
* @param rows The row count for the sheet.
|
|
2384
|
+
* @param cols The column count for the sheet.
|
|
2385
|
+
*/
|
|
2386
|
+
constructor(owner?: FlexSheet, grid?: FlexGrid, sheetName?: string, rows?: number, cols?: number);
|
|
2387
|
+
/**
|
|
2388
|
+
* Gets the associated {@link FlexGrid} control used to store the sheet data.
|
|
2389
|
+
*/
|
|
2390
|
+
readonly grid: FlexGrid;
|
|
2391
|
+
/**
|
|
2392
|
+
* Gets or sets the name of the sheet.
|
|
2393
|
+
*/
|
|
2394
|
+
name: string;
|
|
2395
|
+
/**
|
|
2396
|
+
* Gets or sets the sheet visibility.
|
|
2397
|
+
*/
|
|
2398
|
+
visible: boolean;
|
|
2399
|
+
/**
|
|
2400
|
+
* Gets or sets the number of rows in the sheet.
|
|
2401
|
+
*/
|
|
2402
|
+
rowCount: number;
|
|
2403
|
+
/**
|
|
2404
|
+
* Gets or sets the number of columns in the sheet.
|
|
2405
|
+
*/
|
|
2406
|
+
columnCount: number;
|
|
2407
|
+
/**
|
|
2408
|
+
* Gets the selection array.
|
|
2409
|
+
*/
|
|
2410
|
+
readonly selectionRanges: ObservableArray;
|
|
2411
|
+
/**
|
|
2412
|
+
* Gets or sets the array or {@link ICollectionView} for the {@link FlexGrid} instance of the sheet.
|
|
2413
|
+
*/
|
|
2414
|
+
itemsSource: any;
|
|
2415
|
+
/**
|
|
2416
|
+
* Gets or sets the filter setting for this sheet.
|
|
2417
|
+
*/
|
|
2418
|
+
filterSetting: IFilterSetting;
|
|
2419
|
+
/**
|
|
2420
|
+
* Gets the collection of the {@link Table} objects on this Sheet.
|
|
2421
|
+
* It allows to insert/remove {@link Table} on this Sheet via the tables collection.
|
|
2422
|
+
*/
|
|
2423
|
+
readonly tables: ObservableArray<Table>;
|
|
2424
|
+
_styledCells: _StyledCellsDict;
|
|
2425
|
+
readonly _uid: number;
|
|
2426
|
+
readonly _mergedRanges: CellRange[];
|
|
2427
|
+
/**
|
|
2428
|
+
* Occurs after the sheet name has changed.
|
|
2429
|
+
*/
|
|
2430
|
+
readonly nameChanged: Event<Sheet, PropertyChangedEventArgs>;
|
|
2431
|
+
/**
|
|
2432
|
+
* Raises the {@link nameChanged} event.
|
|
2433
|
+
*/
|
|
2434
|
+
onNameChanged(e: PropertyChangedEventArgs): void;
|
|
2435
|
+
/**
|
|
2436
|
+
* Occurs after the visible of sheet has changed.
|
|
2437
|
+
*/
|
|
2438
|
+
readonly visibleChanged: Event<Sheet, EventArgs>;
|
|
2439
|
+
/**
|
|
2440
|
+
* Raises the {@link visibleChanged} event.
|
|
2441
|
+
*/
|
|
2442
|
+
onVisibleChanged(e: EventArgs): void;
|
|
2443
|
+
/**
|
|
2444
|
+
* Dispose sheet instance.
|
|
2445
|
+
*/
|
|
2446
|
+
dispose(): void;
|
|
2447
|
+
/**
|
|
2448
|
+
* Gets the style of specified cell.
|
|
2449
|
+
*
|
|
2450
|
+
* @param rowIndex the row index of the specified cell.
|
|
2451
|
+
* @param columnIndex the column index of the specified cell.
|
|
2452
|
+
*/
|
|
2453
|
+
getCellStyle(rowIndex: number, columnIndex: number): ICellStyle;
|
|
2454
|
+
/**
|
|
2455
|
+
* Add table from an object array.
|
|
2456
|
+
*
|
|
2457
|
+
* @param row The row position of the table.
|
|
2458
|
+
* @param column The column position of the table.
|
|
2459
|
+
* @param array The object array load to the table.
|
|
2460
|
+
* @param properties It allows to retrieve only a subset of columns from the object of the array. If it is omitted, the table will load all the keys of the object of the array.
|
|
2461
|
+
* @param tableName The name of the table.
|
|
2462
|
+
* @param tableStyle The table style is applied to the table.
|
|
2463
|
+
* @param options The options {@link ITableOptions} of the table.
|
|
2464
|
+
* @param shift Indicates whether cells beneath the table should be shifted or not. If not specified cells beneath will be shifted.
|
|
2465
|
+
* @return the table if the table was added successfully, otherwise retun null.
|
|
2466
|
+
*/
|
|
2467
|
+
addTableFromArray(row: number, column: number, array: any[], properties?: string[], tableName?: string, tableStyle?: TableStyle, options?: ITableOptions, shift?: boolean): Table;
|
|
2468
|
+
/**
|
|
2469
|
+
* Finds the table via the cell location.
|
|
2470
|
+
*
|
|
2471
|
+
* @param rowIndex the row index of the specified cell.
|
|
2472
|
+
* @param columnIndex the column index of the specified cell.
|
|
2473
|
+
*/
|
|
2474
|
+
findTable(rowIndex: number, columnIndex: number): Table;
|
|
2475
|
+
_attachOwner(owner: FlexSheet): void;
|
|
2476
|
+
_setValidName(validName: string): void;
|
|
2477
|
+
_storeRowSettings(): void;
|
|
2478
|
+
_setRowSettings(): void;
|
|
2479
|
+
_addTable(range: CellRange, tableName?: string, tableStyle?: TableStyle, columns?: TableColumn[], options?: ITableOptions): Table;
|
|
2480
|
+
_addSelection(val: CellRange): void;
|
|
2481
|
+
private readonly _flex;
|
|
2482
|
+
private _compareRows;
|
|
2483
|
+
private _createGrid;
|
|
2484
|
+
private _clearGrid;
|
|
2485
|
+
private _gridItemsSourceChanged;
|
|
2486
|
+
private _addHeaderRow;
|
|
2487
|
+
private _needAddHeaderRow;
|
|
2488
|
+
private _getUniqueTableName;
|
|
2489
|
+
private _needShiftForTable;
|
|
2490
|
+
private _needAddRowCountForAddTable;
|
|
2491
|
+
_moveDownTable(table: Table): void;
|
|
2492
|
+
_moveDownCells(count: number, range: CellRange): void;
|
|
2493
|
+
_moveUpCells(count: number, range: CellRange): void;
|
|
2494
|
+
_moveDownCellsWithinTable(index: number, count: number, tableRange: CellRange): void;
|
|
2495
|
+
_moveUpCellsWithinTable(index: number, count: number, tableRange: CellRange): void;
|
|
2496
|
+
_canShiftCells(shiftRange: CellRange): boolean;
|
|
2497
|
+
_needMoveDownTable(table: Table): boolean;
|
|
2498
|
+
_needAddRowCountForInsertTableRows(count: number, range: CellRange): number;
|
|
2499
|
+
_getFilterSetting(): void;
|
|
2500
|
+
_applyFilterSetting(): void;
|
|
2501
|
+
_cloneMergedCells(): CellRange[];
|
|
2502
|
+
_getMergedRange(row: number, col: number): CellRange;
|
|
2503
|
+
private _clearFilterSetting;
|
|
2504
|
+
private _adjustStylesDict;
|
|
2505
|
+
}
|
|
2506
|
+
/**
|
|
2507
|
+
* Defines the collection of the {@link Sheet} objects.
|
|
2508
|
+
*/
|
|
2509
|
+
export declare class SheetCollection<T extends Sheet = Sheet> extends ObservableArray<T> {
|
|
2510
|
+
private _current;
|
|
2511
|
+
_exchangingPosition: boolean;
|
|
2512
|
+
/**
|
|
2513
|
+
* Occurs when the {@link SheetCollection} is cleared.
|
|
2514
|
+
*/
|
|
2515
|
+
readonly sheetCleared: Event<SheetCollection<Sheet>, EventArgs>;
|
|
2516
|
+
/**
|
|
2517
|
+
* Raises the sheetCleared event.
|
|
2518
|
+
*/
|
|
2519
|
+
onSheetCleared(): void;
|
|
2520
|
+
/**
|
|
2521
|
+
* Gets or sets the index of the currently selected sheet.
|
|
2522
|
+
*/
|
|
2523
|
+
selectedIndex: number;
|
|
2524
|
+
/**
|
|
2525
|
+
* Occurs when the <b>selectedIndex</b> property changes.
|
|
2526
|
+
*/
|
|
2527
|
+
readonly selectedSheetChanged: Event<SheetCollection<Sheet>, EventArgs>;
|
|
2528
|
+
/**
|
|
2529
|
+
* Raises the <b>currentChanged</b> event.
|
|
2530
|
+
*
|
|
2531
|
+
* @param e {@link PropertyChangedEventArgs} that contains the event data.
|
|
2532
|
+
*/
|
|
2533
|
+
onSelectedSheetChanged(e: PropertyChangedEventArgs): void;
|
|
2534
|
+
/**
|
|
2535
|
+
* Adds one or more items to the end of the array.
|
|
2536
|
+
* Overrides the push method of its base class {@link ObservableArray}.
|
|
2537
|
+
*
|
|
2538
|
+
* @param ...item One or more items to add to the array.
|
|
2539
|
+
* @return The new length of the array.
|
|
2540
|
+
*/
|
|
2541
|
+
push(...item: T[]): number;
|
|
2542
|
+
/**
|
|
2543
|
+
* Removes and/or adds items to the array.
|
|
2544
|
+
* Overrides the splice method of its base class {@link ObservableArray}.
|
|
2545
|
+
*
|
|
2546
|
+
* @param index Position where items will be added or removed.
|
|
2547
|
+
* @param count Number of items to remove from the array.
|
|
2548
|
+
* @param ...item Items to add to the array.
|
|
2549
|
+
* @return An array containing the removed elements.
|
|
2550
|
+
*/
|
|
2551
|
+
splice(index: number, count: number, ...item: T[]): any[];
|
|
2552
|
+
onCollectionChanged(e?: NotifyCollectionChangedEventArgs): void;
|
|
2553
|
+
/**
|
|
2554
|
+
* Occurs after the name of the sheet in the collection has changed.
|
|
2555
|
+
*/
|
|
2556
|
+
readonly sheetNameChanged: Event<SheetCollection<Sheet>, NotifyCollectionChangedEventArgs<any>>;
|
|
2557
|
+
/**
|
|
2558
|
+
* Raises the <b>sheetNameChanged</b> event.
|
|
2559
|
+
*/
|
|
2560
|
+
onSheetNameChanged(e: NotifyCollectionChangedEventArgs): void;
|
|
2561
|
+
/**
|
|
2562
|
+
* Occurs after the visible of the sheet in the collection has changed.
|
|
2563
|
+
*/
|
|
2564
|
+
readonly sheetVisibleChanged: Event<SheetCollection<Sheet>, NotifyCollectionChangedEventArgs<any>>;
|
|
2565
|
+
/**
|
|
2566
|
+
* Raises the <b>sheetVisibleChanged</b> event.
|
|
2567
|
+
*/
|
|
2568
|
+
onSheetVisibleChanged(e: NotifyCollectionChangedEventArgs): void;
|
|
2569
|
+
/**
|
|
2570
|
+
* Selects the first sheet in the {@link FlexSheet} control.
|
|
2571
|
+
*/
|
|
2572
|
+
selectFirst(): boolean;
|
|
2573
|
+
/**
|
|
2574
|
+
* Selects the last sheet in the owner {@link FlexSheet} control.
|
|
2575
|
+
*/
|
|
2576
|
+
selectLast(): boolean;
|
|
2577
|
+
/**
|
|
2578
|
+
* Selects the previous sheet in the owner {@link FlexSheet} control.
|
|
2579
|
+
*/
|
|
2580
|
+
selectPrevious(): boolean;
|
|
2581
|
+
/**
|
|
2582
|
+
* Select the next sheet in the owner {@link FlexSheet} control.
|
|
2583
|
+
*/
|
|
2584
|
+
selectNext(): boolean;
|
|
2585
|
+
/**
|
|
2586
|
+
* Hides the sheet at the specified position.
|
|
2587
|
+
*
|
|
2588
|
+
* @param pos The position of the sheet to hide.
|
|
2589
|
+
*/
|
|
2590
|
+
hide(pos: number): boolean;
|
|
2591
|
+
/**
|
|
2592
|
+
* Unhide and selects the {@link Sheet} at the specified position.
|
|
2593
|
+
*
|
|
2594
|
+
* @param pos The position of the sheet to show.
|
|
2595
|
+
*/
|
|
2596
|
+
show(pos: number): boolean;
|
|
2597
|
+
/**
|
|
2598
|
+
* Clear the SheetCollection.
|
|
2599
|
+
*/
|
|
2600
|
+
clear(): void;
|
|
2601
|
+
/**
|
|
2602
|
+
* Checks whether the sheet name is valid.
|
|
2603
|
+
*
|
|
2604
|
+
* @param sheet The {@link Sheet} for which the name needs to check.
|
|
2605
|
+
*/
|
|
2606
|
+
isValidSheetName(sheet: T): boolean;
|
|
2607
|
+
/**
|
|
2608
|
+
* Gets the valid name for the sheet.
|
|
2609
|
+
*
|
|
2610
|
+
* @param currentSheet The {@link Sheet} need get the valid name.
|
|
2611
|
+
*/
|
|
2612
|
+
getValidSheetName(currentSheet: T): string;
|
|
2613
|
+
getUniqueNameOnInit(): string;
|
|
2614
|
+
_setCurrentIdx(value: number): void;
|
|
2615
|
+
private _moveCurrentTo;
|
|
2616
|
+
_getSheetIndexFrom(sheetName: string): number;
|
|
2617
|
+
private _postprocessSheet;
|
|
2618
|
+
private _shNameChanged;
|
|
2619
|
+
private _shVisibleChanged;
|
|
2620
|
+
private _getUniqueName;
|
|
2621
|
+
}
|
|
2622
|
+
export declare class _SheetTabs extends Control {
|
|
2623
|
+
private _sheets;
|
|
2624
|
+
private _tabContainer;
|
|
2625
|
+
private _sheetPage;
|
|
2626
|
+
private _newSheet;
|
|
2627
|
+
private _owner;
|
|
2628
|
+
private _rtl;
|
|
2629
|
+
private _sheetTabClicked;
|
|
2630
|
+
private _editingSheetTab;
|
|
2631
|
+
private _measureEle;
|
|
2632
|
+
private _contextMenuHost;
|
|
2633
|
+
private _dragSrcIdx;
|
|
2634
|
+
_contextMenu: _SheetTabContextMenu;
|
|
2635
|
+
static controlTemplate: string;
|
|
2636
|
+
constructor(element: any, owner: FlexSheet, options?: any);
|
|
2637
|
+
refresh(fullUpdate: any): void;
|
|
2638
|
+
private _sourceChanged;
|
|
2639
|
+
private _selectedSheetChanged;
|
|
2640
|
+
private _initControl;
|
|
2641
|
+
private _initSheetTab;
|
|
2642
|
+
private _initSheetPage;
|
|
2643
|
+
private _getSheetTabs;
|
|
2644
|
+
private _getSheetElement;
|
|
2645
|
+
private _updateTabActive;
|
|
2646
|
+
private _updateTabShown;
|
|
2647
|
+
_adjustSize(): void;
|
|
2648
|
+
private _getItemIndex;
|
|
2649
|
+
private _updateSheetName;
|
|
2650
|
+
private _scrollSheetTabContainer;
|
|
2651
|
+
private _adjustSheetsPosition;
|
|
2652
|
+
private _scrollToActiveSheet;
|
|
2653
|
+
private _adjustNavigationButtons;
|
|
2654
|
+
_startEditingSheetName(index: number): void;
|
|
2655
|
+
private _commitSheetName;
|
|
2656
|
+
private _measureInputWidth;
|
|
2657
|
+
}
|
|
2658
|
+
export declare class _UnboundSortDescription {
|
|
2659
|
+
private _column;
|
|
2660
|
+
private _ascending;
|
|
2661
|
+
constructor(column: Column, ascending: boolean);
|
|
2662
|
+
readonly column: Column;
|
|
2663
|
+
readonly ascending: boolean;
|
|
2664
|
+
}
|
|
2665
|
+
/**
|
|
2666
|
+
* Defines the filter setting of sheet.
|
|
2667
|
+
*/
|
|
2668
|
+
export interface IFilterSetting {
|
|
2669
|
+
/**
|
|
2670
|
+
* An array containing the names or bindings of the columns that have filters.
|
|
2671
|
+
*/
|
|
2672
|
+
filterColumns?: string[];
|
|
2673
|
+
/**
|
|
2674
|
+
* The filter setting for the columns of the sheet.
|
|
2675
|
+
*/
|
|
2676
|
+
columnFilterSettings?: IColumnFilterSetting[];
|
|
2677
|
+
}
|
|
2678
|
+
/**
|
|
2679
|
+
* The setting for column filter.
|
|
2680
|
+
*/
|
|
2681
|
+
export interface IColumnFilterSetting {
|
|
2682
|
+
/**
|
|
2683
|
+
* Column being filtered. It could be the {@link Column} instance, name of the {@link Column} or index in the column collection.
|
|
2684
|
+
*/
|
|
2685
|
+
column: any;
|
|
2686
|
+
/**
|
|
2687
|
+
* The types of filtering provided by this filter.
|
|
2688
|
+
*/
|
|
2689
|
+
filterType?: FilterType;
|
|
2690
|
+
/**
|
|
2691
|
+
* The {@link DataMap} used to convert raw values into display values shown when editing this filter.
|
|
2692
|
+
*/
|
|
2693
|
+
dataMap?: DataMap;
|
|
2694
|
+
/**
|
|
2695
|
+
* The value filter setting in this column filter setting.
|
|
2696
|
+
*/
|
|
2697
|
+
valueFilterSetting?: IValueFiterSetting;
|
|
2698
|
+
/**
|
|
2699
|
+
* The condition filter setting in this column filter setting.
|
|
2700
|
+
*/
|
|
2701
|
+
conditionFilterSetting?: IConditionFilterSetting;
|
|
2702
|
+
}
|
|
2703
|
+
/**
|
|
2704
|
+
* The value filter setting.
|
|
2705
|
+
*/
|
|
2706
|
+
export interface IValueFiterSetting {
|
|
2707
|
+
/**
|
|
2708
|
+
* The maximum number of elements on the list of display values.
|
|
2709
|
+
*/
|
|
2710
|
+
maxValues?: number;
|
|
2711
|
+
/**
|
|
2712
|
+
* An array containing the unique values to be displayed on the list.
|
|
2713
|
+
*/
|
|
2714
|
+
uniqueValues?: any[];
|
|
2715
|
+
/**
|
|
2716
|
+
* A value that determines whether the values should be sorted
|
|
2717
|
+
*/
|
|
2718
|
+
sortValues?: boolean;
|
|
2719
|
+
/**
|
|
2720
|
+
* The {@link DataMap} used to convert raw values into display values shown when editing this filter.
|
|
2721
|
+
*/
|
|
2722
|
+
dataMap: DataMap;
|
|
2723
|
+
/**
|
|
2724
|
+
* Gets or sets a value that determines whether the filter should
|
|
2725
|
+
* include only values selected by the {@link filterText} property.
|
|
2726
|
+
*
|
|
2727
|
+
* This property is set to true by default, which matches Excel's
|
|
2728
|
+
* behavior.
|
|
2729
|
+
*
|
|
2730
|
+
* Set it to false to disable this behavior, so searching only affects
|
|
2731
|
+
* which items are displayed on the list and not which items are
|
|
2732
|
+
* included in the filter.
|
|
2733
|
+
*/
|
|
2734
|
+
exclusiveValueSearch: boolean;
|
|
2735
|
+
}
|
|
2736
|
+
/**
|
|
2737
|
+
* The condition filter setting.
|
|
2738
|
+
*/
|
|
2739
|
+
export interface IConditionFilterSetting {
|
|
2740
|
+
/**
|
|
2741
|
+
* The {@link DataMap} used to convert raw values into display values shown when editing this filter.
|
|
2742
|
+
*/
|
|
2743
|
+
dataMap?: DataMap;
|
|
2744
|
+
}
|
|
2745
|
+
export declare type _StyledCellsDict = {
|
|
2746
|
+
[index: number]: ICellStyle;
|
|
2747
|
+
rowCount?: number;
|
|
2748
|
+
columnCount?: number;
|
|
2749
|
+
};
|
|
2750
|
+
export declare class _TabHolder extends Control {
|
|
2751
|
+
private _owner;
|
|
2752
|
+
private _sheetControl;
|
|
2753
|
+
private _divSheet;
|
|
2754
|
+
private _divSplitter;
|
|
2755
|
+
private _divRight;
|
|
2756
|
+
private _funSplitterMousedown;
|
|
2757
|
+
private _splitterMousedownHdl;
|
|
2758
|
+
private _startPos;
|
|
2759
|
+
static controlTemplate: string;
|
|
2760
|
+
constructor(element: any, owner: FlexSheet);
|
|
2761
|
+
readonly sheetControl: _SheetTabs;
|
|
2762
|
+
visible: boolean;
|
|
2763
|
+
getSheetBlanketSize(): number;
|
|
2764
|
+
adjustSize(): void;
|
|
2765
|
+
private _init;
|
|
2766
|
+
private _splitterMousedownHandler;
|
|
2767
|
+
private _splitterMousemoveHandler;
|
|
2768
|
+
private _splitterMouseupHandler;
|
|
2769
|
+
private _adjustDis;
|
|
2770
|
+
}
|
|
2771
|
+
interface _IRounder {
|
|
2772
|
+
round(val: number): number;
|
|
2773
|
+
}
|
|
2774
|
+
export declare class _Expression {
|
|
2775
|
+
_definedName: string;
|
|
2776
|
+
_inGroup: boolean;
|
|
2777
|
+
private _token;
|
|
2778
|
+
private _evaluatedValue;
|
|
2779
|
+
private _evaluated;
|
|
2780
|
+
protected _rounder: _IRounder;
|
|
2781
|
+
constructor(rounder: _IRounder, arg?: any);
|
|
2782
|
+
readonly token: _Token;
|
|
2783
|
+
readonly evaluated: boolean;
|
|
2784
|
+
evaluatedValue: any;
|
|
2785
|
+
evaluate(rowIndex: number, columnIndex: number, sheet?: Sheet, strictStringCmp?: boolean, criteriaMode?: boolean, throwOnError?: boolean): any;
|
|
2786
|
+
static toString(x: _Expression, rowIndex: number, columnIndex: number, sheet?: Sheet): string;
|
|
2787
|
+
static toNumber(x: _Expression, rowIndex: number, columnIndex: number, sheet?: Sheet): number;
|
|
2788
|
+
static toBoolean(x: _Expression, rowIndex: number, columnIndex: number, sheet?: Sheet): any;
|
|
2789
|
+
static toDate(x: _Expression, rowIndex: number, columnIndex: number, sheet?: Sheet): any;
|
|
2790
|
+
static isDateValue(val: any): boolean;
|
|
2791
|
+
_refersTo(rng: CellRange): boolean;
|
|
2792
|
+
_updateCellRangeExp(sheetIndex: number, index: number, count: number, isAdding: boolean, isRow: boolean, affectRange?: CellRange): boolean;
|
|
2793
|
+
_moveCellRangeExp(sheetIndex: number, srcRange: CellRange, dstRange: CellRange, isChangePos?: boolean, isCopying?: boolean): boolean;
|
|
2794
|
+
_updateCellRangeExpForReorderingRows(rowDiff: number): boolean;
|
|
2795
|
+
_updateCellBoundary(row: number, col: number): boolean;
|
|
2796
|
+
_getStringExpression(): string;
|
|
2797
|
+
}
|
|
2798
|
+
export declare class _UnaryExpression extends _Expression {
|
|
2799
|
+
private _expr;
|
|
2800
|
+
constructor(rounder: _IRounder, arg: any, expr: _Expression);
|
|
2801
|
+
evaluate(rowIndex: number, columnIndex: number, sheet?: Sheet, strictStringCmp?: boolean, criteriaMode?: boolean, throwOnError?: boolean): any;
|
|
2802
|
+
_refersTo(rng: CellRange): boolean;
|
|
2803
|
+
_updateCellRangeExp(sheetIndex: number, index: number, count: number, isAdding: boolean, isRow: boolean, affectRange?: CellRange): boolean;
|
|
2804
|
+
_moveCellRangeExp(sheetIndex: number, srcRange: CellRange, dstRange: CellRange, isChangePos?: boolean, isCopying?: boolean): boolean;
|
|
2805
|
+
_updateCellRangeExpForReorderingRows(rowDiff: number): boolean;
|
|
2806
|
+
_getStringExpression(): string;
|
|
2807
|
+
}
|
|
2808
|
+
export declare class _BinaryExpression extends _Expression {
|
|
2809
|
+
private _leftExpr;
|
|
2810
|
+
private _rightExpr;
|
|
2811
|
+
constructor(rounder: _IRounder, arg: any, leftExpr: _Expression, rightExpr: _Expression);
|
|
2812
|
+
evaluate(rowIndex: number, columnIndex: number, sheet?: Sheet, strictStringCmp?: boolean, criteriaMode?: boolean, throwOnError?: boolean): any;
|
|
2813
|
+
_refersTo(rng: CellRange): boolean;
|
|
2814
|
+
_updateCellRangeExp(sheetIndex: number, index: number, count: number, isAdding: boolean, isRow: boolean, affectRange?: CellRange): boolean;
|
|
2815
|
+
_moveCellRangeExp(sheetIndex: number, srcRange: CellRange, dstRange: CellRange, isChangePos?: boolean, isCopying?: boolean): boolean;
|
|
2816
|
+
_updateCellRangeExpForReorderingRows(rowDiff: number): boolean;
|
|
2817
|
+
_getStringExpression(): string;
|
|
2818
|
+
}
|
|
2819
|
+
export declare class _CellRangeExpression extends _Expression {
|
|
2820
|
+
private _cells;
|
|
2821
|
+
private _sheetRef;
|
|
2822
|
+
private _flex;
|
|
2823
|
+
private _isCellRange;
|
|
2824
|
+
private _absRow;
|
|
2825
|
+
private _absCol;
|
|
2826
|
+
private _absRow2;
|
|
2827
|
+
private _absCol2;
|
|
2828
|
+
private _evalutingRange;
|
|
2829
|
+
private _isWholeRow;
|
|
2830
|
+
_isEmpty: boolean;
|
|
2831
|
+
_tableName: string;
|
|
2832
|
+
_tableParams: string[];
|
|
2833
|
+
_defTableParameterProvided: boolean;
|
|
2834
|
+
constructor(rounder: _IRounder, cells: CellRange, sheetRef: string, flex: FlexSheet, isCellRange?: boolean, absRow?: boolean, absCol?: boolean, absRow2?: boolean, absCol2?: boolean, isWholeRow?: boolean);
|
|
2835
|
+
evaluate(rowIndex: number, columnIndex: number, sheet?: Sheet, strictStringCmp?: boolean, criteriaMode?: boolean, throwOnError?: boolean): any;
|
|
2836
|
+
getValues(getHiddenValues?: boolean, columnIndex?: number, sheet?: Sheet, throwOnError?: boolean): any[];
|
|
2837
|
+
getValuesWithTwoDimensions(isGetHiddenValue?: boolean, sheet?: Sheet): any[];
|
|
2838
|
+
readonly cells: CellRange;
|
|
2839
|
+
readonly sheetRef: string;
|
|
2840
|
+
private _getCellValue;
|
|
2841
|
+
_getSheet(): Sheet;
|
|
2842
|
+
_refersTo(rng: CellRange): boolean;
|
|
2843
|
+
_updateCellRangeExp(sheetIndex: number, index: number, count: number, isAdding: boolean, isRow: boolean, affectRange?: CellRange): boolean;
|
|
2844
|
+
_moveCellRangeExp(sheetIndex: number, srcRange: CellRange, dstRange: CellRange, isChangePos?: boolean, isCopying?: boolean): boolean;
|
|
2845
|
+
_updateCellRangeExpForReorderingRows(rowDiff: number): boolean;
|
|
2846
|
+
_updateCellBoundary(row: number, col: number): boolean;
|
|
2847
|
+
_getStringExpression(): string;
|
|
2848
|
+
private _quoteName;
|
|
2849
|
+
private _getTableParamsStringExpression;
|
|
2850
|
+
private _extendRange;
|
|
2851
|
+
}
|
|
2852
|
+
export declare class _FunctionExpression extends _Expression {
|
|
2853
|
+
private _funcId;
|
|
2854
|
+
private _funcDefinition;
|
|
2855
|
+
private _params;
|
|
2856
|
+
private _needCacheEvaluatedVal;
|
|
2857
|
+
constructor(rounder: _IRounder, funcId: string, func: _FunctionDefinition, params: Array<_Expression>, needCacheEvaluatedVal?: boolean);
|
|
2858
|
+
evaluate(rowIndex: number, columnIndex: number, sheet?: Sheet): any;
|
|
2859
|
+
_refersTo(rng: CellRange): boolean;
|
|
2860
|
+
_updateCellRangeExp(sheetIndex: number, index: number, count: number, isAdding: boolean, isRow: boolean, affectRange?: CellRange): boolean;
|
|
2861
|
+
_moveCellRangeExp(sheetIndex: number, srcRange: CellRange, dstRange: CellRange, isChangePos?: boolean, isCopying?: boolean): boolean;
|
|
2862
|
+
_updateCellRangeExpForReorderingRows(rowDiff: number): boolean;
|
|
2863
|
+
_updateCellBoundary(row: number, col: number): boolean;
|
|
2864
|
+
_getStringExpression(): string;
|
|
2865
|
+
private _parseParamsExpToString;
|
|
2866
|
+
}
|
|
2867
|
+
export declare class _CalcEngine {
|
|
2868
|
+
private static PowOf10;
|
|
2869
|
+
private _owner;
|
|
2870
|
+
private _expression;
|
|
2871
|
+
private _expressLength;
|
|
2872
|
+
private _pointer;
|
|
2873
|
+
private _expressionCache;
|
|
2874
|
+
private _tokenTable;
|
|
2875
|
+
private _token;
|
|
2876
|
+
private _idChars;
|
|
2877
|
+
private _functionTable;
|
|
2878
|
+
private _cacheSize;
|
|
2879
|
+
private _tableRefStart;
|
|
2880
|
+
private _rowIndex;
|
|
2881
|
+
private _columnIndex;
|
|
2882
|
+
private _containsCellRef;
|
|
2883
|
+
private _sheet;
|
|
2884
|
+
constructor(owner: FlexSheet);
|
|
2885
|
+
readonly unknownFunction: Event<_CalcEngine, UnknownFunctionEventArgs>;
|
|
2886
|
+
onUnknownFunction(funcName: string, params: Array<_Expression>): _Expression;
|
|
2887
|
+
evaluate(expression: string, format?: string, sheet?: Sheet, rowIndex?: number, columnIndex?: number, strictStringCmp?: boolean, criteriaMode?: boolean): any;
|
|
2888
|
+
addCustomFunction(name: string, func: Function, minParamsCount?: number, maxParamsCount?: number): void;
|
|
2889
|
+
addFunction(name: string, func: Function, minParamsCount?: number, maxParamsCount?: number): void;
|
|
2890
|
+
clearExpressionCache(): void;
|
|
2891
|
+
round(v: number): number;
|
|
2892
|
+
parse(expression: string | number): _Expression;
|
|
2893
|
+
private _buildSymbolTable;
|
|
2894
|
+
private _registerAggregateFunction;
|
|
2895
|
+
private _registerMathFunction;
|
|
2896
|
+
private _registerLogicalFunction;
|
|
2897
|
+
private _registerTextFunction;
|
|
2898
|
+
private _registerDateFunction;
|
|
2899
|
+
private _registLookUpReferenceFunction;
|
|
2900
|
+
private _registFinacialFunction;
|
|
2901
|
+
private _registAddressRelatedFunction;
|
|
2902
|
+
private _registerIsFunctions;
|
|
2903
|
+
private _addToken;
|
|
2904
|
+
private _parseExpression;
|
|
2905
|
+
private _parseCompareOrConcat;
|
|
2906
|
+
private _parseAddSub;
|
|
2907
|
+
private _parseMulDiv;
|
|
2908
|
+
private _parsePower;
|
|
2909
|
+
private _parseUnary;
|
|
2910
|
+
private _parseAtom;
|
|
2911
|
+
private _getToken;
|
|
2912
|
+
private _getTableToken;
|
|
2913
|
+
private _parseDigit;
|
|
2914
|
+
private _parseString;
|
|
2915
|
+
private _parseDate;
|
|
2916
|
+
private _parseError;
|
|
2917
|
+
private _parseSheetRef;
|
|
2918
|
+
private _getCellRange;
|
|
2919
|
+
private _parseCellRange;
|
|
2920
|
+
private _parseCell;
|
|
2921
|
+
private _getParameters;
|
|
2922
|
+
private _getTableReference;
|
|
2923
|
+
private _getTableParameter;
|
|
2924
|
+
private _getTableRange;
|
|
2925
|
+
private _getAggregate;
|
|
2926
|
+
private _getAggregateResult;
|
|
2927
|
+
private _getFlexSheetAggregateResult;
|
|
2928
|
+
private _getItemList;
|
|
2929
|
+
private _countBlankCells;
|
|
2930
|
+
private _countNumberCells;
|
|
2931
|
+
private _getRankOfCellRange;
|
|
2932
|
+
private _handleCountIfs;
|
|
2933
|
+
private _countCellsByCriteria;
|
|
2934
|
+
private _handleSumIfs;
|
|
2935
|
+
private _sumCellsByCriteria;
|
|
2936
|
+
private _getProductOfNumbers;
|
|
2937
|
+
private _handleSubtotal;
|
|
2938
|
+
private _handleDCount;
|
|
2939
|
+
private _DCountWithCriteria;
|
|
2940
|
+
private _getColumnIndexByField;
|
|
2941
|
+
private _getSumProduct;
|
|
2942
|
+
private _getItemListForSumProduct;
|
|
2943
|
+
private _parseRightExpr;
|
|
2944
|
+
private _combineExpr;
|
|
2945
|
+
private _parseRegCriteria;
|
|
2946
|
+
private _calculateRate;
|
|
2947
|
+
private _handleHLookup;
|
|
2948
|
+
private _handleVLookup;
|
|
2949
|
+
private _handleLookup;
|
|
2950
|
+
private _exactMatch;
|
|
2951
|
+
private _approximateMatch;
|
|
2952
|
+
private _parseToScientificValue;
|
|
2953
|
+
private _checkCache;
|
|
2954
|
+
private _ensureNonFunctionExpression;
|
|
2955
|
+
private _numAlpha;
|
|
2956
|
+
}
|
|
2957
|
+
export declare class _Token {
|
|
2958
|
+
private _tokenType;
|
|
2959
|
+
private _tokenID;
|
|
2960
|
+
private _value;
|
|
2961
|
+
constructor(val: any, tkID: _TokenID, tkType: _TokenType);
|
|
2962
|
+
readonly value: any;
|
|
2963
|
+
readonly tokenID: _TokenID;
|
|
2964
|
+
readonly tokenType: _TokenType;
|
|
2965
|
+
}
|
|
2966
|
+
export declare class _FunctionDefinition {
|
|
2967
|
+
private _paramMax;
|
|
2968
|
+
private _paramMin;
|
|
2969
|
+
private _func;
|
|
2970
|
+
constructor(func: Function, paramMax?: number, paramMin?: number);
|
|
2971
|
+
readonly paramMax: number;
|
|
2972
|
+
readonly paramMin: number;
|
|
2973
|
+
readonly func: Function;
|
|
2974
|
+
}
|
|
2975
|
+
export declare enum _TokenType {
|
|
2976
|
+
COMPARE = 0,
|
|
2977
|
+
ADDSUB = 1,
|
|
2978
|
+
MULDIV = 2,
|
|
2979
|
+
POWER = 3,
|
|
2980
|
+
CONCAT = 4,
|
|
2981
|
+
GROUP = 5,
|
|
2982
|
+
LITERAL = 6,
|
|
2983
|
+
IDENTIFIER = 7,
|
|
2984
|
+
ERROR = 8,
|
|
2985
|
+
SQUAREBRACKETS = 9
|
|
2986
|
+
}
|
|
2987
|
+
export declare enum _TokenID {
|
|
2988
|
+
GT = 0,
|
|
2989
|
+
LT = 1,
|
|
2990
|
+
GE = 2,
|
|
2991
|
+
LE = 3,
|
|
2992
|
+
EQ = 4,
|
|
2993
|
+
NE = 5,
|
|
2994
|
+
ADD = 6,
|
|
2995
|
+
SUB = 7,
|
|
2996
|
+
MUL = 8,
|
|
2997
|
+
DIV = 9,
|
|
2998
|
+
DIVINT = 10,
|
|
2999
|
+
MOD = 11,
|
|
3000
|
+
POWER = 12,
|
|
3001
|
+
CONCAT = 13,
|
|
3002
|
+
OPEN = 14,
|
|
3003
|
+
CLOSE = 15,
|
|
3004
|
+
END = 16,
|
|
3005
|
+
COMMA = 17,
|
|
3006
|
+
PERIOD = 18,
|
|
3007
|
+
ATOM = 19,
|
|
3008
|
+
PERCENT = 20
|
|
3009
|
+
}
|
|
3010
|
+
export declare const _OpMap: {
|
|
3011
|
+
[_TokenID.GT]: string;
|
|
3012
|
+
[_TokenID.LT]: string;
|
|
3013
|
+
[_TokenID.GE]: string;
|
|
3014
|
+
[_TokenID.LE]: string;
|
|
3015
|
+
[_TokenID.EQ]: string;
|
|
3016
|
+
[_TokenID.NE]: string;
|
|
3017
|
+
[_TokenID.ADD]: string;
|
|
3018
|
+
[_TokenID.SUB]: string;
|
|
3019
|
+
[_TokenID.MUL]: string;
|
|
3020
|
+
[_TokenID.DIV]: string;
|
|
3021
|
+
[_TokenID.PERCENT]: string;
|
|
3022
|
+
[_TokenID.DIVINT]: string;
|
|
3023
|
+
[_TokenID.POWER]: string;
|
|
3024
|
+
[_TokenID.CONCAT]: string;
|
|
3025
|
+
};
|
|
3026
|
+
export declare class _FlexSheetCellFactory extends CellFactory {
|
|
3027
|
+
updateCell(panel: GridPanel, r: number, c: number, cell: HTMLElement, rng?: CellRange): void;
|
|
3028
|
+
private _getFirstVisibleCell;
|
|
3029
|
+
private _isURL;
|
|
3030
|
+
private _getCellBorders;
|
|
3031
|
+
}
|
|
3032
|
+
export {};
|