@progress/kendo-react-spreadsheet 13.3.0 → 13.4.0-develop.2
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/FormulaInput.d.ts +12 -0
- package/List.d.ts +12 -0
- package/NameBox.d.ts +12 -0
- package/SheetsBar.d.ts +12 -0
- package/SheetsBar.js +1 -1
- package/SheetsBar.mjs +13 -13
- package/Spreadsheet.d.ts +57 -0
- package/SpreadsheetProps.d.ts +240 -0
- package/dist/cdn/js/kendo-react-spreadsheet.js +1 -1
- package/index.d.mts +4 -779
- package/index.d.ts +4 -779
- package/messages.d.ts +117 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +12 -12
- package/tools/adjustDecimals.d.ts +27 -0
- package/tools/adjustDecimals.mjs +1 -1
- package/tools/align.d.ts +51 -0
- package/tools/align.mjs +6 -6
- package/tools/backgroundColor.d.ts +17 -0
- package/tools/bold.d.ts +17 -0
- package/tools/cleanFormat.d.ts +18 -0
- package/tools/defaultTools.d.ts +12 -0
- package/tools/export.d.ts +18 -0
- package/tools/fontFamily.d.ts +18 -0
- package/tools/fontFamily.mjs +3 -3
- package/tools/fontSize.d.ts +46 -0
- package/tools/fontSize.mjs +3 -3
- package/tools/format.d.ts +18 -0
- package/tools/gridLines.d.ts +22 -0
- package/tools/index.d.ts +27 -0
- package/tools/italic.d.ts +17 -0
- package/tools/open.d.ts +18 -0
- package/tools/redo.d.ts +17 -0
- package/tools/tableTools.d.ts +71 -0
- package/tools/textColor.d.ts +17 -0
- package/tools/textWrap.d.ts +22 -0
- package/tools/underline.d.ts +17 -0
- package/tools/undo.d.ts +17 -0
- package/tools/utils.d.ts +98 -0
package/index.d.mts
CHANGED
|
@@ -5,782 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import { CellRef } from '@progress/kendo-spreadsheet-common';
|
|
13
|
-
import { Context } from '@progress/kendo-spreadsheet-common';
|
|
14
|
-
import { dateToSerial } from '@progress/kendo-spreadsheet-common';
|
|
15
|
-
import { defineAlias } from '@progress/kendo-spreadsheet-common';
|
|
16
|
-
import { defineFunction } from '@progress/kendo-spreadsheet-common';
|
|
17
|
-
import { DocumentDescriptor } from '@progress/kendo-spreadsheet-common';
|
|
18
|
-
import { ExcelExportSettings } from '@progress/kendo-spreadsheet-common';
|
|
19
|
-
import { Matrix } from '@progress/kendo-spreadsheet-common';
|
|
20
|
-
import { NameRef } from '@progress/kendo-spreadsheet-common';
|
|
21
|
-
import { NULLREF } from '@progress/kendo-spreadsheet-common';
|
|
22
|
-
import { packDate } from '@progress/kendo-spreadsheet-common';
|
|
23
|
-
import { packTime } from '@progress/kendo-spreadsheet-common';
|
|
24
|
-
import { Range as Range_2 } from '@progress/kendo-spreadsheet-common';
|
|
25
|
-
import { RangeRef } from '@progress/kendo-spreadsheet-common';
|
|
26
|
-
import * as React_2 from 'react';
|
|
27
|
-
import { Ref } from '@progress/kendo-spreadsheet-common';
|
|
28
|
-
import { SelectedHeaders } from '@progress/kendo-spreadsheet-common';
|
|
29
|
-
import { serialToDate } from '@progress/kendo-spreadsheet-common';
|
|
30
|
-
import { Sheet } from '@progress/kendo-spreadsheet-common';
|
|
31
|
-
import { SheetColumn } from '@progress/kendo-spreadsheet-common';
|
|
32
|
-
import { SheetDescriptor } from '@progress/kendo-spreadsheet-common';
|
|
33
|
-
import { SheetRow } from '@progress/kendo-spreadsheet-common';
|
|
34
|
-
import { SpreadsheetOptions } from '@progress/kendo-spreadsheet-common';
|
|
35
|
-
import { SpreadsheetWidget } from '@progress/kendo-spreadsheet-common';
|
|
36
|
-
import { UnionRef } from '@progress/kendo-spreadsheet-common';
|
|
37
|
-
import { unpackDate } from '@progress/kendo-spreadsheet-common';
|
|
38
|
-
import { unpackTime } from '@progress/kendo-spreadsheet-common';
|
|
39
|
-
import { View } from '@progress/kendo-spreadsheet-common';
|
|
40
|
-
import { Workbook } from '@progress/kendo-spreadsheet-common';
|
|
41
|
-
import { Workbook as Workbook_2 } from '@progress/kendo-ooxml';
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* The AddColumnLeft tool component.
|
|
45
|
-
*/
|
|
46
|
-
export declare const AddColumnLeft: React_2.FunctionComponent<AddColumnLeftProps>;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* The props of the AddColumnLeft tool component.
|
|
50
|
-
*/
|
|
51
|
-
export declare interface AddColumnLeftProps extends TableToolProps {
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* The AddColumnRight tool component.
|
|
56
|
-
*/
|
|
57
|
-
export declare const AddColumnRight: React_2.FunctionComponent<AddColumnRightProps>;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* The props of the AddColumnRight tool component.
|
|
61
|
-
*/
|
|
62
|
-
export declare interface AddColumnRightProps extends TableToolProps {
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* The AddRowAbove tool component.
|
|
67
|
-
*/
|
|
68
|
-
export declare const AddRowAbove: React_2.FunctionComponent<AddRowAboveProps>;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* The props of the AddRowAbove tool component.
|
|
72
|
-
*/
|
|
73
|
-
export declare interface AddRowAboveProps extends TableToolProps {
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* The AddRowBelow tool component.
|
|
78
|
-
*/
|
|
79
|
-
export declare const AddRowBelow: React_2.FunctionComponent<AddRowBelowProps>;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* The props of the AddRowBelow tool component.
|
|
83
|
-
*/
|
|
84
|
-
export declare interface AddRowBelowProps extends TableToolProps {
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* The AlignHorizontally tool component.
|
|
89
|
-
*/
|
|
90
|
-
export declare const AlignHorizontally: React_2.FunctionComponent<AlignHorizontallyProps>;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* The props of the AlignHorizontally tool component.
|
|
94
|
-
*/
|
|
95
|
-
export declare interface AlignHorizontallyProps extends SpreadsheetToolProps {
|
|
96
|
-
/**
|
|
97
|
-
* The value of the tool.
|
|
98
|
-
*/
|
|
99
|
-
value: string;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* The Alignment tool component.
|
|
104
|
-
*/
|
|
105
|
-
export declare const Alignment: React_2.FunctionComponent<AlignmentProps>;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* The props of the Alignment tool component.
|
|
109
|
-
*/
|
|
110
|
-
export declare interface AlignmentProps extends SpreadsheetToolProps {
|
|
111
|
-
/**
|
|
112
|
-
* The value of the tool.
|
|
113
|
-
*/
|
|
114
|
-
value: {
|
|
115
|
-
textAlign?: string;
|
|
116
|
-
verticalAlign?: string;
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* The AlignVertically tool component.
|
|
122
|
-
*/
|
|
123
|
-
export declare const AlignVertically: React_2.FunctionComponent<AlignVerticallyProps>;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* The props of the AlignVertically tool component.
|
|
127
|
-
*/
|
|
128
|
-
export declare interface AlignVerticallyProps extends SpreadsheetToolProps {
|
|
129
|
-
/**
|
|
130
|
-
* The value of the tool.
|
|
131
|
-
*/
|
|
132
|
-
value: string;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* The BackgroundColor tool component.
|
|
137
|
-
*/
|
|
138
|
-
export declare const BackgroundColor: React.FunctionComponent<BackgroundColorProps>;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* The props of the BackgroundColor tool component.
|
|
142
|
-
*/
|
|
143
|
-
export declare interface BackgroundColorProps extends ColorToolProps {
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* The Bold tool component.
|
|
148
|
-
*/
|
|
149
|
-
export declare const Bold: React.FunctionComponent<BoldProps>;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* The props of the Bold tool component.
|
|
153
|
-
*/
|
|
154
|
-
export declare interface BoldProps extends PropertyChangeToolProps {
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export { CalcError }
|
|
158
|
-
|
|
159
|
-
export { Cell }
|
|
160
|
-
|
|
161
|
-
export { CellBorder }
|
|
162
|
-
|
|
163
|
-
export { CellDefaultStyle }
|
|
164
|
-
|
|
165
|
-
export { CellRef }
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* @hidden
|
|
169
|
-
*/
|
|
170
|
-
export declare const CleanFormatting: React_2.FunctionComponent<CleanFormattingProps>;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* @hidden
|
|
174
|
-
*/
|
|
175
|
-
export declare interface CleanFormattingProps extends PropertyChangeToolProps {
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* @hidden
|
|
180
|
-
*/
|
|
181
|
-
declare interface ColorToolProps extends SpreadsheetToolProps {
|
|
182
|
-
/**
|
|
183
|
-
* The value of the tool.
|
|
184
|
-
*/
|
|
185
|
-
value?: string;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
export { Context }
|
|
189
|
-
|
|
190
|
-
export { dateToSerial }
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* The DecreaseDecimal tool component.
|
|
194
|
-
*/
|
|
195
|
-
export declare const DecreaseDecimal: React_2.FunctionComponent<DecreaseDecimalProps>;
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* The props of the DecreaseDecimal tool component.
|
|
199
|
-
*/
|
|
200
|
-
export declare interface DecreaseDecimalProps extends SpreadsheetToolProps {
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* The DecreaseFontSize tool component.
|
|
205
|
-
*/
|
|
206
|
-
export declare const DecreaseFontSize: React_2.FunctionComponent<DecreaseFontSizeProps>;
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* The props of the DecreaseFontSize tool component.
|
|
210
|
-
*/
|
|
211
|
-
export declare interface DecreaseFontSizeProps extends FontSizeChangeToolProps {
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* The default toolbar configuration.
|
|
216
|
-
*/
|
|
217
|
-
export declare const defaultTabs: SpreadsheetTab[];
|
|
218
|
-
|
|
219
|
-
export { defineAlias }
|
|
220
|
-
|
|
221
|
-
export { defineFunction }
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* The DeleteColumn tool component.
|
|
225
|
-
*/
|
|
226
|
-
export declare const DeleteColumn: React_2.FunctionComponent<DeleteColumnProps>;
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* The props of the DeleteColumn tool component.
|
|
230
|
-
*/
|
|
231
|
-
export declare interface DeleteColumnProps extends TableToolProps {
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* The DeleteRow tool component.
|
|
236
|
-
*/
|
|
237
|
-
export declare const DeleteRow: React_2.FunctionComponent<DeleteRowProps>;
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* The props of the DeleteRow tool component.
|
|
241
|
-
*/
|
|
242
|
-
export declare interface DeleteRowProps extends TableToolProps {
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
export { DocumentDescriptor }
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* @hidden
|
|
249
|
-
*/
|
|
250
|
-
declare interface DropDownToolProps extends SpreadsheetToolProps {
|
|
251
|
-
/**
|
|
252
|
-
* The value of the tool.
|
|
253
|
-
*/
|
|
254
|
-
value?: any;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* The ExcelExport tool component.
|
|
259
|
-
*/
|
|
260
|
-
export declare const ExcelExport: React_2.FunctionComponent<ExcelExportProps>;
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* The props of the ExcelExport tool component.
|
|
264
|
-
*/
|
|
265
|
-
export declare interface ExcelExportProps extends SpreadsheetToolProps {
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
export { ExcelExportSettings }
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* The FontFamily tool component.
|
|
272
|
-
*/
|
|
273
|
-
export declare const FontFamily: React_2.FunctionComponent<FontFamilyProps>;
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* The props of the FontFamily tool component.
|
|
277
|
-
*/
|
|
278
|
-
export declare interface FontFamilyProps extends DropDownToolProps {
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* The FontSize tool component.
|
|
283
|
-
*/
|
|
284
|
-
export declare const FontSize: React_2.FunctionComponent<FontSizeProps>;
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* @hidden
|
|
288
|
-
*/
|
|
289
|
-
declare interface FontSizeChangeToolProps extends SpreadsheetToolProps {
|
|
290
|
-
/**
|
|
291
|
-
* The selected state of the tool.
|
|
292
|
-
*/
|
|
293
|
-
value: number;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* The props of the FontSize tool component.
|
|
298
|
-
*/
|
|
299
|
-
export declare interface FontSizeProps extends DropDownToolProps {
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* The Format tool component.
|
|
304
|
-
*/
|
|
305
|
-
export declare const Format: React_2.FunctionComponent<FormatProps>;
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* The props of the Format tool component.
|
|
309
|
-
*/
|
|
310
|
-
export declare interface FormatProps extends SpreadsheetToolProps {
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* The GridLines tool component.
|
|
315
|
-
*/
|
|
316
|
-
export declare const GridLines: React_2.FunctionComponent<GridLinesProps>;
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* The props of the GridLines tool component.
|
|
320
|
-
*/
|
|
321
|
-
export declare interface GridLinesProps extends SpreadsheetToolProps {
|
|
322
|
-
/**
|
|
323
|
-
* The selected state of the tool.
|
|
324
|
-
*/
|
|
325
|
-
value?: boolean;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
/**
|
|
329
|
-
* The IncreaseDecimal tool component.
|
|
330
|
-
*/
|
|
331
|
-
export declare const IncreaseDecimal: React_2.FunctionComponent<IncreaseDecimalProps>;
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* The props of the IncreaseDecimal tool component.
|
|
335
|
-
*/
|
|
336
|
-
export declare interface IncreaseDecimalProps extends SpreadsheetToolProps {
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* The IncreaseFontSize tool component.
|
|
341
|
-
*/
|
|
342
|
-
export declare const IncreaseFontSize: React_2.FunctionComponent<IncreaseFontSizeProps>;
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* The props of the IncreaseFontSize tool component.
|
|
346
|
-
*/
|
|
347
|
-
export declare interface IncreaseFontSizeProps extends FontSizeChangeToolProps {
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* The Italic tool component.
|
|
352
|
-
*/
|
|
353
|
-
export declare const Italic: React.FunctionComponent<ItalicProps>;
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
* The props of the Italic tool component.
|
|
357
|
-
*/
|
|
358
|
-
export declare interface ItalicProps extends PropertyChangeToolProps {
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
export { Matrix }
|
|
362
|
-
|
|
363
|
-
export { NameRef }
|
|
364
|
-
|
|
365
|
-
export { NULLREF }
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* The Open tool component.
|
|
369
|
-
*/
|
|
370
|
-
export declare const Open: React_2.FunctionComponent<OpenProps>;
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* The props of the Open tool component.
|
|
374
|
-
*/
|
|
375
|
-
export declare interface OpenProps extends SpreadsheetToolProps {
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
export { packDate }
|
|
379
|
-
|
|
380
|
-
export { packTime }
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
* @hidden
|
|
384
|
-
*/
|
|
385
|
-
declare interface PropertyChangeToolProps extends SpreadsheetToolProps {
|
|
386
|
-
/**
|
|
387
|
-
* The selected state of the tool.
|
|
388
|
-
*/
|
|
389
|
-
value?: boolean;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
export { Range_2 as Range }
|
|
393
|
-
|
|
394
|
-
export { RangeRef }
|
|
395
|
-
|
|
396
|
-
/**
|
|
397
|
-
* The Redo tool component.
|
|
398
|
-
*/
|
|
399
|
-
export declare const Redo: React.FunctionComponent<RedoProps>;
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* The props of the Redo tool component.
|
|
403
|
-
*/
|
|
404
|
-
export declare interface RedoProps extends SpreadsheetToolProps {
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
export { Ref }
|
|
408
|
-
|
|
409
|
-
export { serialToDate }
|
|
410
|
-
|
|
411
|
-
export { Sheet }
|
|
412
|
-
|
|
413
|
-
export { SheetColumn }
|
|
414
|
-
|
|
415
|
-
export { SheetDescriptor }
|
|
416
|
-
|
|
417
|
-
export { SheetRow }
|
|
418
|
-
|
|
419
|
-
/**
|
|
420
|
-
* Represents the [KendoReact Spreadsheet component](https://www.telerik.com/kendo-react-ui/components/spreadsheet).
|
|
421
|
-
*
|
|
422
|
-
* Accepts properties of type [SpreadsheetProps](https://www.telerik.com/kendo-react-ui/components/spreadsheet/api/spreadsheetprops).
|
|
423
|
-
* Obtaining the ref will give you an object of type [SpreadsheetHandle](https://www.telerik.com/kendo-react-ui/components/spreadsheet/api/spreadsheethandle).
|
|
424
|
-
*
|
|
425
|
-
* @example
|
|
426
|
-
* ```jsx
|
|
427
|
-
* const sheets = [
|
|
428
|
-
* {
|
|
429
|
-
* name: 'Food Order',
|
|
430
|
-
* rows: [
|
|
431
|
-
* {
|
|
432
|
-
* cells: [
|
|
433
|
-
* {
|
|
434
|
-
* value: 216321,
|
|
435
|
-
* textAlign: 'center',
|
|
436
|
-
* },
|
|
437
|
-
* ],
|
|
438
|
-
* },
|
|
439
|
-
* ],
|
|
440
|
-
* columns: [
|
|
441
|
-
* {
|
|
442
|
-
* width: 100,
|
|
443
|
-
* },
|
|
444
|
-
* ],
|
|
445
|
-
* },
|
|
446
|
-
* ];
|
|
447
|
-
* const App = () => {
|
|
448
|
-
* return (
|
|
449
|
-
* <Spreadsheet
|
|
450
|
-
* style={{
|
|
451
|
-
* width: "100%",
|
|
452
|
-
* height: 680,
|
|
453
|
-
* }}
|
|
454
|
-
* defaultProps={{
|
|
455
|
-
* sheets,
|
|
456
|
-
* }}
|
|
457
|
-
* />
|
|
458
|
-
* );
|
|
459
|
-
* };
|
|
460
|
-
* ```
|
|
461
|
-
*/
|
|
462
|
-
export declare const Spreadsheet: React_2.ForwardRefExoticComponent<SpreadsheetProps & React_2.RefAttributes<SpreadsheetHandle | null>>;
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* Represents the `SpreadsheetChangeEvent` object.
|
|
466
|
-
*/
|
|
467
|
-
export declare interface SpreadsheetChangeEvent extends SpreadsheetEvent, SpreadsheetSelectEvent {
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
declare interface SpreadsheetEvent {
|
|
471
|
-
/**
|
|
472
|
-
* The widget instance which fired the event.
|
|
473
|
-
*/
|
|
474
|
-
sender: SpreadsheetWidget;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
/**
|
|
478
|
-
* Represents the `SpreadsheetExcelExportEvent` object.
|
|
479
|
-
*/
|
|
480
|
-
export declare interface SpreadsheetExcelExportEvent extends SpreadsheetEvent {
|
|
481
|
-
/**
|
|
482
|
-
* The array of data items that is used to create the Excel workbook.
|
|
483
|
-
*/
|
|
484
|
-
data: Array<any>;
|
|
485
|
-
/**
|
|
486
|
-
* The Excel workbook configuration object.
|
|
487
|
-
* Modifications of the workbook will reflect in the output Excel document.
|
|
488
|
-
*/
|
|
489
|
-
workbook: Workbook_2;
|
|
490
|
-
/**
|
|
491
|
-
* If invoked, the Spreadsheet will not save the generated file.
|
|
492
|
-
*/
|
|
493
|
-
preventDefault: Function;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* Represents the `SpreadsheetExcelImportEvent` object.
|
|
498
|
-
*/
|
|
499
|
-
export declare interface SpreadsheetExcelImportEvent extends SpreadsheetEvent {
|
|
500
|
-
/**
|
|
501
|
-
* The file that is being imported.
|
|
502
|
-
*/
|
|
503
|
-
file: Blob | File;
|
|
504
|
-
/**
|
|
505
|
-
* If invoked, the Spreadsheet will not import the file.
|
|
506
|
-
*/
|
|
507
|
-
preventDefault: Function;
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
/**
|
|
511
|
-
* Represents the Spreadsheet handle object.
|
|
512
|
-
*/
|
|
513
|
-
export declare interface SpreadsheetHandle {
|
|
514
|
-
/**
|
|
515
|
-
* The current element or `null` if there is no one.
|
|
516
|
-
*/
|
|
517
|
-
element: HTMLDivElement | null;
|
|
518
|
-
/**
|
|
519
|
-
* The props values of the Spreadsheet.
|
|
520
|
-
*/
|
|
521
|
-
props: SpreadsheetProps;
|
|
522
|
-
/**
|
|
523
|
-
* Represents the SpreadsheetWidget object, holding the core functionality of the Spreadsheet.
|
|
524
|
-
*/
|
|
525
|
-
instance: SpreadsheetWidget | null;
|
|
526
|
-
/**
|
|
527
|
-
* Returns the `View` object of the Spreadsheet.
|
|
528
|
-
*/
|
|
529
|
-
get view(): View;
|
|
530
|
-
/**
|
|
531
|
-
* Returns the `Workbook` object of the Spreadsheet.
|
|
532
|
-
*/
|
|
533
|
-
get workbook(): Workbook;
|
|
534
|
-
/**
|
|
535
|
-
* Executes the passed command against the selected cell/range.
|
|
536
|
-
*
|
|
537
|
-
* @param options An object containing the command name and the required by it options.
|
|
538
|
-
*/
|
|
539
|
-
executeCommand(options: any): void;
|
|
540
|
-
/**
|
|
541
|
-
* Loads the workbook data from an object with the format that is defined in the configuration.
|
|
542
|
-
*
|
|
543
|
-
* Note: All existing sheets and their data will be lost.
|
|
544
|
-
*
|
|
545
|
-
* @param json The object from where data will be loaded. This has to be the deserialized object, not the JSON string.
|
|
546
|
-
*/
|
|
547
|
-
fromJSON(json: DocumentDescriptor): void;
|
|
548
|
-
/**
|
|
549
|
-
* Serializes the workbook.
|
|
550
|
-
*/
|
|
551
|
-
toJSON(): DocumentDescriptor;
|
|
552
|
-
/**
|
|
553
|
-
* Serializes the workbook. This method does not return the JSON, but a Promise object which will yield the JSON data when it is available.
|
|
554
|
-
* The method is functionally similar to `toJSON`, but it is also able to save the embedded images (this is the reason why it must be asynchronous).
|
|
555
|
-
*/
|
|
556
|
-
saveJSON(): Promise<DocumentDescriptor>;
|
|
557
|
-
/**
|
|
558
|
-
* Clears the Spreadsheet and populates it with data from the specified Excel (.xlsx) file.
|
|
559
|
-
*
|
|
560
|
-
* @param blob The file or blob that is usually obtained through a file input.
|
|
561
|
-
*/
|
|
562
|
-
fromFile(file: File | Blob): void;
|
|
563
|
-
/**
|
|
564
|
-
* Initiates the Excel export. Also fires the excelExport event.
|
|
565
|
-
*
|
|
566
|
-
* Note: Calling this method may trigger the built-in popup blocker of the browser.
|
|
567
|
-
* To avoid that, always call it as a response to an end-user action, for example, a button click.
|
|
568
|
-
*/
|
|
569
|
-
saveAsExcel(options: any): void;
|
|
570
|
-
/**
|
|
571
|
-
* Gets or sets the active sheet.
|
|
572
|
-
*/
|
|
573
|
-
activeSheet(sheet?: Sheet): Sheet | void;
|
|
574
|
-
/**
|
|
575
|
-
* Returns an array with the sheets in the workbook.
|
|
576
|
-
*/
|
|
577
|
-
sheets(): Sheet[];
|
|
578
|
-
/**
|
|
579
|
-
* Re-renders all data in the Spreadsheet.
|
|
580
|
-
*/
|
|
581
|
-
refresh(): void;
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
export { SpreadsheetOptions }
|
|
585
|
-
|
|
586
|
-
export declare interface SpreadsheetProps {
|
|
587
|
-
/**
|
|
588
|
-
* Sets additional classes to the Spreadsheet.
|
|
589
|
-
*
|
|
590
|
-
* @example
|
|
591
|
-
* ```jsx
|
|
592
|
-
* <Spreadsheet className="custom-class" />
|
|
593
|
-
* ```
|
|
594
|
-
*/
|
|
595
|
-
className?: string;
|
|
596
|
-
/**
|
|
597
|
-
* Represents the default props of the Spreadsheet.
|
|
598
|
-
*
|
|
599
|
-
* @example
|
|
600
|
-
* ```jsx
|
|
601
|
-
* <Spreadsheet defaultProps={{ toolbar: true }} />
|
|
602
|
-
* ```
|
|
603
|
-
*/
|
|
604
|
-
defaultProps?: SpreadsheetOptions;
|
|
605
|
-
/**
|
|
606
|
-
* A Boolean value which indicates if the toolbar will be displayed. It also allows customizing the tabs' content.
|
|
607
|
-
*
|
|
608
|
-
* @default true
|
|
609
|
-
* @example
|
|
610
|
-
* ```jsx
|
|
611
|
-
* <Spreadsheet toolbar={false} />
|
|
612
|
-
* <Spreadsheet toolbar={[{ text: "Custom Tab", tools: [CustomToolComponent] }]} />
|
|
613
|
-
* ```
|
|
614
|
-
*/
|
|
615
|
-
toolbar?: boolean | SpreadsheetTab[];
|
|
616
|
-
/**
|
|
617
|
-
* Specifies the styles that will be applied to the wrapping element.
|
|
618
|
-
*
|
|
619
|
-
* @example
|
|
620
|
-
* ```jsx
|
|
621
|
-
* <Spreadsheet style={{ height: '500px' }} />
|
|
622
|
-
* ```
|
|
623
|
-
*/
|
|
624
|
-
style?: React.CSSProperties;
|
|
625
|
-
/**
|
|
626
|
-
* Triggered when the Spreadsheet selection is changed.
|
|
627
|
-
*
|
|
628
|
-
* @example
|
|
629
|
-
* ```jsx
|
|
630
|
-
* <Spreadsheet onSelect={(event) => console.log(event.range)} />
|
|
631
|
-
* ```
|
|
632
|
-
*/
|
|
633
|
-
onSelect?: (event: SpreadsheetSelectEvent) => void;
|
|
634
|
-
/**
|
|
635
|
-
* Triggered when a value in the Spreadsheet has been changed.
|
|
636
|
-
*
|
|
637
|
-
* @example
|
|
638
|
-
* ```jsx
|
|
639
|
-
* <Spreadsheet onChange={(event) => console.log(event.range)} />
|
|
640
|
-
* ```
|
|
641
|
-
*/
|
|
642
|
-
onChange?: (event: SpreadsheetChangeEvent) => void;
|
|
643
|
-
/**
|
|
644
|
-
* Triggered when the range format is changed from the UI.
|
|
645
|
-
*
|
|
646
|
-
* @example
|
|
647
|
-
* ```jsx
|
|
648
|
-
* <Spreadsheet onChangeFormat={(event) => console.log(event.range)} />
|
|
649
|
-
* ```
|
|
650
|
-
*/
|
|
651
|
-
onChangeFormat?: (event: SpreadsheetChangeEvent) => void;
|
|
652
|
-
/**
|
|
653
|
-
* Fired when the user clicks the Open toolbar button.
|
|
654
|
-
*
|
|
655
|
-
* @example
|
|
656
|
-
* ```jsx
|
|
657
|
-
* <Spreadsheet onExcelImport={(event) => console.log(event.file)} />
|
|
658
|
-
* ```
|
|
659
|
-
*/
|
|
660
|
-
onExcelImport?: (event: SpreadsheetExcelImportEvent) => void;
|
|
661
|
-
/**
|
|
662
|
-
* Fires when the user clicks the Export to Excel toolbar button.
|
|
663
|
-
*
|
|
664
|
-
* @example
|
|
665
|
-
* ```jsx
|
|
666
|
-
* <Spreadsheet onExcelExport={(event) => console.log(event.workbook)} />
|
|
667
|
-
* ```
|
|
668
|
-
*/
|
|
669
|
-
onExcelExport?: (event: SpreadsheetExcelExportEvent) => void;
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
/**
|
|
673
|
-
* Represents the `SpreadsheetSelectEvent` object.
|
|
674
|
-
*/
|
|
675
|
-
export declare interface SpreadsheetSelectEvent extends SpreadsheetEvent {
|
|
676
|
-
/**
|
|
677
|
-
* The Range that is selected.
|
|
678
|
-
*/
|
|
679
|
-
range: Range_2;
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
/**
|
|
683
|
-
* Represents the Spreadsheet tab configuration object.
|
|
684
|
-
*/
|
|
685
|
-
export declare interface SpreadsheetTab {
|
|
686
|
-
/**
|
|
687
|
-
* The text of the tab.
|
|
688
|
-
*/
|
|
689
|
-
text?: string;
|
|
690
|
-
/**
|
|
691
|
-
* The localization key of the tab's text.
|
|
692
|
-
*/
|
|
693
|
-
textKey?: string;
|
|
694
|
-
/**
|
|
695
|
-
* Indicates if the tab to be selected initially.
|
|
696
|
-
*/
|
|
697
|
-
selected?: boolean;
|
|
698
|
-
/**
|
|
699
|
-
* The toolbar configuration in the tab content.
|
|
700
|
-
*/
|
|
701
|
-
tools: (React.ComponentType<any> | React.ComponentType<any>[])[];
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
/**
|
|
705
|
-
* The base props interface of the Spreadsheet tool component.
|
|
706
|
-
*/
|
|
707
|
-
export declare interface SpreadsheetToolProps {
|
|
708
|
-
/**
|
|
709
|
-
* The `React.RefObject` object of the SpreadsheetWidget, holding the core functionality of the Spreadsheet.
|
|
710
|
-
*/
|
|
711
|
-
spreadsheetRef: React_2.RefObject<SpreadsheetWidget | null>;
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
export { SpreadsheetWidget }
|
|
715
|
-
|
|
716
|
-
declare interface TableToolProps extends SpreadsheetToolProps {
|
|
717
|
-
/**
|
|
718
|
-
* @hidden
|
|
719
|
-
*/
|
|
720
|
-
value: SelectedHeaders;
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
/**
|
|
724
|
-
* The TextColor tool component.
|
|
725
|
-
*/
|
|
726
|
-
export declare const TextColor: React.FunctionComponent<TextColorProps>;
|
|
727
|
-
|
|
728
|
-
/**
|
|
729
|
-
* The props of the TextColor tool component.
|
|
730
|
-
*/
|
|
731
|
-
export declare interface TextColorProps extends ColorToolProps {
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
/**
|
|
735
|
-
* The TextWrap tool component.
|
|
736
|
-
*/
|
|
737
|
-
export declare const TextWrap: React_2.FunctionComponent<TextWrapProps>;
|
|
738
|
-
|
|
739
|
-
/**
|
|
740
|
-
* The props of the TextWrap tool component.
|
|
741
|
-
*/
|
|
742
|
-
export declare interface TextWrapProps extends SpreadsheetToolProps {
|
|
743
|
-
/**
|
|
744
|
-
* The selected state of the tool.
|
|
745
|
-
*/
|
|
746
|
-
value?: boolean;
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
/**
|
|
750
|
-
* @hidden
|
|
751
|
-
*/
|
|
752
|
-
export declare const toolsValueMap: any;
|
|
753
|
-
|
|
754
|
-
/**
|
|
755
|
-
* The Underline tool component.
|
|
756
|
-
*/
|
|
757
|
-
export declare const Underline: React.FunctionComponent<UnderlineProps>;
|
|
758
|
-
|
|
759
|
-
/**
|
|
760
|
-
* The props of the Underline tool component.
|
|
761
|
-
*/
|
|
762
|
-
export declare interface UnderlineProps extends PropertyChangeToolProps {
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
/**
|
|
766
|
-
* The Undo tool component.
|
|
767
|
-
*/
|
|
768
|
-
export declare const Undo: React.FunctionComponent<UndoProps>;
|
|
769
|
-
|
|
770
|
-
/**
|
|
771
|
-
* The props of the Undo tool component.
|
|
772
|
-
*/
|
|
773
|
-
export declare interface UndoProps extends SpreadsheetToolProps {
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
export { UnionRef }
|
|
777
|
-
|
|
778
|
-
export { unpackDate }
|
|
779
|
-
|
|
780
|
-
export { unpackTime }
|
|
781
|
-
|
|
782
|
-
export { View }
|
|
783
|
-
|
|
784
|
-
export { Workbook }
|
|
785
|
-
|
|
786
|
-
export { }
|
|
8
|
+
export { Spreadsheet, toolsValueMap } from './Spreadsheet.js';
|
|
9
|
+
export * from './SpreadsheetProps.js';
|
|
10
|
+
export * from './tools/index.js';
|
|
11
|
+
export { Context, Matrix, CalcError, packDate, unpackDate, packTime, unpackTime, serialToDate, dateToSerial, defineFunction, defineAlias, Ref, CellRef, NameRef, RangeRef, UnionRef, NULLREF } from '@progress/kendo-spreadsheet-common';
|