@progress/kendo-react-spreadsheet 5.14.0-dev.202305311028 → 5.14.0-dev.202305312206
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/dist/cdn/js/kendo-react-spreadsheet.js +1 -1
- package/dist/es/Spreadsheet.d.ts +6 -0
- package/dist/es/Spreadsheet.js +6 -0
- package/dist/es/SpreadsheetProps.d.ts +49 -4
- package/dist/es/SpreadsheetProps.js +2 -4
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/tools/align.d.ts +9 -0
- package/dist/es/tools/align.js +3 -0
- package/dist/es/tools/backgroundColor.d.ts +6 -0
- package/dist/es/tools/backgroundColor.js +3 -0
- package/dist/es/tools/bold.d.ts +6 -0
- package/dist/es/tools/bold.js +3 -0
- package/dist/es/tools/defaultTools.d.ts +3 -0
- package/dist/es/tools/defaultTools.js +3 -0
- package/dist/es/tools/export.d.ts +6 -0
- package/dist/es/tools/export.js +3 -0
- package/dist/es/tools/fontFamily.d.ts +6 -0
- package/dist/es/tools/fontFamily.js +3 -0
- package/dist/es/tools/fontSize.d.ts +6 -0
- package/dist/es/tools/fontSize.js +3 -0
- package/dist/es/tools/format.d.ts +6 -0
- package/dist/es/tools/format.js +3 -0
- package/dist/es/tools/gridLines.d.ts +9 -0
- package/dist/es/tools/gridLines.js +3 -0
- package/dist/es/tools/italic.d.ts +6 -0
- package/dist/es/tools/italic.js +3 -0
- package/dist/es/tools/open.d.ts +6 -0
- package/dist/es/tools/open.js +3 -0
- package/dist/es/tools/redo.d.ts +6 -0
- package/dist/es/tools/redo.js +3 -0
- package/dist/es/tools/tableTools.d.ts +36 -0
- package/dist/es/tools/tableTools.js +18 -0
- package/dist/es/tools/textColor.d.ts +6 -0
- package/dist/es/tools/textColor.js +3 -0
- package/dist/es/tools/textWrap.d.ts +9 -0
- package/dist/es/tools/textWrap.js +3 -0
- package/dist/es/tools/underline.d.ts +6 -0
- package/dist/es/tools/underline.js +3 -0
- package/dist/es/tools/undo.d.ts +6 -0
- package/dist/es/tools/undo.js +3 -0
- package/dist/es/tools/utils.d.ts +15 -0
- package/dist/npm/Spreadsheet.d.ts +6 -0
- package/dist/npm/Spreadsheet.js +6 -0
- package/dist/npm/SpreadsheetProps.d.ts +49 -4
- package/dist/npm/SpreadsheetProps.js +1 -3
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/tools/align.d.ts +9 -0
- package/dist/npm/tools/align.js +3 -0
- package/dist/npm/tools/backgroundColor.d.ts +6 -0
- package/dist/npm/tools/backgroundColor.js +3 -0
- package/dist/npm/tools/bold.d.ts +6 -0
- package/dist/npm/tools/bold.js +3 -0
- package/dist/npm/tools/defaultTools.d.ts +3 -0
- package/dist/npm/tools/defaultTools.js +3 -0
- package/dist/npm/tools/export.d.ts +6 -0
- package/dist/npm/tools/export.js +3 -0
- package/dist/npm/tools/fontFamily.d.ts +6 -0
- package/dist/npm/tools/fontFamily.js +3 -0
- package/dist/npm/tools/fontSize.d.ts +6 -0
- package/dist/npm/tools/fontSize.js +3 -0
- package/dist/npm/tools/format.d.ts +6 -0
- package/dist/npm/tools/format.js +3 -0
- package/dist/npm/tools/gridLines.d.ts +9 -0
- package/dist/npm/tools/gridLines.js +3 -0
- package/dist/npm/tools/italic.d.ts +6 -0
- package/dist/npm/tools/italic.js +3 -0
- package/dist/npm/tools/open.d.ts +6 -0
- package/dist/npm/tools/open.js +3 -0
- package/dist/npm/tools/redo.d.ts +6 -0
- package/dist/npm/tools/redo.js +3 -0
- package/dist/npm/tools/tableTools.d.ts +36 -0
- package/dist/npm/tools/tableTools.js +18 -0
- package/dist/npm/tools/textColor.d.ts +6 -0
- package/dist/npm/tools/textColor.js +3 -0
- package/dist/npm/tools/textWrap.d.ts +9 -0
- package/dist/npm/tools/textWrap.js +3 -0
- package/dist/npm/tools/underline.d.ts +6 -0
- package/dist/npm/tools/underline.js +3 -0
- package/dist/npm/tools/undo.d.ts +6 -0
- package/dist/npm/tools/undo.js +3 -0
- package/dist/npm/tools/utils.d.ts +15 -0
- package/dist/systemjs/kendo-react-spreadsheet.js +1 -1
- package/package.json +11 -11
package/dist/es/Spreadsheet.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SpreadsheetProps, SpreadsheetHandle } from './SpreadsheetProps';
|
|
3
|
+
/**
|
|
4
|
+
* Represents the [KendoReact Spreadsheet component]({% slug overview_spreadsheet %}).
|
|
5
|
+
*
|
|
6
|
+
* Accepts properties of type [SpreadsheetProps]({% slug api_spreadsheet_spreadsheetprops %}).
|
|
7
|
+
* Obtaining the `ref` returns an object of type [SpreadsheetHandle]({% slug api_spreadsheet_spreadsheethandle %}).
|
|
8
|
+
*/
|
|
3
9
|
export declare const Spreadsheet: React.ForwardRefExoticComponent<SpreadsheetProps & React.RefAttributes<SpreadsheetHandle | null>>;
|
package/dist/es/Spreadsheet.js
CHANGED
|
@@ -39,6 +39,12 @@ const toolbarButtons = [
|
|
|
39
39
|
'.k-combobox',
|
|
40
40
|
'.k-colorpicker'
|
|
41
41
|
];
|
|
42
|
+
/**
|
|
43
|
+
* Represents the [KendoReact Spreadsheet component]({% slug overview_spreadsheet %}).
|
|
44
|
+
*
|
|
45
|
+
* Accepts properties of type [SpreadsheetProps]({% slug api_spreadsheet_spreadsheetprops %}).
|
|
46
|
+
* Obtaining the `ref` returns an object of type [SpreadsheetHandle]({% slug api_spreadsheet_spreadsheethandle %}).
|
|
47
|
+
*/
|
|
42
48
|
export const Spreadsheet = React.forwardRef((props, ref) => {
|
|
43
49
|
validatePackage(packageMetadata);
|
|
44
50
|
const { toolbar = defaultTabs } = props;
|
|
@@ -1,25 +1,32 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Workbook as OoxmlWorkbook } from '@progress/kendo-ooxml';
|
|
3
|
-
import { SpreadsheetOptions as SpreadsheetOpts,
|
|
4
|
-
export declare class SpreadsheetWidget extends Spreadsheet {
|
|
5
|
-
}
|
|
3
|
+
import { SpreadsheetOptions as SpreadsheetOpts, SpreadsheetWidget, Range, DocumentDescriptor, View, Sheet, ExcelExportSettings, SheetDescriptor, Workbook } from '@progress/kendo-spreadsheet-common';
|
|
6
4
|
export interface SpreadsheetOptions extends Omit<SpreadsheetOpts, 'formulaBarInputRef' | 'formulaCellInputRef' | 'nameBoxRef' | 'locale'> {
|
|
7
5
|
}
|
|
8
|
-
export { DocumentDescriptor, View, Workbook, Sheet, SheetDescriptor, ExcelExportSettings };
|
|
6
|
+
export { SpreadsheetWidget, DocumentDescriptor, View, Workbook, Sheet, SheetDescriptor, ExcelExportSettings };
|
|
9
7
|
interface SpreadsheetEvent {
|
|
10
8
|
/**
|
|
11
9
|
* The widget instance which fired the event.
|
|
12
10
|
*/
|
|
13
11
|
sender: SpreadsheetWidget;
|
|
14
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Represents the `SpreadsheetSelectEvent` object.
|
|
15
|
+
*/
|
|
15
16
|
export interface SpreadsheetSelectEvent extends SpreadsheetEvent {
|
|
16
17
|
/**
|
|
17
18
|
* The Range that is selected.
|
|
18
19
|
*/
|
|
19
20
|
range: Range;
|
|
20
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Represents the `SpreadsheetChangeEvent` object.
|
|
24
|
+
*/
|
|
21
25
|
export interface SpreadsheetChangeEvent extends SpreadsheetEvent, SpreadsheetSelectEvent {
|
|
22
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Represents the `SpreadsheetExcelImportEvent` object.
|
|
29
|
+
*/
|
|
23
30
|
export interface SpreadsheetExcelImportEvent extends SpreadsheetEvent {
|
|
24
31
|
/**
|
|
25
32
|
* The file that is being imported.
|
|
@@ -30,6 +37,9 @@ export interface SpreadsheetExcelImportEvent extends SpreadsheetEvent {
|
|
|
30
37
|
*/
|
|
31
38
|
preventDefault: Function;
|
|
32
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Represents the `SpreadsheetExcelExportEvent` object.
|
|
42
|
+
*/
|
|
33
43
|
export interface SpreadsheetExcelExportEvent extends SpreadsheetEvent {
|
|
34
44
|
/**
|
|
35
45
|
* The array of data items that is used to create the Excel workbook.
|
|
@@ -45,10 +55,25 @@ export interface SpreadsheetExcelExportEvent extends SpreadsheetEvent {
|
|
|
45
55
|
*/
|
|
46
56
|
preventDefault: Function;
|
|
47
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Represents the Spreadsheet tab configuration object.
|
|
60
|
+
*/
|
|
48
61
|
export interface SpreadsheetTab {
|
|
62
|
+
/**
|
|
63
|
+
* The text of the tab.
|
|
64
|
+
*/
|
|
49
65
|
text?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The localization key of the tab's text.
|
|
68
|
+
*/
|
|
50
69
|
textKey?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Indicates if the tab to be selected initially.
|
|
72
|
+
*/
|
|
51
73
|
selected?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* The toolbar configuration in the tab content.
|
|
76
|
+
*/
|
|
52
77
|
tools: (React.ComponentType<any> | React.ComponentType<any>[])[];
|
|
53
78
|
}
|
|
54
79
|
export interface SpreadsheetProps {
|
|
@@ -56,6 +81,9 @@ export interface SpreadsheetProps {
|
|
|
56
81
|
* Sets additional classes to the Spreadsheet.
|
|
57
82
|
*/
|
|
58
83
|
className?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Represents the default props of the Spreadsheet.
|
|
86
|
+
*/
|
|
59
87
|
defaultProps?: SpreadsheetOptions;
|
|
60
88
|
/**
|
|
61
89
|
* A Boolean value which indicates if the toolbar will be displayed. It also allows to customize the tabs content
|
|
@@ -88,6 +116,9 @@ export interface SpreadsheetProps {
|
|
|
88
116
|
*/
|
|
89
117
|
onExcelExport?: (event: SpreadsheetExcelExportEvent) => void;
|
|
90
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
* Represents the Spreadsheet handle object.
|
|
121
|
+
*/
|
|
91
122
|
export interface SpreadsheetHandle {
|
|
92
123
|
/**
|
|
93
124
|
* The current element or `null` if there is no one.
|
|
@@ -97,9 +128,23 @@ export interface SpreadsheetHandle {
|
|
|
97
128
|
* The props values of the Spreadsheet.
|
|
98
129
|
*/
|
|
99
130
|
props: SpreadsheetProps;
|
|
131
|
+
/**
|
|
132
|
+
* Represents the SpreadsheetWidget object, holding the core functionality of the Spreadsheet.
|
|
133
|
+
*/
|
|
100
134
|
instance: SpreadsheetWidget | null;
|
|
135
|
+
/**
|
|
136
|
+
* Returns the `View` object of the Spreadsheet.
|
|
137
|
+
*/
|
|
101
138
|
get view(): View;
|
|
139
|
+
/**
|
|
140
|
+
* Returns the `Workbook` object of the Spreadsheet.
|
|
141
|
+
*/
|
|
102
142
|
get workbook(): Workbook;
|
|
143
|
+
/**
|
|
144
|
+
* Executes the passed command against the selected cell/range.
|
|
145
|
+
*
|
|
146
|
+
* @param options An object containing the command name and the required by it options.
|
|
147
|
+
*/
|
|
103
148
|
executeCommand(options: any): void;
|
|
104
149
|
/**
|
|
105
150
|
* Loads the workbook data from an object with the format that is defined in the configuration.
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
}
|
|
4
|
-
export { View, Workbook, Sheet };
|
|
1
|
+
import { SpreadsheetWidget, View, Sheet, Workbook } from '@progress/kendo-spreadsheet-common';
|
|
2
|
+
export { SpreadsheetWidget, View, Workbook, Sheet };
|
|
@@ -5,7 +5,7 @@ export const packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-spreadsheet',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1685570053,
|
|
9
9
|
version: '',
|
|
10
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
11
|
};
|
package/dist/es/tools/align.d.ts
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SpreadsheetToolProps } from './utils';
|
|
3
|
+
/**
|
|
4
|
+
* The props of the Alignment tool component.
|
|
5
|
+
*/
|
|
3
6
|
export interface AlignmentProps extends SpreadsheetToolProps {
|
|
7
|
+
/**
|
|
8
|
+
* The value of the tool.
|
|
9
|
+
*/
|
|
4
10
|
value: {
|
|
5
11
|
textAlign?: string;
|
|
6
12
|
verticalAlign?: string;
|
|
7
13
|
};
|
|
8
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* The Alignment tool component.
|
|
17
|
+
*/
|
|
9
18
|
export declare const Alignment: React.FunctionComponent<AlignmentProps>;
|
package/dist/es/tools/align.js
CHANGED
|
@@ -13,6 +13,9 @@ const alignItems = [
|
|
|
13
13
|
{ icon: 'align-middle', svgIcon: alignMiddleIcon, textKey: keys.alignMiddle, commandName: 'verticalAlign', value: 'center' },
|
|
14
14
|
{ icon: 'align-bottom', svgIcon: alignBottomIcon, textKey: keys.alignBottom, commandName: 'verticalAlign', value: 'bottom' }
|
|
15
15
|
];
|
|
16
|
+
/**
|
|
17
|
+
* The Alignment tool component.
|
|
18
|
+
*/
|
|
16
19
|
export const Alignment = props => {
|
|
17
20
|
const { value, spreadsheetRef } = props;
|
|
18
21
|
const { textAlign, verticalAlign } = value || {};
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ColorToolProps } from './utils';
|
|
3
|
+
/**
|
|
4
|
+
* The props of the BackgroundColor tool component.
|
|
5
|
+
*/
|
|
3
6
|
export interface BackgroundColorProps extends ColorToolProps {
|
|
4
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The BackgroundColor tool component.
|
|
10
|
+
*/
|
|
5
11
|
export declare const BackgroundColor: React.FunctionComponent<BackgroundColorProps>;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { keys } from '../messages';
|
|
2
2
|
import { ColorTool } from './utils';
|
|
3
3
|
import { dropletIcon } from '@progress/kendo-svg-icons';
|
|
4
|
+
/**
|
|
5
|
+
* The BackgroundColor tool component.
|
|
6
|
+
*/
|
|
4
7
|
export const BackgroundColor = ColorTool({
|
|
5
8
|
icon: 'droplet',
|
|
6
9
|
svgIcon: dropletIcon,
|
package/dist/es/tools/bold.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PropertyChangeToolProps } from './utils';
|
|
3
|
+
/**
|
|
4
|
+
* The props of the Bold tool component.
|
|
5
|
+
*/
|
|
3
6
|
export interface BoldProps extends PropertyChangeToolProps {
|
|
4
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The Bold tool component.
|
|
10
|
+
*/
|
|
5
11
|
export declare const Bold: React.FunctionComponent<BoldProps>;
|
package/dist/es/tools/bold.js
CHANGED
|
@@ -2,5 +2,8 @@ import { boldIcon } from '@progress/kendo-svg-icons';
|
|
|
2
2
|
import { PropertyChangeTool } from './utils';
|
|
3
3
|
import { keys } from '../messages';
|
|
4
4
|
const boldSettings = { property: 'bold', icon: 'bold', svgIcon: boldIcon, titleKey: keys.bold };
|
|
5
|
+
/**
|
|
6
|
+
* The Bold tool component.
|
|
7
|
+
*/
|
|
5
8
|
export const Bold = PropertyChangeTool(boldSettings);
|
|
6
9
|
Bold.displayName = 'Bold';
|
|
@@ -16,6 +16,9 @@ import { AddColumnLeft, AddColumnRight, AddRowAbove, AddRowBelow, DeleteColumn,
|
|
|
16
16
|
import { keys } from '../messages';
|
|
17
17
|
import { Undo } from './undo';
|
|
18
18
|
import { Redo } from './redo';
|
|
19
|
+
/**
|
|
20
|
+
* The default toolbar configuration.
|
|
21
|
+
*/
|
|
19
22
|
export const defaultTabs = [
|
|
20
23
|
{
|
|
21
24
|
textKey: keys.file,
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SpreadsheetToolProps } from './utils';
|
|
3
|
+
/**
|
|
4
|
+
* The props of the ExcelExport tool component.
|
|
5
|
+
*/
|
|
3
6
|
export interface ExcelExportProps extends SpreadsheetToolProps {
|
|
4
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The ExcelExport tool component.
|
|
10
|
+
*/
|
|
5
11
|
export declare const ExcelExport: React.FunctionComponent<ExcelExportProps>;
|
package/dist/es/tools/export.js
CHANGED
|
@@ -3,6 +3,9 @@ import { Button } from '@progress/kendo-react-buttons';
|
|
|
3
3
|
import { saveAs } from '@progress/kendo-file-saver';
|
|
4
4
|
import { Workbook } from '@progress/kendo-ooxml';
|
|
5
5
|
import { downloadIcon } from '@progress/kendo-svg-icons';
|
|
6
|
+
/**
|
|
7
|
+
* The ExcelExport tool component.
|
|
8
|
+
*/
|
|
6
9
|
export const ExcelExport = props => {
|
|
7
10
|
const { spreadsheetRef } = props;
|
|
8
11
|
const onDownload = React.useCallback(() => {
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DropDownToolProps } from './utils';
|
|
3
|
+
/**
|
|
4
|
+
* The props of the FontFamily tool component.
|
|
5
|
+
*/
|
|
3
6
|
export interface FontFamilyProps extends DropDownToolProps {
|
|
4
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The FontFamily tool component.
|
|
10
|
+
*/
|
|
5
11
|
export declare const FontFamily: React.FunctionComponent<FontFamilyProps>;
|
|
@@ -3,6 +3,9 @@ import { DropDownList } from '@progress/kendo-react-dropdowns';
|
|
|
3
3
|
import { DEFAULT_FONT_FAMILY, FONT_FAMILIES } from './utils';
|
|
4
4
|
import { useLocalization } from '@progress/kendo-react-intl';
|
|
5
5
|
import { keys, messages } from '../messages';
|
|
6
|
+
/**
|
|
7
|
+
* The FontFamily tool component.
|
|
8
|
+
*/
|
|
6
9
|
export const FontFamily = props => {
|
|
7
10
|
const { spreadsheetRef, value } = props;
|
|
8
11
|
const onChange = React.useCallback((event) => {
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DropDownToolProps } from './utils';
|
|
3
|
+
/**
|
|
4
|
+
* The props of the FontSize tool component.
|
|
5
|
+
*/
|
|
3
6
|
export interface FontSizeProps extends DropDownToolProps {
|
|
4
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The FontSize tool component.
|
|
10
|
+
*/
|
|
5
11
|
export declare const FontSize: React.FunctionComponent<FontSizeProps>;
|
|
@@ -3,6 +3,9 @@ import { ComboBox } from '@progress/kendo-react-dropdowns';
|
|
|
3
3
|
import { DEFAULT_FONT_SIZE, FONT_SIZES } from './utils';
|
|
4
4
|
import { keys, messages } from '../messages';
|
|
5
5
|
import { useLocalization } from '@progress/kendo-react-intl';
|
|
6
|
+
/**
|
|
7
|
+
* The FontSize tool component.
|
|
8
|
+
*/
|
|
6
9
|
export const FontSize = props => {
|
|
7
10
|
const { spreadsheetRef, value } = props;
|
|
8
11
|
const onChange = React.useCallback((event) => {
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SpreadsheetToolProps } from './utils';
|
|
3
|
+
/**
|
|
4
|
+
* The props of the Format tool component.
|
|
5
|
+
*/
|
|
3
6
|
export interface FormatProps extends SpreadsheetToolProps {
|
|
4
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The Format tool component.
|
|
10
|
+
*/
|
|
5
11
|
export declare const Format: React.FunctionComponent<FormatProps>;
|
package/dist/es/tools/format.js
CHANGED
|
@@ -5,6 +5,9 @@ import { FORMATS } from './utils';
|
|
|
5
5
|
import { IconWrap } from '@progress/kendo-react-common';
|
|
6
6
|
import { useLocalization } from '@progress/kendo-react-intl';
|
|
7
7
|
import { keys, messages } from '../messages';
|
|
8
|
+
/**
|
|
9
|
+
* The Format tool component.
|
|
10
|
+
*/
|
|
8
11
|
export const Format = props => {
|
|
9
12
|
const { spreadsheetRef } = props;
|
|
10
13
|
const onChange = React.useCallback((event) => {
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SpreadsheetToolProps } from './utils';
|
|
3
|
+
/**
|
|
4
|
+
* The props of the GridLines tool component.
|
|
5
|
+
*/
|
|
3
6
|
export interface GridLinesProps extends SpreadsheetToolProps {
|
|
7
|
+
/**
|
|
8
|
+
* The selected state of the tool.
|
|
9
|
+
*/
|
|
4
10
|
value?: boolean;
|
|
5
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* The GridLines tool component.
|
|
14
|
+
*/
|
|
6
15
|
export declare const GridLines: React.FunctionComponent<GridLinesProps>;
|
|
@@ -3,6 +3,9 @@ import { Button } from '@progress/kendo-react-buttons';
|
|
|
3
3
|
import { bordersNoneIcon } from '@progress/kendo-svg-icons';
|
|
4
4
|
import { useLocalization } from '@progress/kendo-react-intl';
|
|
5
5
|
import { keys, messages } from '../messages';
|
|
6
|
+
/**
|
|
7
|
+
* The GridLines tool component.
|
|
8
|
+
*/
|
|
6
9
|
export const GridLines = props => {
|
|
7
10
|
const { value: selected, spreadsheetRef } = props;
|
|
8
11
|
const onClick = React.useCallback(() => {
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PropertyChangeToolProps } from './utils';
|
|
3
|
+
/**
|
|
4
|
+
* The props of the Italic tool component.
|
|
5
|
+
*/
|
|
3
6
|
export interface ItalicProps extends PropertyChangeToolProps {
|
|
4
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The Italic tool component.
|
|
10
|
+
*/
|
|
5
11
|
export declare const Italic: React.FunctionComponent<ItalicProps>;
|
package/dist/es/tools/italic.js
CHANGED
|
@@ -2,5 +2,8 @@ import { italicIcon } from '@progress/kendo-svg-icons';
|
|
|
2
2
|
import { PropertyChangeTool } from './utils';
|
|
3
3
|
import { keys } from '../messages';
|
|
4
4
|
const italicSettings = { property: 'italic', icon: 'italic', svgIcon: italicIcon, titleKey: keys.italic };
|
|
5
|
+
/**
|
|
6
|
+
* The Italic tool component.
|
|
7
|
+
*/
|
|
5
8
|
export const Italic = PropertyChangeTool(italicSettings);
|
|
6
9
|
Italic.displayName = 'Italic';
|
package/dist/es/tools/open.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SpreadsheetToolProps } from './utils';
|
|
3
|
+
/**
|
|
4
|
+
* The props of the Open tool component.
|
|
5
|
+
*/
|
|
3
6
|
export interface OpenProps extends SpreadsheetToolProps {
|
|
4
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The Open tool component.
|
|
10
|
+
*/
|
|
5
11
|
export declare const Open: React.FunctionComponent<OpenProps>;
|
package/dist/es/tools/open.js
CHANGED
|
@@ -4,6 +4,9 @@ import { Upload } from '@progress/kendo-react-upload';
|
|
|
4
4
|
import { folderOpenIcon } from '@progress/kendo-svg-icons';
|
|
5
5
|
import { useLocalization } from '@progress/kendo-react-intl';
|
|
6
6
|
import { keys, messages } from '../messages';
|
|
7
|
+
/**
|
|
8
|
+
* The Open tool component.
|
|
9
|
+
*/
|
|
7
10
|
export const Open = props => {
|
|
8
11
|
const { spreadsheetRef } = props;
|
|
9
12
|
const onFileOpen = React.useCallback((event) => {
|
package/dist/es/tools/redo.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SpreadsheetToolProps } from './utils';
|
|
3
|
+
/**
|
|
4
|
+
* The props of the Redo tool component.
|
|
5
|
+
*/
|
|
3
6
|
export interface RedoProps extends SpreadsheetToolProps {
|
|
4
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The Redo tool component.
|
|
10
|
+
*/
|
|
5
11
|
export declare const Redo: React.FunctionComponent<RedoProps>;
|
package/dist/es/tools/redo.js
CHANGED
|
@@ -2,5 +2,8 @@ import { arrowRotateCwIcon } from '@progress/kendo-svg-icons';
|
|
|
2
2
|
import { UndoRedo } from './utils';
|
|
3
3
|
import { keys } from '../messages';
|
|
4
4
|
const redoSettings = { action: 'redo', icon: 'reload', svgIcon: arrowRotateCwIcon, titleKey: keys.redo };
|
|
5
|
+
/**
|
|
6
|
+
* The Redo tool component.
|
|
7
|
+
*/
|
|
5
8
|
export const Redo = UndoRedo(redoSettings);
|
|
6
9
|
Redo.displayName = 'Redo';
|
|
@@ -1,20 +1,56 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SpreadsheetToolProps } from './utils';
|
|
3
|
+
/**
|
|
4
|
+
* The props of the AddColumnLeft tool component.
|
|
5
|
+
*/
|
|
3
6
|
export interface AddColumnLeftProps extends SpreadsheetToolProps {
|
|
4
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The props of the AddColumnRight tool component.
|
|
10
|
+
*/
|
|
5
11
|
export interface AddColumnRightProps extends SpreadsheetToolProps {
|
|
6
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* The props of the AddRowBelow tool component.
|
|
15
|
+
*/
|
|
7
16
|
export interface AddRowBelowProps extends SpreadsheetToolProps {
|
|
8
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* The props of the AddRowAbove tool component.
|
|
20
|
+
*/
|
|
9
21
|
export interface AddRowAboveProps extends SpreadsheetToolProps {
|
|
10
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* The props of the DeleteColumn tool component.
|
|
25
|
+
*/
|
|
11
26
|
export interface DeleteColumnProps extends SpreadsheetToolProps {
|
|
12
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* The props of the DeleteRow tool component.
|
|
30
|
+
*/
|
|
13
31
|
export interface DeleteRowProps extends SpreadsheetToolProps {
|
|
14
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* The AddColumnLeft tool component.
|
|
35
|
+
*/
|
|
15
36
|
export declare const AddColumnLeft: React.FunctionComponent<AddColumnLeftProps>;
|
|
37
|
+
/**
|
|
38
|
+
* The AddColumnRight tool component.
|
|
39
|
+
*/
|
|
16
40
|
export declare const AddColumnRight: React.FunctionComponent<AddColumnRightProps>;
|
|
41
|
+
/**
|
|
42
|
+
* The AddRowBelow tool component.
|
|
43
|
+
*/
|
|
17
44
|
export declare const AddRowBelow: React.FunctionComponent<AddRowBelowProps>;
|
|
45
|
+
/**
|
|
46
|
+
* The AddRowAbove tool component.
|
|
47
|
+
*/
|
|
18
48
|
export declare const AddRowAbove: React.FunctionComponent<AddRowAboveProps>;
|
|
49
|
+
/**
|
|
50
|
+
* The DeleteColumn tool component.
|
|
51
|
+
*/
|
|
19
52
|
export declare const DeleteColumn: React.FunctionComponent<DeleteColumnProps>;
|
|
53
|
+
/**
|
|
54
|
+
* The DeleteRow tool component.
|
|
55
|
+
*/
|
|
20
56
|
export declare const DeleteRow: React.FunctionComponent<DeleteRowProps>;
|
|
@@ -58,11 +58,29 @@ const deleteRow = {
|
|
|
58
58
|
svgIcon: tableRowDeleteIcon,
|
|
59
59
|
titleKey: keys.deleteRow
|
|
60
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
* The AddColumnLeft tool component.
|
|
63
|
+
*/
|
|
61
64
|
export const AddColumnLeft = TableDataTool(addColumnLeft);
|
|
65
|
+
/**
|
|
66
|
+
* The AddColumnRight tool component.
|
|
67
|
+
*/
|
|
62
68
|
export const AddColumnRight = TableDataTool(addColumnRight);
|
|
69
|
+
/**
|
|
70
|
+
* The AddRowBelow tool component.
|
|
71
|
+
*/
|
|
63
72
|
export const AddRowBelow = TableDataTool(addRowBelow);
|
|
73
|
+
/**
|
|
74
|
+
* The AddRowAbove tool component.
|
|
75
|
+
*/
|
|
64
76
|
export const AddRowAbove = TableDataTool(addRowAbove);
|
|
77
|
+
/**
|
|
78
|
+
* The DeleteColumn tool component.
|
|
79
|
+
*/
|
|
65
80
|
export const DeleteColumn = TableDataTool(deleteColumn);
|
|
81
|
+
/**
|
|
82
|
+
* The DeleteRow tool component.
|
|
83
|
+
*/
|
|
66
84
|
export const DeleteRow = TableDataTool(deleteRow);
|
|
67
85
|
AddColumnLeft.displayName = 'AddColumnLeft';
|
|
68
86
|
AddColumnRight.displayName = 'AddColumnRight';
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ColorToolProps } from './utils';
|
|
3
|
+
/**
|
|
4
|
+
* The props of the TextColor tool component.
|
|
5
|
+
*/
|
|
3
6
|
export interface TextColorProps extends ColorToolProps {
|
|
4
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The TextColor tool component.
|
|
10
|
+
*/
|
|
5
11
|
export declare const TextColor: React.FunctionComponent<TextColorProps>;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { keys } from '../messages';
|
|
2
2
|
import { ColorTool } from './utils';
|
|
3
3
|
import { foregroundColorIcon } from '@progress/kendo-svg-icons';
|
|
4
|
+
/**
|
|
5
|
+
* The TextColor tool component.
|
|
6
|
+
*/
|
|
4
7
|
export const TextColor = ColorTool({
|
|
5
8
|
icon: 'foreground-color',
|
|
6
9
|
svgIcon: foregroundColorIcon,
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SpreadsheetToolProps } from './utils';
|
|
3
|
+
/**
|
|
4
|
+
* The props of the TextWrap tool component.
|
|
5
|
+
*/
|
|
3
6
|
export interface TextWrapProps extends SpreadsheetToolProps {
|
|
7
|
+
/**
|
|
8
|
+
* The selected state of the tool.
|
|
9
|
+
*/
|
|
4
10
|
value?: boolean;
|
|
5
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* The TextWrap tool component.
|
|
14
|
+
*/
|
|
6
15
|
export declare const TextWrap: React.FunctionComponent<TextWrapProps>;
|
|
@@ -3,6 +3,9 @@ import { Button } from '@progress/kendo-react-buttons';
|
|
|
3
3
|
import { textWrapIcon } from '@progress/kendo-svg-icons';
|
|
4
4
|
import { useLocalization } from '@progress/kendo-react-intl';
|
|
5
5
|
import { keys, messages } from '../messages';
|
|
6
|
+
/**
|
|
7
|
+
* The TextWrap tool component.
|
|
8
|
+
*/
|
|
6
9
|
export const TextWrap = props => {
|
|
7
10
|
const { value: selected, spreadsheetRef } = props;
|
|
8
11
|
const onClick = React.useCallback(() => {
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PropertyChangeToolProps } from './utils';
|
|
3
|
+
/**
|
|
4
|
+
* The props of the Underline tool component.
|
|
5
|
+
*/
|
|
3
6
|
export interface UnderlineProps extends PropertyChangeToolProps {
|
|
4
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The Underline tool component.
|
|
10
|
+
*/
|
|
5
11
|
export declare const Underline: React.FunctionComponent<UnderlineProps>;
|
|
@@ -2,5 +2,8 @@ import { underlineIcon } from '@progress/kendo-svg-icons';
|
|
|
2
2
|
import { PropertyChangeTool } from './utils';
|
|
3
3
|
import { keys } from '../messages';
|
|
4
4
|
const underlineSettings = { property: 'underline', icon: 'underline', svgIcon: underlineIcon, titleKey: keys.underline };
|
|
5
|
+
/**
|
|
6
|
+
* The Underline tool component.
|
|
7
|
+
*/
|
|
5
8
|
export const Underline = PropertyChangeTool(underlineSettings);
|
|
6
9
|
Underline.displayName = 'Underline';
|
package/dist/es/tools/undo.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SpreadsheetToolProps } from './utils';
|
|
3
|
+
/**
|
|
4
|
+
* The props of the Undo tool component.
|
|
5
|
+
*/
|
|
3
6
|
export interface UndoProps extends SpreadsheetToolProps {
|
|
4
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The Undo tool component.
|
|
10
|
+
*/
|
|
5
11
|
export declare const Undo: React.FunctionComponent<UndoProps>;
|
package/dist/es/tools/undo.js
CHANGED
|
@@ -2,5 +2,8 @@ import { arrowRotateCcwIcon } from '@progress/kendo-svg-icons';
|
|
|
2
2
|
import { UndoRedo } from './utils';
|
|
3
3
|
import { keys } from '../messages';
|
|
4
4
|
const undoSettings = { action: 'undo', icon: 'reset', svgIcon: arrowRotateCcwIcon, titleKey: keys.undo };
|
|
5
|
+
/**
|
|
6
|
+
* The Undo tool component.
|
|
7
|
+
*/
|
|
5
8
|
export const Undo = UndoRedo(undoSettings);
|
|
6
9
|
Undo.displayName = 'Undo';
|