@progress/kendo-react-grid 10.0.0-develop.3 → 10.0.0-develop.4
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/GridClientContextReader.js +1 -1
- package/GridClientContextReader.mjs +14 -15
- package/GridClientWrapper.js +1 -1
- package/GridClientWrapper.mjs +427 -432
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +374 -357
- package/README.md +61 -15
- package/components/colGroup/GridColGroup.js +1 -1
- package/components/colGroup/GridColGroup.mjs +6 -6
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/drag/ColumnResize.js +1 -1
- package/drag/ColumnResize.mjs +111 -80
- package/index.d.mts +8 -0
- package/index.d.ts +8 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +13 -13
- package/utils/index.js +1 -1
- package/utils/index.mjs +163 -151
- package/utils/premium.js +1 -1
- package/utils/premium.mjs +6 -6
package/README.md
CHANGED
|
@@ -6,38 +6,83 @@
|
|
|
6
6
|
|
|
7
7
|
> **Important**
|
|
8
8
|
>
|
|
9
|
-
> - This package is а part of [KendoReact](https://www.telerik.com/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)—
|
|
10
|
-
> -
|
|
11
|
-
> -
|
|
12
|
-
> -
|
|
9
|
+
> - This package is а part of [KendoReact](https://www.telerik.com/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)—an enterprise-grade UI library with 120+ free and premium components.
|
|
10
|
+
> - This is a free React Data Grid (Table) component with premium features. To use the premium features of the KendoReact Data Grid (Table), you will need to [purchase a license](https://www.telerik.com/kendo-react-ui/pricing?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid) or register for a [free trial](https://www.telerik.com/try/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid). You can use the free features even in production, no sign-up or license required.
|
|
11
|
+
> - If you're looking for more free React components, check out [Get Started with KendoReact Free: 50+ Free React Components](https://www.telerik.com/kendo-react-ui/components/free).
|
|
12
|
+
> - If you have an active license, visit the [KendoReact My License page](https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid) to learn how to configure your KendoReact licensing.
|
|
13
|
+
> - Installing and working with this package indicates that you [accept the KendoReact License Agreement](https://www.telerik.com/purchase/license-agreement/progress-kendoreact?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid).
|
|
14
|
+
> - The [30-day free trial](https://www.telerik.com/try/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)) gives you access to all the KendoReact components and their full functionality. Additionally, for the period of your license, you get access to our legendary technical support provided directly by the KendoReact dev team!
|
|
13
15
|
>
|
|
14
16
|
> [Start using KendoReact](https://www.telerik.com/try/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid) and speed up your development process!
|
|
15
17
|
|
|
16
|
-
[The React Data Grid (Table)](https://www.telerik.com/kendo-react-ui/grid), part of KendoReact, provides 100+ ready-to-use data grid features covering everything from paging, sorting, filtering, editing, and grouping to row and column virtualization, export to PDF and Excel.
|
|
18
|
+
[The React Data Grid (Table)](https://www.telerik.com/kendo-react-ui/grid), part of KendoReact, provides 100+ ready-to-use free and premium data grid features covering everything from paging, sorting, filtering, editing, and grouping to row and column virtualization, export to PDF and Excel.
|
|
19
|
+
|
|
20
|
+
How to start:
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
npm install --save @progress/kendo-react-grid @progress/kendo-data-query @progress/kendo-drawing @progress/kendo-licensing @progress/kendo-react-animation @progress/kendo-react-buttons @progress/kendo-react-common @progress/kendo-react-data-tools @progress/kendo-react-dateinputs @progress/kendo-react-indicators @progress/kendo-react-dropdowns @progress/kendo-react-inputs @progress/kendo-react-intl @progress/kendo-react-popup @progress/kendo-react-layout @progress/kendo-svg-icons
|
|
24
|
+
```
|
|
17
25
|
|
|
18
26
|
## React Data Grid
|
|
19
27
|
|
|
28
|
+
> This is a **free React component** with premium features such as RSC mode, server-side capabilities, advanced filtering and grouping, and others. The free feature set does not require any sign-up or license, even in production. The premium features require a commercial license or an active trial license.
|
|
29
|
+
|
|
20
30
|
The KendoReact Grid component is built on React from the ground up by developers with 19+ years of experience in making enterprise-ready components. This results in a React data grid that delivers lightning fast performance and is highly customizable.
|
|
21
31
|
|
|
22
32
|
The Grid is fully accessible and delivers support for WCAG 2.1, Section 508, and WAI-ARIA a11y standards.
|
|
23
33
|
|
|
24
34
|
Among the many features which the KendoReact Data Grid delivers are:
|
|
25
35
|
|
|
26
|
-
- [Paging](https://www.telerik.com/kendo-react-ui/components/grid/paging/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)—You also have the option to add a pager for easier navigation.
|
|
36
|
+
- [Paging (premium)](https://www.telerik.com/kendo-react-ui/components/grid/paging/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)—You also have the option to add a pager for easier navigation.
|
|
27
37
|
- [Sorting](https://www.telerik.com/kendo-react-ui/components/grid/sorting/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)—Apart from the sorting and unsorting options of multiple columns, you can also pre-sort the data records of the Grid.
|
|
38
|
+
- Single-column sorting (free)
|
|
39
|
+
- Multi-column sorting (premium)
|
|
28
40
|
- [Filtering](https://www.telerik.com/kendo-react-ui/components/grid/filtering/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)—Including additional cell customization options.
|
|
29
|
-
-
|
|
41
|
+
- Quick filter (free)
|
|
42
|
+
- Row and header filtering (free)
|
|
43
|
+
- Column menu filter (premium)
|
|
44
|
+
- External filter (premium)
|
|
45
|
+
- Custom filter operations (premium)
|
|
46
|
+
- Multi-column filtering (premium)
|
|
47
|
+
- [Grouping (premium)](https://www.telerik.com/kendo-react-ui/components/grid/grouping/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-native)—Out of the box, you can apply dynamic grouping to the data Grid records, set grouping by aggregate values, and in the same way as with the sorting functionality, pre-group the data.
|
|
30
48
|
- [Editing](https://www.telerik.com/kendo-react-ui/components/grid/editing/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)—Depending on your users' requirements, you can opt for the inline or the in-cell edit modes, provide editing from an external form or Redux Form and further customize the Grid.
|
|
49
|
+
- In-cell editing (free)
|
|
50
|
+
- In-cell editing of all celss (free)
|
|
51
|
+
- Inline (row) editing (premium)
|
|
52
|
+
- Inline editing with custom editors (premium)
|
|
53
|
+
- Inline editing with external form (premium)
|
|
31
54
|
- [Row selection](https://www.telerik.com/kendo-react-ui/components/grid/selection/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)—You can additionally configure it by enabling or disabling the checkbox and row selection options.
|
|
32
|
-
-
|
|
55
|
+
- Single row selection (free)
|
|
56
|
+
- Multiple row selection (premium)
|
|
57
|
+
- [Export to PDF (premium)](https://www.telerik.com/kendo-react-ui/components/grid/pdf-export/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid) and [Excel](https://www.telerik.com/kendo-react-ui/components/grid/excel-export/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)—When implementing the Grid export to PDF, you can set the fonts, the exact portion and layout of the exported content, also customize the columns and other specifics of the output result. When exporting to Excel, you can export specific data and customize the exported columns.
|
|
33
58
|
- [Custom renderer](https://www.telerik.com/kendo-react-ui/components/grid/styling/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)—Based on a value, you can also use conditional formatting (highlight a data table cell).
|
|
34
|
-
- [Locked columns](https://www.telerik.com/kendo-react-ui/components/grid/columns/locked/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)—When your Grid has to display large amounts of data, the frozen columns feature enables you to lock any of the Grid columns by just setting the locked column property.
|
|
59
|
+
- [Locked columns (premium)](https://www.telerik.com/kendo-react-ui/components/grid/columns/locked/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)—When your Grid has to display large amounts of data, the frozen columns feature enables you to lock any of the Grid columns by just setting the locked column property.
|
|
35
60
|
- [Virtualization](https://www.telerik.com/kendo-react-ui/components/grid/scroll-modes/virtual/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)—The Grid supports virtualization of both column and row data. This feature boosts the performance of the component when displaying large data tables as it dynamically renders only a portion of the rows and the columns.
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
- [
|
|
40
|
-
- [
|
|
61
|
+
- Numeric pager with dropdown (free)
|
|
62
|
+
- Column virtualization (free)
|
|
63
|
+
- Row virtualization (premium)
|
|
64
|
+
- [Column reordering (free)](https://www.telerik.com/kendo-react-ui/components/grid/columns/reordering/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)—Reordering can be enabled for any column and is seamlessly integrated with the available Grid features, including locked columns.
|
|
65
|
+
- [Column resizing (free)](https://www.telerik.com/kendo-react-ui/components/grid/columns/resizing/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)—Resizing takes place real-time but can also be controlled from the outside.
|
|
66
|
+
- [Detail templates (premium)](https://www.telerik.com/kendo-react-ui/components/grid/advanced-features/detail/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)—The detail rows of the Grid provide additional details about a particular row of table data through expanding or collapsing its content.
|
|
67
|
+
- [Globalization (free)](https://www.telerik.com/kendo-react-ui/components/grid/globalization/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)—By using the available globalization options in KendoReact, you can translate the Grid messages by adapting them to specific culture locales.
|
|
68
|
+
- [Theme support (free)](https://www.telerik.com/kendo-react-ui/components/styling/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)—The KendoReact Grid, as well as all 120+ components in the KendoReact suite, are styled in three polished themes (Bootstrap, Material, Fluent, and Default) and can be further customized to match your specific design guidelines.
|
|
69
|
+
- [Server and hybrid data operations (premium)](https://www.telerik.com/kendo-react-ui/components/grid/rsc-mode)—The RCS mode of the KendoReact Grid is a modern, high-performance implementation built on top of the React Server Components (or RSC) architecture allowing you to perform server and hybrid data operations.
|
|
70
|
+
|
|
71
|
+
How to use the Data Grid component in your apps:
|
|
72
|
+
|
|
73
|
+
```tsx
|
|
74
|
+
import { Grid, GridColumn } from '@progress/kendo-react-grid';
|
|
75
|
+
...
|
|
76
|
+
/**
|
|
77
|
+
* Provide the data to populate the grid.
|
|
78
|
+
*/
|
|
79
|
+
<Grid data={data}>
|
|
80
|
+
<GridColumn field="DataField1" />
|
|
81
|
+
/**
|
|
82
|
+
* Provide as many columns as needed. Every field must match an existing field in your data.
|
|
83
|
+
*/
|
|
84
|
+
</Grid>
|
|
85
|
+
```
|
|
41
86
|
|
|
42
87
|
## Support Options
|
|
43
88
|
|
|
@@ -50,6 +95,7 @@ For any issues you might encounter while working with the KendoReact Grid, use a
|
|
|
50
95
|
## Resources
|
|
51
96
|
|
|
52
97
|
- [Getting Started with KendoReact](https://www.telerik.com/kendo-react-ui/components/getting-started/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)
|
|
98
|
+
- [Get Started with KendoReact Free: 50+ Free React Components](https://www.telerik.com/kendo-react-ui/components/free)
|
|
53
99
|
- [Get Started with the KendoReact Data Grid](https://www.telerik.com/kendo-react-ui/components/grid/get-started/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)
|
|
54
100
|
- [API Reference of the KendoReact Data Grid](https://www.telerik.com/kendo-react-ui/components/grid/api/GridProps/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)
|
|
55
101
|
- [KendoReact Roadmap](https://www.telerik.com/support/whats-new/kendo-react-ui/roadmap?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)
|
|
@@ -58,7 +104,7 @@ For any issues you might encounter while working with the KendoReact Grid, use a
|
|
|
58
104
|
- [KendoReact pricing and licensing](https://www.telerik.com/kendo-react-ui/pricing?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)
|
|
59
105
|
- [Changelog](https://www.telerik.com/kendo-react-ui/components/changelogs/ui-for-react/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-grid)
|
|
60
106
|
|
|
61
|
-
High-level component overview
|
|
107
|
+
High-level component overview page:
|
|
62
108
|
|
|
63
109
|
- [React Data Grid Component](https://www.telerik.com/kendo-react-ui/grid)
|
|
64
110
|
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),i=require("../../GridClientWrapper.js");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=u(c),l=e=>{const t=o.useContext(i.GridContext);return o.createElement("colgroup",{ref:r=>{t.columnResizeRef.current.colGroupMain=r,t.columnResizeRef.current.initWidths()}},e.children)};exports.GridColGroup=l;
|
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
"use client";
|
|
9
9
|
import * as r from "react";
|
|
10
10
|
import { GridContext as n } from "../../GridClientWrapper.mjs";
|
|
11
|
-
const
|
|
12
|
-
const
|
|
11
|
+
const c = (t) => {
|
|
12
|
+
const e = r.useContext(n);
|
|
13
13
|
return /* @__PURE__ */ r.createElement(
|
|
14
14
|
"colgroup",
|
|
15
15
|
{
|
|
16
|
-
ref: (
|
|
17
|
-
|
|
16
|
+
ref: (o) => {
|
|
17
|
+
e.columnResizeRef.current.colGroupMain = o, e.columnResizeRef.current.initWidths();
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
|
|
20
|
+
t.children
|
|
21
21
|
);
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
c as GridColGroup
|
|
25
25
|
};
|