@progress/kendo-react-grid 11.0.0-develop.11 → 11.0.0-develop.13
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/BasePDFExport.js +8 -0
- package/BasePDFExport.mjs +52 -0
- package/Grid.js +1 -1
- package/Grid.mjs +13 -18
- package/GridClientWrapper.js +1 -1
- package/GridClientWrapper.mjs +289 -286
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +345 -369
- package/GridPdfExportButton.js +8 -0
- package/GridPdfExportButton.mjs +35 -0
- package/GridSearchBox.js +1 -1
- package/GridSearchBox.mjs +1 -1
- package/StatusBar.js +1 -1
- package/StatusBar.mjs +23 -23
- package/cells/GridFilterCell.js +1 -1
- package/cells/GridFilterCell.mjs +46 -46
- package/cells/datacell/GridCell.js +1 -1
- package/cells/datacell/GridCell.mjs +9 -15
- package/cells/datacell/GridCellServerContainer.js +1 -1
- package/cells/datacell/GridCellServerContainer.mjs +1 -1
- package/cells/datacell/useCellClientTdProps.js +1 -1
- package/cells/datacell/useCellClientTdProps.mjs +1 -1
- package/cells/editcell/GridEditCell.js +1 -1
- package/cells/editcell/GridEditCell.mjs +7 -13
- package/cells/editcell/GridEditCellEditor.js +1 -1
- package/cells/editcell/GridEditCellEditor.mjs +1 -1
- package/cells/editcell/GridEditCellServerContainer.js +1 -1
- package/cells/editcell/GridEditCellServerContainer.mjs +1 -1
- package/cells/groupcell/GridGroupCell.js +1 -1
- package/cells/groupcell/GridGroupCell.mjs +8 -10
- package/cells/groupcell/GridGroupCellServerContainer.js +1 -1
- package/cells/groupcell/GridGroupCellServerContainer.mjs +1 -1
- package/cells/groupcell/GridGroupCellToggle.js +1 -1
- package/cells/groupcell/GridGroupCellToggle.mjs +1 -1
- package/cells/groupcell/useGroupCellClientTdProps.js +1 -1
- package/cells/groupcell/useGroupCellClientTdProps.mjs +1 -1
- package/cells/hierarchycell/GridHierarchyCell.js +1 -1
- package/cells/hierarchycell/GridHierarchyCell.mjs +8 -14
- package/cells/hierarchycell/GridHierarchyCellServerContainer.js +1 -1
- package/cells/hierarchycell/GridHierarchyCellServerContainer.mjs +1 -1
- package/cells/hierarchycell/GridHierarchyCellToggle.js +1 -1
- package/cells/hierarchycell/GridHierarchyCellToggle.mjs +1 -1
- package/cells/hierarchycell/useHierarchyCellClientTdProps.js +1 -1
- package/cells/hierarchycell/useHierarchyCellClientTdProps.mjs +15 -18
- package/cells/hooks.js +1 -1
- package/cells/hooks.mjs +1 -1
- package/cells/rowreordercell/useRowReorderCellClientTdProps.js +1 -1
- package/cells/rowreordercell/useRowReorderCellClientTdProps.mjs +1 -1
- package/cells/selectioncell/GridSelectionCell.js +1 -1
- package/cells/selectioncell/GridSelectionCell.mjs +7 -13
- package/cells/selectioncell/GridSelectionCellInput.js +1 -1
- package/cells/selectioncell/GridSelectionCellInput.mjs +1 -1
- package/cells/selectioncell/GridSelectionCellServerContainer.js +1 -1
- package/cells/selectioncell/GridSelectionCellServerContainer.mjs +1 -1
- package/columnMenu/GridColumnMenuCheckboxFilter.js +1 -1
- package/columnMenu/GridColumnMenuCheckboxFilter.mjs +1 -1
- package/columnMenu/GridColumnMenuColumnsChooser.js +1 -1
- package/columnMenu/GridColumnMenuColumnsChooser.mjs +1 -1
- package/columnMenu/GridColumnMenuFilter.js +1 -1
- package/columnMenu/GridColumnMenuFilter.mjs +1 -1
- package/columnMenu/GridColumnMenuFilterCell.js +1 -1
- package/columnMenu/GridColumnMenuFilterCell.mjs +1 -1
- package/columnMenu/GridColumnMenuFilterUI.js +1 -1
- package/columnMenu/GridColumnMenuFilterUI.mjs +1 -1
- package/columnMenu/GridColumnMenuItem.js +1 -1
- package/columnMenu/GridColumnMenuItem.mjs +1 -1
- package/columnMenu/GridColumnMenuWrapper.js +1 -1
- package/columnMenu/GridColumnMenuWrapper.mjs +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveCheckboxFilter.js +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveCheckboxFilter.mjs +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveColumnChooser.js +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveColumnChooser.mjs +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveColumnMenu.js +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveColumnMenu.mjs +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveFilterMenu.js +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveFilterMenu.mjs +1 -1
- package/components/GridContainerElementContainer.js +1 -1
- package/components/GridContainerElementContainer.mjs +1 -1
- package/components/GridDragClue.js +1 -1
- package/components/GridDragClue.mjs +1 -1
- package/components/GridDraggableRowsContainer.js +1 -1
- package/components/GridDraggableRowsContainer.mjs +1 -1
- package/components/GridDropClue.js +1 -1
- package/components/GridDropClue.mjs +1 -1
- package/components/GridEditDialog.js +1 -1
- package/components/GridEditDialog.mjs +1 -1
- package/components/GridElementContainer.js +1 -1
- package/components/GridElementContainer.mjs +1 -1
- package/components/PagerContainer.js +1 -1
- package/components/PagerContainer.mjs +1 -1
- package/components/VirtualScrollHeightContainer.js +1 -1
- package/components/VirtualScrollHeightContainer.mjs +1 -1
- package/components/colGroup/GridColGroup.js +1 -1
- package/components/colGroup/GridColGroup.mjs +1 -1
- package/components/noRecords/GridNoRecordsContainer.js +1 -1
- package/components/noRecords/GridNoRecordsContainer.mjs +1 -1
- package/components/table/GridTable.js +1 -1
- package/components/table/GridTable.mjs +1 -1
- package/components/table/GridTableBody.js +1 -1
- package/components/table/GridTableBody.mjs +1 -1
- package/components/table/GridTableScrollable.js +1 -1
- package/components/table/GridTableScrollable.mjs +1 -1
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/footer/Footer.js +1 -1
- package/footer/Footer.mjs +1 -1
- package/footer/FooterCell.js +1 -1
- package/footer/FooterCell.mjs +14 -14
- package/footer/client/FooterCellContainer.js +1 -1
- package/footer/client/FooterCellContainer.mjs +1 -1
- package/header/FilterRow.js +1 -1
- package/header/FilterRow.mjs +42 -46
- package/header/GridHeaderCell.js +1 -1
- package/header/GridHeaderCell.mjs +11 -11
- package/header/GridHeaderSelectionCell.js +1 -1
- package/header/GridHeaderSelectionCell.mjs +14 -14
- package/header/GroupPanel.js +1 -1
- package/header/GroupPanel.mjs +1 -1
- package/header/Header.js +1 -1
- package/header/Header.mjs +1 -1
- package/header/HeaderRow.js +1 -1
- package/header/HeaderRow.mjs +19 -20
- package/header/client/GridFilterCellContainer.js +1 -1
- package/header/client/GridFilterCellContainer.mjs +11 -12
- package/header/client/GridFilterCellElementContainer.js +1 -1
- package/header/client/GridFilterCellElementContainer.mjs +1 -1
- package/header/client/GridHeaderCellContainer.js +1 -1
- package/header/client/GridHeaderCellContainer.mjs +7 -8
- package/header/client/GridHeaderCellElementContainer.js +1 -1
- package/header/client/GridHeaderCellElementContainer.mjs +1 -1
- package/header/client/GridHeaderRowContainer.js +1 -1
- package/header/client/GridHeaderRowContainer.mjs +1 -1
- package/header/client/HeaderCellResizer.js +1 -1
- package/header/client/HeaderCellResizer.mjs +1 -1
- package/header/client/HeaderRowDraggable.js +1 -1
- package/header/client/HeaderRowDraggable.mjs +1 -1
- package/index.d.mts +49 -168
- package/index.d.ts +49 -168
- package/index.js +1 -1
- package/index.mjs +23 -21
- package/messages/index.js +1 -1
- package/messages/index.mjs +60 -58
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +16 -16
- package/rows/GridRow.js +1 -1
- package/rows/GridRow.mjs +32 -33
- package/utils/GridContext.js +9 -0
- package/utils/GridContext.mjs +13 -0
- package/utils/index.js +1 -1
- package/utils/index.mjs +145 -148
- package/utils/premium.js +1 -1
- package/utils/premium.mjs +18 -22
- package/components/GridCustomCellClientContainer.js +0 -9
- package/components/GridCustomCellClientContainer.mjs +0 -34
|
@@ -7,33 +7,32 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as a from "react";
|
|
10
|
-
import { GridContext as u } from "../../
|
|
11
|
-
import { cloneReactElement as
|
|
10
|
+
import { GridContext as u } from "../../utils/GridContext.mjs";
|
|
11
|
+
import { cloneReactElement as s } from "../../utils/index.mjs";
|
|
12
12
|
const x = (t) => {
|
|
13
|
-
const i = a.useContext(u),
|
|
13
|
+
const i = a.useContext(u), f = (e, r, c, C) => {
|
|
14
14
|
if (!i.filterChange)
|
|
15
15
|
return;
|
|
16
16
|
const l = [];
|
|
17
|
-
(e !== "" && e !== null ||
|
|
17
|
+
(e !== "" && e !== null || r !== "") && l.push({
|
|
18
18
|
field: c,
|
|
19
|
-
operator:
|
|
19
|
+
operator: r,
|
|
20
20
|
value: e
|
|
21
21
|
}), t.filter && t.filter.filters && (t.filter.filters || []).forEach((n) => {
|
|
22
22
|
n && n.field !== c && l.push(n);
|
|
23
23
|
});
|
|
24
24
|
const h = t.filter && t.filter.logic ? t.filter.logic : "and";
|
|
25
25
|
i.filterChange(l.length > 0 ? { logic: h, filters: l } : null, C);
|
|
26
|
-
}, d = i.getCellPositionStyle(t.column),
|
|
26
|
+
}, d = i.getCellPositionStyle(t.column), o = t.isCustom ? {
|
|
27
27
|
style: { ...d }
|
|
28
28
|
} : {};
|
|
29
|
-
return i.isClient || t.isClient ?
|
|
30
|
-
render: t.render,
|
|
29
|
+
return i.isClient || t.isClient ? s(t.children, {
|
|
31
30
|
onChange: (e) => {
|
|
32
|
-
|
|
31
|
+
f(e.value, e.operator, t.field, e.syntheticEvent);
|
|
33
32
|
},
|
|
34
|
-
tdProps: { ...t.tdProps, ...
|
|
35
|
-
thProps: { ...t.tdProps, ...
|
|
36
|
-
}) :
|
|
33
|
+
tdProps: { ...t.tdProps, ...o },
|
|
34
|
+
thProps: { ...t.tdProps, ...o }
|
|
35
|
+
}) : s(t.children, {});
|
|
37
36
|
};
|
|
38
37
|
export {
|
|
39
38
|
x as GridFilterCellContainer
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),i=require("../../utils/GridContext.js"),l=require("../../utils/index.js");function c(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const s=c(r),u=e=>{const o={style:{...s.useContext(i.GridContext).getCellPositionStyle(e.column)}};return l.cloneReactElement(e.children,{...o})};exports.GridFilterCellElementContainer=u;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as e from "react";
|
|
10
|
-
import { GridContext as n } from "../../
|
|
10
|
+
import { GridContext as n } from "../../utils/GridContext.mjs";
|
|
11
11
|
import { cloneReactElement as r } from "../../utils/index.mjs";
|
|
12
12
|
const m = (t) => {
|
|
13
13
|
const o = {
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),a=require("../../utils/GridContext.js"),C=require("./GridHeaderRowContainer.js"),d=require("../../utils/index.js");function g(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,l.get?l:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const u=g(s),h=e=>{const n=u.useContext(a.GridContext),t=u.useContext(C.GridHeaderRowContext),l=n.isClient||e.isClient,r={style:{...n.getCellPositionStyle(e.column)}},c={onKeyDown:i=>{t.cellKeyDown(i,e.column)},onContextMenu:i=>{n.onContextMenu(i,void 0,e.column.field)}};let o={onClick:i=>{t.cellClick(i,e.column)}};return l&&(o={...o,selectionChange:n.onHeaderSelectionChange,columnMenuWrapperProps:{...e.columnMenuWrapperProps,onSortChange:n.sortChange,onFilterChange:n.filterChange,onGroupChange:n.groupChange,onColumnsStateChange:n.onColumnsStateChange,show:t.showColumnMenuField===e.column.field?!0:void 0,onCloseMenu:t.handleCloseMenu,columnsState:n.columnsState}}),e.isCustom&&(l?o={...o,thProps:{...e.thProps,...c,...r}}:o={...o,...c,...r}),d.cloneReactElement(e.children,{...o})};exports.GridHeaderCellContainer=h;
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as s from "react";
|
|
10
|
-
import { GridContext as c } from "../../
|
|
10
|
+
import { GridContext as c } from "../../utils/GridContext.mjs";
|
|
11
11
|
import { GridHeaderRowContext as u } from "./GridHeaderRowContainer.mjs";
|
|
12
12
|
import { cloneReactElement as a } from "../../utils/index.mjs";
|
|
13
13
|
const f = (e) => {
|
|
14
|
-
const n = s.useContext(c), l = s.useContext(u), i = n.isClient || e.isClient,
|
|
14
|
+
const n = s.useContext(c), l = s.useContext(u), i = n.isClient || e.isClient, C = {
|
|
15
15
|
style: { ...n.getCellPositionStyle(e.column) }
|
|
16
|
-
},
|
|
16
|
+
}, r = {
|
|
17
17
|
onKeyDown: (t) => {
|
|
18
18
|
l.cellKeyDown(t, e.column);
|
|
19
19
|
},
|
|
@@ -28,7 +28,6 @@ const f = (e) => {
|
|
|
28
28
|
};
|
|
29
29
|
return i && (o = {
|
|
30
30
|
...o,
|
|
31
|
-
render: e.render,
|
|
32
31
|
selectionChange: n.onHeaderSelectionChange,
|
|
33
32
|
columnMenuWrapperProps: {
|
|
34
33
|
...e.columnMenuWrapperProps,
|
|
@@ -44,13 +43,13 @@ const f = (e) => {
|
|
|
44
43
|
...o,
|
|
45
44
|
thProps: {
|
|
46
45
|
...e.thProps,
|
|
47
|
-
...
|
|
48
|
-
...
|
|
46
|
+
...r,
|
|
47
|
+
...C
|
|
49
48
|
}
|
|
50
49
|
} : o = {
|
|
51
50
|
...o,
|
|
52
|
-
...
|
|
53
|
-
...
|
|
51
|
+
...r,
|
|
52
|
+
...C
|
|
54
53
|
}), a(e.children, {
|
|
55
54
|
...o
|
|
56
55
|
});
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),u=require("./GridHeaderRowContainer.js"),
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),u=require("./GridHeaderRowContainer.js"),s=require("../../utils/GridContext.js"),a=require("../../utils/index.js");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=d(l),C=e=>{const t=i.useContext(s.GridContext),n=i.useContext(u.GridHeaderRowContext),c={style:{...t.getCellPositionStyle(e.column)}};return a.cloneReactElement(e.children,{onKeyDown:r=>{n.cellKeyDown(r,e.column)},onContextMenu:r=>{t.onContextMenu(r,void 0,e.column.field)},...c})};exports.GridHeaderCellElementContainer=C;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"use client";
|
|
9
9
|
import * as n from "react";
|
|
10
10
|
import { GridHeaderRowContext as l } from "./GridHeaderRowContainer.mjs";
|
|
11
|
-
import { GridContext as c } from "../../
|
|
11
|
+
import { GridContext as c } from "../../utils/GridContext.mjs";
|
|
12
12
|
import { cloneReactElement as m } from "../../utils/index.mjs";
|
|
13
13
|
const x = (t) => {
|
|
14
14
|
const o = n.useContext(c), r = n.useContext(l), i = {
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("react"),K=require("../../
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("react"),K=require("../../utils/GridContext.js"),i=require("@progress/kendo-react-common");function R(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const a=R(G),f=a.createContext(void 0),k=e=>{const n=a.useContext(K.GridContext),r=a.useRef(null),[l,s]=a.useState(),u=(t,o)=>{e.sortable&&o.sortable&&(t.preventDefault(),n.sortChange&&n.headerCellClick(t,o))},C=(t,o)=>{if(t.isDefaultPrevented())return;const{keyCode:c,metaKey:g,ctrlKey:y,altKey:m}=t,x=e.sortable&&o.sortable,d=t.target;if(x&&t.keyCode===i.Keys.enter&&d.className.indexOf("k-table-th")!==-1&&u(t,o),e.navigatable){if(e.groupable&&(g&&c===i.Keys.enter||y&&c===i.Keys.space)){t.preventDefault();const h=e.columns.findIndex(w=>w.field===o.field);n.columnGroupChange&&n.columnGroupChange(h,t)}m&&c===i.Keys.down&&(t.preventDefault(),s(o.field),r.current=d)}},b=()=>{s(void 0),r.current&&r.current.getAttribute("tabindex")!=="-1"&&r.current.focus()};return a.createElement(f.Provider,{value:{cellClick:u,cellKeyDown:C,handleCloseMenu:b,showColumnMenuField:l}},e.children)};exports.GridHeaderRowContainer=k;exports.GridHeaderRowContext=f;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as n from "react";
|
|
10
|
-
import { GridContext as w } from "../../
|
|
10
|
+
import { GridContext as w } from "../../utils/GridContext.mjs";
|
|
11
11
|
import { Keys as i } from "@progress/kendo-react-common";
|
|
12
12
|
const k = n.createContext(void 0), K = (r) => {
|
|
13
13
|
const o = n.useContext(w), l = n.useRef(null), [d, s] = n.useState(), c = (e, t) => {
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),i=require("@progress/kendo-react-data-tools"),a=require("../../
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),i=require("@progress/kendo-react-data-tools"),a=require("../../utils/GridContext.js");function s(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const c=s(u),d=t=>{const{column:r}=t,e=c.useContext(a.GridContext);return e.columnResizeRef.current&&e.columnResizeRef.current.resizable&&r.resizable&&c.createElement(i.ColumnResizer,{key:2,resize:(n,o,l)=>e.columnResizeRef.current&&e.columnResizeRef.current.dragHandler(n,r,o,l),autofit:n=>e.columnResizeRef.current&&e.columnResizeRef.current.dblClickHandler(n,[r.id])})||c.createElement(c.Fragment,null)};exports.HeaderCellResizer=d;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"use client";
|
|
9
9
|
import * as r from "react";
|
|
10
10
|
import { ColumnResizer as i } from "@progress/kendo-react-data-tools";
|
|
11
|
-
import { GridContext as u } from "../../
|
|
11
|
+
import { GridContext as u } from "../../utils/GridContext.mjs";
|
|
12
12
|
const R = (o) => {
|
|
13
13
|
const { column: t } = o, e = r.useContext(u);
|
|
14
14
|
return e.columnResizeRef.current && e.columnResizeRef.current.resizable && t.resizable && /* @__PURE__ */ r.createElement(
|
|
@@ -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"),o=require("../../utils/GridContext.js"),l=require("../../drag/ColumnDraggable.js");function d(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const t=d(c),i=e=>{const r=t.useContext(o.GridContext);return r.dragLogicRef.current.pressHandler&&t.createElement(l.ColumnDraggable,{ariaRowIndex:e.ariaRowIndex,pressHandler:r.dragLogicRef.current.pressHandler,dragHandler:r.dragLogicRef.current.dragHandler,releaseHandler:r.dragLogicRef.current.releaseHandler,dragClue:r.dragLogicRef.current.dragClue,headerRef:r.headerElementRef,containerRef:r.containerElementRef},e.children)||t.createElement("tr",{className:e.className,role:"row","aria-rowindex":e.ariaRowIndex},e.children)};exports.HeaderRowDraggable=i;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as a from "react";
|
|
10
|
-
import { GridContext as n } from "../../
|
|
10
|
+
import { GridContext as n } from "../../utils/GridContext.mjs";
|
|
11
11
|
import { ColumnDraggable as t } from "../../drag/ColumnDraggable.mjs";
|
|
12
12
|
const o = (r) => {
|
|
13
13
|
const e = a.useContext(n);
|
package/index.d.mts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { BaseEvent } from '@progress/kendo-react-common';
|
|
9
|
+
import { ButtonProps } from '@progress/kendo-react-buttons';
|
|
9
10
|
import { CellProps } from '@progress/kendo-react-data-tools';
|
|
10
11
|
import { ClipboardSettings } from '@progress/kendo-react-data-tools';
|
|
11
12
|
import { ColumnBaseProps } from '@progress/kendo-react-data-tools';
|
|
@@ -252,6 +253,7 @@ declare interface ExtendedColumnProps extends GridColumnProps {
|
|
|
252
253
|
_type?: 'edit' | 'expand';
|
|
253
254
|
rowSpannable?: Required<GridRowSpannableSettings>;
|
|
254
255
|
defaultCell?: any;
|
|
256
|
+
defaultHeaderCell?: any;
|
|
255
257
|
}
|
|
256
258
|
|
|
257
259
|
/**
|
|
@@ -377,11 +379,6 @@ export declare interface GridCellProps extends Omit<CellProps, 'onChange' | 'ren
|
|
|
377
379
|
* Supported values are `text`, `numeric`, `boolean`, and `date`.
|
|
378
380
|
*/
|
|
379
381
|
editor?: 'text' | 'numeric' | 'boolean' | 'date';
|
|
380
|
-
/**
|
|
381
|
-
* A function to override the default rendering of the cell.
|
|
382
|
-
* Accepts the default rendering and props as arguments and returns a React element.
|
|
383
|
-
*/
|
|
384
|
-
render?: (defaultRendering: React.ReactElement<HTMLTableCellElement> | null, props: GridCellProps) => React.ReactElement<HTMLTableCellElement> | null;
|
|
385
382
|
/**
|
|
386
383
|
* @hidden
|
|
387
384
|
*/
|
|
@@ -1210,16 +1207,6 @@ export declare interface GridColumnProps extends Omit<ColumnBaseProps, 'cell'> {
|
|
|
1210
1207
|
* ```
|
|
1211
1208
|
*/
|
|
1212
1209
|
media?: string;
|
|
1213
|
-
/**
|
|
1214
|
-
* Defines the component that will be rendered as a cell. If not set, a `GridCell` will be rendered by default.
|
|
1215
|
-
*
|
|
1216
|
-
* @deprecated This prop is deprecated in favor of the ([cells]({% slug api_grid_gridcolumnprops %}#toc-cells)) prop. We’re removing this prop in version 11.0.0.
|
|
1217
|
-
* @example
|
|
1218
|
-
* ```jsx
|
|
1219
|
-
* <GridColumn cell={CustomCell} />
|
|
1220
|
-
* ```
|
|
1221
|
-
*/
|
|
1222
|
-
cell?: ComponentType<GridCellProps>;
|
|
1223
1210
|
/**
|
|
1224
1211
|
* Specifies a set of cell components that the Grid will render instead of the built-in cell.
|
|
1225
1212
|
*
|
|
@@ -1229,42 +1216,6 @@ export declare interface GridColumnProps extends Omit<ColumnBaseProps, 'cell'> {
|
|
|
1229
1216
|
* ```
|
|
1230
1217
|
*/
|
|
1231
1218
|
cells?: GridCellsSettings;
|
|
1232
|
-
/**
|
|
1233
|
-
* Defines the component that will be rendered as a filter cell. If not set, a `GridFilterCell` will be rendered by default.
|
|
1234
|
-
*
|
|
1235
|
-
* @deprecated This prop is deprecated in favor of the ([cells]({% slug api_grid_gridcolumnprops %}#toc-cells)) prop. We’re removing this prop in version 11.0.0.
|
|
1236
|
-
* @example
|
|
1237
|
-
* ```jsx
|
|
1238
|
-
* <GridColumn filterCell={CustomFilterCell} />
|
|
1239
|
-
* ```
|
|
1240
|
-
*/
|
|
1241
|
-
filterCell?: ComponentType<GridFilterCellProps>;
|
|
1242
|
-
/**
|
|
1243
|
-
* Defines the component that will be rendered as a header cell. If not set, a `GridHeaderCell` will be rendered by default.
|
|
1244
|
-
*
|
|
1245
|
-
* @deprecated This prop is deprecated in favor of the ([cells]({% slug api_grid_gridcolumnprops %}#toc-cells)) prop. We’re removing this prop in version 11.0.0.
|
|
1246
|
-
* @example
|
|
1247
|
-
* ```jsx
|
|
1248
|
-
* <GridColumn headerCell={CustomHeaderCell} />
|
|
1249
|
-
* ```
|
|
1250
|
-
*/
|
|
1251
|
-
headerCell?: ComponentType<GridHeaderCellProps>;
|
|
1252
|
-
/**
|
|
1253
|
-
* Defines the component that will be rendered as a footer cell.
|
|
1254
|
-
* The footer has to render an HTML `<td>` element and applies the `style` and `colspan` values from its props.
|
|
1255
|
-
*
|
|
1256
|
-
* @example
|
|
1257
|
-
* ```jsx-no-run
|
|
1258
|
-
* <GridColumn
|
|
1259
|
-
* footerCell={props => (
|
|
1260
|
-
* <td className='k-table-td' colSpan={props.colSpan} style={props.style} role={'gridcell'}>Sum: 50</td>
|
|
1261
|
-
* )}
|
|
1262
|
-
* />
|
|
1263
|
-
* ```
|
|
1264
|
-
*
|
|
1265
|
-
* @deprecated This prop is deprecated in favor of the ([cells]({% slug api_grid_gridcolumnprops %}#toc-cells)) prop. We’re removing this prop in version 11.0.0.
|
|
1266
|
-
*/
|
|
1267
|
-
footerCell?: ComponentType<GridFooterCellProps>;
|
|
1268
1219
|
/**
|
|
1269
1220
|
* Sets the type of the column and renders a dedicated column for interaction.
|
|
1270
1221
|
*
|
|
@@ -1674,7 +1625,7 @@ export declare interface GridDetailExpandChangeEvent extends GridEvent {
|
|
|
1674
1625
|
}
|
|
1675
1626
|
|
|
1676
1627
|
/**
|
|
1677
|
-
* Represents the detail row class of the KendoReact Grid. Used to define custom details for each row. Can be applied for building the hierarchy.
|
|
1628
|
+
* Represents the detail row class of the KendoReact Grid. Used to define custom details for each row. Can be applied for building the hierarchy. The details for each row will be visible or hidden depending on the current `detailExpand` prop.
|
|
1678
1629
|
*
|
|
1679
1630
|
* @example
|
|
1680
1631
|
* ```jsx
|
|
@@ -1776,25 +1727,7 @@ export declare type GridEditDialogProps = DialogProps & {
|
|
|
1776
1727
|
export declare interface GridEvent extends BaseEvent<GridHandle> {
|
|
1777
1728
|
}
|
|
1778
1729
|
|
|
1779
|
-
|
|
1780
|
-
* Represents the object of the `onExpandChange` Grid event.
|
|
1781
|
-
*/
|
|
1782
|
-
export declare interface GridExpandChangeEvent extends GridEvent {
|
|
1783
|
-
/**
|
|
1784
|
-
* The data item that is expanded or collapsed.
|
|
1785
|
-
*/
|
|
1786
|
-
dataItem: any;
|
|
1787
|
-
/**
|
|
1788
|
-
* Indicates whether the data item is expanded or collapsed
|
|
1789
|
-
*/
|
|
1790
|
-
value: boolean;
|
|
1791
|
-
/**
|
|
1792
|
-
* Zero based index of the data item.
|
|
1793
|
-
*/
|
|
1794
|
-
dataIndex: number;
|
|
1795
|
-
}
|
|
1796
|
-
|
|
1797
|
-
export declare const GridFilterCell: (props: GridFilterCellProps) => string | number | bigint | boolean | Iterable<React_2.ReactNode> | Promise<string | number | bigint | boolean | React_2.ReactPortal | React_2.ReactElement<unknown, string | React_2.JSXElementConstructor<any>> | Iterable<React_2.ReactNode> | null | undefined> | JSX.Element | null | undefined;
|
|
1730
|
+
export declare const GridFilterCell: (props: GridFilterCellProps) => JSX.Element;
|
|
1798
1731
|
|
|
1799
1732
|
/**
|
|
1800
1733
|
* The props of the GridFilterCell component
|
|
@@ -1838,10 +1771,6 @@ export declare interface GridFilterCellProps {
|
|
|
1838
1771
|
* The list of values for the Boolean filter.
|
|
1839
1772
|
*/
|
|
1840
1773
|
booleanValues: GridFilterOperator[];
|
|
1841
|
-
/**
|
|
1842
|
-
* A function for overriding the default rendering of the filter cell.
|
|
1843
|
-
*/
|
|
1844
|
-
render?: (row: React.ReactElement<any>, dataItem: GridFilterCellProps) => React.ReactNode;
|
|
1845
1774
|
/**
|
|
1846
1775
|
* Accessible label of the filter.
|
|
1847
1776
|
*/
|
|
@@ -2054,6 +1983,11 @@ export declare interface GridHandle {
|
|
|
2054
1983
|
* @param columnIds - Array of column ids to be fitted.
|
|
2055
1984
|
*/
|
|
2056
1985
|
fitColumns: (columnIds: string[]) => void;
|
|
1986
|
+
/**
|
|
1987
|
+
* Method to trigger a PDF export of the Grid.
|
|
1988
|
+
* The 'pdf' prop of the Grid should be set to true or object of setting that will be applied the exported Grid.
|
|
1989
|
+
*/
|
|
1990
|
+
exportAsPdf: () => void;
|
|
2057
1991
|
}
|
|
2058
1992
|
|
|
2059
1993
|
/**
|
|
@@ -2090,17 +2024,13 @@ export declare interface GridHandle {
|
|
|
2090
2024
|
* export default App;
|
|
2091
2025
|
* ```
|
|
2092
2026
|
*/
|
|
2093
|
-
export declare const GridHeaderCell: (props: GridHeaderCellProps) =>
|
|
2027
|
+
export declare const GridHeaderCell: (props: GridHeaderCellProps) => JSX.Element;
|
|
2094
2028
|
|
|
2095
2029
|
/**
|
|
2096
2030
|
* The props of the GridHeaderCell component
|
|
2097
2031
|
* ([more information]({% slug cells_grid %}#toc-header-cells)).
|
|
2098
2032
|
*/
|
|
2099
2033
|
export declare interface GridHeaderCellProps extends Omit<HeaderCellBaseProps, 'render'> {
|
|
2100
|
-
/**
|
|
2101
|
-
* A function for overriding the default rendering of the header cell.
|
|
2102
|
-
*/
|
|
2103
|
-
render?: (defaultRendering: React.ReactNode | null, props: GridHeaderCellProps) => React.ReactNode;
|
|
2104
2034
|
/**
|
|
2105
2035
|
* The props of the Grid column menu wrapper.
|
|
2106
2036
|
*/
|
|
@@ -2127,10 +2057,6 @@ export declare interface GridHeaderSelectionChangeEvent extends GridEvent {
|
|
|
2127
2057
|
* The current Grid leaf data items.
|
|
2128
2058
|
*/
|
|
2129
2059
|
dataItems: any[];
|
|
2130
|
-
/**
|
|
2131
|
-
* The `selectedField` prop of the Grid.
|
|
2132
|
-
*/
|
|
2133
|
-
selectedField: string;
|
|
2134
2060
|
}
|
|
2135
2061
|
|
|
2136
2062
|
/**
|
|
@@ -2201,6 +2127,7 @@ export declare const gridMessages: {
|
|
|
2201
2127
|
"grid.pagerTotalPages": string;
|
|
2202
2128
|
"grid.searchPlaceholder": string;
|
|
2203
2129
|
"grid.searchboxPlaceholder": string;
|
|
2130
|
+
"grid.exportPDF": string;
|
|
2204
2131
|
"grid.filterCheckAll": string;
|
|
2205
2132
|
"grid.editDialogTitle": string;
|
|
2206
2133
|
"grid.editDialogSaveButtonTitle": string;
|
|
@@ -2377,6 +2304,14 @@ export declare interface GridPagerSettings {
|
|
|
2377
2304
|
*/
|
|
2378
2305
|
declare type GridPagerType = 'numeric' | 'input';
|
|
2379
2306
|
|
|
2307
|
+
/**
|
|
2308
|
+
* Represents the properties of the KendoReact GridPdfExportButton component.
|
|
2309
|
+
*/
|
|
2310
|
+
export declare const GridPdfExportButton: (props: GridPdfExportButtonProps) => JSX.Element;
|
|
2311
|
+
|
|
2312
|
+
export declare interface GridPdfExportButtonProps extends ButtonProps {
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2380
2315
|
/**
|
|
2381
2316
|
* Represents the props of the [KendoReact Grid component]({% slug overview_grid %}).
|
|
2382
2317
|
*/
|
|
@@ -2721,6 +2656,31 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
2721
2656
|
* ```
|
|
2722
2657
|
*/
|
|
2723
2658
|
pager?: null | ComponentType<PagerProps>;
|
|
2659
|
+
/**
|
|
2660
|
+
* When set to true the Grid pdf export will be enabled.
|
|
2661
|
+
* If set to an object, the Grid will use the provided settings to export the PDF.
|
|
2662
|
+
*
|
|
2663
|
+
* @example
|
|
2664
|
+
* ```jsx
|
|
2665
|
+
* <Grid pdf={true} />
|
|
2666
|
+
* ```
|
|
2667
|
+
*/
|
|
2668
|
+
pdf?: boolean | GridProps;
|
|
2669
|
+
/**
|
|
2670
|
+
* Fires when the user clicks the PDF export button.
|
|
2671
|
+
*
|
|
2672
|
+
* @example
|
|
2673
|
+
* ```jsx
|
|
2674
|
+
*
|
|
2675
|
+
* <Grid onPdfExport={async (event) => {
|
|
2676
|
+
* const pdf = await import('@progress/kendo-react-pdf');
|
|
2677
|
+
* await pdf.saveGridPDF(event.target);
|
|
2678
|
+
* }} />
|
|
2679
|
+
* ```
|
|
2680
|
+
*/
|
|
2681
|
+
onPdfExport?: (event: {
|
|
2682
|
+
target: HTMLDivElement;
|
|
2683
|
+
}) => Promise<void>;
|
|
2724
2684
|
/**
|
|
2725
2685
|
* Alias for the `pageSize` property. If `take` is set, `pageSize` will be ignored.
|
|
2726
2686
|
*
|
|
@@ -2838,24 +2798,6 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
2838
2798
|
* ```
|
|
2839
2799
|
*/
|
|
2840
2800
|
onGroupExpandChange?: (event: GridGroupExpandChangeEvent) => void;
|
|
2841
|
-
/**
|
|
2842
|
-
* Fires when the user tries to expand or collapse a row.
|
|
2843
|
-
*
|
|
2844
|
-
* @deprecated This prop is deprecated in favor of the [onDetailExpandChange]({% slug api_grid_gridprops %}#toc-ondetailexpandchange) and [onGroupExpandChange]({% slug api_grid_gridprops %}#toc-ongroupexpandchange) props.
|
|
2845
|
-
* We’re removing this prop in version 11.0.0.
|
|
2846
|
-
* ```
|
|
2847
|
-
*/
|
|
2848
|
-
onExpandChange?: (event: GridExpandChangeEvent) => void;
|
|
2849
|
-
/**
|
|
2850
|
-
* Specifies the name of the field which will provide a Boolean representation of the expanded state of the item.
|
|
2851
|
-
*
|
|
2852
|
-
* Specifies the name of the field which will provide a Boolean representation of the expanded state of the item ([see example]({% slug detailrow_grid %})).
|
|
2853
|
-
*
|
|
2854
|
-
* @deprecated This prop is deprecated in favor of the ([detailExpand]({% slug api_grid_gridprops %}#toc-detailexpand)) and ([groupExpand]({% slug api_grid_gridprops %}#toc-groupexpand)) props.
|
|
2855
|
-
* We’re removing this prop in version 11.0.0.
|
|
2856
|
-
* ```
|
|
2857
|
-
*/
|
|
2858
|
-
expandField?: string;
|
|
2859
2801
|
/**
|
|
2860
2802
|
* The [descriptor]({% slug api_data-tools_selectdescriptor %}) by which the selected state of an item is defined.
|
|
2861
2803
|
* Passing a boolean value will select the whole row, while passing an array of strings will select individual.
|
|
@@ -2884,16 +2826,6 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
2884
2826
|
* ```
|
|
2885
2827
|
*/
|
|
2886
2828
|
selectable?: boolean | GridSelectableSettings;
|
|
2887
|
-
/**
|
|
2888
|
-
* Specifies the name of the field which will provide a:
|
|
2889
|
-
* - Boolean representation of the selected state of the item ([see example]({% slug selection_grid %})) for row selection
|
|
2890
|
-
* - String array of the selected columns of the item for cell selection
|
|
2891
|
-
*
|
|
2892
|
-
* @deprecated This prop is deprecated in favor of the ([select]({% slug api_grid_gridprops %}#toc-select)) prop.
|
|
2893
|
-
* We’re removing this prop in version 11.0.0.
|
|
2894
|
-
* ```
|
|
2895
|
-
*/
|
|
2896
|
-
selectedField?: string;
|
|
2897
2829
|
/**
|
|
2898
2830
|
* Fires when the user tries to select or deselect a row or cell.
|
|
2899
2831
|
*
|
|
@@ -2904,7 +2836,7 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
2904
2836
|
*/
|
|
2905
2837
|
onSelectionChange?: (event: GridSelectionChangeEvent) => void;
|
|
2906
2838
|
/**
|
|
2907
|
-
* Fires when the user clicks the checkbox of a column header whose
|
|
2839
|
+
* Fires when the user clicks the checkbox of a column header whose type is set to `checkbox`.
|
|
2908
2840
|
*
|
|
2909
2841
|
* @example
|
|
2910
2842
|
* ```jsx
|
|
@@ -2975,16 +2907,6 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
2975
2907
|
* ```
|
|
2976
2908
|
*/
|
|
2977
2909
|
onEditChange?: (event: GridEditChangeEvent) => void;
|
|
2978
|
-
/**
|
|
2979
|
-
* Specifies the name of the field which will provide a Boolean representation of the edit state
|
|
2980
|
-
* of the current item ([more information and examples]({% slug editing_inline_grid %})).
|
|
2981
|
-
*
|
|
2982
|
-
* @example
|
|
2983
|
-
* ```jsx
|
|
2984
|
-
* <Grid editField="inEdit" />
|
|
2985
|
-
* ```
|
|
2986
|
-
*/
|
|
2987
|
-
editField?: string;
|
|
2988
2910
|
/**
|
|
2989
2911
|
* Defines the scroll mode that is used by the Grid ([see example]({% slug scrollmodes_grid %})).
|
|
2990
2912
|
*
|
|
@@ -3134,30 +3056,6 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
3134
3056
|
* ```
|
|
3135
3057
|
*/
|
|
3136
3058
|
onColumnReorder?: (event: GridColumnReorderEvent) => void;
|
|
3137
|
-
/**
|
|
3138
|
-
* Fires when a row is about to be rendered. Overrides the default appearance of the row.
|
|
3139
|
-
*
|
|
3140
|
-
* @deprecated This prop is deprecated in favor of the ([rows]({% slug api_grid_gridprops %}#toc-rows)) prop. We’re removing this prop in version 11.0.0.
|
|
3141
|
-
*/
|
|
3142
|
-
rowRender?: (row: React.ReactElement<HTMLTableRowElement>, props: GridRowProps) => React.ReactNode;
|
|
3143
|
-
/**
|
|
3144
|
-
* Fires when a cell is about to be rendered. Used to override the default appearance of the cell ([see example]({% slug groupingaggregates_grid %})).
|
|
3145
|
-
*
|
|
3146
|
-
* @deprecated This prop is deprecated in favor of the ([cells]({% slug api_grid_gridprops %}#toc-cells)) prop. We’re removing this prop in version 11.0.0.
|
|
3147
|
-
*/
|
|
3148
|
-
cellRender?: (defaultRendering: React.ReactElement<HTMLTableCellElement> | null, props: GridCellProps) => React.ReactElement<HTMLTableCellElement> | React.ReactElement<HTMLTableCellElement>[] | null;
|
|
3149
|
-
/**
|
|
3150
|
-
* Fires when a filter cell is about to be rendered. Overrides the default appearance of the filter cell.
|
|
3151
|
-
*
|
|
3152
|
-
* @deprecated This prop is deprecated in favor of the ([cells]({% slug api_grid_gridprops %}#toc-cells)) prop. We’re removing this prop in version 11.0.0.
|
|
3153
|
-
*/
|
|
3154
|
-
filterCellRender?: (defaultRendering: React.ReactElement<any> | null, props: GridFilterCellProps) => React.ReactElement<any> | null;
|
|
3155
|
-
/**
|
|
3156
|
-
* Fires when a header cell is about to be rendered. Overrides the default appearance of the header cell.
|
|
3157
|
-
*
|
|
3158
|
-
* @deprecated This prop is deprecated in favor of the ([cells]({% slug api_grid_gridprops %}#toc-cells)) prop. We’re removing this prop in version 11.0.0.
|
|
3159
|
-
*/
|
|
3160
|
-
headerCellRender?: (defaultRendering: React.ReactNode | null, props: GridHeaderCellProps) => React.ReactNode;
|
|
3161
3059
|
/**
|
|
3162
3060
|
* Fires when Grid is scrolled. Only fired when the Grid is run as a client component.
|
|
3163
3061
|
*
|
|
@@ -3204,15 +3102,6 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
3204
3102
|
* ```
|
|
3205
3103
|
*/
|
|
3206
3104
|
onKeyDown?: (event: GridKeyDownEvent) => void;
|
|
3207
|
-
/**
|
|
3208
|
-
* The accessible label of the Grid.
|
|
3209
|
-
*/
|
|
3210
|
-
/**
|
|
3211
|
-
* **Deprecated**. The accessible label of the Grid. Use ([messages]({% slug globalization_grid %})) instead.
|
|
3212
|
-
*
|
|
3213
|
-
* @deprecated
|
|
3214
|
-
*/
|
|
3215
|
-
ariaLabel?: string;
|
|
3216
3105
|
/**
|
|
3217
3106
|
* Defines if the group descriptor columns are locked (frozen or sticky).
|
|
3218
3107
|
* Locked columns are the columns that are visible at all times while the user scrolls the component horizontally.
|
|
@@ -3335,7 +3224,7 @@ export declare type GridReorderDropPosition = 'before' | 'after' | 'forbidden';
|
|
|
3335
3224
|
/**
|
|
3336
3225
|
* The component for each of the items in the `data` property which the Grid renders.
|
|
3337
3226
|
*/
|
|
3338
|
-
export declare const GridRow: (props: GridRowProps) =>
|
|
3227
|
+
export declare const GridRow: (props: GridRowProps) => JSX.Element;
|
|
3339
3228
|
|
|
3340
3229
|
/**
|
|
3341
3230
|
* Represents the object of the `onRowClick` Grid event.
|
|
@@ -3358,7 +3247,7 @@ export declare interface GridRowDoubleClickEvent extends GridEvent {
|
|
|
3358
3247
|
}
|
|
3359
3248
|
|
|
3360
3249
|
/**
|
|
3361
|
-
* The props that the Grid passes to the GridRow component when creating it. Accessible
|
|
3250
|
+
* The props that the Grid passes to the GridRow component when creating it. Accessible when passing a custom row to the `rows` prop of the Grid.
|
|
3362
3251
|
*/
|
|
3363
3252
|
export declare interface GridRowProps extends KendoReactComponentBaseProps {
|
|
3364
3253
|
/**
|
|
@@ -3385,10 +3274,6 @@ export declare interface GridRowProps extends KendoReactComponentBaseProps {
|
|
|
3385
3274
|
* The event that is fired when the row is double clicked.
|
|
3386
3275
|
*/
|
|
3387
3276
|
onDoubleClick: any;
|
|
3388
|
-
/**
|
|
3389
|
-
* The name of the field which will provide a Boolean representation of the selected state of the item.
|
|
3390
|
-
*/
|
|
3391
|
-
selectedField?: string;
|
|
3392
3277
|
/**
|
|
3393
3278
|
* Sets the height of the row.
|
|
3394
3279
|
*/
|
|
@@ -3397,10 +3282,6 @@ export declare interface GridRowProps extends KendoReactComponentBaseProps {
|
|
|
3397
3282
|
* The type of the row.
|
|
3398
3283
|
*/
|
|
3399
3284
|
rowType: GridRowType;
|
|
3400
|
-
/**
|
|
3401
|
-
* A function for overriding the default rendering of the row.
|
|
3402
|
-
*/
|
|
3403
|
-
render?: (row: React.ReactElement<HTMLTableRowElement>, props: GridRowProps) => React.ReactNode;
|
|
3404
3285
|
/**
|
|
3405
3286
|
* Sets a set of rows components that the Grid will render instead of the built-in row.
|
|
3406
3287
|
*/
|
|
@@ -3778,9 +3659,9 @@ export declare interface StatusBarProps {
|
|
|
3778
3659
|
/**
|
|
3779
3660
|
* Represents the arguments of the getStatusData function.
|
|
3780
3661
|
*/
|
|
3781
|
-
export declare type StatusDataArgs = Pick<GridSelectionChangeEvent, 'dataItems' | 'target' | '
|
|
3662
|
+
export declare type StatusDataArgs = Pick<GridSelectionChangeEvent, 'dataItems' | 'target' | 'select'> & {
|
|
3782
3663
|
dataItemKey: Required<GridProps>['dataItemKey'];
|
|
3783
|
-
}
|
|
3664
|
+
};
|
|
3784
3665
|
|
|
3785
3666
|
/**
|
|
3786
3667
|
* Represents the KendoReact Grid's StatusItem object.
|