@progress/kendo-react-spreadsheet 7.2.4-develop.3 → 7.3.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.js +8 -0
- package/FormulaInput.mjs +109 -0
- package/List.js +8 -0
- package/List.mjs +34 -0
- package/NameBox.js +8 -0
- package/NameBox.mjs +109 -0
- package/SheetsBar.js +8 -0
- package/SheetsBar.mjs +211 -0
- package/Spreadsheet.js +8 -0
- package/Spreadsheet.mjs +227 -0
- package/dist/cdn/js/kendo-react-spreadsheet.js +8 -5
- package/index.d.mts +715 -5
- package/index.d.ts +715 -8
- package/index.js +8 -5
- package/index.mjs +77 -1355
- package/messages.js +8 -0
- package/messages.mjs +115 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +11 -11
- package/tools/adjustDecimals.js +8 -0
- package/tools/adjustDecimals.mjs +49 -0
- package/tools/align.js +8 -0
- package/tools/align.mjs +95 -0
- package/tools/backgroundColor.js +8 -0
- package/tools/backgroundColor.mjs +23 -0
- package/tools/bold.js +8 -0
- package/tools/bold.mjs +16 -0
- package/tools/cleanFormat.js +8 -0
- package/tools/cleanFormat.mjs +32 -0
- package/tools/defaultTools.js +8 -0
- package/tools/defaultTools.mjs +77 -0
- package/tools/export.js +8 -0
- package/tools/export.mjs +37 -0
- package/tools/fontFamily.js +8 -0
- package/tools/fontFamily.mjs +40 -0
- package/tools/fontSize.js +8 -0
- package/tools/fontSize.mjs +89 -0
- package/tools/format.js +8 -0
- package/tools/format.mjs +45 -0
- package/tools/gridLines.js +8 -0
- package/tools/gridLines.mjs +44 -0
- package/tools/italic.js +8 -0
- package/tools/italic.mjs +16 -0
- package/tools/open.js +8 -0
- package/tools/open.mjs +55 -0
- package/tools/redo.js +8 -0
- package/tools/redo.mjs +16 -0
- package/tools/tableTools.js +8 -0
- package/tools/tableTools.mjs +96 -0
- package/tools/textColor.js +8 -0
- package/tools/textColor.mjs +23 -0
- package/tools/textWrap.js +8 -0
- package/tools/textWrap.mjs +44 -0
- package/tools/underline.js +8 -0
- package/tools/underline.mjs +16 -0
- package/tools/undo.js +8 -0
- package/tools/undo.mjs +16 -0
- package/tools/utils.js +8 -0
- package/tools/utils.mjs +97 -0
- package/FormulaInput.d.ts +0 -9
- package/List.d.ts +0 -9
- package/NameBox.d.ts +0 -9
- package/SheetsBar.d.ts +0 -8
- package/Spreadsheet.d.ts +0 -51
- package/SpreadsheetProps.d.ts +0 -192
- package/messages.d.ts +0 -114
- package/package-metadata.d.ts +0 -9
- package/tools/adjustDecimals.d.ts +0 -24
- package/tools/align.d.ts +0 -48
- package/tools/backgroundColor.d.ts +0 -14
- package/tools/bold.d.ts +0 -14
- package/tools/cleanFormat.d.ts +0 -15
- package/tools/defaultTools.d.ts +0 -9
- package/tools/export.d.ts +0 -15
- package/tools/fontFamily.d.ts +0 -15
- package/tools/fontSize.d.ts +0 -43
- package/tools/format.d.ts +0 -15
- package/tools/gridLines.d.ts +0 -19
- package/tools/index.d.ts +0 -23
- package/tools/italic.d.ts +0 -14
- package/tools/open.d.ts +0 -15
- package/tools/redo.d.ts +0 -14
- package/tools/tableTools.d.ts +0 -68
- package/tools/textColor.d.ts +0 -14
- package/tools/textWrap.d.ts +0 -19
- package/tools/underline.d.ts +0 -14
- package/tools/undo.d.ts +0 -14
- package/tools/utils.d.ts +0 -95
package/tools/utils.mjs
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as r from "react";
|
|
10
|
+
import { Button as v } from "@progress/kendo-react-buttons";
|
|
11
|
+
import { ColorPicker as C } from "@progress/kendo-react-inputs";
|
|
12
|
+
import { useLocalization as s } from "@progress/kendo-react-intl";
|
|
13
|
+
import { messages as m } from "../messages.mjs";
|
|
14
|
+
const x = ["Arial", "Courier New", "Georgia", "Times New Roman", "Trebuchet MS", "Verdana"], _ = "Arial", b = [8, 9, 10, 11, 12, 13, 14, 16, 18, 20, 22, 24, 26, 28, 36, 48, 72], h = 12, A = [
|
|
15
|
+
{ text: "Automatic", value: null },
|
|
16
|
+
{ text: "Text", value: "@" },
|
|
17
|
+
{ text: "Number", value: "#,0.00" },
|
|
18
|
+
{ text: "Percent", value: "0.00%" },
|
|
19
|
+
{ text: "Financial", value: '_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)' },
|
|
20
|
+
{ text: "Currency", value: "$#,##0.00;[Red]$#,##0.00" },
|
|
21
|
+
{ text: "Date", value: "m/d/yyyy" },
|
|
22
|
+
{ text: "Time", value: "h:mm:ss AM/PM" },
|
|
23
|
+
{ text: "Date time", value: "m/d/yyyy h:mm" },
|
|
24
|
+
{ text: "Duration", value: "[h]:mm:ss" }
|
|
25
|
+
], F = (e) => (l) => {
|
|
26
|
+
const { property: t, icon: o, svgIcon: c, titleKey: a } = e, { spreadsheetRef: u, value: n } = l, i = r.useCallback(() => {
|
|
27
|
+
if (u.current) {
|
|
28
|
+
const y = {
|
|
29
|
+
command: "PropertyChangeCommand",
|
|
30
|
+
options: { property: t, value: !n }
|
|
31
|
+
};
|
|
32
|
+
u.current.executeCommand(y);
|
|
33
|
+
}
|
|
34
|
+
}, [n]);
|
|
35
|
+
return /* @__PURE__ */ r.createElement(
|
|
36
|
+
v,
|
|
37
|
+
{
|
|
38
|
+
type: "button",
|
|
39
|
+
icon: o,
|
|
40
|
+
svgIcon: c,
|
|
41
|
+
fillMode: "flat",
|
|
42
|
+
togglable: !0,
|
|
43
|
+
onClick: i,
|
|
44
|
+
selected: n,
|
|
45
|
+
title: s().toLanguageString(a, m[a])
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}, S = (e) => (l) => {
|
|
49
|
+
const { property: t, titleKey: o, ...c } = e, { spreadsheetRef: a, value: u } = l, n = r.useCallback(
|
|
50
|
+
(i) => {
|
|
51
|
+
if (a.current) {
|
|
52
|
+
const d = {
|
|
53
|
+
command: "PropertyChangeCommand",
|
|
54
|
+
options: { property: t, value: i.value || null }
|
|
55
|
+
};
|
|
56
|
+
a.current.executeCommand(d);
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
[t]
|
|
60
|
+
);
|
|
61
|
+
return /* @__PURE__ */ r.createElement(
|
|
62
|
+
C,
|
|
63
|
+
{
|
|
64
|
+
onChange: n,
|
|
65
|
+
onActiveColorClick: n,
|
|
66
|
+
fillMode: "flat",
|
|
67
|
+
...c,
|
|
68
|
+
title: s().toLanguageString(o, m[o]),
|
|
69
|
+
value: u
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
}, M = (e) => (l) => {
|
|
73
|
+
const { spreadsheetRef: t } = l, o = r.useCallback(() => {
|
|
74
|
+
t.current && t.current.workbook.undoRedoStack[e.action]();
|
|
75
|
+
}, []);
|
|
76
|
+
return /* @__PURE__ */ r.createElement(
|
|
77
|
+
v,
|
|
78
|
+
{
|
|
79
|
+
type: "button",
|
|
80
|
+
icon: e.icon,
|
|
81
|
+
svgIcon: e.svgIcon,
|
|
82
|
+
fillMode: "flat",
|
|
83
|
+
title: s().toLanguageString(e.titleKey, m[e.titleKey]),
|
|
84
|
+
onClick: o
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
};
|
|
88
|
+
export {
|
|
89
|
+
S as ColorTool,
|
|
90
|
+
_ as DEFAULT_FONT_FAMILY,
|
|
91
|
+
h as DEFAULT_FONT_SIZE,
|
|
92
|
+
x as FONT_FAMILIES,
|
|
93
|
+
b as FONT_SIZES,
|
|
94
|
+
A as FORMATS,
|
|
95
|
+
F as PropertyChangeTool,
|
|
96
|
+
M as UndoRedo
|
|
97
|
+
};
|
package/FormulaInput.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const FormulaInput: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>;
|
package/List.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const List: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>;
|
package/NameBox.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const NameBox: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>;
|
package/SheetsBar.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare const SheetsBar: (props: any) => import("react/jsx-runtime").JSX.Element;
|
package/Spreadsheet.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { SpreadsheetProps, SpreadsheetHandle } from './SpreadsheetProps';
|
|
7
|
-
/**
|
|
8
|
-
* Represents the [KendoReact Spreadsheet component]({% slug overview_spreadsheet %}).
|
|
9
|
-
*
|
|
10
|
-
* Accepts properties of type [SpreadsheetProps]({% slug api_spreadsheet_spreadsheetprops %}).
|
|
11
|
-
* Obtaining the ref will give you an object of type [SpreadsheetHandle]({% slug api_spreadsheet_spreadsheethandle %}).
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```jsx
|
|
15
|
-
* const sheets = [
|
|
16
|
-
* {
|
|
17
|
-
* name: 'Food Order',
|
|
18
|
-
* rows: [
|
|
19
|
-
* {
|
|
20
|
-
* cells: [
|
|
21
|
-
* {
|
|
22
|
-
* value: 216321,
|
|
23
|
-
* textAlign: 'center',
|
|
24
|
-
* },
|
|
25
|
-
* ],
|
|
26
|
-
* },
|
|
27
|
-
* ],
|
|
28
|
-
* columns: [
|
|
29
|
-
* {
|
|
30
|
-
* width: 100,
|
|
31
|
-
* },
|
|
32
|
-
* ],
|
|
33
|
-
* },
|
|
34
|
-
* ];
|
|
35
|
-
* const App = () => {
|
|
36
|
-
* return (
|
|
37
|
-
* <Spreadsheet
|
|
38
|
-
* style={{
|
|
39
|
-
* width: "100%",
|
|
40
|
-
* height: 680,
|
|
41
|
-
* }}
|
|
42
|
-
* defaultProps={{
|
|
43
|
-
* sheets,
|
|
44
|
-
* }}
|
|
45
|
-
* />
|
|
46
|
-
* );
|
|
47
|
-
* };
|
|
48
|
-
* ReactDOM.render(<App />, document.querySelector("my-app"));
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
export declare const Spreadsheet: React.ForwardRefExoticComponent<SpreadsheetProps & React.RefAttributes<SpreadsheetHandle | null>>;
|
package/SpreadsheetProps.d.ts
DELETED
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Workbook as OoxmlWorkbook } from '@progress/kendo-ooxml';
|
|
6
|
-
import { type SpreadsheetOptions, SpreadsheetWidget, Range, type DocumentDescriptor, View, Sheet, type ExcelExportSettings, type CellDefaultStyle, type SheetColumn, type SheetRow, type Cell, type CellBorder, type SheetDescriptor, Workbook } from '@progress/kendo-spreadsheet-common';
|
|
7
|
-
export { SpreadsheetWidget, SpreadsheetOptions, Range, DocumentDescriptor, View, Workbook, Sheet, SheetDescriptor, ExcelExportSettings, CellDefaultStyle, SheetColumn, SheetRow, Cell, CellBorder };
|
|
8
|
-
interface SpreadsheetEvent {
|
|
9
|
-
/**
|
|
10
|
-
* The widget instance which fired the event.
|
|
11
|
-
*/
|
|
12
|
-
sender: SpreadsheetWidget;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Represents the `SpreadsheetSelectEvent` object.
|
|
16
|
-
*/
|
|
17
|
-
export interface SpreadsheetSelectEvent extends SpreadsheetEvent {
|
|
18
|
-
/**
|
|
19
|
-
* The Range that is selected.
|
|
20
|
-
*/
|
|
21
|
-
range: Range;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Represents the `SpreadsheetChangeEvent` object.
|
|
25
|
-
*/
|
|
26
|
-
export interface SpreadsheetChangeEvent extends SpreadsheetEvent, SpreadsheetSelectEvent {
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Represents the `SpreadsheetExcelImportEvent` object.
|
|
30
|
-
*/
|
|
31
|
-
export interface SpreadsheetExcelImportEvent extends SpreadsheetEvent {
|
|
32
|
-
/**
|
|
33
|
-
* The file that is being imported.
|
|
34
|
-
*/
|
|
35
|
-
file: Blob | File;
|
|
36
|
-
/**
|
|
37
|
-
* If invoked, the Spreadsheet will not import the file.
|
|
38
|
-
*/
|
|
39
|
-
preventDefault: Function;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Represents the `SpreadsheetExcelExportEvent` object.
|
|
43
|
-
*/
|
|
44
|
-
export interface SpreadsheetExcelExportEvent extends SpreadsheetEvent {
|
|
45
|
-
/**
|
|
46
|
-
* The array of data items that is used to create the Excel workbook.
|
|
47
|
-
*/
|
|
48
|
-
data: Array<any>;
|
|
49
|
-
/**
|
|
50
|
-
* The Excel workbook configuration object.
|
|
51
|
-
* Modifications of the workbook will reflect in the output Excel document.
|
|
52
|
-
*/
|
|
53
|
-
workbook: OoxmlWorkbook;
|
|
54
|
-
/**
|
|
55
|
-
* If invoked, the Spreadsheet will not save the generated file.
|
|
56
|
-
*/
|
|
57
|
-
preventDefault: Function;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Represents the Spreadsheet tab configuration object.
|
|
61
|
-
*/
|
|
62
|
-
export interface SpreadsheetTab {
|
|
63
|
-
/**
|
|
64
|
-
* The text of the tab.
|
|
65
|
-
*/
|
|
66
|
-
text?: string;
|
|
67
|
-
/**
|
|
68
|
-
* The localization key of the tab's text.
|
|
69
|
-
*/
|
|
70
|
-
textKey?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Indicates if the tab to be selected initially.
|
|
73
|
-
*/
|
|
74
|
-
selected?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* The toolbar configuration in the tab content.
|
|
77
|
-
*/
|
|
78
|
-
tools: (React.ComponentType<any> | React.ComponentType<any>[])[];
|
|
79
|
-
}
|
|
80
|
-
export interface SpreadsheetProps {
|
|
81
|
-
/**
|
|
82
|
-
* Sets additional classes to the Spreadsheet.
|
|
83
|
-
*/
|
|
84
|
-
className?: string;
|
|
85
|
-
/**
|
|
86
|
-
* Represents the default props of the Spreadsheet.
|
|
87
|
-
*/
|
|
88
|
-
defaultProps?: SpreadsheetOptions;
|
|
89
|
-
/**
|
|
90
|
-
* A Boolean value which indicates if the toolbar will be displayed. It also allows to customize the tabs content
|
|
91
|
-
*
|
|
92
|
-
* @default true
|
|
93
|
-
*/
|
|
94
|
-
toolbar?: boolean | SpreadsheetTab[];
|
|
95
|
-
/**
|
|
96
|
-
* Specifies the styles that will be applied to the wrapping element.
|
|
97
|
-
*/
|
|
98
|
-
style?: React.CSSProperties;
|
|
99
|
-
/**
|
|
100
|
-
* Triggered when the Spreadsheet selection is changed.
|
|
101
|
-
*/
|
|
102
|
-
onSelect?: (event: SpreadsheetSelectEvent) => void;
|
|
103
|
-
/**
|
|
104
|
-
* Triggered when a value in the Spreadsheet has been changed.
|
|
105
|
-
*/
|
|
106
|
-
onChange?: (event: SpreadsheetChangeEvent) => void;
|
|
107
|
-
/**
|
|
108
|
-
* Triggered when the range format is changed from the UI.
|
|
109
|
-
*/
|
|
110
|
-
onChangeFormat?: (event: SpreadsheetChangeEvent) => void;
|
|
111
|
-
/**
|
|
112
|
-
* Fired when the user clicks the Open toolbar button.
|
|
113
|
-
*/
|
|
114
|
-
onExcelImport?: (event: SpreadsheetExcelImportEvent) => void;
|
|
115
|
-
/**
|
|
116
|
-
* Fires when the user clicks the Export to Excel toolbar button.
|
|
117
|
-
*/
|
|
118
|
-
onExcelExport?: (event: SpreadsheetExcelExportEvent) => void;
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Represents the Spreadsheet handle object.
|
|
122
|
-
*/
|
|
123
|
-
export interface SpreadsheetHandle {
|
|
124
|
-
/**
|
|
125
|
-
* The current element or `null` if there is no one.
|
|
126
|
-
*/
|
|
127
|
-
element: HTMLDivElement | null;
|
|
128
|
-
/**
|
|
129
|
-
* The props values of the Spreadsheet.
|
|
130
|
-
*/
|
|
131
|
-
props: SpreadsheetProps;
|
|
132
|
-
/**
|
|
133
|
-
* Represents the SpreadsheetWidget object, holding the core functionality of the Spreadsheet.
|
|
134
|
-
*/
|
|
135
|
-
instance: SpreadsheetWidget | null;
|
|
136
|
-
/**
|
|
137
|
-
* Returns the `View` object of the Spreadsheet.
|
|
138
|
-
*/
|
|
139
|
-
get view(): View;
|
|
140
|
-
/**
|
|
141
|
-
* Returns the `Workbook` object of the Spreadsheet.
|
|
142
|
-
*/
|
|
143
|
-
get workbook(): Workbook;
|
|
144
|
-
/**
|
|
145
|
-
* Executes the passed command against the selected cell/range.
|
|
146
|
-
*
|
|
147
|
-
* @param options An object containing the command name and the required by it options.
|
|
148
|
-
*/
|
|
149
|
-
executeCommand(options: any): void;
|
|
150
|
-
/**
|
|
151
|
-
* Loads the workbook data from an object with the format that is defined in the configuration.
|
|
152
|
-
*
|
|
153
|
-
* Note: All existing sheets and their data will be lost.
|
|
154
|
-
*
|
|
155
|
-
* @param json The object from where data will be loaded. This has to be the deserialized object, not the JSON string.
|
|
156
|
-
*/
|
|
157
|
-
fromJSON(json: DocumentDescriptor): void;
|
|
158
|
-
/**
|
|
159
|
-
* Serializes the workbook.
|
|
160
|
-
*/
|
|
161
|
-
toJSON(): DocumentDescriptor;
|
|
162
|
-
/**
|
|
163
|
-
* Serializes the workbook. This method does not return the JSON, but a Promise object which will yield the JSON data when it is available.
|
|
164
|
-
* 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).
|
|
165
|
-
*/
|
|
166
|
-
saveJSON(): Promise<DocumentDescriptor>;
|
|
167
|
-
/**
|
|
168
|
-
* Clears the Spreadsheet and populates it with data from the specified Excel (.xlsx) file.
|
|
169
|
-
*
|
|
170
|
-
* @param blob The file or blob that is usually obtained through a file input.
|
|
171
|
-
*/
|
|
172
|
-
fromFile(file: File | Blob): void;
|
|
173
|
-
/**
|
|
174
|
-
* Initiates the Excel export. Also fires the excelExport event.
|
|
175
|
-
*
|
|
176
|
-
* Note: Calling this method may trigger the built-in popup blocker of the browser.
|
|
177
|
-
* To avoid that, always call it as a response to an end-user action, for example, a button click.
|
|
178
|
-
*/
|
|
179
|
-
saveAsExcel(options: any): void;
|
|
180
|
-
/**
|
|
181
|
-
* Gets or sets the active sheet.
|
|
182
|
-
*/
|
|
183
|
-
activeSheet(sheet?: Sheet): Sheet | void;
|
|
184
|
-
/**
|
|
185
|
-
* Returns an array with the sheets in the workbook.
|
|
186
|
-
*/
|
|
187
|
-
sheets(): Sheet[];
|
|
188
|
-
/**
|
|
189
|
-
* Re-renders all data in the Spreadsheet.
|
|
190
|
-
*/
|
|
191
|
-
refresh(): void;
|
|
192
|
-
}
|
package/messages.d.ts
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare const messages: {
|
|
9
|
-
"spreadsheet.bold": string;
|
|
10
|
-
"spreadsheet.italic": string;
|
|
11
|
-
"spreadsheet.underline": string;
|
|
12
|
-
"spreadsheet.undo": string;
|
|
13
|
-
"spreadsheet.redo": string;
|
|
14
|
-
"spreadsheet.fontSize": string;
|
|
15
|
-
"spreadsheet.fontSizeIncrease": string;
|
|
16
|
-
"spreadsheet.fontSizeDecrease": string;
|
|
17
|
-
"spreadsheet.fontName": string;
|
|
18
|
-
"spreadsheet.cleanFormatting": string;
|
|
19
|
-
"spreadsheet.format": string;
|
|
20
|
-
"spreadsheet.alignHorizontally": string;
|
|
21
|
-
"spreadsheet.alignVertically": string;
|
|
22
|
-
"spreadsheet.align": string;
|
|
23
|
-
"spreadsheet.alignLeft": string;
|
|
24
|
-
"spreadsheet.alignRight": string;
|
|
25
|
-
"spreadsheet.alignCenter": string;
|
|
26
|
-
"spreadsheet.alignJustify": string;
|
|
27
|
-
"spreadsheet.center": string;
|
|
28
|
-
"spreadsheet.justify": string;
|
|
29
|
-
"spreadsheet.alignTop": string;
|
|
30
|
-
"spreadsheet.alignMiddle": string;
|
|
31
|
-
"spreadsheet.alignBottom": string;
|
|
32
|
-
"spreadsheet.increaseDecimal": string;
|
|
33
|
-
"spreadsheet.decreaseDecimal": string;
|
|
34
|
-
"spreadsheet.textColor": string;
|
|
35
|
-
"spreadsheet.background": string;
|
|
36
|
-
"spreadsheet.addRowAbove": string;
|
|
37
|
-
"spreadsheet.addRowBelow": string;
|
|
38
|
-
"spreadsheet.addColumnLeft": string;
|
|
39
|
-
"spreadsheet.addColumnRight": string;
|
|
40
|
-
"spreadsheet.deleteRow": string;
|
|
41
|
-
"spreadsheet.deleteColumn": string;
|
|
42
|
-
"spreadsheet.openFile": string;
|
|
43
|
-
"spreadsheet.exportToExcel": string;
|
|
44
|
-
"spreadsheet.textWrap": string;
|
|
45
|
-
"spreadsheet.gridLines": string;
|
|
46
|
-
"spreadsheet.nameBox": string;
|
|
47
|
-
"spreadsheet.defaultSheetName": string;
|
|
48
|
-
"spreadsheet.home": string;
|
|
49
|
-
"spreadsheet.file": string;
|
|
50
|
-
"spreadsheet.insert": string;
|
|
51
|
-
"spreadsheet.addNewSheet": string;
|
|
52
|
-
"spreadsheet.formatTab": string;
|
|
53
|
-
"spreadsheet.modifyMerged": string;
|
|
54
|
-
"spreadsheet.cannotModifyDisabled": string;
|
|
55
|
-
"spreadsheet.openUnsupported": string;
|
|
56
|
-
"spreadsheet.duplicateSheetName": string;
|
|
57
|
-
"spreadsheet.error": string;
|
|
58
|
-
"spreadsheet.ok": string;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* @hidden
|
|
62
|
-
*/
|
|
63
|
-
export declare const keys: {
|
|
64
|
-
bold: string;
|
|
65
|
-
italic: string;
|
|
66
|
-
underline: string;
|
|
67
|
-
undo: string;
|
|
68
|
-
redo: string;
|
|
69
|
-
fontSize: string;
|
|
70
|
-
fontSizeIncrease: string;
|
|
71
|
-
fontSizeDecrease: string;
|
|
72
|
-
fontName: string;
|
|
73
|
-
cleanFormatting: string;
|
|
74
|
-
format: string;
|
|
75
|
-
alignHorizontally: string;
|
|
76
|
-
alignVertically: string;
|
|
77
|
-
align: string;
|
|
78
|
-
alignLeft: string;
|
|
79
|
-
alignRight: string;
|
|
80
|
-
alignCenter: string;
|
|
81
|
-
center: string;
|
|
82
|
-
alignJustify: string;
|
|
83
|
-
justify: string;
|
|
84
|
-
alignTop: string;
|
|
85
|
-
alignMiddle: string;
|
|
86
|
-
alignBottom: string;
|
|
87
|
-
increaseDecimal: string;
|
|
88
|
-
decreaseDecimal: string;
|
|
89
|
-
textColor: string;
|
|
90
|
-
background: string;
|
|
91
|
-
addRowAbove: string;
|
|
92
|
-
addRowBelow: string;
|
|
93
|
-
addColumnLeft: string;
|
|
94
|
-
addColumnRight: string;
|
|
95
|
-
deleteRow: string;
|
|
96
|
-
deleteColumn: string;
|
|
97
|
-
open: string;
|
|
98
|
-
exportToExcel: string;
|
|
99
|
-
textWrap: string;
|
|
100
|
-
gridLines: string;
|
|
101
|
-
nameBox: string;
|
|
102
|
-
defaultSheetName: string;
|
|
103
|
-
file: string;
|
|
104
|
-
home: string;
|
|
105
|
-
insert: string;
|
|
106
|
-
addNewSheet: string;
|
|
107
|
-
error: string;
|
|
108
|
-
ok: string;
|
|
109
|
-
modifyMerged: string;
|
|
110
|
-
cannotModifyDisabled: string;
|
|
111
|
-
openUnsupported: string;
|
|
112
|
-
duplicateSheetName: string;
|
|
113
|
-
formatTab: string;
|
|
114
|
-
};
|
package/package-metadata.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { PackageMetadata } from '@progress/kendo-licensing';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const packageMetadata: PackageMetadata;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { SpreadsheetToolProps } from './utils';
|
|
7
|
-
/**
|
|
8
|
-
* The props of the IncreaseDecimal tool component.
|
|
9
|
-
*/
|
|
10
|
-
export interface IncreaseDecimalProps extends SpreadsheetToolProps {
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* The IncreaseDecimal tool component.
|
|
14
|
-
*/
|
|
15
|
-
export declare const IncreaseDecimal: React.FunctionComponent<IncreaseDecimalProps>;
|
|
16
|
-
/**
|
|
17
|
-
* The props of the DecreaseDecimal tool component.
|
|
18
|
-
*/
|
|
19
|
-
export interface DecreaseDecimalProps extends SpreadsheetToolProps {
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* The DecreaseDecimal tool component.
|
|
23
|
-
*/
|
|
24
|
-
export declare const DecreaseDecimal: React.FunctionComponent<DecreaseDecimalProps>;
|
package/tools/align.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { SpreadsheetToolProps } from './utils';
|
|
7
|
-
/**
|
|
8
|
-
* The props of the Alignment tool component.
|
|
9
|
-
*/
|
|
10
|
-
export interface AlignmentProps extends SpreadsheetToolProps {
|
|
11
|
-
/**
|
|
12
|
-
* The value of the tool.
|
|
13
|
-
*/
|
|
14
|
-
value: {
|
|
15
|
-
textAlign?: string;
|
|
16
|
-
verticalAlign?: string;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* The Alignment tool component.
|
|
21
|
-
*/
|
|
22
|
-
export declare const Alignment: React.FunctionComponent<AlignmentProps>;
|
|
23
|
-
/**
|
|
24
|
-
* The props of the AlignHorizontally tool component.
|
|
25
|
-
*/
|
|
26
|
-
export interface AlignHorizontallyProps extends SpreadsheetToolProps {
|
|
27
|
-
/**
|
|
28
|
-
* The value of the tool.
|
|
29
|
-
*/
|
|
30
|
-
value: string;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* The props of the AlignVertically tool component.
|
|
34
|
-
*/
|
|
35
|
-
export interface AlignVerticallyProps extends SpreadsheetToolProps {
|
|
36
|
-
/**
|
|
37
|
-
* The value of the tool.
|
|
38
|
-
*/
|
|
39
|
-
value: string;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* The AlignHorizontally tool component.
|
|
43
|
-
*/
|
|
44
|
-
export declare const AlignHorizontally: React.FunctionComponent<AlignHorizontallyProps>;
|
|
45
|
-
/**
|
|
46
|
-
* The AlignVertically tool component.
|
|
47
|
-
*/
|
|
48
|
-
export declare const AlignVertically: React.FunctionComponent<AlignVerticallyProps>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ColorToolProps } from './utils';
|
|
6
|
-
/**
|
|
7
|
-
* The props of the BackgroundColor tool component.
|
|
8
|
-
*/
|
|
9
|
-
export interface BackgroundColorProps extends ColorToolProps {
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* The BackgroundColor tool component.
|
|
13
|
-
*/
|
|
14
|
-
export declare const BackgroundColor: React.FunctionComponent<BackgroundColorProps>;
|
package/tools/bold.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { PropertyChangeToolProps } from './utils';
|
|
6
|
-
/**
|
|
7
|
-
* The props of the Bold tool component.
|
|
8
|
-
*/
|
|
9
|
-
export interface BoldProps extends PropertyChangeToolProps {
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* The Bold tool component.
|
|
13
|
-
*/
|
|
14
|
-
export declare const Bold: React.FunctionComponent<BoldProps>;
|
package/tools/cleanFormat.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { PropertyChangeToolProps } from './utils';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export interface CleanFormattingProps extends PropertyChangeToolProps {
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
export declare const CleanFormatting: React.FunctionComponent<CleanFormattingProps>;
|
package/tools/defaultTools.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { SpreadsheetTab } from '../SpreadsheetProps';
|
|
6
|
-
/**
|
|
7
|
-
* The default toolbar configuration.
|
|
8
|
-
*/
|
|
9
|
-
export declare const defaultTabs: SpreadsheetTab[];
|
package/tools/export.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { SpreadsheetToolProps } from './utils';
|
|
7
|
-
/**
|
|
8
|
-
* The props of the ExcelExport tool component.
|
|
9
|
-
*/
|
|
10
|
-
export interface ExcelExportProps extends SpreadsheetToolProps {
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* The ExcelExport tool component.
|
|
14
|
-
*/
|
|
15
|
-
export declare const ExcelExport: React.FunctionComponent<ExcelExportProps>;
|
package/tools/fontFamily.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { DropDownToolProps } from './utils';
|
|
7
|
-
/**
|
|
8
|
-
* The props of the FontFamily tool component.
|
|
9
|
-
*/
|
|
10
|
-
export interface FontFamilyProps extends DropDownToolProps {
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* The FontFamily tool component.
|
|
14
|
-
*/
|
|
15
|
-
export declare const FontFamily: React.FunctionComponent<FontFamilyProps>;
|