@progress/kendo-react-data-tools 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/clipboard/clipboard.service.js +8 -0
- package/clipboard/clipboard.service.mjs +27 -0
- package/clipboard/common.js +13 -0
- package/clipboard/common.mjs +64 -0
- package/columnmenu/ColumnMenu.js +8 -0
- package/columnmenu/ColumnMenu.mjs +256 -0
- package/columnmenu/ColumnMenuFilterForm.js +8 -0
- package/columnmenu/ColumnMenuFilterForm.mjs +47 -0
- package/columnmenu/ColumnMenuFilterLogic.js +8 -0
- package/columnmenu/ColumnMenuFilterLogic.mjs +29 -0
- package/columnmenu/ColumnMenuFilters.js +8 -0
- package/columnmenu/ColumnMenuFilters.mjs +98 -0
- package/columnmenu/ColumnMenuItem.js +8 -0
- package/columnmenu/ColumnMenuItem.mjs +26 -0
- package/columnmenu/ColumnMenuOperators.js +8 -0
- package/columnmenu/ColumnMenuOperators.mjs +109 -0
- package/dist/cdn/js/kendo-react-datatools.js +8 -10
- package/drag/ColumnDraggable.js +8 -0
- package/drag/ColumnDraggable.mjs +40 -0
- package/drag/ColumnResize.js +8 -0
- package/drag/ColumnResize.mjs +58 -0
- package/drag/ColumnResizer.js +8 -0
- package/drag/ColumnResizer.mjs +56 -0
- package/drag/CommonDragLogic.js +8 -0
- package/drag/CommonDragLogic.mjs +89 -0
- package/drag/DragClue.js +8 -0
- package/drag/DragClue.mjs +52 -0
- package/drag/DropClue.js +8 -0
- package/drag/DropClue.mjs +43 -0
- package/filter/Expression.js +8 -0
- package/filter/Expression.mjs +113 -0
- package/filter/Filter.js +8 -0
- package/filter/Filter.mjs +84 -0
- package/filter/Group.js +8 -0
- package/filter/Group.mjs +163 -0
- package/filter/filters/BooleanFilter.js +8 -0
- package/filter/filters/BooleanFilter.mjs +43 -0
- package/filter/filters/DateFilter.js +8 -0
- package/filter/filters/DateFilter.mjs +43 -0
- package/filter/filters/EnumFilter.js +8 -0
- package/filter/filters/EnumFilter.mjs +59 -0
- package/filter/filters/NumericFilter.js +8 -0
- package/filter/filters/NumericFilter.mjs +54 -0
- package/filter/filters/TextFilter.js +8 -0
- package/filter/filters/TextFilter.mjs +46 -0
- package/filter/operators.js +8 -0
- package/filter/operators.mjs +114 -0
- package/filteringCells/BooleanFilter.js +8 -0
- package/filteringCells/BooleanFilter.mjs +49 -0
- package/filteringCells/DateFilter.js +8 -0
- package/filteringCells/DateFilter.mjs +22 -0
- package/filteringCells/FilterComponent.js +8 -0
- package/filteringCells/FilterComponent.mjs +81 -0
- package/filteringCells/NumericFilter.js +8 -0
- package/filteringCells/NumericFilter.mjs +22 -0
- package/filteringCells/TextFilter.js +8 -0
- package/filteringCells/TextFilter.mjs +22 -0
- package/header/ColumnProps.js +8 -0
- package/header/ColumnProps.mjs +19 -0
- package/header/FilterRow.js +8 -0
- package/header/FilterRow.mjs +54 -0
- package/header/Header.js +8 -0
- package/header/Header.mjs +36 -0
- package/header/HeaderCell.js +8 -0
- package/header/HeaderCell.mjs +18 -0
- package/header/HeaderRow.js +8 -0
- package/header/HeaderRow.mjs +132 -0
- package/header/HeaderSelectionCell.js +8 -0
- package/header/HeaderSelectionCell.mjs +32 -0
- package/header/HeaderThElement.js +8 -0
- package/header/HeaderThElement.mjs +47 -0
- package/header/SortSettings.js +8 -0
- package/header/SortSettings.mjs +12 -0
- package/header/utils/index.js +8 -0
- package/header/utils/index.mjs +130 -0
- package/index.d.mts +2398 -5
- package/index.d.ts +2398 -32
- package/index.js +8 -10
- package/index.mjs +152 -2987
- package/messages/index.js +8 -0
- package/messages/index.mjs +167 -0
- package/navigation/TableKeyboardNavigation.js +8 -0
- package/navigation/TableKeyboardNavigation.mjs +142 -0
- package/navigation/TableKeyboardNavigationContext.js +8 -0
- package/navigation/TableKeyboardNavigationContext.mjs +14 -0
- package/navigation/constants.js +8 -0
- package/navigation/constants.mjs +43 -0
- package/navigation/hooks.js +8 -0
- package/navigation/hooks.mjs +22 -0
- package/navigation/utils.js +8 -0
- package/navigation/utils.mjs +107 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +9 -9
- package/pager/Pager.js +8 -0
- package/pager/Pager.mjs +234 -0
- package/pager/PagerInput.js +8 -0
- package/pager/PagerInput.mjs +38 -0
- package/pager/PagerNumericButtons.js +8 -0
- package/pager/PagerNumericButtons.mjs +103 -0
- package/pager/PagerPageSizes.js +8 -0
- package/pager/PagerPageSizes.mjs +38 -0
- package/selection/TableSelection.js +8 -0
- package/selection/TableSelection.mjs +123 -0
- package/selection/constants.js +8 -0
- package/selection/constants.mjs +14 -0
- package/selection/utils.js +8 -0
- package/selection/utils.mjs +155 -0
- package/utils/data-operations.js +8 -0
- package/utils/data-operations.mjs +127 -0
- package/utils/group-operations.js +8 -0
- package/utils/group-operations.mjs +32 -0
- package/virtualization/columns.js +8 -0
- package/virtualization/columns.mjs +43 -0
- package/clipboard/clipboard.service.d.ts +0 -17
- package/clipboard/common.d.ts +0 -129
- package/columnmenu/ColumnMenu.d.ts +0 -83
- package/columnmenu/ColumnMenuFilterForm.d.ts +0 -17
- package/columnmenu/ColumnMenuFilterLogic.d.ts +0 -7
- package/columnmenu/ColumnMenuFilters.d.ts +0 -23
- package/columnmenu/ColumnMenuItem.d.ts +0 -15
- package/columnmenu/ColumnMenuOperators.d.ts +0 -69
- package/columnmenu/index.d.ts +0 -10
- package/drag/ColumnDraggable.d.ts +0 -34
- package/drag/ColumnResize.d.ts +0 -36
- package/drag/ColumnResizer.d.ts +0 -32
- package/drag/CommonDragLogic.d.ts +0 -42
- package/drag/DragClue.d.ts +0 -26
- package/drag/DropClue.d.ts +0 -23
- package/filter/Expression.d.ts +0 -50
- package/filter/FieldSettings.d.ts +0 -34
- package/filter/Filter.d.ts +0 -83
- package/filter/Group.d.ts +0 -58
- package/filter/filters/BooleanFilter.d.ts +0 -47
- package/filter/filters/DateFilter.d.ts +0 -30
- package/filter/filters/EnumFilter.d.ts +0 -47
- package/filter/filters/NumericFilter.d.ts +0 -37
- package/filter/filters/TextFilter.d.ts +0 -44
- package/filter/filters/index.d.ts +0 -9
- package/filter/index.d.ts +0 -10
- package/filter/operators.d.ts +0 -77
- package/filteringCells/BooleanFilter.d.ts +0 -12
- package/filteringCells/DateFilter.d.ts +0 -12
- package/filteringCells/FilterCellProps.d.ts +0 -39
- package/filteringCells/FilterComponent.d.ts +0 -21
- package/filteringCells/FilterComponentProps.d.ts +0 -27
- package/filteringCells/FilterOperator.d.ts +0 -17
- package/filteringCells/NumericFilter.d.ts +0 -12
- package/filteringCells/TextFilter.d.ts +0 -12
- package/filteringCells/index.d.ts +0 -12
- package/header/CellProps.d.ts +0 -72
- package/header/ColumnProps.d.ts +0 -157
- package/header/FilterRow.d.ts +0 -29
- package/header/Header.d.ts +0 -22
- package/header/HeaderCell.d.ts +0 -51
- package/header/HeaderRow.d.ts +0 -41
- package/header/HeaderSelectionCell.d.ts +0 -15
- package/header/HeaderThElement.d.ts +0 -26
- package/header/SortSettings.d.ts +0 -30
- package/header/index.d.ts +0 -14
- package/header/utils/index.d.ts +0 -87
- package/messages/index.d.ts +0 -394
- package/navigation/TableKeyboardNavigation.d.ts +0 -72
- package/navigation/TableKeyboardNavigationContext.d.ts +0 -10
- package/navigation/TableKeyboardNavigationContextType.d.ts +0 -11
- package/navigation/TableKeyboardNavigationStateType.d.ts +0 -14
- package/navigation/constants.d.ts +0 -58
- package/navigation/hooks.d.ts +0 -16
- package/navigation/utils.d.ts +0 -149
- package/package-metadata.d.ts +0 -9
- package/pager/Pager.d.ts +0 -208
- package/pager/PagerInput.d.ts +0 -29
- package/pager/PagerNumericButtons.d.ts +0 -32
- package/pager/PagerPageSizes.d.ts +0 -30
- package/selection/TableSelectableSettings.d.ts +0 -35
- package/selection/TableSelection.d.ts +0 -15
- package/selection/constants.d.ts +0 -10
- package/selection/events.d.ts +0 -98
- package/selection/utils.d.ts +0 -70
- package/utils/DataItemWrapper.d.ts +0 -14
- package/utils/data-operations.d.ts +0 -98
- package/utils/group-operations.d.ts +0 -33
- package/virtualization/columns.d.ts +0 -19
- package/virtualization/index.d.ts +0 -5
|
@@ -1,15 +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 { TableSelectableSettings } from './TableSelectableSettings';
|
|
6
|
-
import { TableDragSelectionReleaseEvent } from './events';
|
|
7
|
-
/** @hidden */
|
|
8
|
-
export interface TableSelectionProps {
|
|
9
|
-
children: any;
|
|
10
|
-
selectable?: TableSelectableSettings;
|
|
11
|
-
onRelease: (options: TableDragSelectionReleaseEvent) => void;
|
|
12
|
-
childRef?: (childElement: HTMLElement) => void;
|
|
13
|
-
}
|
|
14
|
-
/** @hidden */
|
|
15
|
-
export declare const TableSelection: (props: TableSelectionProps) => import("react/jsx-runtime").JSX.Element;
|
package/selection/constants.d.ts
DELETED
|
@@ -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
|
-
/** @hidden */
|
|
6
|
-
export declare const TABLE_ROW_INDEX_ATTRIBUTE = "data-grid-row-index";
|
|
7
|
-
/** @hidden */
|
|
8
|
-
export declare const TABLE_COL_INDEX_ATTRIBUTE = "data-grid-col-index";
|
|
9
|
-
/** @hidden */
|
|
10
|
-
export declare const TABLE_PREVENT_SELECTION_ELEMENT = "data-prevent-selection";
|
package/selection/events.d.ts
DELETED
|
@@ -1,98 +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 { BaseEvent } from '@progress/kendo-react-common';
|
|
6
|
-
/** @hidden */
|
|
7
|
-
export interface TableKeyDownEvent<T> extends BaseEvent<T> {
|
|
8
|
-
/**
|
|
9
|
-
* The current leaf data items.
|
|
10
|
-
*/
|
|
11
|
-
dataItems: any[];
|
|
12
|
-
/**
|
|
13
|
-
* Selection mode.
|
|
14
|
-
*/
|
|
15
|
-
mode: 'single' | 'multiple';
|
|
16
|
-
/**
|
|
17
|
-
* Indicates if cell selection mode is enabled.
|
|
18
|
-
*/
|
|
19
|
-
cell: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* The `selectedField` prop of the component.
|
|
22
|
-
*/
|
|
23
|
-
selectedField: string;
|
|
24
|
-
/**
|
|
25
|
-
* The component unique identifier.
|
|
26
|
-
*/
|
|
27
|
-
componentId: string;
|
|
28
|
-
}
|
|
29
|
-
/** @hidden */
|
|
30
|
-
export interface TableDragSelectionReleaseEvent {
|
|
31
|
-
/**
|
|
32
|
-
* Selection start row index.
|
|
33
|
-
*/
|
|
34
|
-
startRowIndex: number;
|
|
35
|
-
/**
|
|
36
|
-
* Selection start column index.
|
|
37
|
-
*/
|
|
38
|
-
startColIndex: number;
|
|
39
|
-
/**
|
|
40
|
-
* Selection end row index.
|
|
41
|
-
*/
|
|
42
|
-
endRowIndex: number;
|
|
43
|
-
/**
|
|
44
|
-
* Selection end column index.
|
|
45
|
-
*/
|
|
46
|
-
endColIndex: number;
|
|
47
|
-
/**
|
|
48
|
-
* A native DOM event.
|
|
49
|
-
*/
|
|
50
|
-
nativeEvent: any;
|
|
51
|
-
/**
|
|
52
|
-
* Is ctrl key modifier pressed.
|
|
53
|
-
*/
|
|
54
|
-
ctrlKey: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Is alt key modifier pressed.
|
|
57
|
-
*/
|
|
58
|
-
altKey: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Is meta key modifier pressed.
|
|
61
|
-
*/
|
|
62
|
-
metaKey: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Is shift key modifier pressed.
|
|
65
|
-
*/
|
|
66
|
-
shiftKey: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* Selection mode.
|
|
69
|
-
*/
|
|
70
|
-
mode: 'single' | 'multiple';
|
|
71
|
-
/**
|
|
72
|
-
* Indicates if cell selection mode is enabled.
|
|
73
|
-
*/
|
|
74
|
-
cell: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Indicates if current event is created from drag.
|
|
77
|
-
*/
|
|
78
|
-
isDrag: boolean;
|
|
79
|
-
}
|
|
80
|
-
/** @hidden */
|
|
81
|
-
export interface TableSelectionChangeEvent<T> extends BaseEvent<T>, TableDragSelectionReleaseEvent {
|
|
82
|
-
/**
|
|
83
|
-
* The data item which was selected or deselected when the checkbox selection column is used. It will be `null` when the row or cell selection is used.
|
|
84
|
-
*/
|
|
85
|
-
dataItem: any;
|
|
86
|
-
/**
|
|
87
|
-
* The `selectedField` prop of the component.
|
|
88
|
-
*/
|
|
89
|
-
selectedField: string;
|
|
90
|
-
/**
|
|
91
|
-
* The component unique identifier.
|
|
92
|
-
*/
|
|
93
|
-
componentId: string;
|
|
94
|
-
/**
|
|
95
|
-
* The current component leaf data items.
|
|
96
|
-
*/
|
|
97
|
-
dataItems: any[];
|
|
98
|
-
}
|
package/selection/utils.d.ts
DELETED
|
@@ -1,70 +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 { TableKeyDownEvent, TableSelectionChangeEvent } from './events';
|
|
6
|
-
import { TableSelectableSettings } from './TableSelectableSettings';
|
|
7
|
-
/** @hidden */
|
|
8
|
-
export declare const closestTagName: (target: HTMLElement | null, tagName: 'TD' | 'TR' | 'TABLE') => HTMLElement | null;
|
|
9
|
-
/** @hidden */
|
|
10
|
-
export declare const getRowIndex: (element: HTMLTableRowElement) => number | undefined;
|
|
11
|
-
/** @hidden */
|
|
12
|
-
export declare const getColumnIndex: (element: HTMLTableCellElement) => number | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*
|
|
16
|
-
* Apply the selected field to the data items based on the selected state.
|
|
17
|
-
*
|
|
18
|
-
* @param {{data: any, selectedState: {[id: string]: boolean | number[]}, dataItemKey: string; selectedField: string; subItemsField?: string; }} options
|
|
19
|
-
* @returns {any[]}
|
|
20
|
-
*/
|
|
21
|
-
export declare const setSelectedState: (options: {
|
|
22
|
-
data: any;
|
|
23
|
-
selectedState: {
|
|
24
|
-
[id: string]: boolean | number[];
|
|
25
|
-
};
|
|
26
|
-
dataItemKey: string;
|
|
27
|
-
selectedField: string;
|
|
28
|
-
subItemsField?: string | undefined;
|
|
29
|
-
}) => any[];
|
|
30
|
-
/**
|
|
31
|
-
* Get selected state from the component KeyDown event.
|
|
32
|
-
*
|
|
33
|
-
* @param {{event: TableKeyDownEvent, selectedState: {[id: string]: boolean | number[]}, dataItemKey: string}} options
|
|
34
|
-
* @returns {{[id: string]: boolean | number[]}} - The new selected state.
|
|
35
|
-
*/
|
|
36
|
-
export declare const getSelectedStateFromKeyDown: (options: {
|
|
37
|
-
event: TableKeyDownEvent<any>;
|
|
38
|
-
selectedState: {
|
|
39
|
-
[id: string]: boolean | number[];
|
|
40
|
-
};
|
|
41
|
-
dataItemKey: string;
|
|
42
|
-
}) => {
|
|
43
|
-
[id: string]: boolean | number[];
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Get selected state from the component selection event.
|
|
47
|
-
*
|
|
48
|
-
* @param {{event: TableSelectionChangeEvent, selectedState: {[id: string]: boolean | number[]}, dataItemKey: string}} options
|
|
49
|
-
* @returns {{[id: string]: boolean | number[]}} - The new selected state.
|
|
50
|
-
*/
|
|
51
|
-
export declare const getSelectedState: (options: {
|
|
52
|
-
event: TableSelectionChangeEvent<any>;
|
|
53
|
-
selectedState: {
|
|
54
|
-
[id: string]: boolean | number[];
|
|
55
|
-
};
|
|
56
|
-
dataItemKey: string;
|
|
57
|
-
}) => {
|
|
58
|
-
[id: string]: boolean | number[];
|
|
59
|
-
};
|
|
60
|
-
/** @hidden */
|
|
61
|
-
export declare const relativeContextElement: (element: any) => any;
|
|
62
|
-
/** @hidden */
|
|
63
|
-
export declare const getOffset: (offsetParent: any) => any;
|
|
64
|
-
/** @hidden */
|
|
65
|
-
export declare const getSelectionOptions: (selectable?: TableSelectableSettings) => {
|
|
66
|
-
enabled: boolean;
|
|
67
|
-
drag: boolean;
|
|
68
|
-
mode: import("./TableSelectableSettings").TableSelectableMode;
|
|
69
|
-
cell: boolean;
|
|
70
|
-
};
|
|
@@ -1,14 +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
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export interface DataItemWrapper {
|
|
9
|
-
dataItem: any;
|
|
10
|
-
level: number[];
|
|
11
|
-
height: number;
|
|
12
|
-
offsetTop: number;
|
|
13
|
-
levelCount: number;
|
|
14
|
-
}
|
|
@@ -1,98 +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 { SortDescriptor, FilterDescriptor, CompositeFilterDescriptor } from '@progress/kendo-data-query';
|
|
6
|
-
import { DataItemWrapper } from './DataItemWrapper';
|
|
7
|
-
/**
|
|
8
|
-
* Orders the specified tree according to the provided sort descriptors.
|
|
9
|
-
*
|
|
10
|
-
* @param {T[]} data - The data that will be sorted.
|
|
11
|
-
* @param {SortDescriptor[]} descriptors - The descriptors by which the data will be sorted.
|
|
12
|
-
* @param {string} subItemsField - The field which points to the subitems collection of each data item.
|
|
13
|
-
* @returns {T[]} - The sorted data.
|
|
14
|
-
*/
|
|
15
|
-
export declare function orderBy(data: any[], descriptors: SortDescriptor[], subItemsField: string): any[];
|
|
16
|
-
/**
|
|
17
|
-
* Filters the provided data tree according to the specified `Array<FilterDescriptor|CompositeFilterDescriptor>`.
|
|
18
|
-
*
|
|
19
|
-
* @param {T[]} data - The data that will be filtered.
|
|
20
|
-
* @param {FilterDescriptor[]|CompositeFilterDescriptor[]} descriptors - The filter criteria that will be applied.
|
|
21
|
-
* @param {string} subItemsField - The field which points to the subitems collection of each data item.
|
|
22
|
-
* @returns {T[]} - The filtered data.
|
|
23
|
-
*/
|
|
24
|
-
export declare function filterBy(data: any[], descriptors: FilterDescriptor[] | CompositeFilterDescriptor[], subItemsField: string): any[];
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
export declare function flatData(data: any[], getChildren: (dataItem: any) => any[], itemMap: (item: any) => any): DataItemWrapper[];
|
|
29
|
-
/**
|
|
30
|
-
* Creates a flat data array from the passed tree dataset.
|
|
31
|
-
*
|
|
32
|
-
* @param {object[]} dataset - The source dataset of data items.
|
|
33
|
-
* @param {string} expandField - The field which points to the expanded value of each data item.
|
|
34
|
-
* @param {string} subItemsField - The field which points to the subitems collection of each data item.
|
|
35
|
-
* @returns {object[]} - A collection of the generated data items that are in a flat structure.
|
|
36
|
-
*/
|
|
37
|
-
export declare const treeToFlat: (data: any[], expandField: string, subItemsField: string) => any[];
|
|
38
|
-
/**
|
|
39
|
-
* Creates a tree from the passed dataset.
|
|
40
|
-
*
|
|
41
|
-
* @param {object[]} dataset - The source dataset of data items.
|
|
42
|
-
* @param {(item: object) => any} getId - A function which will return the id of the data item.
|
|
43
|
-
* @param {(item: object) => any} getParentId - A function which will return the data item id of its parent data item.
|
|
44
|
-
* @param {string} subItemsField - The field which points to the subitems collection of each data item.
|
|
45
|
-
* @returns {object[]} - A collection of the generated data items that are structured in a tree.
|
|
46
|
-
*/
|
|
47
|
-
export declare const createDataTree: (dataset: any[], getId: (item: any) => any, getParentId: (item: any) => any, subItemsField: string) => any[];
|
|
48
|
-
/**
|
|
49
|
-
* Similar to the `Object.assign` function. Additionally, creates a new array for the subitems.
|
|
50
|
-
*
|
|
51
|
-
* @param {object} item - The source data item.
|
|
52
|
-
* @param {string} subItemsField - The field which points to the subitems collection of each data item.
|
|
53
|
-
* @param {object} propsToExtend - The props with which the source data item will be extended.
|
|
54
|
-
* @returns {object} - The target data item.
|
|
55
|
-
*/
|
|
56
|
-
export declare const extendDataItem: (item: any, subItemsField: string, propsToExtend?: any) => any;
|
|
57
|
-
/**
|
|
58
|
-
* Removes the items from the passed `data` which match the passed `condition`.
|
|
59
|
-
*
|
|
60
|
-
* @param {any[]} data - The data tree.
|
|
61
|
-
* @param {string} subItemsField - The field which points to the subitems collection of each data item.
|
|
62
|
-
* @param {(item: object) => Boolean} condition - A function that will be executed for each data item
|
|
63
|
-
* in the tree data and the items for which returns true will be removed.
|
|
64
|
-
* @returns {any[]} - The new data tree.
|
|
65
|
-
*/
|
|
66
|
-
export declare const removeItems: (data: any[], subItemsField: string, condition: (item: any) => boolean) => any[];
|
|
67
|
-
/**
|
|
68
|
-
* Changes the `subItems` collection of each data item which matches the passed `condition`.
|
|
69
|
-
*
|
|
70
|
-
* @param {any[]} data - The data tree.
|
|
71
|
-
* @param {string} subItemsField - The field which points to the subitems collection of each data item.
|
|
72
|
-
* @param {(item: object) => Boolean} condition - A function that will be executed for each data item and
|
|
73
|
-
* will return `true` for items that have to change the subitems collection.
|
|
74
|
-
* @param {(subItems: object[]) => object[]} change - A function which
|
|
75
|
-
* has as a parameter the subitems collection of the matched items and which will return the new subitems collection.
|
|
76
|
-
* @returns {any[]} - The new data tree.
|
|
77
|
-
*/
|
|
78
|
-
export declare const modifySubItems: (data: any[], subItemsField: string, condition: (item: any) => boolean, change: (subItems: any[]) => any[]) => any[];
|
|
79
|
-
/**
|
|
80
|
-
* Returns the data item path in the tree based on the level parameter.
|
|
81
|
-
*
|
|
82
|
-
* @param {any[]} tree - The data tree.
|
|
83
|
-
* @param {number[]} level - The level of the target tree item.
|
|
84
|
-
* @param {string} subItemsField - The field which points to the subitems collection of each data item.
|
|
85
|
-
* @returns {any[]} - The path of the data item.
|
|
86
|
-
*/
|
|
87
|
-
export declare const getItemPath: (tree: any[], level: number[], subItemsField?: string) => any[];
|
|
88
|
-
/**
|
|
89
|
-
* Moves the targeted item in the tree to another position.
|
|
90
|
-
*
|
|
91
|
-
* @param {any[]} data - The data tree.
|
|
92
|
-
* @param {number[]} target - The level of the target tree item which will be moved.
|
|
93
|
-
* @param {number[] | null} destination - The level of the destination tree item where the target item will be moved in.
|
|
94
|
-
* If it is null, the target item will be added at the root level.
|
|
95
|
-
* @param {string} subItemsField - The field which points to the subitems collection of each data item.
|
|
96
|
-
* @returns {any[]} - The new data tree.
|
|
97
|
-
*/
|
|
98
|
-
export declare const moveTreeItem: (data: any[], target: number[], destination: number[] | null, subItemsField: string) => any[];
|
|
@@ -1,33 +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 { GroupDescriptor } from '@progress/kendo-data-query';
|
|
6
|
-
/**
|
|
7
|
-
* Add unique ids to the group items inside data.
|
|
8
|
-
*
|
|
9
|
-
* @param {{data: any[], group: GroupDescriptor[]}} options - The options to be processed.
|
|
10
|
-
*/
|
|
11
|
-
export declare const setGroupIds: (options: {
|
|
12
|
-
data: any;
|
|
13
|
-
group?: Array<GroupDescriptor>;
|
|
14
|
-
}) => void;
|
|
15
|
-
/**
|
|
16
|
-
* Get all group ids from the data.
|
|
17
|
-
*
|
|
18
|
-
* @param {{data: any[]}} options - The options to be processed.
|
|
19
|
-
* @returns {string[]} - Collection of all group ids from the data.
|
|
20
|
-
*/
|
|
21
|
-
export declare const getGroupIds: (options: {
|
|
22
|
-
data: any;
|
|
23
|
-
}) => string[];
|
|
24
|
-
/**
|
|
25
|
-
* Apply the `expanded` prop to the group items in data based on the provided collection of group ids.
|
|
26
|
-
*
|
|
27
|
-
* @param {{data: any[], collapsedIds: string[]}} options - The options to be processed.
|
|
28
|
-
* @returns {string[]} - Collection of all group ids from the data.
|
|
29
|
-
*/
|
|
30
|
-
export declare const setExpandedState: (options: {
|
|
31
|
-
data: any;
|
|
32
|
-
collapsedIds: string[];
|
|
33
|
-
}) => any[];
|
|
@@ -1,19 +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
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare function tableColumnsVirtualization(args: {
|
|
9
|
-
enabled?: boolean;
|
|
10
|
-
columns: {
|
|
11
|
-
width?: string | number;
|
|
12
|
-
locked?: boolean;
|
|
13
|
-
}[];
|
|
14
|
-
tableViewPortWidth: number;
|
|
15
|
-
scrollLeft: number;
|
|
16
|
-
}): {
|
|
17
|
-
colSpans: number[];
|
|
18
|
-
hiddenColumns: boolean[];
|
|
19
|
-
};
|
|
@@ -1,5 +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
|
-
export * from './columns';
|