@revolist/revogrid-react 3.0.0 → 4.11.19

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 +286 -91
  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,323 @@
1
- # RevoGrid React Adapter
1
+ # React Data Grid minimalist adapter
2
+
3
+
4
+ > [!NOTE]
5
+ > Repository Notice: This repo is read-only. Create new issues at the [revogrid repo](https://github.com/revolist/revogrid)
2
6
 
3
- Minimalistic RevoGrid adapter for React.
4
7
 
5
8
  <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" />
9
+ <a href="https://rv-grid.com">
10
+ <img src="./assets/logo.svg" alt="React Data Grid" height="150" />
8
11
  </a>
9
12
  </p>
10
13
 
11
- ##
12
14
  <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>
15
+ <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
16
  <a href="https://github.com/revolist/revogrid/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/@revolist/revogrid" alt="Software License"/></a>
17
+ <img src="https://badgen.net/bundlephobia/dependency-count/@revolist/revogrid" alt="Dependency count"/>
18
+ <img src="https://badgen.net/bundlephobia/tree-shaking/@revolist/revogrid" alt="Tree shaking"/>
19
+ <img src="https://img.shields.io/bundlephobia/min/@revolist/revogrid" alt="Bundle size"/>
20
+ <img src="https://sonarcloud.io/api/project_badges/measure?project=revolist_revogrid&metric=alert_status" alt="Sonar Quality Gate"/>
15
21
  </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>
22
+
23
+
24
+ <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
25
  <p align="center">
18
- Millions of cells and thousands columns easy and efficiently.
19
-
26
+ Support Millions of cells and thousands of columns easy and efficiently for fast data rendering. Easy to use.
20
27
  </p>
21
28
 
22
29
  <p align="center">
23
- <a href="https://revolist.github.io/revogrid">Demo and API</a> •
30
+ <a href="https://rv-grid.com">Demo and API</a> •
24
31
  <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> •
32
+ <a href="#basic-usage">How To Use</a> •
33
+ <a href="#installation">Installation</a> •
34
+ <a href="https://rv-grid.com/guide/">Docs</a> •
27
35
  <a href="#license">License</a>
28
36
  </p>
29
37
 
30
- <img src="https://raw.githubusercontent.com/revolist/revogrid/master/assets/material.jpg" alt="Material grid preview" width="100%" />
38
+ <img src="./assets/material.jpg" alt="Material grid preview" width="100%" />
31
39
  <i>RevoGrid material theme.</i>
32
40
  <br>
33
41
 
34
42
 
35
43
  ## Key Features
36
44
 
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
45
+ - **High Performance**: Handles millions of cells in the viewport with a powerful core built by default.
46
+
47
+ - **[Accessibility](https://rv-grid.com/guide/wcag)**: Follows WAI-ARIA best practices.
48
+
49
+ - **[Keyboard Support](https://rv-grid.com/guide/defs#Keyboard)**:
50
+ - Excel-like focus for efficient navigation and editing.
51
+ - Seamless copy/paste from Excel, Google Sheets, or any other sheet format.
52
+
53
+
54
+ - **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.
55
+
56
+ - **[Intelligent Virtual DOM](https://rv-grid.com/guide/overview#VNode-Reactive-DOM)**: Smart row recombination to minimize redraws.
57
+
58
+ - **[Virtual Scroll](https://rv-grid.com/guide/viewports)**: Handles large datasets with infinite scroll.
59
+
60
+ - **[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).
61
+
62
+ - **[Sorting](https://rv-grid.com/guide/sorting)**: Multiple options, customizable per column, with advanced event handling.
63
+
64
+ - **[Filtering](https://rv-grid.com/guide/filters)**:
65
+ - Predefined system filters.
66
+ - Multi column filters.
67
+ - Conditional filters.
68
+ - Preserve existing collections.
69
+ - Custom filters to extend system filters with your own set.
70
+
71
+ - **[Export](https://rv-grid.com/guide/export.plugin)**: Export data to file.
72
+
73
+ - **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.
74
+
75
+ - **[Column Resizing](https://rv-grid.com/guide/column/resize)**: Adjust column widths.
76
+
77
+ - **Pinned/Sticky/Freezed Elements**:
78
+ - [Columns](https://rv-grid.com/guide/column/pin) (define left or right).
79
+ - [Rows](https://rv-grid.com/guide/row/pin) (define top or bottom).
80
+
81
+ - **Grouping**:
82
+ - [Column grouping](https://rv-grid.com/guide/column/grouping) (nested headers).
83
+ - [Row grouping](https://rv-grid.com/guide/row/grouping) (nested rows).
84
+
85
+ - **Column Types**: [More details](https://rv-grid.com/guide/column/#Column-Formats)
86
+ - [Text/String](https://rv-grid.com/guide/column/types#String) (default).
87
+ - [Number](https://rv-grid.com/guide/column/types#Number).
88
+ - [Select/Dropdown](https://rv-grid.com/guide/column/types#Select-Dropdown).
89
+ - [Date](https://rv-grid.com/guide/column/types#Date).
90
+ - Custom (create extended styles using any template).
91
+
92
+ - **Range Operations**:
93
+ - [Selection](https://rv-grid.com/guide/defs#Range).
94
+ - [Editing](https://rv-grid.com/guide/defs#Range-Autofill).
95
+
96
+ - **[Theme Packages](https://rv-grid.com/guide/theme)**:
97
+ - Excel-like (default).
98
+ - Material (compact, dark, or light).
99
+
100
+ - **[Extensibility](https://rv-grid.com/guide/jsx.template)**: Modern VNode features and tsx support for easy extension.
101
+
102
+ - **[Trimmed Rows](https://rv-grid.com/guide/row/#Trimmed-Rows)**: Hide rows on demand.
103
+
104
+ - **[Plugin System](https://rv-grid.com/guide/plugin/)**: Create custom plugins or extend existing ones easily.
105
+
106
+ - **[Formula Support](https://rv-grid.com/guide/cell/formula)**: Evaluate formulas in cell data.
107
+
108
+ - **[Master Detail/Subtables/Forms](https://rv-grid.com/guide/row/master.pro)**: Expand rows to reveal child data.
109
+ - **[Cell/Column/Row Span/Merge](https://rv-grid.com/guide/cell/merge)**: Merge cells to form groups.
110
+
111
+ - **Customizations**:
112
+ - [Column header template](https://rv-grid.com/guide/column/header.template).
113
+ - [Row header template](https://rv-grid.com/guide/row/headers).
114
+ - [Cell properties](https://rv-grid.com/guide/cell/) (define custom properties for rendered cells).
115
+
116
+ - [Cell template](https://rv-grid.com/guide/react/renderer) (create your own cell views).
117
+ - [Cell editor](https://rv-grid.com/guide/react/editor) (use predefined or apply your own custom editors and cell types).
118
+
119
+ - **Rich API & Additional Improvements**: Explore hundreds of other small customizations and improvements in [RevoGrid](https://rv-grid.com/).
120
+
121
+ ## Installation
122
+
82
123
 
83
124
  With NPM:
125
+
84
126
  ```bash
85
- npm i @revolist/revogrid-react --save;
127
+ npm i @revolist/react-datagrid
128
+ ```
129
+
130
+ With PNPM:
131
+
132
+ ```bash
133
+ pnpm add @revolist/react-datagrid
86
134
  ```
87
135
 
88
136
  With Yarn:
89
137
 
90
138
  ```bash
91
- yarn add @revolist/revogrid-react;
139
+ yarn add @revolist/react-datagrid
140
+ ```
141
+
142
+ With Bun:
143
+
144
+ ```bash
145
+ bun add @revolist/react-datagrid
92
146
  ```
93
147
 
148
+ > [!NOTE]
149
+ > Previous package name: `@revolist/revogrid-react` was renamed to `@revolist/react-datagrid`.
150
+
151
+
152
+
153
+ ## Basic Usage
154
+
155
+ ### Simplest Usage
156
+
157
+ ```tsx
158
+ import { useState } from 'react'
159
+ import { RevoGrid } from '@revolist/react-datagrid'
160
+
161
+ /**
162
+ * note: columns & source need a "stable" reference in order to prevent infinite re-renders
163
+ */
164
+ const columns = [
165
+ { prop: 'name', name: 'First' },
166
+ { prop: 'details', name: 'Second' },
167
+ ]
94
168
 
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
- }
169
+ function App() {
170
+ const [source] = useState([
171
+ { name: '1', details: 'Item 1' },
172
+ { name: '2', details: 'Item 2' },
173
+ ]);
174
+ return (<RevoGrid columns={columns} source={source} />)
125
175
  }
176
+ export default App
177
+
178
+ ```
179
+
180
+ ### Cell Template Usage
181
+
182
+ ```tsx
183
+ import { useState } from 'react';
184
+ import { RevoGrid, Template, type ColumnDataSchemaModel } from '@revolist/react-datagrid';
185
+
186
+ /**
187
+ * Custom cell component
188
+ */
189
+ const Cell = ({ model, prop, value }: ColumnDataSchemaModel) => {
190
+ return <div><strong>{value}</strong></div>;
191
+ };
192
+ /**
193
+ * note: columns & source need a "stable" reference in order to prevent infinite re-renders
194
+ */
195
+ const columns = [
196
+ { prop: 'name', name: 'First', cellTemplate: Template(Cell) },
197
+ ];
198
+
199
+ function App() {
200
+ const [source] = useState([{ name: '1' }, { name: '2' }]);
201
+ return (<RevoGrid columns={columns} source={source} />)
202
+ }
203
+ export default App
204
+
126
205
  ```
127
206
 
128
- Check [Sandbox](https://codesandbox.io/s/revogrid-react-g3ygo?file=/src/App.js) for real live sample.
207
+ ### Editor Usage
208
+
209
+ ```tsx
210
+ // App.tsx
211
+ import { useState } from 'react';
212
+ import { RevoGrid, Editor, type EditorType, type Editors } from '@revolist/react-datagrid';
213
+
214
+ /**
215
+ * Custom editor component
216
+ */
217
+ const Button = ({ close } : EditorType) => {
218
+ return <button onClick={close}>Close</button>
219
+ };
220
+
221
+ const gridEditors: Editors = { ['custom-editor']: Editor(Button) };
222
+
223
+ /**
224
+ * note: columns & source need a "stable" reference in order to prevent infinite re-renders
225
+ */
226
+ const columns = [
227
+ {
228
+ prop: 'name',
229
+ name: 'Custom editor',
230
+ editor: 'custom-editor',
231
+ },
232
+ ];
233
+
234
+ function App() {
235
+ const [source] = useState([
236
+ { name: '1', details: 'Item 1' },
237
+ { name: '2', details: 'Item 2' },
238
+ ]);
239
+ return (<RevoGrid columns={columns} source={source} editors={gridEditors} />)
240
+ }
241
+
242
+ export default App
243
+
244
+ ```
245
+
246
+
247
+ [Example and guide](https://rv-grid.com/guide/react/)
248
+
249
+
250
+
251
+ ## Versions
252
+
253
+ - **2.0+**: Introduced the plugin system, grouping, sorting, and filtering.
254
+ - **3.0+**: Breaking changes introduced:
255
+ - Removed the redundant viewport component.
256
+ - Renamed classes to support Bootstrap and other libraries:
257
+ - `row` -> `rgRow`
258
+ - `col` -> `rgCol`
259
+ - `data-cell` -> `rgCell`
260
+ - `data-header-cell` -> `rgHeaderCell`
261
+ - Migrated all method names to lowercase to align with modern event naming conventions. For example, `afterEdit` is now `afteredit`. Check the API for details.
262
+ - 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.
263
+
264
+
265
+ - **4.0+**: Breaking changes introduced. See the [migration guide](https://rv-grid.com/guide/migration).
266
+
267
+ - Redesigned type support:
268
+ - Removed deprecated namespaces:
269
+ - **Before**: `RevoGrid.ColumnRegular`
270
+ - **Now**: `ColumnRegular`;
271
+ - Improved type import:
272
+ - **Before**: `import { RevoGrid } from '@revolist/revogrid/dist/types/interfaces'`
273
+ - **Now**: `import { ColumnRegular } from '@revolist/revogrid'`.
274
+ - Changed viewport type names everywhere. For example, before: `rowDefinitions: [{ type: "row", index: 0, size: 145 }]`, after: `rowDefinitions: [{ type: "rgRow", index: 0, size: 145 }]`.
275
+ - 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`.
276
+ - Multiple event breaking changes introduced: beforerowrender now returns `BeforeRowRenderEvent`. Check all events for details.
277
+
278
+ - **Major improvements**:
279
+ - Rethought the entire framework approach. Introduced Pro version with advance support and pro features.
280
+ - Introduced slot support.
281
+ - Updated scrolling system for better mobile support.
282
+ - Advance template support. Introduced `additionalData` for templates and editors. `Prop` gives access to parent/root app context.
283
+ - Redesigned the documentation.
284
+ - Fixed major issues and significantly improved overall performance, making the grid multiple time faster.
285
+ - Enhanced plugin support - now with full access to grid providers.
286
+ - Updated documentation.
287
+ - Provided full framework support and native render for Angular, React, Svelte and Vue.
288
+
289
+ - **What next?**
290
+ - Check our [Roadmap](https://github.com/users/revolist/projects/3)
291
+
292
+
293
+ ## Our Sponsors
294
+
295
+ We would like to extend our heartfelt gratitude to our sponsors for their generous support. Their contributions help us maintain and develop RevoGrid.
296
+
297
+ [![Altruistiq](https://cdn.prod.website-files.com/62cd69e08130a1a33f5ef900/6310b4d500e971695db5e9c3_615b5db69ce8931a276e5ed2_Social_Icons_AQ_3_32x32.png)](https://altruistiq.com)
298
+
299
+
300
+ ### Become a Sponsor
301
+
302
+ 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.
303
+
304
+ Thank you for supporting RevoGrid! 🙏
305
+
306
+
307
+ ## Contributing
308
+
309
+ 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.
310
+
311
+ ### Why Contribute?
312
+
313
+ - **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.
314
+ - **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.
315
+ - **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.
316
+
317
+
318
+ ## License
319
+
320
+ MIT
321
+
322
+ ---
323
+
@@ -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 { }