@handsontable/react 0.0.0-next-9ec04ce-20221121

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/LICENSE.txt ADDED
@@ -0,0 +1,25 @@
1
+ Copyright (c) HANDSONCODE sp. z o. o.
2
+
3
+ HANDSONTABLE is a software distributed by HANDSONCODE sp. z o. o., a Polish corporation based in
4
+ Gdynia, Poland, at Aleja Zwycięstwa 96-98, registered by the District Court in Gdansk under number
5
+ 538651, EU tax ID number: PL5862294002, share capital: PLN 62,800.00.
6
+
7
+ This software is protected by applicable copyright laws, including international treaties, and dual-
8
+ licensed – depending on whether your use for commercial purposes, meaning intended for or
9
+ resulting in commercial advantage or monetary compensation, or not.
10
+
11
+ If your use is strictly personal or solely for evaluation purposes, meaning for the purposes of testing
12
+ the suitability, performance, and usefulness of this software outside the production environment,
13
+ you agree to be bound by the terms included in the "handsontable-non-commercial-license.pdf" file.
14
+
15
+ Your use of this software for commercial purposes is subject to the terms included in an applicable
16
+ license agreement.
17
+
18
+ In any case, you must not make any such use of this software as to develop software which may be
19
+ considered competitive with this software.
20
+
21
+ UNLESS EXPRESSLY AGREED OTHERWISE, HANDSONCODE PROVIDES THIS SOFTWARE ON AN "AS IS"
22
+ BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, AND IN NO EVENT AND UNDER NO
23
+ LEGAL THEORY, SHALL HANDSONCODE BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT,
24
+ INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
25
+ USE OR INABILITY TO USE THIS SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,123 @@
1
+ <div align="center">
2
+
3
+ <a href="https://handsontable.com" rel="nofollow"><img src="https://raw.githubusercontent.com/handsontable/handsontable/develop/resources/handsontable-logo-blue.svg" alt="Handsontable - data grid for React" width="300"></a>
4
+
5
+ # Data Grid for React <img src="https://raw.githubusercontent.com/handsontable/handsontable/develop/resources/icons/react-icon.svg" width="22" height="22">
6
+
7
+ Handsontable's wrapper for React combines data grid features with spreadsheet-like UX. <br>
8
+ It provides data binding, data validation, filtering, sorting, and CRUD operations.
9
+
10
+ [![npm](https://img.shields.io/npm/dt/@handsontable/react.svg)](https://npmjs.com/package/@handsontable/react)
11
+ [![npm](https://img.shields.io/npm/dm/@handsontable/react.svg)](https://npmjs.com/package/@handsontable/react)
12
+ [![CI status](https://github.com/handsontable/handsontable/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/handsontable/handsontable/actions/workflows/test.yml?query=branch%3Amaster)
13
+ [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fhandsontable%2Fhandsontable.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fhandsontable%2Fhandsontable?ref=badge_shield)
14
+ [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=handsontable_handsontable&metric=alert_status)](https://sonarcloud.io/dashboard?id=handsontable_handsontable)
15
+
16
+ ---
17
+
18
+ <a href="https://handsontable.com/demo"><img src="https://raw.githubusercontent.com/handsontable/handsontable/develop/resources/handsontable-github-preview.png" alt="Handsontable data grid for React" width="805"/></a>
19
+
20
+ </div>
21
+
22
+ ## Features
23
+
24
+ The most popular features of Handsontable for React:
25
+
26
+ &nbsp;&nbsp;✓&nbsp; Multiple column sorting <br>
27
+ &nbsp;&nbsp;✓&nbsp; Non-contiguous selection <br>
28
+ &nbsp;&nbsp;✓&nbsp; Filtering data <br>
29
+ &nbsp;&nbsp;✓&nbsp; Export to file <br>
30
+ &nbsp;&nbsp;✓&nbsp; Validating data <br>
31
+ &nbsp;&nbsp;✓&nbsp; Conditional formatting <br>
32
+ &nbsp;&nbsp;✓&nbsp; Merging cells <br>
33
+ &nbsp;&nbsp;✓&nbsp; Freezing rows/columns <br>
34
+ &nbsp;&nbsp;✓&nbsp; Moving rows/columns <br>
35
+ &nbsp;&nbsp;✓&nbsp; Resizing rows/columns <br>
36
+ &nbsp;&nbsp;✓&nbsp; Hiding rows/columns <br>
37
+ &nbsp;&nbsp;✓&nbsp; Context menu <br>
38
+ &nbsp;&nbsp;✓&nbsp; Comments <br>
39
+
40
+ ## Documentation
41
+
42
+ - [Developer guides](https://handsontable.com/docs/react-installation/)
43
+ - [API Reference](https://handsontable.com/docs/api/core/)
44
+ - [Changelog](https://handsontable.com/docs/release-notes/)
45
+ - [Demo](https://handsontable.com/demo)
46
+
47
+ <div id="installation"></div>
48
+
49
+ ## Get Started
50
+ ### Install with npm
51
+
52
+ Run the following command in your terminal
53
+ ```
54
+ npm install handsontable @handsontable/react
55
+ ```
56
+
57
+ You can load it directly from [jsDelivr](https://jsdelivr.com/package/npm/@handsontable/react) as well.
58
+ ```html
59
+ <script src="https://cdn.jsdelivr.net/npm/handsontable/dist/handsontable.full.min.js"></script>
60
+ <script src="https://cdn.jsdelivr.net/npm/@handsontable/react/dist/react-handsontable.min.js"></script>
61
+
62
+ <link href="https://cdn.jsdelivr.net/npm/handsontable/dist/handsontable.full.min.css" rel="stylesheet">
63
+ ```
64
+
65
+ The component will be available as `Handsontable.react.HotTable`.
66
+
67
+ ### Usage
68
+
69
+ Use this data grid as you would any other component in your application. [Options](https://handsontable.com/docs/api/options/) can be set as `HotTable` props.
70
+
71
+ **Styles**
72
+ ```css
73
+ @import '~handsontable/dist/handsontable.full.css';
74
+ ```
75
+
76
+ **React Component**
77
+ ```js
78
+ import React from 'react';
79
+ import ReactDOM from 'react-dom';
80
+ import { HotTable } from '@handsontable/react';
81
+
82
+ class HotApp extends React.Component {
83
+ constructor(props) {
84
+ super(props);
85
+ this.data = [
86
+ ['', 'Tesla', 'Mercedes', 'Toyota', 'Volvo'],
87
+ ['2019', 10, 11, 12, 13],
88
+ ['2020', 20, 11, 14, 13],
89
+ ['2021', 30, 15, 12, 13]
90
+ ];
91
+ }
92
+
93
+ render() {
94
+ return (<HotTable data={this.data} colHeaders={true} rowHeaders={true} width="600" height="300" />);
95
+ }
96
+ }
97
+ ```
98
+
99
+ ### [View live demo](https://handsontable.com/docs/react-simple-example/)
100
+
101
+ ## Support
102
+
103
+ We provide support for developers working with commercial version via [contact form](https://handsontable.com/contact?category=technical_support)</a> or at support@handsontable.com.
104
+
105
+ If you use a non-commercial version then please ask your tagged question on [StackOverflow](https://stackoverflow.com/questions/tagged/handsontable).
106
+
107
+ ## License
108
+
109
+ Handsontable is a commercial software with two licenses available:
110
+
111
+ - Free for non-commercial purposes such as teaching, academic research, and evaluation. [Read it here](https://github.com/handsontable/handsontable/blob/master/handsontable-non-commercial-license.pdf).
112
+ - Commercial license with support and maintenance included. See [pricing plans](https://handsontable.com/pricing).
113
+
114
+ ## License key
115
+
116
+ If you use Handsontable for React in a project that supports your commercial activity, then you must purchase the license key at [handsontable.com](https://handsontable.com/pricing).
117
+
118
+ If you use the free for non-commercial license of Handsontable, then pass the phrase `'non-commercial-and-evaluation'`, as described in [this documentation](https://handsontable.com/docs/license-key/).
119
+
120
+ <br>
121
+ <br>
122
+
123
+ Proudly created and maintained by the [Handsontable Team](https://handsontable.com/team).
@@ -0,0 +1,45 @@
1
+ import React from 'react';
2
+ import Handsontable from 'handsontable/base';
3
+ import { HotEditorProps } from './types';
4
+ declare class BaseEditorComponent<P = {}, S = {}, SS = any> extends React.Component<P | HotEditorProps, S> implements Handsontable.editors.BaseEditor {
5
+ name: string;
6
+ instance: any;
7
+ row: any;
8
+ col: any;
9
+ prop: any;
10
+ TD: any;
11
+ originalValue: any;
12
+ cellProperties: any;
13
+ state: any;
14
+ hotInstance: any;
15
+ hotCustomEditorInstance: any;
16
+ hot: any;
17
+ constructor(props: any);
18
+ private _fireCallbacks;
19
+ beginEditing(...args: any[]): any;
20
+ cancelChanges(...args: any[]): any;
21
+ checkEditorSection(...args: any[]): any;
22
+ close(...args: any[]): any;
23
+ discardEditor(...args: any[]): any;
24
+ enableFullEditMode(...args: any[]): any;
25
+ extend(...args: any[]): any;
26
+ finishEditing(...args: any[]): any;
27
+ focus(...args: any[]): any;
28
+ getValue(...args: any[]): any;
29
+ init(...args: any[]): any;
30
+ isInFullEditMode(...args: any[]): any;
31
+ isOpened(...args: any[]): any;
32
+ isWaiting(...args: any[]): any;
33
+ open(...args: any[]): any;
34
+ prepare(row: any, col: any, prop: any, TD: any, originalValue: any, cellProperties: any): any;
35
+ saveValue(...args: any[]): any;
36
+ setValue(...args: any[]): any;
37
+ addHook(...args: any[]): any;
38
+ removeHooksByKey(...args: any[]): any;
39
+ clearHooks(...args: any[]): any;
40
+ getEditedCell(...args: any[]): any;
41
+ getEditedCellRect(...args: any[]): any;
42
+ getEditedCellsZIndex(...args: any[]): any;
43
+ }
44
+ export default BaseEditorComponent;
45
+ export { BaseEditorComponent };