@progress/kendo-react-grid 7.2.4-develop.3 → 7.3.0-develop.1
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/Grid.js +8 -0
- package/Grid.mjs +1111 -0
- package/GridColumn.js +8 -0
- package/GridColumn.mjs +53 -0
- package/GridNoRecords.js +8 -0
- package/GridNoRecords.mjs +25 -0
- package/GridToolbar.js +8 -0
- package/GridToolbar.mjs +39 -0
- package/StatusBar.js +8 -0
- package/StatusBar.mjs +53 -0
- package/VirtualScroll.js +8 -0
- package/VirtualScroll.mjs +128 -0
- package/VirtualScrollFixed.js +8 -0
- package/VirtualScrollFixed.mjs +86 -0
- package/cells/GridCell.js +8 -0
- package/cells/GridCell.mjs +57 -0
- package/cells/GridDetailCell.js +8 -0
- package/cells/GridDetailCell.mjs +30 -0
- package/cells/GridDetailHierarchyCell.js +8 -0
- package/cells/GridDetailHierarchyCell.mjs +17 -0
- package/cells/GridEditCell.js +8 -0
- package/cells/GridEditCell.mjs +172 -0
- package/cells/GridFilterCell.js +8 -0
- package/cells/GridFilterCell.mjs +145 -0
- package/cells/GridGroupCell.js +8 -0
- package/cells/GridGroupCell.mjs +115 -0
- package/cells/GridHierarchyCell.js +8 -0
- package/cells/GridHierarchyCell.mjs +84 -0
- package/cells/GridSelectionCell.js +8 -0
- package/cells/GridSelectionCell.mjs +54 -0
- package/columnMenu/GridColumnMenuCheckboxFilter.js +8 -0
- package/columnMenu/GridColumnMenuCheckboxFilter.mjs +199 -0
- package/columnMenu/GridColumnMenuColumnsList.js +8 -0
- package/columnMenu/GridColumnMenuColumnsList.mjs +60 -0
- package/columnMenu/GridColumnMenuFilter.js +8 -0
- package/columnMenu/GridColumnMenuFilter.mjs +188 -0
- package/columnMenu/GridColumnMenuFilterCell.js +8 -0
- package/columnMenu/GridColumnMenuFilterCell.mjs +96 -0
- package/columnMenu/GridColumnMenuFilterUI.js +8 -0
- package/columnMenu/GridColumnMenuFilterUI.mjs +36 -0
- package/columnMenu/GridColumnMenuGroup.js +8 -0
- package/columnMenu/GridColumnMenuGroup.mjs +50 -0
- package/columnMenu/GridColumnMenuItem.js +8 -0
- package/columnMenu/GridColumnMenuItem.mjs +22 -0
- package/columnMenu/GridColumnMenuItemContent.js +8 -0
- package/columnMenu/GridColumnMenuItemContent.mjs +30 -0
- package/columnMenu/GridColumnMenuItemGroup.js +8 -0
- package/columnMenu/GridColumnMenuItemGroup.mjs +30 -0
- package/columnMenu/GridColumnMenuSort.js +8 -0
- package/columnMenu/GridColumnMenuSort.mjs +75 -0
- package/columnMenu/GridColumnMenuWrapper.js +8 -0
- package/columnMenu/GridColumnMenuWrapper.mjs +91 -0
- package/constants/index.js +8 -0
- package/constants/index.mjs +15 -0
- package/dist/cdn/js/kendo-react-grid.js +8 -5
- package/drag/ColumnDraggable.js +8 -0
- package/drag/ColumnDraggable.mjs +43 -0
- package/drag/ColumnResize.js +8 -0
- package/drag/ColumnResize.mjs +128 -0
- package/drag/CommonDragLogic.js +8 -0
- package/drag/CommonDragLogic.mjs +104 -0
- package/drag/GroupingIndicator.js +8 -0
- package/drag/GroupingIndicator.mjs +91 -0
- package/filterCommon.js +8 -0
- package/filterCommon.mjs +103 -0
- package/footer/Footer.js +8 -0
- package/footer/Footer.mjs +76 -0
- package/footer/FooterRow.js +8 -0
- package/footer/FooterRow.mjs +46 -0
- package/header/FilterRow.js +8 -0
- package/header/FilterRow.mjs +96 -0
- package/header/GridHeaderCell.js +8 -0
- package/header/GridHeaderCell.mjs +38 -0
- package/header/GridHeaderSelectionCell.js +8 -0
- package/header/GridHeaderSelectionCell.mjs +44 -0
- package/header/GroupPanel.js +8 -0
- package/header/GroupPanel.mjs +60 -0
- package/header/Header.js +8 -0
- package/header/Header.mjs +107 -0
- package/header/HeaderRow.js +8 -0
- package/header/HeaderRow.mjs +155 -0
- package/index.d.mts +2777 -5
- package/index.d.ts +2777 -57
- package/index.js +8 -5
- package/index.mjs +89 -3845
- package/interfaces/GridSortSettings.js +8 -0
- package/interfaces/GridSortSettings.mjs +12 -0
- package/messages/index.js +8 -0
- package/messages/index.mjs +107 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +10 -10
- package/paging/GridPagerSettings.js +8 -0
- package/paging/GridPagerSettings.mjs +28 -0
- package/rows/GridDetailRow.js +8 -0
- package/rows/GridDetailRow.mjs +20 -0
- package/rows/GridRow.js +8 -0
- package/rows/GridRow.mjs +51 -0
- package/utils/index.js +8 -0
- package/utils/index.mjs +180 -0
- package/Grid.d.ts +0 -267
- package/GridColumn.d.ts +0 -28
- package/GridNoRecords.d.ts +0 -40
- package/GridToolbar.d.ts +0 -54
- package/ScrollMode.d.ts +0 -5
- package/StatusBar.d.ts +0 -51
- package/VirtualScroll.d.ts +0 -51
- package/VirtualScrollFixed.d.ts +0 -53
- package/cells/GridCell.d.ts +0 -6
- package/cells/GridDetailCell.d.ts +0 -18
- package/cells/GridDetailHierarchyCell.d.ts +0 -10
- package/cells/GridEditCell.d.ts +0 -9
- package/cells/GridFilterCell.d.ts +0 -20
- package/cells/GridGroupCell.d.ts +0 -9
- package/cells/GridHierarchyCell.d.ts +0 -9
- package/cells/GridSelectionCell.d.ts +0 -9
- package/columnMenu/GridColumnMenuCheckboxFilter.d.ts +0 -122
- package/columnMenu/GridColumnMenuColumnsList.d.ts +0 -31
- package/columnMenu/GridColumnMenuFilter.d.ts +0 -165
- package/columnMenu/GridColumnMenuFilterCell.d.ts +0 -37
- package/columnMenu/GridColumnMenuFilterUI.d.ts +0 -12
- package/columnMenu/GridColumnMenuGroup.d.ts +0 -77
- package/columnMenu/GridColumnMenuItem.d.ts +0 -40
- package/columnMenu/GridColumnMenuItemContent.d.ts +0 -24
- package/columnMenu/GridColumnMenuItemGroup.d.ts +0 -20
- package/columnMenu/GridColumnMenuSort.d.ts +0 -89
- package/columnMenu/GridColumnMenuWrapper.d.ts +0 -49
- package/constants/index.d.ts +0 -10
- package/drag/ColumnDraggable.d.ts +0 -38
- package/drag/ColumnResize.d.ts +0 -37
- package/drag/CommonDragLogic.d.ts +0 -44
- package/drag/GroupingIndicator.d.ts +0 -41
- package/filterCommon.d.ts +0 -73
- package/footer/Footer.d.ts +0 -38
- package/footer/FooterRow.d.ts +0 -25
- package/header/FilterRow.d.ts +0 -38
- package/header/GridHeaderCell.d.ts +0 -56
- package/header/GridHeaderSelectionCell.d.ts +0 -10
- package/header/GroupPanel.d.ts +0 -26
- package/header/Header.d.ts +0 -46
- package/header/HeaderRow.d.ts +0 -51
- package/interfaces/GridCellProps.d.ts +0 -73
- package/interfaces/GridCellsSettings.d.ts +0 -115
- package/interfaces/GridColumnMenuBaseProps.d.ts +0 -18
- package/interfaces/GridColumnMenuColumnProps.d.ts +0 -29
- package/interfaces/GridColumnMenuFilterBaseProps.d.ts +0 -28
- package/interfaces/GridColumnMenuFilterUIProps.d.ts +0 -35
- package/interfaces/GridColumnMenuGroupBaseProps.d.ts +0 -23
- package/interfaces/GridColumnMenuProps.d.ts +0 -12
- package/interfaces/GridColumnMenuSortBaseProps.d.ts +0 -24
- package/interfaces/GridColumnProps.d.ts +0 -92
- package/interfaces/GridDetailRowProps.d.ts +0 -17
- package/interfaces/GridFilterCellProps.d.ts +0 -68
- package/interfaces/GridFilterOperator.d.ts +0 -10
- package/interfaces/GridFilterOperators.d.ts +0 -53
- package/interfaces/GridFooterCellProps.d.ts +0 -26
- package/interfaces/GridGroupableSettings.d.ts +0 -17
- package/interfaces/GridHeaderCellProps.d.ts +0 -24
- package/interfaces/GridNoRecordsProps.d.ts +0 -13
- package/interfaces/GridProps.d.ts +0 -333
- package/interfaces/GridRowProps.d.ts +0 -67
- package/interfaces/GridRowType.d.ts +0 -13
- package/interfaces/GridSelectableSettings.d.ts +0 -22
- package/interfaces/GridSortSettings.d.ts +0 -17
- package/interfaces/GridToolbarProps.d.ts +0 -37
- package/interfaces/VirtualScrollInterface.d.ts +0 -31
- package/interfaces/events.d.ts +0 -232
- package/messages/index.d.ts +0 -199
- package/package-metadata.d.ts +0 -9
- package/paging/GridPagerSettings.d.ts +0 -71
- package/paging/Page.d.ts +0 -17
- package/rows/GridDetailRow.d.ts +0 -55
- package/rows/GridRow.d.ts +0 -15
- package/utils/index.d.ts +0 -73
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { DragClue } from '@progress/kendo-react-data-tools';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export interface ColumnDraggableProps {
|
|
11
|
-
pressHandler?: (draggableEvent: any, element: HTMLTableRowElement | HTMLDivElement) => void;
|
|
12
|
-
dragHandler?: (draggableEvent: any, element: HTMLTableRowElement | HTMLDivElement) => void;
|
|
13
|
-
releaseHandler?: (draggableEvent: any) => void;
|
|
14
|
-
ariaRowIndex?: number;
|
|
15
|
-
dragClue?: React.RefObject<DragClue | null> | null;
|
|
16
|
-
headerRef?: React.RefObject<HTMLDivElement | null> | null;
|
|
17
|
-
containerRef?: React.RefObject<HTMLDivElement | null> | null;
|
|
18
|
-
children?: React.ReactNode;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
export declare class ColumnDraggable extends React.PureComponent<ColumnDraggableProps, {}> {
|
|
24
|
-
private draggable;
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
onPress: (data: any) => void;
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
onDrag: (data: any) => void;
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
onRelease: (data: any) => void;
|
|
37
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
}
|
package/drag/ColumnResize.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ExtendedColumnProps } from '../GridColumn';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare class ColumnResize {
|
|
10
|
-
/**
|
|
11
|
-
* The main `colgroup` of the Grid.
|
|
12
|
-
*/
|
|
13
|
-
colGroupMain: any | null;
|
|
14
|
-
/**
|
|
15
|
-
* The header `colgroup` of the Grid (if any).
|
|
16
|
-
*/
|
|
17
|
-
colGroupHeader: any | null;
|
|
18
|
-
/**
|
|
19
|
-
* The footer `colgroup` of the Grid (if any).
|
|
20
|
-
*/
|
|
21
|
-
colGroupFooter: any | null;
|
|
22
|
-
columns: ExtendedColumnProps[];
|
|
23
|
-
/**
|
|
24
|
-
* The settings for resizing the Grid.
|
|
25
|
-
*/
|
|
26
|
-
resizable: boolean;
|
|
27
|
-
onResize: (index: number, newWidth: number, oldWidth: number, originalEvent: any, end: boolean, targetId?: string) => void;
|
|
28
|
-
private isRtl;
|
|
29
|
-
constructor(triggerResize: (index: number, newWidth: number, oldWidth: number, originalEvent: any, end: boolean, targetId?: string) => void);
|
|
30
|
-
setIsRtl: (isRtl: boolean) => void;
|
|
31
|
-
dragHandler: (event: any, column: ExtendedColumnProps, dragCue: HTMLSpanElement, end: boolean) => void;
|
|
32
|
-
dblClickHandler: (event: React.MouseEvent<HTMLSpanElement, MouseEvent> | null, columnIds: string[]) => void;
|
|
33
|
-
private fixateInitialWidths;
|
|
34
|
-
private setWidths;
|
|
35
|
-
private updateColElements;
|
|
36
|
-
private updateNextLockedCol;
|
|
37
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { DragClue, DropClue } from '@progress/kendo-react-data-tools';
|
|
7
|
-
import { ExtendedColumnProps } from '../GridColumn';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export type handler = (prevIndex: number, nextIndex: number, nativeEvent: any) => void;
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
export declare class CommonDragLogic {
|
|
16
|
-
refDragElementClue: React.RefObject<DragClue>;
|
|
17
|
-
refDropElementClue: React.RefObject<DropClue>;
|
|
18
|
-
columns: ExtendedColumnProps[];
|
|
19
|
-
reorderable: boolean;
|
|
20
|
-
groupable: boolean;
|
|
21
|
-
private startColumn;
|
|
22
|
-
private startGroup;
|
|
23
|
-
private currentColumn;
|
|
24
|
-
private currentGroup;
|
|
25
|
-
private columnReorder;
|
|
26
|
-
private groupReorder;
|
|
27
|
-
private columnToGroup;
|
|
28
|
-
private groupPanelDivElement;
|
|
29
|
-
get dragClueRef(): React.RefObject<DragClue | null>;
|
|
30
|
-
get dropClueRef(): React.RefObject<DropClue | null>;
|
|
31
|
-
private get dragElementClue();
|
|
32
|
-
private get dropElementClue();
|
|
33
|
-
constructor(columnReorder: handler, groupReorder: handler, columnToGroup: handler);
|
|
34
|
-
refGroupPanelDiv: (e: any) => void;
|
|
35
|
-
pressHandler: (event: any, element: HTMLTableRowElement | HTMLDivElement) => void;
|
|
36
|
-
dragHandler: (event: any, element: HTMLTableRowElement | HTMLDivElement) => void;
|
|
37
|
-
releaseHandler: (event: any) => void;
|
|
38
|
-
private getColumnIndex;
|
|
39
|
-
private isTargetGroupingContainer;
|
|
40
|
-
private getGroupIndex;
|
|
41
|
-
private isValid;
|
|
42
|
-
private updateDragElementClue;
|
|
43
|
-
private updateDropElementClue;
|
|
44
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export interface GroupingIndicatorProps {
|
|
10
|
-
index: number;
|
|
11
|
-
title: string;
|
|
12
|
-
dir: 'asc' | 'desc';
|
|
13
|
-
onRemove?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
14
|
-
onSortChange?: (event: React.MouseEvent<HTMLDivElement>, dir: string) => void;
|
|
15
|
-
onContextMenu?: (event: React.MouseEvent<HTMLElement>, dataItem: any) => void;
|
|
16
|
-
onDrag?: (draggableEvent: any, element: HTMLDivElement) => void;
|
|
17
|
-
onPress?: (draggableEvent: any, element: HTMLDivElement) => void;
|
|
18
|
-
onRelease?: (draggableEvent: any) => void;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
export declare class GroupingIndicator extends React.Component<GroupingIndicatorProps, {}> {
|
|
24
|
-
private draggable;
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
onPress: (data: any) => void;
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
onDrag: (data: any) => void;
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
onRelease: (data: any) => void;
|
|
37
|
-
sortChange: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
38
|
-
groupRemove: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
39
|
-
onContextMenu: (event: React.MouseEvent<HTMLElement>) => void;
|
|
40
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
}
|
package/filterCommon.d.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-react-intl';
|
|
7
|
-
import { GridFilterOperators } from './interfaces/GridFilterOperators';
|
|
8
|
-
import { GridFilterOperator } from './interfaces/GridFilterOperator';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare const filterLogicList: {
|
|
13
|
-
text: string;
|
|
14
|
-
operator: string;
|
|
15
|
-
}[];
|
|
16
|
-
/**
|
|
17
|
-
* The text of the filter operators displayed in the filter menu.
|
|
18
|
-
*/
|
|
19
|
-
export declare const operators: GridFilterOperators;
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
export declare const IsUnaryFilter: (operator: string) => boolean;
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
export declare const operatorMap: (iterable: Array<any>, service: LocalizationService) => {
|
|
28
|
-
text: string;
|
|
29
|
-
operator: any;
|
|
30
|
-
}[];
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
export declare const defaultBooleanOperator: string;
|
|
35
|
-
/**
|
|
36
|
-
* The value of the filter operators displayed in the boolean filter menu.
|
|
37
|
-
*/
|
|
38
|
-
export declare const booleanFilterValues: ({
|
|
39
|
-
text: string;
|
|
40
|
-
operator: string;
|
|
41
|
-
} | {
|
|
42
|
-
text: string;
|
|
43
|
-
operator: boolean;
|
|
44
|
-
})[];
|
|
45
|
-
/**
|
|
46
|
-
* @hidden
|
|
47
|
-
*/
|
|
48
|
-
export declare const defaultHideSecondFilter: {
|
|
49
|
-
text: boolean;
|
|
50
|
-
numeric: boolean;
|
|
51
|
-
date: boolean;
|
|
52
|
-
boolean: boolean;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Normalize data for calling onChange.
|
|
56
|
-
*/
|
|
57
|
-
export declare const cellInputChange: (value: any, e: React.SyntheticEvent<any>, props: any) => void;
|
|
58
|
-
/**
|
|
59
|
-
* @hidden
|
|
60
|
-
*/
|
|
61
|
-
export declare const getDefaultOperator: (filterOperators: GridFilterOperators | GridFilterOperator[], filterType?: string) => any;
|
|
62
|
-
/**
|
|
63
|
-
* @hidden
|
|
64
|
-
*/
|
|
65
|
-
export declare const getFilterType: (filterType: 'text' | 'numeric' | 'boolean' | 'date' | undefined) => "boolean" | "text" | "numeric" | "date";
|
|
66
|
-
/**
|
|
67
|
-
* Normalize data for calling onChange.
|
|
68
|
-
*/
|
|
69
|
-
export declare const cellBoolDropdownChange: (event: any, onChange: Function) => void;
|
|
70
|
-
/**
|
|
71
|
-
* Normalize data for calling onChange.
|
|
72
|
-
*/
|
|
73
|
-
export declare const cellOperatorChange: (event: any, currentValue: any, onChange: Function) => void;
|
package/footer/Footer.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export interface FooterProps {
|
|
10
|
-
staticHeaders: boolean;
|
|
11
|
-
row?: React.ReactElement<any>;
|
|
12
|
-
columnResize: {
|
|
13
|
-
colGroupFooter: HTMLTableColElement | null;
|
|
14
|
-
};
|
|
15
|
-
cols: React.ReactElement<HTMLTableColElement>[];
|
|
16
|
-
className?: string;
|
|
17
|
-
size?: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
export declare class Footer extends React.Component<FooterProps, {}> {
|
|
23
|
-
private footerWrap;
|
|
24
|
-
private table;
|
|
25
|
-
private scrollbarWidth;
|
|
26
|
-
componentDidMount(): void;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @param scrollLeft - Scrolls to the left (in pixels).
|
|
30
|
-
*/
|
|
31
|
-
setScrollLeft(scrollLeft: number): void;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @param width - Scrolls the width (in pixels).
|
|
35
|
-
*/
|
|
36
|
-
setWidth(width: number): void;
|
|
37
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
}
|
package/footer/FooterRow.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { ExtendedColumnProps } from '../GridColumn';
|
|
7
|
-
import { GridCellsSettings } from '../interfaces/GridCellsSettings';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export interface FooterRowProps {
|
|
12
|
-
cells?: GridCellsSettings;
|
|
13
|
-
columns: ExtendedColumnProps[];
|
|
14
|
-
isRtl?: boolean;
|
|
15
|
-
ariaRowIndex: number;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
export declare class FooterRow extends React.Component<FooterRowProps, {}> {
|
|
21
|
-
private _element;
|
|
22
|
-
get element(): HTMLTableRowElement | null;
|
|
23
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
private renderCell;
|
|
25
|
-
}
|
package/header/FilterRow.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { CompositeFilterDescriptor, SortDescriptor } from '@progress/kendo-data-query';
|
|
7
|
-
import { ExtendedColumnProps } from '../GridColumn';
|
|
8
|
-
import { GridFilterCellProps } from '../interfaces/GridFilterCellProps';
|
|
9
|
-
import { GridFilterOperators } from '../interfaces/GridFilterOperators';
|
|
10
|
-
import { GridCellsSettings } from '../interfaces/GridCellsSettings';
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
export declare const FILTER_ROW_CLASS = "k-table-row k-filter-row";
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
export interface FilterRowProps {
|
|
19
|
-
cells?: GridCellsSettings;
|
|
20
|
-
columns: ExtendedColumnProps[];
|
|
21
|
-
filter?: CompositeFilterDescriptor;
|
|
22
|
-
filterOperators: GridFilterOperators;
|
|
23
|
-
filterChange?: (filter: CompositeFilterDescriptor | null, syntheticEvent: React.SyntheticEvent<any>) => any;
|
|
24
|
-
sort?: SortDescriptor[];
|
|
25
|
-
cellRender?: (defaultRendering: React.ReactElement<any> | null, props: GridFilterCellProps) => React.ReactElement<any> | null;
|
|
26
|
-
isRtl?: boolean;
|
|
27
|
-
ariaRowIndex?: number;
|
|
28
|
-
size?: null | 'small' | 'medium' | 'large';
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
export declare class FilterRow extends React.Component<FilterRowProps, {}> {
|
|
35
|
-
headerCellClassName(field?: string, locked?: boolean): string;
|
|
36
|
-
setFilter(value: string | number, operator: string | Function, field: string | undefined, e: React.SyntheticEvent<any>): void;
|
|
37
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { GridHeaderCellProps } from '../interfaces/GridHeaderCellProps';
|
|
7
|
-
/**
|
|
8
|
-
* @example
|
|
9
|
-
* ```jsx
|
|
10
|
-
* class App extends React.PureComponent {
|
|
11
|
-
* state = {
|
|
12
|
-
* details: false,
|
|
13
|
-
* data: [
|
|
14
|
-
* { foo: 'A1', bar: 'B1', b1: 1, b2:2 },
|
|
15
|
-
* { foo: 'A2', bar: 'B2', b1: 3, b2:4 },
|
|
16
|
-
* { foo: 'A3', bar: 'B2', b1: 5, b2:6 }
|
|
17
|
-
* ]
|
|
18
|
-
* };
|
|
19
|
-
*
|
|
20
|
-
* CustomHeaderCell = (props) =>
|
|
21
|
-
* <span>
|
|
22
|
-
* {props.title || props.field + ' '}
|
|
23
|
-
* <button onClick={() => this.setState({ barDetails: !this.state.barDetails })}>
|
|
24
|
-
* {this.state.barDetails ? 'collapse' : 'expand'}
|
|
25
|
-
* </button>
|
|
26
|
-
* {props.children}
|
|
27
|
-
* </span>
|
|
28
|
-
*
|
|
29
|
-
* render() {
|
|
30
|
-
* return (
|
|
31
|
-
* <Grid
|
|
32
|
-
* style={{ height: '420px' }}
|
|
33
|
-
* data={this.state.data}
|
|
34
|
-
* reorderable={true}
|
|
35
|
-
* >
|
|
36
|
-
* <GridColumn field="foo" />
|
|
37
|
-
* <GridColumn field="bar" headerCell={this.CustomHeaderCell}>
|
|
38
|
-
* {this.state.barDetails && [
|
|
39
|
-
* <GridColumn field="b1" />,
|
|
40
|
-
* <GridColumn field="b2" />
|
|
41
|
-
* ]}
|
|
42
|
-
* </GridColumn>
|
|
43
|
-
* </Grid>
|
|
44
|
-
* );
|
|
45
|
-
* }
|
|
46
|
-
* }
|
|
47
|
-
*
|
|
48
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
export declare class GridHeaderCell extends React.Component<GridHeaderCellProps, {}> {
|
|
52
|
-
/**
|
|
53
|
-
* @hidden
|
|
54
|
-
*/
|
|
55
|
-
render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
56
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { GridHeaderCellProps } from '../interfaces/GridHeaderCellProps';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export declare const GridHeaderSelectionCell: React.ForwardRefExoticComponent<GridHeaderCellProps & React.RefAttributes<any>>;
|
package/header/GroupPanel.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { GroupDescriptor } from '@progress/kendo-data-query';
|
|
7
|
-
import { ColumnDraggableProps } from '../drag/ColumnDraggable';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export interface GroupPanelProps extends ColumnDraggableProps {
|
|
12
|
-
group: GroupDescriptor[];
|
|
13
|
-
groupChange: (groups: GroupDescriptor[], event: React.MouseEvent<HTMLElement>) => void;
|
|
14
|
-
refCallback: (e: HTMLDivElement | null) => void;
|
|
15
|
-
resolveTitle: (field: string) => string;
|
|
16
|
-
onContextMenu?: (event: React.MouseEvent<HTMLElement>, dataItem: any, field?: string) => void;
|
|
17
|
-
ariaControls: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
export declare class GroupPanel extends React.Component<GroupPanelProps, {}> {
|
|
23
|
-
onGroupRemove: (event: React.MouseEvent<HTMLButtonElement>, index: number) => void;
|
|
24
|
-
onGroupSortChange: (event: React.MouseEvent<HTMLDivElement>, index: number, groupDesc: GroupDescriptor, dir: string) => void;
|
|
25
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
}
|
package/header/Header.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export interface HeaderProps {
|
|
10
|
-
staticHeaders: boolean;
|
|
11
|
-
scrollableDataElement: () => HTMLDivElement | null;
|
|
12
|
-
headerRow: React.ReactElement<any>;
|
|
13
|
-
filterRow?: React.ReactElement<any>;
|
|
14
|
-
columnResize: {
|
|
15
|
-
colGroupHeader: HTMLTableColElement | null;
|
|
16
|
-
setIsRtl: (isRtl: boolean) => void;
|
|
17
|
-
};
|
|
18
|
-
cols: React.ReactElement<HTMLTableColElement>[];
|
|
19
|
-
draggable?: boolean | undefined;
|
|
20
|
-
elemRef: React.RefObject<HTMLDivElement>;
|
|
21
|
-
className?: string;
|
|
22
|
-
size?: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
export declare class Header extends React.Component<HeaderProps, {}> {
|
|
28
|
-
private headerWrap;
|
|
29
|
-
private table;
|
|
30
|
-
private syncScroll;
|
|
31
|
-
private scrollbarWidth;
|
|
32
|
-
get element(): HTMLDivElement | null;
|
|
33
|
-
componentDidMount(): void;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @param scrollLeft - Scrolls to the left (in pixels).
|
|
37
|
-
*/
|
|
38
|
-
setScrollLeft(scrollLeft: number): void;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @param width - Scrolls the width (in pixels).
|
|
42
|
-
*/
|
|
43
|
-
setWidth(width: number): void;
|
|
44
|
-
onScroll: (_event: React.UIEvent<HTMLDivElement>) => void;
|
|
45
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
46
|
-
}
|
package/header/HeaderRow.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { GridSortSettings } from '../interfaces/GridSortSettings';
|
|
7
|
-
import { SortDescriptor, CompositeFilterDescriptor, GroupDescriptor } from '@progress/kendo-data-query';
|
|
8
|
-
import { ColumnResize } from '../drag/ColumnResize';
|
|
9
|
-
import { ColumnDraggableProps } from '../drag/ColumnDraggable';
|
|
10
|
-
import { ExtendedColumnProps } from '../GridColumn';
|
|
11
|
-
import { GridColumnProps } from '../interfaces/GridColumnProps';
|
|
12
|
-
import { GridHeaderCellProps } from '../interfaces/GridHeaderCellProps';
|
|
13
|
-
import { GridColumnMenuProps } from '../interfaces/GridColumnMenuProps';
|
|
14
|
-
import { GridFilterOperators } from '../interfaces/GridFilterOperators';
|
|
15
|
-
import { GridCellsSettings } from '../interfaces/GridCellsSettings';
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
export interface HeaderRowProps extends ColumnDraggableProps {
|
|
20
|
-
cells?: GridCellsSettings;
|
|
21
|
-
sortable?: GridSortSettings;
|
|
22
|
-
sortChange?: (descriptors: SortDescriptor[], e: React.SyntheticEvent<any>) => void;
|
|
23
|
-
sort?: SortDescriptor[];
|
|
24
|
-
group: GroupDescriptor[];
|
|
25
|
-
groupable: boolean;
|
|
26
|
-
groupChange: (groups: GroupDescriptor[], event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
27
|
-
filter?: CompositeFilterDescriptor;
|
|
28
|
-
filterable?: boolean | undefined;
|
|
29
|
-
filterOperators: GridFilterOperators;
|
|
30
|
-
filterChange: (filter: CompositeFilterDescriptor | null, syntheticEvent: React.SyntheticEvent<any>) => any;
|
|
31
|
-
columns: ExtendedColumnProps[];
|
|
32
|
-
columnResize?: ColumnResize;
|
|
33
|
-
columnsMap: number[][];
|
|
34
|
-
selectionChange: (e: any) => void;
|
|
35
|
-
cellRender?: (defaultRendering: React.ReactNode | null, props: GridHeaderCellProps) => React.ReactNode;
|
|
36
|
-
columnMenu?: null | React.ComponentType<GridColumnMenuProps>;
|
|
37
|
-
isRtl?: boolean;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @hidden
|
|
41
|
-
*/
|
|
42
|
-
export declare class HeaderRow extends React.Component<HeaderRowProps, {}> {
|
|
43
|
-
private serviceIndex;
|
|
44
|
-
private index;
|
|
45
|
-
constructor(props: HeaderRowProps);
|
|
46
|
-
cellClick(e: React.MouseEvent<HTMLSpanElement> | React.KeyboardEvent<HTMLElement>, column: GridColumnProps): void;
|
|
47
|
-
cellKeyDown: (event: React.KeyboardEvent<HTMLElement>, column: GridColumnProps) => void;
|
|
48
|
-
sortIcon(sortIndex: number): false | (false | import("react/jsx-runtime").JSX.Element)[] | null;
|
|
49
|
-
render(): import("react/jsx-runtime").JSX.Element[];
|
|
50
|
-
private cells;
|
|
51
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { GridCellsSettings } from './GridCellsSettings';
|
|
6
|
-
import { GridRowType } from './GridRowType';
|
|
7
|
-
import { CellProps } from '@progress/kendo-react-data-tools';
|
|
8
|
-
/**
|
|
9
|
-
* Represents the props of the GridCell component
|
|
10
|
-
* ([more information]({% slug cells_grid %}#toc-grid-cells)).
|
|
11
|
-
*/
|
|
12
|
-
export interface GridCellProps extends Omit<CellProps, 'onChange' | 'render'> {
|
|
13
|
-
/**
|
|
14
|
-
* Zero-based index of the dataItem.
|
|
15
|
-
*/
|
|
16
|
-
dataIndex: number;
|
|
17
|
-
/**
|
|
18
|
-
* The index of the column in the rendered columns collection.
|
|
19
|
-
*/
|
|
20
|
-
columnIndex?: number;
|
|
21
|
-
/**
|
|
22
|
-
* The number of rendered columns in the Grid.
|
|
23
|
-
*/
|
|
24
|
-
columnsCount?: number;
|
|
25
|
-
/**
|
|
26
|
-
* Sets a set of cells components that the Grid will render instead of the built-in cell.
|
|
27
|
-
*/
|
|
28
|
-
cells?: GridCellsSettings;
|
|
29
|
-
/**
|
|
30
|
-
* The type of the row.
|
|
31
|
-
*/
|
|
32
|
-
rowType?: GridRowType;
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
level?: number;
|
|
37
|
-
/**
|
|
38
|
-
* The event that is fired when the cell is selected.
|
|
39
|
-
*/
|
|
40
|
-
selectionChange?: (event: {
|
|
41
|
-
syntheticEvent: React.SyntheticEvent<any>;
|
|
42
|
-
}) => void;
|
|
43
|
-
/**
|
|
44
|
-
* The event that is fired when the cell value is changed.
|
|
45
|
-
*/
|
|
46
|
-
onChange?: (event: {
|
|
47
|
-
dataItem: any;
|
|
48
|
-
dataIndex: number;
|
|
49
|
-
syntheticEvent: React.SyntheticEvent<any>;
|
|
50
|
-
field?: string;
|
|
51
|
-
value?: any;
|
|
52
|
-
}) => void;
|
|
53
|
-
/**
|
|
54
|
-
* The type of the editor which will be used when the cell is in edit mode.
|
|
55
|
-
*/
|
|
56
|
-
editor?: 'text' | 'numeric' | 'boolean' | 'date';
|
|
57
|
-
/**
|
|
58
|
-
* A function for overriding the default rendering of the cell.
|
|
59
|
-
*/
|
|
60
|
-
render?: (defaultRendering: React.ReactElement<HTMLTableCellElement> | null, props: GridCellProps) => React.ReactElement<HTMLTableCellElement> | null;
|
|
61
|
-
/**
|
|
62
|
-
* @hidden
|
|
63
|
-
*/
|
|
64
|
-
locked?: boolean | undefined;
|
|
65
|
-
/**
|
|
66
|
-
* The event that is fired when the ContextMenu is activated.
|
|
67
|
-
*/
|
|
68
|
-
onContextMenu?: (event: React.MouseEvent<HTMLElement>, dataItem: any, field?: string) => void;
|
|
69
|
-
/**
|
|
70
|
-
* @hidden
|
|
71
|
-
*/
|
|
72
|
-
isRtl?: boolean;
|
|
73
|
-
}
|