@progress/kendo-react-grid 5.4.0-dev.202205200719 → 5.4.0-dev.202206061009
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/dist/cdn/js/kendo-react-grid.js +1 -1
- package/dist/es/Grid.d.ts +12 -7
- package/dist/es/Grid.js +57 -33
- package/dist/es/GridColumn.d.ts +1 -1
- package/dist/es/GridColumn.js +1 -1
- package/dist/es/GridNoRecords.js +3 -1
- package/dist/es/GridToolbar.js +3 -1
- package/dist/es/ScrollMode.js +1 -0
- package/dist/es/VirtualScroll.d.ts +4 -4
- package/dist/es/VirtualScroll.js +11 -6
- package/dist/es/cells/GridCell.d.ts +2 -1
- package/dist/es/cells/GridEditCell.d.ts +2 -1
- package/dist/es/cells/GridFilterCell.d.ts +1 -1
- package/dist/es/cells/GridFilterCell.js +3 -1
- package/dist/es/cells/GridGroupCell.d.ts +2 -1
- package/dist/es/cells/GridHierarchyCell.d.ts +2 -1
- package/dist/es/cells/GridSelectionCell.d.ts +2 -1
- package/dist/es/columnMenu/GridColumnMenuCheckboxFilter.d.ts +2 -2
- package/dist/es/columnMenu/GridColumnMenuCheckboxFilter.js +15 -4
- package/dist/es/columnMenu/GridColumnMenuFilter.d.ts +4 -4
- package/dist/es/columnMenu/GridColumnMenuFilter.js +25 -14
- package/dist/es/columnMenu/GridColumnMenuFilterCell.js +3 -1
- package/dist/es/columnMenu/GridColumnMenuFilterUI.js +3 -1
- package/dist/es/columnMenu/GridColumnMenuGroup.d.ts +1 -1
- package/dist/es/columnMenu/GridColumnMenuGroup.js +3 -1
- package/dist/es/columnMenu/GridColumnMenuItem.js +5 -3
- package/dist/es/columnMenu/GridColumnMenuItemContent.js +3 -1
- package/dist/es/columnMenu/GridColumnMenuItemGroup.js +3 -1
- package/dist/es/columnMenu/GridColumnMenuSort.d.ts +1 -1
- package/dist/es/columnMenu/GridColumnMenuSort.js +3 -1
- package/dist/es/columnMenu/GridColumnMenuWrapper.js +11 -3
- package/dist/es/drag/ColumnDraggable.d.ts +2 -2
- package/dist/es/drag/ColumnDraggable.js +4 -1
- package/dist/es/drag/ColumnResize.d.ts +1 -2
- package/dist/es/drag/ColumnResize.js +3 -0
- package/dist/es/drag/ColumnResizer.js +5 -1
- package/dist/es/drag/CommonDragLogic.d.ts +7 -7
- package/dist/es/drag/CommonDragLogic.js +5 -4
- package/dist/es/drag/GroupingIndicator.d.ts +2 -2
- package/dist/es/drag/GroupingIndicator.js +4 -1
- package/dist/es/filterCommon.d.ts +3 -3
- package/dist/es/footer/Footer.js +3 -1
- package/dist/es/footer/FooterRow.d.ts +1 -1
- package/dist/es/footer/FooterRow.js +4 -2
- package/dist/es/header/FilterRow.js +4 -2
- package/dist/es/header/GridHeaderCell.d.ts +1 -1
- package/dist/es/header/GridHeaderCell.js +3 -1
- package/dist/es/header/GridHeaderSelectionCell.d.ts +1 -1
- package/dist/es/header/GridHeaderSelectionCell.js +3 -1
- package/dist/es/header/GroupPanel.d.ts +2 -2
- package/dist/es/header/GroupPanel.js +3 -1
- package/dist/es/header/Header.d.ts +2 -2
- package/dist/es/header/Header.js +6 -5
- package/dist/es/header/HeaderRow.d.ts +1 -1
- package/dist/es/header/HeaderRow.js +3 -1
- package/dist/es/interfaces/GridCellProps.d.ts +1 -1
- package/dist/es/interfaces/GridCellProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuBaseProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuColumnProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuFilterBaseProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuFilterUIProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuGroupBaseProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuSortBaseProps.js +1 -0
- package/dist/es/interfaces/GridColumnProps.d.ts +1 -1
- package/dist/es/interfaces/GridColumnProps.js +1 -0
- package/dist/es/interfaces/GridDetailRowProps.js +1 -0
- package/dist/es/interfaces/GridFilterCellProps.js +1 -0
- package/dist/es/interfaces/GridFilterOperator.js +1 -0
- package/dist/es/interfaces/GridFilterOperators.js +1 -0
- package/dist/es/interfaces/GridFooterCellProps.js +1 -0
- package/dist/es/interfaces/GridGroupableSettings.js +1 -0
- package/dist/es/interfaces/GridHeaderCellProps.d.ts +1 -1
- package/dist/es/interfaces/GridHeaderCellProps.js +1 -0
- package/dist/es/interfaces/GridNoRecordsProps.js +1 -0
- package/dist/es/interfaces/GridProps.js +1 -0
- package/dist/es/interfaces/GridRowProps.js +1 -0
- package/dist/es/interfaces/GridRowType.js +1 -0
- package/dist/es/interfaces/GridSelectableSettings.js +1 -0
- package/dist/es/interfaces/GridSortSettings.d.ts +1 -11
- package/dist/es/interfaces/GridSortSettings.js +10 -1
- package/dist/es/interfaces/GridToolbarProps.js +1 -0
- package/dist/es/interfaces/events.js +1 -0
- package/dist/es/main.js +1 -0
- package/dist/es/messages/index.d.ts +28 -28
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/paging/Page.js +1 -0
- package/dist/es/rows/GridDetailRow.js +3 -1
- package/dist/es/rows/GridRow.d.ts +1 -1
- package/dist/es/rows/GridRow.js +3 -1
- package/dist/es/utils/index.js +8 -6
- package/dist/npm/Grid.d.ts +12 -7
- package/dist/npm/Grid.js +77 -52
- package/dist/npm/GridColumn.d.ts +1 -1
- package/dist/npm/GridColumn.js +4 -2
- package/dist/npm/GridNoRecords.js +6 -3
- package/dist/npm/GridToolbar.js +4 -1
- package/dist/npm/VirtualScroll.d.ts +4 -4
- package/dist/npm/VirtualScroll.js +12 -6
- package/dist/npm/cells/GridCell.d.ts +2 -1
- package/dist/npm/cells/GridCell.js +7 -5
- package/dist/npm/cells/GridDetailCell.js +4 -2
- package/dist/npm/cells/GridDetailHierarchyCell.js +4 -2
- package/dist/npm/cells/GridEditCell.d.ts +2 -1
- package/dist/npm/cells/GridEditCell.js +7 -5
- package/dist/npm/cells/GridFilterCell.d.ts +1 -1
- package/dist/npm/cells/GridFilterCell.js +10 -7
- package/dist/npm/cells/GridGroupCell.d.ts +2 -1
- package/dist/npm/cells/GridGroupCell.js +5 -3
- package/dist/npm/cells/GridHierarchyCell.d.ts +2 -1
- package/dist/npm/cells/GridHierarchyCell.js +6 -4
- package/dist/npm/cells/GridSelectionCell.d.ts +2 -1
- package/dist/npm/cells/GridSelectionCell.js +6 -4
- package/dist/npm/columnMenu/GridColumnMenuCheckboxFilter.d.ts +2 -2
- package/dist/npm/columnMenu/GridColumnMenuCheckboxFilter.js +23 -11
- package/dist/npm/columnMenu/GridColumnMenuFilter.d.ts +4 -4
- package/dist/npm/columnMenu/GridColumnMenuFilter.js +51 -37
- package/dist/npm/columnMenu/GridColumnMenuFilterCell.js +7 -4
- package/dist/npm/columnMenu/GridColumnMenuFilterUI.js +4 -1
- package/dist/npm/columnMenu/GridColumnMenuGroup.d.ts +1 -1
- package/dist/npm/columnMenu/GridColumnMenuGroup.js +7 -4
- package/dist/npm/columnMenu/GridColumnMenuItem.js +6 -3
- package/dist/npm/columnMenu/GridColumnMenuItemContent.js +5 -2
- package/dist/npm/columnMenu/GridColumnMenuItemGroup.js +5 -2
- package/dist/npm/columnMenu/GridColumnMenuSort.d.ts +1 -1
- package/dist/npm/columnMenu/GridColumnMenuSort.js +8 -5
- package/dist/npm/columnMenu/GridColumnMenuWrapper.js +12 -3
- package/dist/npm/constants/index.js +1 -0
- package/dist/npm/drag/ColumnDraggable.d.ts +2 -2
- package/dist/npm/drag/ColumnDraggable.js +5 -1
- package/dist/npm/drag/ColumnResize.d.ts +1 -2
- package/dist/npm/drag/ColumnResize.js +4 -0
- package/dist/npm/drag/ColumnResizer.js +6 -1
- package/dist/npm/drag/CommonDragLogic.d.ts +7 -7
- package/dist/npm/drag/CommonDragLogic.js +8 -6
- package/dist/npm/drag/GroupingIndicator.d.ts +2 -2
- package/dist/npm/drag/GroupingIndicator.js +5 -1
- package/dist/npm/filterCommon.d.ts +3 -3
- package/dist/npm/filterCommon.js +21 -13
- package/dist/npm/footer/Footer.js +5 -2
- package/dist/npm/footer/FooterRow.d.ts +1 -1
- package/dist/npm/footer/FooterRow.js +6 -3
- package/dist/npm/header/FilterRow.js +10 -7
- package/dist/npm/header/GridHeaderCell.d.ts +1 -1
- package/dist/npm/header/GridHeaderCell.js +4 -1
- package/dist/npm/header/GridHeaderSelectionCell.d.ts +1 -1
- package/dist/npm/header/GridHeaderSelectionCell.js +5 -2
- package/dist/npm/header/GroupPanel.d.ts +2 -2
- package/dist/npm/header/GroupPanel.js +6 -3
- package/dist/npm/header/Header.d.ts +2 -2
- package/dist/npm/header/Header.js +10 -8
- package/dist/npm/header/HeaderRow.d.ts +1 -1
- package/dist/npm/header/HeaderRow.js +8 -5
- package/dist/npm/interfaces/GridCellProps.d.ts +1 -1
- package/dist/npm/interfaces/GridColumnProps.d.ts +1 -1
- package/dist/npm/interfaces/GridHeaderCellProps.d.ts +1 -1
- package/dist/npm/interfaces/GridSortSettings.d.ts +1 -11
- package/dist/npm/interfaces/GridSortSettings.js +13 -2
- package/dist/npm/main.js +43 -27
- package/dist/npm/messages/index.d.ts +28 -28
- package/dist/npm/messages/index.js +2 -1
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/paging/GridPagerSettings.js +3 -1
- package/dist/npm/rows/GridDetailRow.js +4 -1
- package/dist/npm/rows/GridRow.d.ts +1 -1
- package/dist/npm/rows/GridRow.js +5 -2
- package/dist/npm/utils/index.js +14 -9
- package/dist/systemjs/kendo-react-grid.js +1 -1
- package/package.json +19 -19
|
@@ -14,7 +14,7 @@ export interface GroupPanelProps extends ColumnDraggableProps {
|
|
|
14
14
|
* @hidden
|
|
15
15
|
*/
|
|
16
16
|
export declare class GroupPanel extends React.Component<GroupPanelProps, {}> {
|
|
17
|
-
onGroupRemove: (event: React.MouseEvent<HTMLButtonElement
|
|
18
|
-
onGroupSortChange: (event: React.MouseEvent<HTMLAnchorElement
|
|
17
|
+
onGroupRemove: (event: React.MouseEvent<HTMLButtonElement>, index: number) => void;
|
|
18
|
+
onGroupSortChange: (event: React.MouseEvent<HTMLAnchorElement>, index: number, groupDesc: GroupDescriptor, dir: string) => void;
|
|
19
19
|
render(): JSX.Element;
|
|
20
20
|
}
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -13,17 +13,17 @@ export interface HeaderProps {
|
|
|
13
13
|
};
|
|
14
14
|
cols: React.ReactElement<HTMLTableColElement>[];
|
|
15
15
|
draggable?: boolean | undefined;
|
|
16
|
+
elemRef: React.RefObject<HTMLDivElement>;
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
18
19
|
* @hidden
|
|
19
20
|
*/
|
|
20
21
|
export declare class Header extends React.Component<HeaderProps, {}> {
|
|
21
|
-
private elementRef;
|
|
22
22
|
private headerWrap;
|
|
23
23
|
private table;
|
|
24
24
|
private syncScroll;
|
|
25
25
|
private scrollbarWidth;
|
|
26
|
-
|
|
26
|
+
get element(): HTMLDivElement | null;
|
|
27
27
|
componentDidMount(): void;
|
|
28
28
|
/**
|
|
29
29
|
*
|
package/dist/es/header/Header.js
CHANGED
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -32,7 +34,6 @@ var Header = /** @class */ (function (_super) {
|
|
|
32
34
|
__extends(Header, _super);
|
|
33
35
|
function Header() {
|
|
34
36
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
35
|
-
_this.elementRef = React.createRef();
|
|
36
37
|
_this.headerWrap = null;
|
|
37
38
|
_this.table = null;
|
|
38
39
|
_this.syncScroll = false;
|
|
@@ -55,9 +56,9 @@ var Header = /** @class */ (function (_super) {
|
|
|
55
56
|
}
|
|
56
57
|
Object.defineProperty(Header.prototype, "element", {
|
|
57
58
|
get: function () {
|
|
58
|
-
return this.
|
|
59
|
+
return this.props.elemRef.current;
|
|
59
60
|
},
|
|
60
|
-
enumerable:
|
|
61
|
+
enumerable: false,
|
|
61
62
|
configurable: true
|
|
62
63
|
});
|
|
63
64
|
Header.prototype.componentDidMount = function () {
|
|
@@ -93,7 +94,7 @@ var Header = /** @class */ (function (_super) {
|
|
|
93
94
|
this.props.headerRow,
|
|
94
95
|
this.props.filterRow));
|
|
95
96
|
}
|
|
96
|
-
return (React.createElement("div", { ref: this.
|
|
97
|
+
return (React.createElement("div", { ref: this.props.elemRef, className: classNames('k-grid-header', { 'k-grid-draggable-header': this.props.draggable }), role: "presentation" },
|
|
97
98
|
React.createElement("div", { ref: function (div) { _this.headerWrap = div; }, className: "k-grid-header-wrap", style: this.scrollbarWidth ? {} : { borderWidth: 0 }, onScroll: this.onScroll, role: "presentation" },
|
|
98
99
|
React.createElement("table", { ref: function (table) { _this.table = table; }, role: "presentation" },
|
|
99
100
|
React.createElement("colgroup", { ref: function (e) { _this.props.columnResize.colGroupHeader = e; } }, this.props.cols),
|
|
@@ -39,7 +39,7 @@ export declare class HeaderRow extends React.Component<HeaderRowProps, {}> {
|
|
|
39
39
|
constructor(props: HeaderRowProps);
|
|
40
40
|
cellClick(e: React.MouseEvent<HTMLSpanElement> | React.KeyboardEvent<HTMLElement>, column: GridColumnProps): void;
|
|
41
41
|
cellKeyDown: (event: React.KeyboardEvent<HTMLElement>, column: GridColumnProps) => void;
|
|
42
|
-
sortIcon(sortIndex: number): JSX.Element[];
|
|
42
|
+
sortIcon(sortIndex: number): false | (false | JSX.Element)[] | null;
|
|
43
43
|
render(): JSX.Element[];
|
|
44
44
|
private cells;
|
|
45
45
|
}
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -5,7 +5,7 @@ import { CellProps } from '@progress/kendo-react-data-tools';
|
|
|
5
5
|
* Represents the props of the GridCell component
|
|
6
6
|
* ([more information]({% slug cells_grid %}#toc-grid-cells)).
|
|
7
7
|
*/
|
|
8
|
-
export interface GridCellProps extends CellProps {
|
|
8
|
+
export interface GridCellProps extends Omit<CellProps, 'onChange' | 'render'> {
|
|
9
9
|
/**
|
|
10
10
|
* Zero-based index of the dataItem.
|
|
11
11
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -9,7 +9,7 @@ import { ColumnBaseProps } from '@progress/kendo-react-data-tools';
|
|
|
9
9
|
/**
|
|
10
10
|
* The props of the GridColumn component.
|
|
11
11
|
*/
|
|
12
|
-
export interface GridColumnProps extends ColumnBaseProps {
|
|
12
|
+
export interface GridColumnProps extends Omit<ColumnBaseProps, 'cell'> {
|
|
13
13
|
/**
|
|
14
14
|
* Allows the column headers to be clicked and the `sortChange` event emitted.
|
|
15
15
|
* You have to handle the `sortChange` event yourself and sort the data.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,7 +5,7 @@ import { GridColumnMenuWrapperProps } from '../columnMenu/GridColumnMenuWrapper'
|
|
|
5
5
|
* The props of the GridHeaderCell component
|
|
6
6
|
* ([more information]({% slug cells_grid %}#toc-header-cells)).
|
|
7
7
|
*/
|
|
8
|
-
export interface GridHeaderCellProps extends HeaderCellBaseProps {
|
|
8
|
+
export interface GridHeaderCellProps extends Omit<HeaderCellBaseProps, 'render'> {
|
|
9
9
|
/**
|
|
10
10
|
* A function for overriding the default rendering of the header cell.
|
|
11
11
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,14 +10,4 @@ export declare type GridSortSettings = SortSettings;
|
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
|
-
export declare const normalize: (...settings: (
|
|
14
|
-
allowUnsort?: boolean;
|
|
15
|
-
} | (false & {
|
|
16
|
-
mode?: "multiple" | "single";
|
|
17
|
-
}) | (true & {
|
|
18
|
-
mode?: "multiple" | "single";
|
|
19
|
-
}) | ({
|
|
20
|
-
allowUnsort?: boolean;
|
|
21
|
-
} & {
|
|
22
|
-
mode?: "multiple" | "single";
|
|
23
|
-
}))[]) => any;
|
|
13
|
+
export declare const normalize: (...settings: (GridSortSettings | GridColumnSortSettings)[]) => any;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
+
if (ar || !(i in from)) {
|
|
4
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
+
ar[i] = from[i];
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
+
};
|
|
1
10
|
/**
|
|
2
11
|
* @hidden
|
|
3
12
|
*/
|
|
@@ -6,5 +15,5 @@ export var normalize = function () {
|
|
|
6
15
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
7
16
|
settings[_i] = arguments[_i];
|
|
8
17
|
}
|
|
9
|
-
return Object.assign.apply(Object, [{ allowUnsort: true, mode: 'single' }]
|
|
18
|
+
return Object.assign.apply(Object, __spreadArray([{ allowUnsort: true, mode: 'single' }], settings, false));
|
|
10
19
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/es/main.js
CHANGED
|
@@ -17,6 +17,7 @@ import { GridDetailRow } from './rows/GridDetailRow';
|
|
|
17
17
|
import { GridRow } from './rows/GridRow';
|
|
18
18
|
import { GridToolbar } from './GridToolbar';
|
|
19
19
|
import { GridNoRecords } from './GridNoRecords';
|
|
20
|
+
export * from './interfaces/events';
|
|
20
21
|
import { GridColumnMenuItem } from './columnMenu/GridColumnMenuItem';
|
|
21
22
|
import { GridColumnMenuItemContent } from './columnMenu/GridColumnMenuItemContent';
|
|
22
23
|
import { GridColumnMenuItemGroup } from './columnMenu/GridColumnMenuItemGroup';
|
|
@@ -114,34 +114,34 @@ export declare const detailCollapse = "grid.detailCollapse";
|
|
|
114
114
|
* @hidden
|
|
115
115
|
*/
|
|
116
116
|
export declare const messages: {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
117
|
+
"grid.detailExpand": string;
|
|
118
|
+
"grid.detailCollapse": string;
|
|
119
|
+
"grid.groupExpand": string;
|
|
120
|
+
"grid.groupCollapse": string;
|
|
121
|
+
"grid.noRecords": string;
|
|
122
|
+
"grid.groupPanelEmpty": string;
|
|
123
|
+
"grid.filterClearButton": string;
|
|
124
|
+
"grid.filterSubmitButton": string;
|
|
125
|
+
"grid.filterTitle": string;
|
|
126
|
+
"grid.sortAscending": string;
|
|
127
|
+
"grid.sortDescending": string;
|
|
128
|
+
"grid.sortAriaLabel": string;
|
|
129
|
+
"grid.groupColumn": string;
|
|
130
|
+
"grid.ungroupColumn": string;
|
|
131
|
+
"grid.pagerItemsPerPage": string;
|
|
132
|
+
"grid.pagerInfo": string;
|
|
133
|
+
"grid.pagerFirstPage": string;
|
|
134
|
+
"grid.pagerPreviousPage": string;
|
|
135
|
+
"grid.pagerNextPage": string;
|
|
136
|
+
"grid.pagerLastPage": string;
|
|
137
|
+
"grid.pagerPage": string;
|
|
138
|
+
"grid.pagerOf": string;
|
|
139
|
+
"grid.pagerTotalPages": string;
|
|
140
|
+
"grid.searchPlaceholder": string;
|
|
141
|
+
"grid.filterCheckAll": string;
|
|
142
|
+
"grid.filterChooseOperator": string;
|
|
143
|
+
"grid.filterSelectedItems": string;
|
|
144
|
+
"grid.filterAriaLabel": string;
|
|
145
145
|
'grid.filterEqOperator': string;
|
|
146
146
|
'grid.filterNotEqOperator': string;
|
|
147
147
|
'grid.filterIsNullOperator': string;
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-grid',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1654509537,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
11
11
|
};
|
package/dist/es/paging/Page.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
package/dist/es/rows/GridRow.js
CHANGED
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
package/dist/es/utils/index.js
CHANGED
|
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
14
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
15
|
t[p] = s[p];
|
|
16
16
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
18
|
-
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
19
21
|
return t;
|
|
20
22
|
};
|
|
21
23
|
/**
|
|
@@ -90,8 +92,8 @@ var eventKeys = [
|
|
|
90
92
|
'columnResize',
|
|
91
93
|
'columnReorder'
|
|
92
94
|
];
|
|
93
|
-
var deprecatedHandlerMessage = function (oldKey, newKey) { return ("The "
|
|
94
|
-
|
|
95
|
+
var deprecatedHandlerMessage = function (oldKey, newKey) { return ("The ".concat(oldKey, " event handler property is deprecated, ") +
|
|
96
|
+
"use https://www.telerik.com/kendo-react-ui/components/grid/api/GridProps/#toc-".concat(newKey, " instead")); };
|
|
95
97
|
/**
|
|
96
98
|
* @hidden
|
|
97
99
|
*/
|
|
@@ -123,7 +125,7 @@ export function readColumns(elements, oldColumns, idInfo, depth) {
|
|
|
123
125
|
var oldColumn = oldColumns[index] || null;
|
|
124
126
|
var children = readColumns(columnProps.children, oldColumn && oldColumn.children || [], idInfo, depth + 1);
|
|
125
127
|
columns.push(Object.assign({ depth: depth }, GridColumn.defaultProps, (children.length) ? { cell: function () { return null; }, filterCell: function () { return null; } } : {}, oldColumn ? { width: oldColumn.width, orderIndex: oldColumn.orderIndex } : {}, columnProps, {
|
|
126
|
-
id: columnProps.id ? columnProps.id : navigationTools.generateNavigatableId(""
|
|
128
|
+
id: columnProps.id ? columnProps.id : navigationTools.generateNavigatableId("".concat(idInfo.prevId++), idInfo.idPrefix, 'column'),
|
|
127
129
|
declarationIndex: columns.length,
|
|
128
130
|
children: children,
|
|
129
131
|
rowSpan: 0,
|
|
@@ -173,7 +175,7 @@ export function autoGenerateColumns(data, group, expandField, idInfo) {
|
|
|
173
175
|
fields.forEach(function (field) {
|
|
174
176
|
if (field !== expandField) {
|
|
175
177
|
columns.push(Object.assign({
|
|
176
|
-
id: navigationTools.generateNavigatableId(""
|
|
178
|
+
id: navigationTools.generateNavigatableId("".concat(idInfo.prevId++), idInfo.idPrefix, 'column'),
|
|
177
179
|
declarationIndex: -1,
|
|
178
180
|
parentIndex: -1,
|
|
179
181
|
depth: 0,
|
package/dist/npm/Grid.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export declare class Grid extends React.Component<GridProps, {}> {
|
|
|
65
65
|
buttonCount: PropTypes.Requireable<number>;
|
|
66
66
|
info: PropTypes.Requireable<boolean>;
|
|
67
67
|
type: PropTypes.Requireable<string>;
|
|
68
|
-
pageSizes: PropTypes.Requireable<boolean | number[]>;
|
|
68
|
+
pageSizes: PropTypes.Requireable<boolean | (number | null)[]>;
|
|
69
69
|
previousNext: PropTypes.Requireable<boolean>;
|
|
70
70
|
}>>;
|
|
71
71
|
pageSize: PropTypes.Requireable<number>;
|
|
@@ -102,7 +102,7 @@ export declare class Grid extends React.Component<GridProps, {}> {
|
|
|
102
102
|
navigatable: PropTypes.Requireable<boolean>;
|
|
103
103
|
};
|
|
104
104
|
/** @hidden */
|
|
105
|
-
static contextType: React.Context<TableKeyboardNavigationContextType>;
|
|
105
|
+
static contextType: React.Context<TableKeyboardNavigationContextType | undefined>;
|
|
106
106
|
protected dragLogic: CommonDragLogic;
|
|
107
107
|
private _columns;
|
|
108
108
|
private _columnsMap;
|
|
@@ -148,10 +148,15 @@ export declare class Grid extends React.Component<GridProps, {}> {
|
|
|
148
148
|
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
149
149
|
* ```
|
|
150
150
|
*/
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
get columns(): GridColumnProps[];
|
|
152
|
+
/**
|
|
153
|
+
* Returns the HTML element of the Grid component.
|
|
154
|
+
*/
|
|
155
|
+
get element(): HTMLDivElement | null;
|
|
156
|
+
private get document();
|
|
153
157
|
private headerRef;
|
|
154
|
-
private
|
|
158
|
+
private headerElementRef;
|
|
159
|
+
private _element;
|
|
155
160
|
private tableElement;
|
|
156
161
|
private vs;
|
|
157
162
|
private columnResize;
|
|
@@ -159,7 +164,7 @@ export declare class Grid extends React.Component<GridProps, {}> {
|
|
|
159
164
|
private forceUpdateTimeout;
|
|
160
165
|
private isRtl;
|
|
161
166
|
private _gridId;
|
|
162
|
-
private
|
|
167
|
+
private get _header();
|
|
163
168
|
constructor(props: GridProps);
|
|
164
169
|
/**
|
|
165
170
|
* Method to allow the scroll to be set to a specific row index.
|
|
@@ -182,7 +187,7 @@ export declare class Grid extends React.Component<GridProps, {}> {
|
|
|
182
187
|
/**
|
|
183
188
|
* @hidden
|
|
184
189
|
*/
|
|
185
|
-
getSnapshotBeforeUpdate():
|
|
190
|
+
getSnapshotBeforeUpdate(): null;
|
|
186
191
|
/**
|
|
187
192
|
* @hidden
|
|
188
193
|
*/
|