@revolist/revogrid-react 3.0.52 → 4.11.20

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.
Files changed (33) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +292 -92
  3. package/dist/index.d.ts +73 -0
  4. package/dist/revogrid-react.js +260 -0
  5. package/dist/revogrid-react.umd.cjs +272 -0
  6. package/package.json +66 -33
  7. package/dist/react-component-lib/createComponent.d.ts +0 -10
  8. package/dist/react-component-lib/createComponent.js +0 -59
  9. package/dist/react-component-lib/createComponent.js.map +0 -1
  10. package/dist/react-component-lib/createOverlayComponent.d.ts +0 -20
  11. package/dist/react-component-lib/createOverlayComponent.js +0 -89
  12. package/dist/react-component-lib/createOverlayComponent.js.map +0 -1
  13. package/dist/react-component-lib/index.d.ts +0 -2
  14. package/dist/react-component-lib/index.js +0 -3
  15. package/dist/react-component-lib/index.js.map +0 -1
  16. package/dist/react-component-lib/interfaces.d.ts +0 -29
  17. package/dist/react-component-lib/interfaces.js +0 -2
  18. package/dist/react-component-lib/interfaces.js.map +0 -1
  19. package/dist/react-component-lib/utils/attachProps.d.ts +0 -12
  20. package/dist/react-component-lib/utils/attachProps.js +0 -96
  21. package/dist/react-component-lib/utils/attachProps.js.map +0 -1
  22. package/dist/react-component-lib/utils/case.d.ts +0 -2
  23. package/dist/react-component-lib/utils/case.js +0 -7
  24. package/dist/react-component-lib/utils/case.js.map +0 -1
  25. package/dist/react-component-lib/utils/dev.d.ts +0 -2
  26. package/dist/react-component-lib/utils/dev.js +0 -13
  27. package/dist/react-component-lib/utils/dev.js.map +0 -1
  28. package/dist/react-component-lib/utils/index.d.ts +0 -7
  29. package/dist/react-component-lib/utils/index.js +0 -21
  30. package/dist/react-component-lib/utils/index.js.map +0 -1
  31. package/dist/revogrid.d.ts +0 -14
  32. package/dist/revogrid.js +0 -17
  33. package/dist/revogrid.js.map +0 -1
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020 Revolist OU
3
+ Copyright (c) 2024 Revolist OU
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,128 +1,328 @@
1
- # RevoGrid React Adapter
2
-
3
- Minimalistic RevoGrid adapter for React.
1
+ # React Data Grid minimalist adapter
4
2
 
5
3
  <p align="center">
6
- <a href="https://revolist.github.io/revogrid">
7
- <img src="https://raw.githubusercontent.com/revolist/revogrid/master/assets/logo.svg" alt="RevoGrid" height="150" />
4
+ <a href="https://rv-grid.com">
5
+ <img src="./assets/logo.svg" alt="React Data Grid" height="150" />
8
6
  </a>
9
7
  </p>
10
8
 
11
- ##
12
9
  <p align="center">
13
- <a href="https://www.npmjs.com/package/@revolist/revogrid"><img src="https://img.shields.io/npm/v/@revolist/vue3-datagrid" alt="Latest Version on NPM"/></a>
10
+ <a href="https://www.npmjs.com/package/@revolist/revogrid"><img src="https://img.shields.io/npm/v/@revolist/revogrid" alt="Latest Version on NPM"/></a>
14
11
  <a href="https://github.com/revolist/revogrid/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/@revolist/revogrid" alt="Software License"/></a>
12
+ <img src="https://badgen.net/bundlephobia/dependency-count/@revolist/revogrid" alt="Dependency count"/>
13
+ <img src="https://badgen.net/bundlephobia/tree-shaking/@revolist/revogrid" alt="Tree shaking"/>
14
+ <img src="https://img.shields.io/bundlephobia/min/@revolist/revogrid" alt="Bundle size"/>
15
+ <img src="https://sonarcloud.io/api/project_badges/measure?project=revolist_revogrid&metric=alert_status" alt="Sonar Quality Gate"/>
15
16
  </p>
16
- <h4 align="center">Powerful data grid component built on top of <a href="https://github.com/revolist/revogrid" target="_blank">RevoGrid</a>.</h4>
17
+
18
+
19
+ <h3 align="center">Powerful React Data Grid component built on top of <a href="https://github.com/revolist/revogrid" target="_blank">RevoGrid</a>.</h3>
17
20
  <p align="center">
