@progress/kendo-react-spreadsheet 6.1.1 → 7.0.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FormulaInput.d.ts +9 -0
- package/LICENSE.md +1 -1
- package/List.d.ts +9 -0
- package/NameBox.d.ts +9 -0
- package/SheetsBar.d.ts +8 -0
- package/{dist/npm/Spreadsheet.d.ts → Spreadsheet.d.ts} +4 -0
- package/{dist/npm/SpreadsheetProps.d.ts → SpreadsheetProps.d.ts} +5 -2
- package/dist/cdn/js/kendo-react-spreadsheet.js +5 -1
- package/index.d.ts +8 -0
- package/index.js +5 -0
- package/index.mjs +1357 -0
- package/{dist/npm/messages.d.ts → messages.d.ts} +4 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +43 -57
- package/{dist/npm/tools → tools}/adjustDecimals.d.ts +4 -0
- package/{dist/npm/tools → tools}/align.d.ts +4 -0
- package/tools/backgroundColor.d.ts +14 -0
- package/tools/bold.d.ts +14 -0
- package/tools/cleanFormat.d.ts +15 -0
- package/tools/defaultTools.d.ts +9 -0
- package/tools/export.d.ts +15 -0
- package/tools/fontFamily.d.ts +15 -0
- package/{dist/es/tools → tools}/fontSize.d.ts +4 -0
- package/tools/format.d.ts +15 -0
- package/{dist/es/tools → tools}/gridLines.d.ts +4 -0
- package/{dist/es/tools → tools}/index.d.ts +5 -1
- package/tools/italic.d.ts +14 -0
- package/tools/open.d.ts +15 -0
- package/tools/redo.d.ts +14 -0
- package/{dist/npm/tools → tools}/tableTools.d.ts +4 -0
- package/tools/textColor.d.ts +14 -0
- package/{dist/es/tools → tools}/textWrap.d.ts +4 -0
- package/tools/underline.d.ts +14 -0
- package/tools/undo.d.ts +14 -0
- package/{dist/npm/tools → tools}/utils.d.ts +4 -0
- package/about.md +0 -3
- package/dist/es/FormulaInput.d.ts +0 -5
- package/dist/es/FormulaInput.js +0 -116
- package/dist/es/List.d.ts +0 -5
- package/dist/es/List.js +0 -22
- package/dist/es/NameBox.d.ts +0 -5
- package/dist/es/NameBox.js +0 -91
- package/dist/es/SheetsBar.d.ts +0 -5
- package/dist/es/SheetsBar.js +0 -246
- package/dist/es/Spreadsheet.d.ts +0 -47
- package/dist/es/Spreadsheet.js +0 -286
- package/dist/es/SpreadsheetProps.d.ts +0 -189
- package/dist/es/SpreadsheetProps.js +0 -2
- package/dist/es/main.d.ts +0 -4
- package/dist/es/main.js +0 -4
- package/dist/es/messages.d.ts +0 -110
- package/dist/es/messages.js +0 -310
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/es/tools/adjustDecimals.d.ts +0 -20
- package/dist/es/tools/adjustDecimals.js +0 -39
- package/dist/es/tools/align.d.ts +0 -44
- package/dist/es/tools/align.js +0 -96
- package/dist/es/tools/backgroundColor.d.ts +0 -11
- package/dist/es/tools/backgroundColor.js +0 -15
- package/dist/es/tools/bold.d.ts +0 -11
- package/dist/es/tools/bold.js +0 -9
- package/dist/es/tools/cleanFormat.d.ts +0 -11
- package/dist/es/tools/cleanFormat.js +0 -17
- package/dist/es/tools/defaultTools.d.ts +0 -5
- package/dist/es/tools/defaultTools.js +0 -66
- package/dist/es/tools/export.d.ts +0 -11
- package/dist/es/tools/export.js +0 -19
- package/dist/es/tools/fontFamily.d.ts +0 -11
- package/dist/es/tools/fontFamily.js +0 -21
- package/dist/es/tools/fontSize.js +0 -82
- package/dist/es/tools/format.d.ts +0 -11
- package/dist/es/tools/format.js +0 -26
- package/dist/es/tools/gridLines.js +0 -25
- package/dist/es/tools/index.js +0 -18
- package/dist/es/tools/italic.d.ts +0 -11
- package/dist/es/tools/italic.js +0 -9
- package/dist/es/tools/open.d.ts +0 -11
- package/dist/es/tools/open.js +0 -36
- package/dist/es/tools/redo.d.ts +0 -11
- package/dist/es/tools/redo.js +0 -9
- package/dist/es/tools/tableTools.d.ts +0 -64
- package/dist/es/tools/tableTools.js +0 -102
- package/dist/es/tools/textColor.d.ts +0 -11
- package/dist/es/tools/textColor.js +0 -15
- package/dist/es/tools/textWrap.js +0 -26
- package/dist/es/tools/underline.d.ts +0 -11
- package/dist/es/tools/underline.js +0 -9
- package/dist/es/tools/undo.d.ts +0 -11
- package/dist/es/tools/undo.js +0 -9
- package/dist/es/tools/utils.d.ts +0 -91
- package/dist/es/tools/utils.js +0 -102
- package/dist/npm/FormulaInput.d.ts +0 -5
- package/dist/npm/FormulaInput.js +0 -119
- package/dist/npm/List.d.ts +0 -5
- package/dist/npm/List.js +0 -25
- package/dist/npm/NameBox.d.ts +0 -5
- package/dist/npm/NameBox.js +0 -94
- package/dist/npm/SheetsBar.d.ts +0 -5
- package/dist/npm/SheetsBar.js +0 -250
- package/dist/npm/Spreadsheet.js +0 -289
- package/dist/npm/SpreadsheetProps.js +0 -9
- package/dist/npm/main.d.ts +0 -4
- package/dist/npm/main.js +0 -39
- package/dist/npm/messages.js +0 -313
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/npm/tools/adjustDecimals.js +0 -42
- package/dist/npm/tools/align.js +0 -100
- package/dist/npm/tools/backgroundColor.d.ts +0 -11
- package/dist/npm/tools/backgroundColor.js +0 -18
- package/dist/npm/tools/bold.d.ts +0 -11
- package/dist/npm/tools/bold.js +0 -12
- package/dist/npm/tools/cleanFormat.d.ts +0 -11
- package/dist/npm/tools/cleanFormat.js +0 -21
- package/dist/npm/tools/defaultTools.d.ts +0 -5
- package/dist/npm/tools/defaultTools.js +0 -69
- package/dist/npm/tools/export.d.ts +0 -11
- package/dist/npm/tools/export.js +0 -23
- package/dist/npm/tools/fontFamily.d.ts +0 -11
- package/dist/npm/tools/fontFamily.js +0 -25
- package/dist/npm/tools/fontSize.d.ts +0 -39
- package/dist/npm/tools/fontSize.js +0 -86
- package/dist/npm/tools/format.d.ts +0 -11
- package/dist/npm/tools/format.js +0 -30
- package/dist/npm/tools/gridLines.d.ts +0 -15
- package/dist/npm/tools/gridLines.js +0 -29
- package/dist/npm/tools/index.d.ts +0 -19
- package/dist/npm/tools/index.js +0 -34
- package/dist/npm/tools/italic.d.ts +0 -11
- package/dist/npm/tools/italic.js +0 -12
- package/dist/npm/tools/open.d.ts +0 -11
- package/dist/npm/tools/open.js +0 -40
- package/dist/npm/tools/redo.d.ts +0 -11
- package/dist/npm/tools/redo.js +0 -12
- package/dist/npm/tools/tableTools.js +0 -105
- package/dist/npm/tools/textColor.d.ts +0 -11
- package/dist/npm/tools/textColor.js +0 -18
- package/dist/npm/tools/textWrap.d.ts +0 -15
- package/dist/npm/tools/textWrap.js +0 -30
- package/dist/npm/tools/underline.d.ts +0 -11
- package/dist/npm/tools/underline.js +0 -12
- package/dist/npm/tools/undo.d.ts +0 -11
- package/dist/npm/tools/undo.js +0 -12
- package/dist/npm/tools/utils.js +0 -108
- package/dist/systemjs/kendo-react-spreadsheet.js +0 -1
- package/e2e-next/basic.tests.ts +0 -24
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Workbook as OoxmlWorkbook } from '@progress/kendo-ooxml';
|
|
3
|
-
import { SpreadsheetOptions, SpreadsheetWidget, Range, DocumentDescriptor, View, Sheet, ExcelExportSettings, CellDefaultStyle, SheetColumn, SheetRow, Cell, CellBorder, SheetDescriptor, Workbook } from '@progress/kendo-spreadsheet-common';
|
|
4
|
-
export { SpreadsheetWidget, SpreadsheetOptions, Range, DocumentDescriptor, View, Workbook, Sheet, SheetDescriptor, ExcelExportSettings, CellDefaultStyle, SheetColumn, SheetRow, Cell, CellBorder };
|
|
5
|
-
interface SpreadsheetEvent {
|
|
6
|
-
/**
|
|
7
|
-
* The widget instance which fired the event.
|
|
8
|
-
*/
|
|
9
|
-
sender: SpreadsheetWidget;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Represents the `SpreadsheetSelectEvent` object.
|
|
13
|
-
*/
|
|
14
|
-
export interface SpreadsheetSelectEvent extends SpreadsheetEvent {
|
|
15
|
-
/**
|
|
16
|
-
* The Range that is selected.
|
|
17
|
-
*/
|
|
18
|
-
range: Range;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Represents the `SpreadsheetChangeEvent` object.
|
|
22
|
-
*/
|
|
23
|
-
export interface SpreadsheetChangeEvent extends SpreadsheetEvent, SpreadsheetSelectEvent {
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Represents the `SpreadsheetExcelImportEvent` object.
|
|
27
|
-
*/
|
|
28
|
-
export interface SpreadsheetExcelImportEvent extends SpreadsheetEvent {
|
|
29
|
-
/**
|
|
30
|
-
* The file that is being imported.
|
|
31
|
-
*/
|
|
32
|
-
file: Blob | File;
|
|
33
|
-
/**
|
|
34
|
-
* If invoked, the Spreadsheet will not import the file.
|
|
35
|
-
*/
|
|
36
|
-
preventDefault: Function;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Represents the `SpreadsheetExcelExportEvent` object.
|
|
40
|
-
*/
|
|
41
|
-
export interface SpreadsheetExcelExportEvent extends SpreadsheetEvent {
|
|
42
|
-
/**
|
|
43
|
-
* The array of data items that is used to create the Excel workbook.
|
|
44
|
-
*/
|
|
45
|
-
data: Array<any>;
|
|
46
|
-
/**
|
|
47
|
-
* The Excel workbook configuration object.
|
|
48
|
-
* Modifications of the workbook will reflect in the output Excel document.
|
|
49
|
-
*/
|
|
50
|
-
workbook: OoxmlWorkbook;
|
|
51
|
-
/**
|
|
52
|
-
* If invoked, the Spreadsheet will not save the generated file.
|
|
53
|
-
*/
|
|
54
|
-
preventDefault: Function;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Represents the Spreadsheet tab configuration object.
|
|
58
|
-
*/
|
|
59
|
-
export interface SpreadsheetTab {
|
|
60
|
-
/**
|
|
61
|
-
* The text of the tab.
|
|
62
|
-
*/
|
|
63
|
-
text?: string;
|
|
64
|
-
/**
|
|
65
|
-
* The localization key of the tab's text.
|
|
66
|
-
*/
|
|
67
|
-
textKey?: string;
|
|
68
|
-
/**
|
|
69
|
-
* Indicates if the tab to be selected initially.
|
|
70
|
-
*/
|
|
71
|
-
selected?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* The toolbar configuration in the tab content.
|
|
74
|
-
*/
|
|
75
|
-
tools: (React.ComponentType<any> | React.ComponentType<any>[])[];
|
|
76
|
-
}
|
|
77
|
-
export interface SpreadsheetProps {
|
|
78
|
-
/**
|
|
79
|
-
* Sets additional classes to the Spreadsheet.
|
|
80
|
-
*/
|
|
81
|
-
className?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Represents the default props of the Spreadsheet.
|
|
84
|
-
*/
|
|
85
|
-
defaultProps?: SpreadsheetOptions;
|
|
86
|
-
/**
|
|
87
|
-
* A Boolean value which indicates if the toolbar will be displayed. It also allows to customize the tabs content
|
|
88
|
-
*
|
|
89
|
-
* @default true
|
|
90
|
-
*/
|
|
91
|
-
toolbar?: boolean | SpreadsheetTab[];
|
|
92
|
-
/**
|
|
93
|
-
* Specifies the styles that will be applied to the wrapping element.
|
|
94
|
-
*/
|
|
95
|
-
style?: React.CSSProperties;
|
|
96
|
-
/**
|
|
97
|
-
* Triggered when the Spreadsheet selection is changed.
|
|
98
|
-
*/
|
|
99
|
-
onSelect?: (event: SpreadsheetSelectEvent) => void;
|
|
100
|
-
/**
|
|
101
|
-
* Triggered when a value in the Spreadsheet has been changed.
|
|
102
|
-
*/
|
|
103
|
-
onChange?: (event: SpreadsheetChangeEvent) => void;
|
|
104
|
-
/**
|
|
105
|
-
* Triggered when the range format is changed from the UI.
|
|
106
|
-
*/
|
|
107
|
-
onChangeFormat?: (event: SpreadsheetChangeEvent) => void;
|
|
108
|
-
/**
|
|
109
|
-
* Fired when the user clicks the Open toolbar button.
|
|
110
|
-
*/
|
|
111
|
-
onExcelImport?: (event: SpreadsheetExcelImportEvent) => void;
|
|
112
|
-
/**
|
|
113
|
-
* Fires when the user clicks the Export to Excel toolbar button.
|
|
114
|
-
*/
|
|
115
|
-
onExcelExport?: (event: SpreadsheetExcelExportEvent) => void;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Represents the Spreadsheet handle object.
|
|
119
|
-
*/
|
|
120
|
-
export interface SpreadsheetHandle {
|
|
121
|
-
/**
|
|
122
|
-
* The current element or `null` if there is no one.
|
|
123
|
-
*/
|
|
124
|
-
element: HTMLDivElement | null;
|
|
125
|
-
/**
|
|
126
|
-
* The props values of the Spreadsheet.
|
|
127
|
-
*/
|
|
128
|
-
props: SpreadsheetProps;
|
|
129
|
-
/**
|
|
130
|
-
* Represents the SpreadsheetWidget object, holding the core functionality of the Spreadsheet.
|
|
131
|
-
*/
|
|
132
|
-
instance: SpreadsheetWidget | null;
|
|
133
|
-
/**
|
|
134
|
-
* Returns the `View` object of the Spreadsheet.
|
|
135
|
-
*/
|
|
136
|
-
get view(): View;
|
|
137
|
-
/**
|
|
138
|
-
* Returns the `Workbook` object of the Spreadsheet.
|
|
139
|
-
*/
|
|
140
|
-
get workbook(): Workbook;
|
|
141
|
-
/**
|
|
142
|
-
* Executes the passed command against the selected cell/range.
|
|
143
|
-
*
|
|
144
|
-
* @param options An object containing the command name and the required by it options.
|
|
145
|
-
*/
|
|
146
|
-
executeCommand(options: any): void;
|
|
147
|
-
/**
|
|
148
|
-
* Loads the workbook data from an object with the format that is defined in the configuration.
|
|
149
|
-
*
|
|
150
|
-
* Note: All existing sheets and their data will be lost.
|
|
151
|
-
*
|
|
152
|
-
* @param json The object from where data will be loaded. This has to be the deserialized object, not the JSON string.
|
|
153
|
-
*/
|
|
154
|
-
fromJSON(json: DocumentDescriptor): void;
|
|
155
|
-
/**
|
|
156
|
-
* Serializes the workbook.
|
|
157
|
-
*/
|
|
158
|
-
toJSON(): DocumentDescriptor;
|
|
159
|
-
/**
|
|
160
|
-
* Serializes the workbook. This method does not return the JSON, but a Promise object which will yield the JSON data when it is available.
|
|
161
|
-
* 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).
|
|
162
|
-
*/
|
|
163
|
-
saveJSON(): Promise<DocumentDescriptor>;
|
|
164
|
-
/**
|
|
165
|
-
* Clears the Spreadsheet and populates it with data from the specified Excel (.xlsx) file.
|
|
166
|
-
*
|
|
167
|
-
* @param blob The file or blob that is usually obtained through a file input.
|
|
168
|
-
*/
|
|
169
|
-
fromFile(file: File | Blob): void;
|
|
170
|
-
/**
|
|
171
|
-
* Initiates the Excel export. Also fires the excelExport event.
|
|
172
|
-
*
|
|
173
|
-
* Note: Calling this method may trigger the built-in popup blocker of the browser.
|
|
174
|
-
* To avoid that, always call it as a response to an end-user action, for example, a button click.
|
|
175
|
-
*/
|
|
176
|
-
saveAsExcel(options: any): void;
|
|
177
|
-
/**
|
|
178
|
-
* Gets or sets the active sheet.
|
|
179
|
-
*/
|
|
180
|
-
activeSheet(sheet?: Sheet): Sheet | void;
|
|
181
|
-
/**
|
|
182
|
-
* Returns an array with the sheets in the workbook.
|
|
183
|
-
*/
|
|
184
|
-
sheets(): Sheet[];
|
|
185
|
-
/**
|
|
186
|
-
* Re-renders all data in the Spreadsheet.
|
|
187
|
-
*/
|
|
188
|
-
refresh(): void;
|
|
189
|
-
}
|
package/dist/es/main.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { Spreadsheet } from './Spreadsheet';
|
|
2
|
-
export * from './SpreadsheetProps';
|
|
3
|
-
export * from './tools';
|
|
4
|
-
export { Context, Matrix, CalcError, packDate, unpackDate, packTime, unpackTime, serialToDate, dateToSerial, defineFunction, defineAlias, Ref, CellRef, NameRef, RangeRef, UnionRef, NULLREF } from '@progress/kendo-spreadsheet-common';
|
package/dist/es/main.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { Spreadsheet } from './Spreadsheet';
|
|
2
|
-
export * from './SpreadsheetProps';
|
|
3
|
-
export * from './tools';
|
|
4
|
-
export { Context, Matrix, CalcError, packDate, unpackDate, packTime, unpackTime, serialToDate, dateToSerial, defineFunction, defineAlias, Ref, CellRef, NameRef, RangeRef, UnionRef, NULLREF } from '@progress/kendo-spreadsheet-common';
|
package/dist/es/messages.d.ts
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
export declare const messages: {
|
|
5
|
-
"spreadsheet.bold": string;
|
|
6
|
-
"spreadsheet.italic": string;
|
|
7
|
-
"spreadsheet.underline": string;
|
|
8
|
-
"spreadsheet.undo": string;
|
|
9
|
-
"spreadsheet.redo": string;
|
|
10
|
-
"spreadsheet.fontSize": string;
|
|
11
|
-
"spreadsheet.fontSizeIncrease": string;
|
|
12
|
-
"spreadsheet.fontSizeDecrease": string;
|
|
13
|
-
"spreadsheet.fontName": string;
|
|
14
|
-
"spreadsheet.cleanFormatting": string;
|
|
15
|
-
"spreadsheet.format": string;
|
|
16
|
-
"spreadsheet.alignHorizontally": string;
|
|
17
|
-
"spreadsheet.alignVertically": string;
|
|
18
|
-
"spreadsheet.align": string;
|
|
19
|
-
"spreadsheet.alignLeft": string;
|
|
20
|
-
"spreadsheet.alignRight": string;
|
|
21
|
-
"spreadsheet.alignCenter": string;
|
|
22
|
-
"spreadsheet.alignJustify": string;
|
|
23
|
-
"spreadsheet.center": string;
|
|
24
|
-
"spreadsheet.justify": string;
|
|
25
|
-
"spreadsheet.alignTop": string;
|
|
26
|
-
"spreadsheet.alignMiddle": string;
|
|
27
|
-
"spreadsheet.alignBottom": string;
|
|
28
|
-
"spreadsheet.increaseDecimal": string;
|
|
29
|
-
"spreadsheet.decreaseDecimal": string;
|
|
30
|
-
"spreadsheet.textColor": string;
|
|
31
|
-
"spreadsheet.background": string;
|
|
32
|
-
"spreadsheet.addRowAbove": string;
|
|
33
|
-
"spreadsheet.addRowBelow": string;
|
|
34
|
-
"spreadsheet.addColumnLeft": string;
|
|
35
|
-
"spreadsheet.addColumnRight": string;
|
|
36
|
-
"spreadsheet.deleteRow": string;
|
|
37
|
-
"spreadsheet.deleteColumn": string;
|
|
38
|
-
"spreadsheet.openFile": string;
|
|
39
|
-
"spreadsheet.exportToExcel": string;
|
|
40
|
-
"spreadsheet.textWrap": string;
|
|
41
|
-
"spreadsheet.gridLines": string;
|
|
42
|
-
"spreadsheet.nameBox": string;
|
|
43
|
-
"spreadsheet.defaultSheetName": string;
|
|
44
|
-
"spreadsheet.home": string;
|
|
45
|
-
"spreadsheet.file": string;
|
|
46
|
-
"spreadsheet.insert": string;
|
|
47
|
-
"spreadsheet.addNewSheet": string;
|
|
48
|
-
"spreadsheet.formatTab": string;
|
|
49
|
-
"spreadsheet.modifyMerged": string;
|
|
50
|
-
"spreadsheet.cannotModifyDisabled": string;
|
|
51
|
-
"spreadsheet.openUnsupported": string;
|
|
52
|
-
"spreadsheet.duplicateSheetName": string;
|
|
53
|
-
"spreadsheet.error": string;
|
|
54
|
-
"spreadsheet.ok": string;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* @hidden
|
|
58
|
-
*/
|
|
59
|
-
export declare const keys: {
|
|
60
|
-
bold: string;
|
|
61
|
-
italic: string;
|
|
62
|
-
underline: string;
|
|
63
|
-
undo: string;
|
|
64
|
-
redo: string;
|
|
65
|
-
fontSize: string;
|
|
66
|
-
fontSizeIncrease: string;
|
|
67
|
-
fontSizeDecrease: string;
|
|
68
|
-
fontName: string;
|
|
69
|
-
cleanFormatting: string;
|
|
70
|
-
format: string;
|
|
71
|
-
alignHorizontally: string;
|
|
72
|
-
alignVertically: string;
|
|
73
|
-
align: string;
|
|
74
|
-
alignLeft: string;
|
|
75
|
-
alignRight: string;
|
|
76
|
-
alignCenter: string;
|
|
77
|
-
center: string;
|
|
78
|
-
alignJustify: string;
|
|
79
|
-
justify: string;
|
|
80
|
-
alignTop: string;
|
|
81
|
-
alignMiddle: string;
|
|
82
|
-
alignBottom: string;
|
|
83
|
-
increaseDecimal: string;
|
|
84
|
-
decreaseDecimal: string;
|
|
85
|
-
textColor: string;
|
|
86
|
-
background: string;
|
|
87
|
-
addRowAbove: string;
|
|
88
|
-
addRowBelow: string;
|
|
89
|
-
addColumnLeft: string;
|
|
90
|
-
addColumnRight: string;
|
|
91
|
-
deleteRow: string;
|
|
92
|
-
deleteColumn: string;
|
|
93
|
-
open: string;
|
|
94
|
-
exportToExcel: string;
|
|
95
|
-
textWrap: string;
|
|
96
|
-
gridLines: string;
|
|
97
|
-
nameBox: string;
|
|
98
|
-
defaultSheetName: string;
|
|
99
|
-
file: string;
|
|
100
|
-
home: string;
|
|
101
|
-
insert: string;
|
|
102
|
-
addNewSheet: string;
|
|
103
|
-
error: string;
|
|
104
|
-
ok: string;
|
|
105
|
-
modifyMerged: string;
|
|
106
|
-
cannotModifyDisabled: string;
|
|
107
|
-
openUnsupported: string;
|
|
108
|
-
duplicateSheetName: string;
|
|
109
|
-
formatTab: string;
|
|
110
|
-
};
|
package/dist/es/messages.js
DELETED
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
const bold = 'spreadsheet.bold';
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
const italic = 'spreadsheet.italic';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
const underline = 'spreadsheet.underline';
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
const open = 'spreadsheet.openFile';
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
const textColor = 'spreadsheet.textColor';
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
const background = 'spreadsheet.background';
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
const addRowAbove = 'spreadsheet.addRowAbove';
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
const addRowBelow = 'spreadsheet.addRowBelow';
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
const addColumnLeft = 'spreadsheet.addColumnLeft';
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
const addColumnRight = 'spreadsheet.addColumnRight';
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
const deleteRow = 'spreadsheet.deleteRow';
|
|
45
|
-
/**
|
|
46
|
-
* @hidden
|
|
47
|
-
*/
|
|
48
|
-
const deleteColumn = 'spreadsheet.deleteColumn';
|
|
49
|
-
/**
|
|
50
|
-
* @hidden
|
|
51
|
-
*/
|
|
52
|
-
const undo = 'spreadsheet.undo';
|
|
53
|
-
/**
|
|
54
|
-
* @hidden
|
|
55
|
-
*/
|
|
56
|
-
const redo = 'spreadsheet.redo';
|
|
57
|
-
/**
|
|
58
|
-
* @hidden
|
|
59
|
-
*/
|
|
60
|
-
const fontSize = 'spreadsheet.fontSize';
|
|
61
|
-
/**
|
|
62
|
-
* @hidden
|
|
63
|
-
*/
|
|
64
|
-
const fontSizeIncrease = 'spreadsheet.fontSizeIncrease';
|
|
65
|
-
/**
|
|
66
|
-
* @hidden
|
|
67
|
-
*/
|
|
68
|
-
const fontSizeDecrease = 'spreadsheet.fontSizeDecrease';
|
|
69
|
-
/**
|
|
70
|
-
* @hidden
|
|
71
|
-
*/
|
|
72
|
-
const fontName = 'spreadsheet.fontName';
|
|
73
|
-
/**
|
|
74
|
-
* @hidden
|
|
75
|
-
*/
|
|
76
|
-
const cleanFormatting = 'spreadsheet.cleanFormatting';
|
|
77
|
-
/**
|
|
78
|
-
* @hidden
|
|
79
|
-
*/
|
|
80
|
-
const format = 'spreadsheet.format';
|
|
81
|
-
/**
|
|
82
|
-
* @hidden
|
|
83
|
-
*/
|
|
84
|
-
const alignHorizontally = 'spreadsheet.alignHorizontally';
|
|
85
|
-
/**
|
|
86
|
-
* @hidden
|
|
87
|
-
*/
|
|
88
|
-
const alignVertically = 'spreadsheet.alignVertically';
|
|
89
|
-
/**
|
|
90
|
-
* @hidden
|
|
91
|
-
*/
|
|
92
|
-
const align = 'spreadsheet.align';
|
|
93
|
-
/**
|
|
94
|
-
* @hidden
|
|
95
|
-
*/
|
|
96
|
-
const alignLeft = 'spreadsheet.alignLeft';
|
|
97
|
-
/**
|
|
98
|
-
* @hidden
|
|
99
|
-
*/
|
|
100
|
-
const alignRight = 'spreadsheet.alignRight';
|
|
101
|
-
/**
|
|
102
|
-
* @hidden
|
|
103
|
-
*/
|
|
104
|
-
const alignCenter = 'spreadsheet.alignCenter';
|
|
105
|
-
/**
|
|
106
|
-
* @hidden
|
|
107
|
-
*/
|
|
108
|
-
const center = 'spreadsheet.center';
|
|
109
|
-
/**
|
|
110
|
-
* @hidden
|
|
111
|
-
*/
|
|
112
|
-
const alignJustify = 'spreadsheet.alignJustify';
|
|
113
|
-
/**
|
|
114
|
-
* @hidden
|
|
115
|
-
*/
|
|
116
|
-
const justify = 'spreadsheet.justify';
|
|
117
|
-
/**
|
|
118
|
-
* @hidden
|
|
119
|
-
*/
|
|
120
|
-
const alignTop = 'spreadsheet.alignTop';
|
|
121
|
-
/**
|
|
122
|
-
* @hidden
|
|
123
|
-
*/
|
|
124
|
-
const alignMiddle = 'spreadsheet.alignMiddle';
|
|
125
|
-
/**
|
|
126
|
-
* @hidden
|
|
127
|
-
*/
|
|
128
|
-
const alignBottom = 'spreadsheet.alignBottom';
|
|
129
|
-
/**
|
|
130
|
-
* @hidden
|
|
131
|
-
*/
|
|
132
|
-
const increaseDecimal = 'spreadsheet.increaseDecimal';
|
|
133
|
-
/**
|
|
134
|
-
* @hidden
|
|
135
|
-
*/
|
|
136
|
-
const decreaseDecimal = 'spreadsheet.decreaseDecimal';
|
|
137
|
-
/**
|
|
138
|
-
* @hidden
|
|
139
|
-
*/
|
|
140
|
-
const textWrap = 'spreadsheet.textWrap';
|
|
141
|
-
/**
|
|
142
|
-
* @hidden
|
|
143
|
-
*/
|
|
144
|
-
const gridLines = 'spreadsheet.gridLines';
|
|
145
|
-
/**
|
|
146
|
-
* @hidden
|
|
147
|
-
*/
|
|
148
|
-
const exportToExcel = 'spreadsheet.exportToExcel';
|
|
149
|
-
/**
|
|
150
|
-
* @hidden
|
|
151
|
-
*/
|
|
152
|
-
const nameBox = 'spreadsheet.nameBox';
|
|
153
|
-
/**
|
|
154
|
-
* @hidden
|
|
155
|
-
*/
|
|
156
|
-
const defaultSheetName = 'spreadsheet.defaultSheetName';
|
|
157
|
-
/**
|
|
158
|
-
* @hidden
|
|
159
|
-
*/
|
|
160
|
-
const home = 'spreadsheet.home';
|
|
161
|
-
/**
|
|
162
|
-
* @hidden
|
|
163
|
-
*/
|
|
164
|
-
const file = 'spreadsheet.file';
|
|
165
|
-
/**
|
|
166
|
-
* @hidden
|
|
167
|
-
*/
|
|
168
|
-
const insert = 'spreadsheet.insert';
|
|
169
|
-
/**
|
|
170
|
-
* @hidden
|
|
171
|
-
*/
|
|
172
|
-
const formatTab = 'spreadsheet.formatTab';
|
|
173
|
-
/**
|
|
174
|
-
* @hidden
|
|
175
|
-
*/
|
|
176
|
-
const addNewSheet = 'spreadsheet.addNewSheet';
|
|
177
|
-
/**
|
|
178
|
-
* @hidden
|
|
179
|
-
*/
|
|
180
|
-
const error = 'spreadsheet.error';
|
|
181
|
-
/**
|
|
182
|
-
* @hidden
|
|
183
|
-
*/
|
|
184
|
-
const ok = 'spreadsheet.ok';
|
|
185
|
-
/**
|
|
186
|
-
* @hidden
|
|
187
|
-
*/
|
|
188
|
-
const modifyMerged = 'spreadsheet.modifyMerged';
|
|
189
|
-
/**
|
|
190
|
-
* @hidden
|
|
191
|
-
*/
|
|
192
|
-
const cannotModifyDisabled = 'spreadsheet.cannotModifyDisabled';
|
|
193
|
-
/**
|
|
194
|
-
* @hidden
|
|
195
|
-
*/
|
|
196
|
-
const openUnsupported = 'spreadsheet.openUnsupported';
|
|
197
|
-
/**
|
|
198
|
-
* @hidden
|
|
199
|
-
*/
|
|
200
|
-
const duplicateSheetName = 'spreadsheet.duplicateSheetName';
|
|
201
|
-
/**
|
|
202
|
-
* @hidden
|
|
203
|
-
*/
|
|
204
|
-
export const messages = {
|
|
205
|
-
[bold]: 'Bold',
|
|
206
|
-
[italic]: 'Italic',
|
|
207
|
-
[underline]: 'Underline',
|
|
208
|
-
[undo]: 'Undo',
|
|
209
|
-
[redo]: 'Redo',
|
|
210
|
-
[fontSize]: 'Font size',
|
|
211
|
-
[fontSizeIncrease]: 'Increase Font size',
|
|
212
|
-
[fontSizeDecrease]: 'Decrease Font size',
|
|
213
|
-
[fontName]: 'Font',
|
|
214
|
-
[cleanFormatting]: 'Clean formatting',
|
|
215
|
-
[format]: 'Custom format...',
|
|
216
|
-
[alignHorizontally]: 'Align horizontally',
|
|
217
|
-
[alignVertically]: 'Align vertically',
|
|
218
|
-
[align]: 'Align',
|
|
219
|
-
[alignLeft]: 'Align left',
|
|
220
|
-
[alignRight]: 'Align right',
|
|
221
|
-
[alignCenter]: 'Align center',
|
|
222
|
-
[alignJustify]: 'Align justify',
|
|
223
|
-
[center]: 'Center',
|
|
224
|
-
[justify]: 'Justify',
|
|
225
|
-
[alignTop]: 'Align top',
|
|
226
|
-
[alignMiddle]: 'Align middle',
|
|
227
|
-
[alignBottom]: 'Align bottom',
|
|
228
|
-
[increaseDecimal]: 'Increase decimal',
|
|
229
|
-
[decreaseDecimal]: 'Decrease decimal',
|
|
230
|
-
[textColor]: 'Text Color',
|
|
231
|
-
[background]: 'Background color',
|
|
232
|
-
[addRowAbove]: 'Add row above',
|
|
233
|
-
[addRowBelow]: 'Add row below',
|
|
234
|
-
[addColumnLeft]: 'Add column left',
|
|
235
|
-
[addColumnRight]: 'Add column right',
|
|
236
|
-
[deleteRow]: 'Delete row',
|
|
237
|
-
[deleteColumn]: 'Delete column',
|
|
238
|
-
[open]: 'Open...',
|
|
239
|
-
[exportToExcel]: 'Export to Excel',
|
|
240
|
-
[textWrap]: 'Text Wrap',
|
|
241
|
-
[gridLines]: 'Toggle gridlines',
|
|
242
|
-
[nameBox]: 'Name Box',
|
|
243
|
-
[defaultSheetName]: 'Sheet',
|
|
244
|
-
[home]: 'Home',
|
|
245
|
-
[file]: 'File',
|
|
246
|
-
[insert]: 'Insert',
|
|
247
|
-
[addNewSheet]: 'Add new sheet',
|
|
248
|
-
[formatTab]: 'Format',
|
|
249
|
-
[modifyMerged]: 'Cannot change part of a merged cell.',
|
|
250
|
-
[cannotModifyDisabled]: 'Cannot modify disabled cells.',
|
|
251
|
-
[openUnsupported]: 'Unsupported format. Please select an .xlsx file.',
|
|
252
|
-
[duplicateSheetName]: 'There is an existing sheet with this name. Please enter another name.',
|
|
253
|
-
[error]: 'Error',
|
|
254
|
-
[ok]: 'OK'
|
|
255
|
-
};
|
|
256
|
-
/**
|
|
257
|
-
* @hidden
|
|
258
|
-
*/
|
|
259
|
-
export const keys = {
|
|
260
|
-
bold,
|
|
261
|
-
italic,
|
|
262
|
-
underline,
|
|
263
|
-
undo,
|
|
264
|
-
redo,
|
|
265
|
-
fontSize,
|
|
266
|
-
fontSizeIncrease,
|
|
267
|
-
fontSizeDecrease,
|
|
268
|
-
fontName,
|
|
269
|
-
cleanFormatting,
|
|
270
|
-
format,
|
|
271
|
-
alignHorizontally,
|
|
272
|
-
alignVertically,
|
|
273
|
-
align,
|
|
274
|
-
alignLeft,
|
|
275
|
-
alignRight,
|
|
276
|
-
alignCenter,
|
|
277
|
-
center,
|
|
278
|
-
alignJustify,
|
|
279
|
-
justify,
|
|
280
|
-
alignTop,
|
|
281
|
-
alignMiddle,
|
|
282
|
-
alignBottom,
|
|
283
|
-
increaseDecimal,
|
|
284
|
-
decreaseDecimal,
|
|
285
|
-
textColor,
|
|
286
|
-
background,
|
|
287
|
-
addRowAbove,
|
|
288
|
-
addRowBelow,
|
|
289
|
-
addColumnLeft,
|
|
290
|
-
addColumnRight,
|
|
291
|
-
deleteRow,
|
|
292
|
-
deleteColumn,
|
|
293
|
-
open,
|
|
294
|
-
exportToExcel,
|
|
295
|
-
textWrap,
|
|
296
|
-
gridLines,
|
|
297
|
-
nameBox,
|
|
298
|
-
defaultSheetName,
|
|
299
|
-
file,
|
|
300
|
-
home,
|
|
301
|
-
insert,
|
|
302
|
-
addNewSheet,
|
|
303
|
-
error,
|
|
304
|
-
ok,
|
|
305
|
-
modifyMerged,
|
|
306
|
-
cannotModifyDisabled,
|
|
307
|
-
openUnsupported,
|
|
308
|
-
duplicateSheetName,
|
|
309
|
-
formatTab
|
|
310
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
export const packageMetadata = {
|
|
5
|
-
name: '@progress/kendo-react-spreadsheet',
|
|
6
|
-
productName: 'KendoReact',
|
|
7
|
-
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate: 1700065698,
|
|
9
|
-
version: '',
|
|
10
|
-
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
11
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SpreadsheetToolProps } from './utils';
|
|
3
|
-
/**
|
|
4
|
-
* The props of the IncreaseDecimal tool component.
|
|
5
|
-
*/
|
|
6
|
-
export interface IncreaseDecimalProps extends SpreadsheetToolProps {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* The IncreaseDecimal tool component.
|
|
10
|
-
*/
|
|
11
|
-
export declare const IncreaseDecimal: React.FunctionComponent<IncreaseDecimalProps>;
|
|
12
|
-
/**
|
|
13
|
-
* The props of the DecreaseDecimal tool component.
|
|
14
|
-
*/
|
|
15
|
-
export interface DecreaseDecimalProps extends SpreadsheetToolProps {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* The DecreaseDecimal tool component.
|
|
19
|
-
*/
|
|
20
|
-
export declare const DecreaseDecimal: React.FunctionComponent<DecreaseDecimalProps>;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Button } from '@progress/kendo-react-buttons';
|
|
3
|
-
import { useLocalization } from '@progress/kendo-react-intl';
|
|
4
|
-
import { messages, keys } from '../messages';
|
|
5
|
-
import { decimalIncreaseIcon, decimalDecreaseIcon } from '@progress/kendo-svg-icons';
|
|
6
|
-
const adjustDecimalsTool = (settings) => {
|
|
7
|
-
const tool = props => {
|
|
8
|
-
const { icon, svgIcon, titleKey, value } = settings;
|
|
9
|
-
const { spreadsheetRef } = props;
|
|
10
|
-
const onClick = React.useCallback(() => {
|
|
11
|
-
if (spreadsheetRef.current) {
|
|
12
|
-
const options = {
|
|
13
|
-
command: 'AdjustDecimalsCommand', options: { value }
|
|
14
|
-
};
|
|
15
|
-
spreadsheetRef.current.executeCommand(options);
|
|
16
|
-
}
|
|
17
|
-
}, []);
|
|
18
|
-
return (React.createElement(Button, { type: "button", icon: icon, svgIcon: svgIcon, fillMode: "flat", onClick: onClick, title: useLocalization().toLanguageString(titleKey, messages[titleKey]) }));
|
|
19
|
-
};
|
|
20
|
-
return tool;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* The IncreaseDecimal tool component.
|
|
24
|
-
*/
|
|
25
|
-
export const IncreaseDecimal = adjustDecimalsTool({
|
|
26
|
-
icon: decimalIncreaseIcon.name,
|
|
27
|
-
svgIcon: decimalIncreaseIcon,
|
|
28
|
-
value: 1,
|
|
29
|
-
titleKey: keys.increaseDecimal
|
|
30
|
-
});
|
|
31
|
-
/**
|
|
32
|
-
* The DecreaseDecimal tool component.
|
|
33
|
-
*/
|
|
34
|
-
export const DecreaseDecimal = adjustDecimalsTool({
|
|
35
|
-
icon: decimalDecreaseIcon.name,
|
|
36
|
-
svgIcon: decimalDecreaseIcon,
|
|
37
|
-
value: -1,
|
|
38
|
-
titleKey: keys.decreaseDecimal
|
|
39
|
-
});
|