18
- Millions of cells and thousands columns easy and efficiently.
19
-
21
+ Support Millions of cells and thousands of columns easy and efficiently for fast data rendering. Easy to use.
20
22
  </p>
21
23
 
22
24
  <p align="center">
23
- <a href="https://revolist.github.io/revogrid">Demo and API</a> •
25
+ <a href="https://rv-grid.com">Demo and API</a> •
24
26
  <a href="#key-features">Key Features</a> •
25
- <a href="#how-to-use">How To Use</a> •
26
- <a href="https://github.com/revolist/revogrid/blob/master/src/components/revo-grid/readme.md">Docs</a> •
27
+ <a href="#basic-usage">How To Use</a> •
28
+ <a href="#installation">Installation</a> •
29
+ <a href="https://rv-grid.com/guide/">Docs</a> •
27
30
  <a href="#license">License</a>
28
31
  </p>
29
32
 
30
- <img src="https://raw.githubusercontent.com/revolist/revogrid/master/assets/material.jpg" alt="Material grid preview" width="100%" />
33
+ <img src="./assets/material.jpg" alt="Material grid preview" width="100%" />
31
34
  <i>RevoGrid material theme.</i>
32
35
  <br>
33
36
 
34
37
 
35
38
  ## Key Features
36
39
 
37
- - Millions of cells viewport with a powerful core in-build by default;
38
- - Keayboard support with excel like focus;
39
- - Super light initial starter <img src="https://badgen.net/bundlephobia/min/@revolist/revogrid@latest" alt="Min size"/>. Can be imported with polifill or as module for modern browsers;
40
- - Intelligent Virtual DOM and smart row recombination in order to achieve less redraws;
41
- - Sorting (multiple options, can be customized per column and advanced with events);
42
- - Filtering
43
- - Predefined system filters;
44
- - Preserve existing collection;
45
- - Custom filters (extend existing system filters with your own set);
46
- - Export to file;
47
- - Custom sizes per Column and Row;
48
- - Column resizing;
49
- - Autosize support (Column size based on content);
50
- - Pinned/Sticky/Freezed:
51
- - Columns (define left or right);
52
- - Rows (define top or bottom);
53
- - Grouping:
54
- - Column grouping (Nester headers);
55
- - Row grouping (Nested rows);
56
- - Cell editing;
57
- - Customizations:
58
- - Header template;
59
- - Cell template (build your own cell view);
60
- - Cell editor (apply your own editors and cell types);
61
- - Cell properties (build you own properties around rendered cells);
62
- - [Column types](https://revolist.github.io/revogrid/guide/column.types.html);
63
- - Text/String (default);
64
- - Number;
65
- - Select;
66
- - Date;
67
- - Custom (take any type as template and create your own extended style);
68
- - Drag and drop rows;
69
- - Range operations:
70
- - Selection;
71
- - Edit;
72
- - Theme packages:
73
- - Excel like (default)
74
- - Material (compact, dark or light);
75
- - Copy/Paste (copy/paste from Excel, Google Sheets or any other sheet format);
76
- - Easy extenation and support with modern VNode features and tsx support;
77
- - Trimmed rows (hide rows on demand);
78
- - Plugin system (create your own plugins or extend existing one, it's transparent and easy);
79
- - Hundred others small customizations and improvements [RevoGrid](https://revolist.github.io/revogrid).
80
-
81
- ## How to use
40
+ - **High Performance**: Handles millions of cells in the viewport with a powerful core built by default.
41
+
42
+ - **[Accessibility](https://rv-grid.com/guide/wcag)**: Follows WAI-ARIA best practices.
43
+
44
+ - **[Keyboard Support](https://rv-grid.com/guide/defs#Keyboard)**:
45
+ - Excel-like focus for efficient navigation and editing.
46
+ - Seamless copy/paste from Excel, Google Sheets, or any other sheet format.
47
+
48
+
49
+ - **Lightweight**: Minimal initial bundle size ![Min size](https://badgen.net/bundlephobia/min/@revolist/revogrid@latest). Can be imported with polyfills or as a module for modern browsers.
50
+
51
+ - **[Intelligent Virtual DOM](https://rv-grid.com/guide/overview#VNode-Reactive-DOM)**: Smart row recombination to minimize redraws.
52
+
53
+ - **[Virtual Scroll](https://rv-grid.com/guide/viewports)**: Handles large datasets with infinite scroll.
54
+
55
+ - **[Drag and Drop](https://rv-grid.com/guide/row/order)**: Drag and drop in [rows](https://rv-grid.com/guide/row/order) and [columns](https://rv-grid.com/guide/column/order).
56
+
57
+ - **[Sorting](https://rv-grid.com/guide/sorting)**: Multiple options, customizable per column, with advanced event handling.
58
+
59
+ - **[Filtering](https://rv-grid.com/guide/filters)**:
60
+ - Predefined system filters.
61
+ - Multi column filters.
62
+ - Conditional filters.
63
+ - Preserve existing collections.
64
+ - Custom filters to extend system filters with your own set.
65
+
66
+ - **[Export](https://rv-grid.com/guide/export.plugin)**: Export data to file.
67
+
68
+ - **Custom Sizes**: Define custom sizes for [columns](https://rv-grid.com/guide/column/#Column-Size) and [rows](https://rv-grid.com/guide/row/height). Automatic sizing based on content.
69
+
70
+ - **[Column Resizing](https://rv-grid.com/guide/column/resize)**: Adjust column widths.
71
+
72
+ - **Pinned/Sticky/Freezed Elements**:
73
+ - [Columns](https://rv-grid.com/guide/column/pin) (define left or right).
74
+ - [Rows](https://rv-grid.com/guide/row/pin) (define top or bottom).
75
+
76
+ - **Grouping**:
77
+ - [Column grouping](https://rv-grid.com/guide/column/grouping) (nested headers).
78
+ - [Row grouping](https://rv-grid.com/guide/row/grouping) (nested rows).
79
+
80
+ - **Column Types**: [More details](https://rv-grid.com/guide/column/#Column-Formats)
81
+ - [Text/String](https://rv-grid.com/guide/column/types#String) (default).
82
+ - [Number](https://rv-grid.com/guide/column/types#Number).
83
+ - [Select/Dropdown](https://rv-grid.com/guide/column/types#Select-Dropdown).
84
+ - [Date](https://rv-grid.com/guide/column/types#Date).
85
+ - Custom (create extended styles using any template).
86
+
87
+ - **Range Operations**:
88
+ - [Selection](https://rv-grid.com/guide/defs#Range).
89
+ - [Editing](https://rv-grid.com/guide/defs#Range-Autofill).
90
+
91
+ - **[Theme Packages](https://rv-grid.com/guide/theme)**:
92
+ - Excel-like (default).
93
+ - Material (compact, dark, or light).
94
+
95
+ - **[Extensibility](https://rv-grid.com/guide/jsx.template)**: Modern VNode features and tsx support for easy extension.
96
+
97
+ - **[Trimmed Rows](https://rv-grid.com/guide/row/#Trimmed-Rows)**: Hide rows on demand.
98
+
99
+ - **[Plugin System](https://rv-grid.com/guide/plugin/)**: Create custom plugins or extend existing ones easily.
100
+
101
+ - **[Formula Support](https://rv-grid.com/guide/cell/formula)**: Evaluate formulas in cell data.
102
+
103
+ - **[Master Detail/Subtables/Forms](https://rv-grid.com/guide/row/master.pro)**: Expand rows to reveal child data.
104
+ - **[Cell/Column/Row Span/Merge](https://rv-grid.com/guide/cell/merge)**: Merge cells to form groups.
105
+
106
+ - **Customizations**:
107
+ - [Column header template](https://rv-grid.com/guide/column/header.template).
108
+ - [Row header template](https://rv-grid.com/guide/row/headers).
109
+ - [Cell properties](https://rv-grid.com/guide/cell/) (define custom properties for rendered cells).
110
+
111
+ - [Cell template](https://rv-grid.com/guide/react/renderer) (create your own cell views).
112
+ - [Cell editor](https://rv-grid.com/guide/react/editor) (use predefined or apply your own custom editors and cell types).
113
+
114
+ - **Rich API & Additional Improvements**: Explore hundreds of other small customizations and improvements in [RevoGrid](https://rv-grid.com/).
115
+
116
+
117
+ > ⚠️ **Note**: Repository Notice: This repo is read-only. Create new issues at the [revogrid repo](https://github.com/revolist/revogrid)
118
+
119
+
120
+ ## Installation
121
+
82
122
 
83
123
  With NPM:
124
+
84
125
  ```bash
85
- npm i @revolist/revogrid-react --save;
126
+ npm i @revolist/react-datagrid
127
+ ```
128
+
129
+ With PNPM:
130
+
131
+ ```bash
132
+ pnpm add @revolist/react-datagrid
86
133
  ```
87
134
 
88
135
  With Yarn:
89
136
 
90
137
  ```bash
91
- yarn add @revolist/revogrid-react;
138
+ yarn add @revolist/react-datagrid
139
+ ```
140
+
141
+ With Bun:
142
+
143
+ ```bash
144
+ bun add @revolist/react-datagrid
145
+ ```
146
+
147
+ > [!NOTE]
148
+ > Previous package name: `@revolist/revogrid-react` was renamed to `@revolist/react-datagrid`.
149
+
150
+
151
+
152
+ ## Basic Usage
153
+
154
+ ### Simplest Usage
155
+
156
+ ```tsx
157
+ import { useState } from 'react'
158
+ import { RevoGrid } from '@revolist/react-datagrid'
159
+
160
+ /**
161
+ * note: columns & source need a "stable" reference in order to prevent infinite re-renders
162
+ */
163
+ const columns = [
164
+ { prop: 'name', name: 'First' },
165
+ { prop: 'details', name: 'Second' },
166
+ ]
167
+
168
+ function App() {
169
+ const [source] = useState([
170
+ { name: '1', details: 'Item 1' },
171
+ { name: '2', details: 'Item 2' },
172
+ ]);
173
+ return (<RevoGrid columns={columns} source={source} />)
174
+ }
175
+ export default App
176
+
177
+ ```
178
+
179
+ ### Cell Template Usage
180
+
181
+ ```tsx
182
+ import { useState } from 'react';
183
+ import { RevoGrid, Template, type ColumnDataSchemaModel } from '@revolist/react-datagrid';
184
+
185
+ /**
186
+ * Custom cell component
187
+ */
188
+ const Cell = ({ model, prop, value }: ColumnDataSchemaModel) => {
189
+ return <div><strong>{value}</strong></div>;
190
+ };
191
+ /**
192
+ * note: columns & source need a "stable" reference in order to prevent infinite re-renders
193
+ */
194
+ const columns = [
195
+ { prop: 'name', name: 'First', cellTemplate: Template(Cell) },
196
+ ];
197
+
198
+ function App() {
199
+ const [source] = useState([{ name: '1' }, { name: '2' }]);
200
+ return (<RevoGrid columns={columns} source={source} />)
201
+ }
202
+ export default App
203
+
92
204
  ```
93
205
 
206
+ ### Editor Usage
207
+
208
+ ```tsx
209
+ // App.tsx
210
+ import { useState } from 'react';
211
+ import { RevoGrid, Editor, type EditorType, type Editors } from '@revolist/react-datagrid';
212
+
213
+ /**
214
+ * Custom editor component
215
+ */
216
+ const Button = ({ close } : EditorType) => {
217
+ return <button onClick={close}>Close</button>
218
+ };
94
219
 
95
- ```jsx
96
- import React from "react";
97
- import { defineCustomElements } from "@revolist/revogrid/loader"; // webcomponent definition loader
98
- import { RevoGrid } from "@revolist/revogrid-react";
99
-
100
- export default class App extends React.Component {
101
- constructor(props) {
102
- super(props);
103
- // you have to define webcomponent before you can use the wrapper
104
- defineCustomElements();
105
- this.state = {
106
- columns: [{ prop: "name" }],
107
- source: [{ name: "1" }, { name: "2" }]
108
- };
109
- }
110
-
111
- afterEdit({ detail }) {}
112
-
113
- render() {
114
- return (
115
- <div>
116
- <RevoGrid
117
- theme="compact"
118
- columns={this.state.columns}
119
- source={this.state.source}
120
- onAfterEdit={(e) => this.afterEdit(e)}
121
- />
122
- </div>
123
- );
124
- }
220
+ const gridEditors: Editors = { ['custom-editor']: Editor(Button) };
221
+
222
+ /**
223
+ * note: columns & source need a "stable" reference in order to prevent infinite re-renders
224
+ */
225
+ const columns = [
226
+ {
227
+ prop: 'name',
228
+ name: 'Custom editor',
229
+ editor: 'custom-editor',
230
+ },
231
+ ];
232
+
233
+ function App() {
234
+ const [source] = useState([
235
+ { name: '1', details: 'Item 1' },
236
+ { name: '2', details: 'Item 2' },
237
+ ]);
238
+ return (<RevoGrid columns={columns} source={source} editors={gridEditors} />)
125
239
  }
240
+
241
+ export default App
242
+
126
243
  ```
127
244
 
128
- Check [Sandbox](https://codesandbox.io/s/revogrid-react-g3ygo?file=/src/App.js) for real live sample.
245
+
246
+ [Example and guide](https://rv-grid.com/guide/react/)
247
+
248
+
249
+
250
+ - [![VueJs](./assets/vuejs.svg) Vue 3](https://rv-grid.com/guide/vue3/) and [Vue 2](https://rv-grid.com/guide/vue2/)
251
+ - [![React](./assets/react.svg) React](https://rv-grid.com/guide/react/)
252
+ - [![Angular](./assets/angular.svg) Angular](https://rv-grid.com/guide/angular/)
253
+ - [![Svelte](./assets/svelte.svg) Svelte](https://rv-grid.com/guide/svelte/)
254
+ - [![JavaScript](./assets/js.svg) JavaScript](https://rv-grid.com/guide/)
255
+
256
+ ## Versions
257
+
258
+ - **2.0+**: Introduced the plugin system, grouping, sorting, and filtering.
259
+ - **3.0+**: Breaking changes introduced:
260
+ - Removed the redundant viewport component.
261
+ - Renamed classes to support Bootstrap and other libraries:
262
+ - `row` -> `rgRow`
263
+ - `col` -> `rgCol`
264
+ - `data-cell` -> `rgCell`
265
+ - `data-header-cell` -> `rgHeaderCell`
266
+ - Migrated all method names to lowercase to align with modern event naming conventions. For example, `afterEdit` is now `afteredit`. Check the API for details.
267
+ - Added support for pure ESM modules to enable the use of the grid in all modern frontend tooling like Vite, Parcel, etc. You can now import custom elements without lazy loading. Note that you are responsible for polyfills.
268
+
269
+
270
+ - **4.0+**: Breaking changes introduced. See the [migration guide](https://rv-grid.com/guide/migration).
271
+
272
+ - Redesigned type support:
273
+ - Removed deprecated namespaces:
274
+ - **Before**: `RevoGrid.ColumnRegular`
275
+ - **Now**: `ColumnRegular`;
276
+ - Improved type import:
277
+ - **Before**: `import { RevoGrid } from '@revolist/revogrid/dist/types/interfaces'`
278
+ - **Now**: `import { ColumnRegular } from '@revolist/revogrid'`.
279
+ - Changed viewport type names everywhere. For example, before: `rowDefinitions: [{ type: "row", index: 0, size: 145 }]`, after: `rowDefinitions: [{ type: "rgRow", index: 0, size: 145 }]`.
280
+ - Updated [event](https://rv-grid.com/guide/api/revoGrid.html#Events) naming convention. Review your [event](https://rv-grid.com/guide/api/revoGrid.html#Events) usage. [Event names](https://rv-grid.com/guide/api/revoGrid.html#Events) are all lowercase now and are aligned with modern event naming conventions. For example, `afterEdit` -> `afteredit`.
281
+ - Multiple event breaking changes introduced: beforerowrender now returns `BeforeRowRenderEvent`. Check all events for details.
282
+
283
+ - **Major improvements**:
284
+ - Rethought the entire framework approach. Introduced Pro version with advance support and pro features.
285
+ - Introduced slot support.
286
+ - Updated scrolling system for better mobile support.
287
+ - Advance template support. Introduced `additionalData` for templates and editors. `Prop` gives access to parent/root app context.
288
+ - Redesigned the documentation.
289
+ - Fixed major issues and significantly improved overall performance, making the grid multiple time faster.
290
+ - Enhanced plugin support - now with full access to grid providers.
291
+ - Updated documentation.
292
+ - Provided full framework support and native render for Angular, React, Svelte and Vue.
293
+
294
+ - **What next?**
295
+ - Check our [Roadmap](https://github.com/users/revolist/projects/3)
296
+
297
+
298
+ ## Our Sponsors
299
+
300
+ We would like to extend our heartfelt gratitude to our sponsors for their generous support. Their contributions help us maintain and develop RevoGrid.
301
+
302
+ [![Altruistiq](https://cdn.prod.website-files.com/62cd69e08130a1a33f5ef900/6310b4d500e971695db5e9c3_615b5db69ce8931a276e5ed2_Social_Icons_AQ_3_32x32.png)](https://altruistiq.com)
303
+
304
+
305
+ ### Become a Sponsor
306
+
307
+ If you or your company would like to support the ongoing development of RevoGrid, please consider [![Sponsor Us](https://img.shields.io/badge/Sponsor%20Us-%F0%9F%92%96-brightgreen)](https://opencollective.com/revogrid) or use a [Pro version](https://rv-grid.com/pro/). Your support will help us continue to improve the project and provide the best possible tool for the community.
308
+
309
+ Thank you for supporting RevoGrid! 🙏
310
+
311
+
312
+ ## Contributing
313
+
314
+ By getting involved, you'll have the opportunity to enhance your skills, gain valuable experience, and make a significant impact on an innovative project. Your contribution, no matter how big or small, is valuable.
315
+
316
+ ### Why Contribute?
317
+
318
+ - **Expand Your Knowledge**: Working on complex libraries allows you to dive deep into modern web technologies, improve your coding skills, and learn best practices in performance optimization, data handling, and component-based architecture.
319
+ - **Experience**: Contributing to an open-source project like provides you with practical experience that can be a great addition to your portfolio. It demonstrates your ability to work collaboratively, solve complex problems, and contribute to a project's success.
320
+ - **Professional Growth**: By contributing, you become part of a network of talented developers. This can lead to mentorship opportunities, collaborations, and professional connections that can benefit your career.
321
+
322
+
323
+ ## License
324
+
325
+ MIT
326
+
327
+ ---
328
+
@@ -0,0 +1,73 @@
1
+ import { ColumnDataSchemaModel } from '@revolist/revogrid';
2
+ import { ColumnTemplateProp } from '@revolist/revogrid';
3
+ import { ComponentType } from 'react';
4
+ import { EditCell } from '@revolist/revogrid';
5
+ import { EditorBase } from '@revolist/revogrid';
6
+ import { EditorCtr } from '@revolist/revogrid';
7
+ import { ForwardRefExoticComponent } from 'react';
8
+ import { HTMLAttributes } from 'react';
9
+ import { HyperFunc } from '@revolist/revogrid';
10
+ import { JSX as JSX_2 } from '@revolist/revogrid';
11
+ import { RefAttributes } from 'react';
12
+ import { Root } from 'react-dom/client';
13
+ import { VNode } from '@revolist/revogrid';
14
+
15
+ /**
16
+ * Create editor constructor.
17
+ * This function creates editor constructor by wrapping it with EditorAdapter
18
+ * which is responsible for connecting editor with grid.
19
+ */
20
+ export declare const Editor: (EditorComponent: ComponentType<EditorType>) => EditorCtr;
21
+
22
+ export declare class EditorAdapter implements EditorBase {
23
+ private EditorComponent;
24
+ column: ColumnDataSchemaModel;
25
+ private save;
26
+ private close;
27
+ element: ReactElement | null;
28
+ editCell?: EditCell;
29
+ private renderedComponent;
30
+ constructor(EditorComponent: ComponentType<EditorType>, column: ColumnDataSchemaModel, save: (value: any, preventFocus?: boolean) => void, close: (focusNext?: boolean) => void);
31
+ componentDidRender(): void;
32
+ disconnectedCallback(): void;
33
+ render(h: HyperFunc<VNode>): VNode;
34
+ }
35
+
36
+ /**
37
+ * Data passed to editor
38
+ */
39
+ export declare type EditorType = {
40
+ column: ColumnDataSchemaModel;
41
+ save: (value: any, preventFocus?: boolean) => void;
42
+ close: (focusNext?: boolean) => void;
43
+ } & Partial<EditCell>;
44
+
45
+ export declare interface ReactElement extends HTMLElement {
46
+ _root?: Root;
47
+ }
48
+
49
+ export declare interface RenderedComponent<T> {
50
+ update: (newProps: T) => void;
51
+ destroy: () => void;
52
+ }
53
+
54
+ export declare const RevoGrid: ForwardRefExoticComponent<JSX_2.RevoGrid & Omit<HTMLAttributes<HTMLRevoGridElement>, "style"> & StyleReactProps & RefAttributes<HTMLRevoGridElement>>;
55
+
56
+ declare interface StyleReactProps {
57
+ class?: string;
58
+ className?: string;
59
+ style?: {
60
+ [key: string]: any;
61
+ };
62
+ }
63
+
64
+ /**
65
+ * Render React component in Grid column template.
66
+ */
67
+ export declare const Template: (ReactComponent: ComponentType<ColumnDataSchemaModel | ColumnTemplateProp>, customProps?: any) => (h: HyperFunc<VNode>, p: ColumnDataSchemaModel | ColumnTemplateProp, addition?: any) => VNode;
68
+
69
+
70
+ export * from "@revolist/revogrid";
71
+ export * from "@revolist/revogrid/loader";
72
+
73
+ export { }