@progress/kendo-react-treelist 15.2.0-develop.1 → 15.2.0-develop.3
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/TreeList.d.ts +10 -121
- package/TreeList.js +1 -1
- package/TreeList.mjs +840 -526
- package/TreeListNoRecords.d.ts +8 -6
- package/TreeListNoRecords.js +1 -1
- package/TreeListNoRecords.mjs +15 -12
- package/cells/EditCells/TreeListBooleanEditor.js +1 -1
- package/cells/EditCells/TreeListBooleanEditor.mjs +5 -5
- package/cells/EditCells/TreeListDateEditor.js +1 -1
- package/cells/EditCells/TreeListDateEditor.mjs +9 -9
- package/cells/EditCells/TreeListNumericEditor.js +1 -1
- package/cells/EditCells/TreeListNumericEditor.mjs +9 -9
- package/cells/EditCells/TreeListTextEditor.js +1 -1
- package/cells/EditCells/TreeListTextEditor.mjs +4 -4
- package/cells/TreeListCell.js +1 -1
- package/cells/TreeListCell.mjs +10 -10
- package/cells/TreeListSelectionCell.js +1 -1
- package/cells/TreeListSelectionCell.mjs +1 -1
- package/dist/cdn/js/kendo-react-treelist.js +1 -1
- package/header/TreeListHeaderSelectionCell.d.ts +10 -6
- package/header/TreeListHeaderSelectionCell.js +1 -1
- package/header/TreeListHeaderSelectionCell.mjs +16 -14
- package/index.d.mts +5 -7
- package/index.d.ts +5 -7
- package/index.js +1 -1
- package/index.mjs +49 -50
- package/interfaces/events.d.ts +6 -6
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +9 -9
- package/rows/TreeListDraggableRow.d.ts +7 -26
- package/rows/TreeListDraggableRow.js +1 -1
- package/rows/TreeListDraggableRow.mjs +88 -77
- package/rows/TreeListRow.js +1 -1
- package/rows/TreeListRow.mjs +1 -1
- package/TreeListMcpWrapper.d.ts +0 -17
- package/TreeListMcpWrapper.js +0 -8
- package/TreeListMcpWrapper.mjs +0 -18
|
@@ -6,19 +6,21 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import * as e from "react";
|
|
9
|
-
import { guid as
|
|
10
|
-
import { HeaderSelectionCell as
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
9
|
+
import { guid as a } from "@progress/kendo-react-common";
|
|
10
|
+
import { HeaderSelectionCell as i } from "@progress/kendo-react-data-tools";
|
|
11
|
+
const o = e.forwardRef((t, l) => {
|
|
12
|
+
const n = e.useRef(a()), r = e.useRef(null);
|
|
13
|
+
return e.useImperativeHandle(
|
|
14
|
+
r,
|
|
15
|
+
() => ({
|
|
16
|
+
props: t
|
|
17
|
+
})
|
|
18
|
+
), e.useImperativeHandle(
|
|
19
|
+
l,
|
|
20
|
+
() => r.current
|
|
21
|
+
), /* @__PURE__ */ e.createElement(i, { inputId: n.current, ...t });
|
|
22
|
+
});
|
|
23
|
+
o.displayName = "KendoReactTreeListHeaderSelectionCell";
|
|
22
24
|
export {
|
|
23
|
-
|
|
25
|
+
o as TreeListHeaderSelectionCell
|
|
24
26
|
};
|
package/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { TreeList
|
|
8
|
+
import { TreeList, TreeListHandle } from './TreeList.js';
|
|
9
9
|
import { TreeListProps } from './interfaces/TreeListProps';
|
|
10
10
|
import { TreeListColumnProps } from './interfaces/TreeListColumnProps';
|
|
11
11
|
import { TreeListCellProps } from './interfaces/TreeListCellProps';
|
|
@@ -13,13 +13,13 @@ import { TreeListCell } from './cells/TreeListCell.js';
|
|
|
13
13
|
import { TreeListHeaderCell } from './header/TreeListHeaderCell.js';
|
|
14
14
|
import { TreeListHeaderCellProps } from './interfaces/TreeListHeaderCellProps';
|
|
15
15
|
import { TreeListSelectionCell, TreeListSelectionCellProps } from './cells/TreeListSelectionCell.js';
|
|
16
|
-
import { TreeListHeaderSelectionCell, TreeListHeaderSelectionCellProps } from './header/TreeListHeaderSelectionCell.js';
|
|
16
|
+
import { TreeListHeaderSelectionCell, TreeListHeaderSelectionCellProps, TreeListHeaderSelectionCellHandle } from './header/TreeListHeaderSelectionCell.js';
|
|
17
17
|
import { TreeListRow } from './rows/TreeListRow.js';
|
|
18
|
-
import { TreeListDraggableRow } from './rows/TreeListDraggableRow.js';
|
|
18
|
+
import { TreeListDraggableRow, TreeListDraggableRowHandle } from './rows/TreeListDraggableRow.js';
|
|
19
19
|
import { TreeListRowProps } from './interfaces/TreeListRowProps';
|
|
20
20
|
import { TreeListToolbar, TreeListToolbarHandle } from './TreeListToolbar.js';
|
|
21
21
|
import { TreeListToolbarProps } from './interfaces/TreeListToolbarProps';
|
|
22
|
-
import { TreeListNoRecords } from './TreeListNoRecords.js';
|
|
22
|
+
import { TreeListNoRecords, TreeListNoRecordsHandle } from './TreeListNoRecords.js';
|
|
23
23
|
import { TreeListNoRecordsProps } from './interfaces/TreeListNoRecordsProps';
|
|
24
24
|
import { TreeListDataStateChangeEvent, TreeListFilterChangeEvent, TreeListSortChangeEvent, TreeListExpandChangeEvent, TreeListSelectionChangeEvent, TreeListItemChangeEvent, TreeListRowClickEvent, TreeListColumnResizeEvent, TreeListColumnReorderEvent, TreeListPageChangeEvent, TreeListRowDragEvent, TreeListColumnMenuFilterChangeEvent, TreeListHeaderSelectionChangeEvent, TreeListEvent, TreeListRowDoubleClickEvent, TreeListRowContextMenuEvent, TreeListDragSelectionReleaseEvent, TreeListKeyDownEvent } from './interfaces/events';
|
|
25
25
|
import { TreeListSortSettings, TreeListColumnSortSettings } from './interfaces/TreeListSortSettings';
|
|
@@ -37,6 +37,4 @@ import { DataItemWrapper } from './interfaces/DataItemWrapper';
|
|
|
37
37
|
import { setHeaderRowsTop, tableRowsVirtualization } from './utils/index.js';
|
|
38
38
|
import { TREELIST_COL_INDEX_ATTRIBUTE, TREELIST_ROW_INDEX_ATTRIBUTE, TREELIST_PREVENT_SELECTION_ELEMENT } from './constants/index.js';
|
|
39
39
|
import { TreeListSelectableMode, TreeListSelectableSettings } from './interfaces/TreeListSelectableSettings';
|
|
40
|
-
|
|
41
|
-
type TreeList = TreeListClassComponent;
|
|
42
|
-
export { TreeList, TreeListProps, TreeListColumnProps, TreeListCell, TreeListCellProps, TreeListRow, TreeListDraggableRow, TreeListRowProps, TreeListHeaderCell, TreeListHeaderCellProps, TreeListSelectionCell, TreeListSelectionCellProps, TreeListHeaderSelectionCell, TreeListHeaderSelectionCellProps, TreeListToolbar, TreeListToolbarProps, TreeListToolbarHandle, TreeListNoRecords, TreeListNoRecordsProps, TreeListSortSettings, TreeListColumnSortSettings, TreeListTextFilter, TreeListTextFilterProps, TreeListNumericFilter, TreeListNumericFilterProps, TreeListDateFilter, TreeListDateFilterProps, TreeListBooleanFilter, TreeListBooleanFilterProps, TreeListTextEditor, TreeListTextEditorProps, TreeListNumericEditor, TreeListNumericEditorProps, TreeListBooleanEditor, TreeListBooleanEditorProps, TreeListDateEditor, TreeListDateEditorProps, TreeListDataStateChangeEvent, TreeListFilterChangeEvent, TreeListColumnMenuFilterChangeEvent, TreeListSortChangeEvent, TreeListExpandChangeEvent, TreeListSelectionChangeEvent, TreeListItemChangeEvent, TreeListHeaderSelectionChangeEvent, TreeListRowClickEvent, TreeListColumnResizeEvent, TreeListColumnReorderEvent, TreeListPageChangeEvent, TreeListRowDragEvent, TreeListEvent, TreeListRowDoubleClickEvent, TreeListRowContextMenuEvent, TreeListDragSelectionReleaseEvent, TreeListKeyDownEvent, orderBy, filterBy, mapTree, createDataTree, extendDataItem, mapTreeItem, moveTreeItem, getItemPath, removeItems, modifySubItems, treeToFlat, DataItemWrapper, flatData, getNestedValue, getAbsoluteVirtualRowIndex, setHeaderRowsTop, tableRowsVirtualization, TREELIST_COL_INDEX_ATTRIBUTE, TREELIST_ROW_INDEX_ATTRIBUTE, TREELIST_PREVENT_SELECTION_ELEMENT, getSelectedState, getSelectedStateFromKeyDown, setSelectedState, TreeListSelectableSettings, TreeListSelectableMode };
|
|
40
|
+
export { TreeList, TreeListHandle, TreeListProps, TreeListColumnProps, TreeListCell, TreeListCellProps, TreeListRow, TreeListDraggableRow, TreeListDraggableRowHandle, TreeListRowProps, TreeListHeaderCell, TreeListHeaderCellProps, TreeListSelectionCell, TreeListSelectionCellProps, TreeListHeaderSelectionCell, TreeListHeaderSelectionCellProps, TreeListHeaderSelectionCellHandle, TreeListToolbar, TreeListToolbarProps, TreeListToolbarHandle, TreeListNoRecords, TreeListNoRecordsHandle, TreeListNoRecordsProps, TreeListSortSettings, TreeListColumnSortSettings, TreeListTextFilter, TreeListTextFilterProps, TreeListNumericFilter, TreeListNumericFilterProps, TreeListDateFilter, TreeListDateFilterProps, TreeListBooleanFilter, TreeListBooleanFilterProps, TreeListTextEditor, TreeListTextEditorProps, TreeListNumericEditor, TreeListNumericEditorProps, TreeListBooleanEditor, TreeListBooleanEditorProps, TreeListDateEditor, TreeListDateEditorProps, TreeListDataStateChangeEvent, TreeListFilterChangeEvent, TreeListColumnMenuFilterChangeEvent, TreeListSortChangeEvent, TreeListExpandChangeEvent, TreeListSelectionChangeEvent, TreeListItemChangeEvent, TreeListHeaderSelectionChangeEvent, TreeListRowClickEvent, TreeListColumnResizeEvent, TreeListColumnReorderEvent, TreeListPageChangeEvent, TreeListRowDragEvent, TreeListEvent, TreeListRowDoubleClickEvent, TreeListRowContextMenuEvent, TreeListDragSelectionReleaseEvent, TreeListKeyDownEvent, orderBy, filterBy, mapTree, createDataTree, extendDataItem, mapTreeItem, moveTreeItem, getItemPath, removeItems, modifySubItems, treeToFlat, DataItemWrapper, flatData, getNestedValue, getAbsoluteVirtualRowIndex, setHeaderRowsTop, tableRowsVirtualization, TREELIST_COL_INDEX_ATTRIBUTE, TREELIST_ROW_INDEX_ATTRIBUTE, TREELIST_PREVENT_SELECTION_ELEMENT, getSelectedState, getSelectedStateFromKeyDown, setSelectedState, TreeListSelectableSettings, TreeListSelectableMode };
|
package/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { TreeList
|
|
8
|
+
import { TreeList, TreeListHandle } from './TreeList.js';
|
|
9
9
|
import { TreeListProps } from './interfaces/TreeListProps';
|
|
10
10
|
import { TreeListColumnProps } from './interfaces/TreeListColumnProps';
|
|
11
11
|
import { TreeListCellProps } from './interfaces/TreeListCellProps';
|
|
@@ -13,13 +13,13 @@ import { TreeListCell } from './cells/TreeListCell.js';
|
|
|
13
13
|
import { TreeListHeaderCell } from './header/TreeListHeaderCell.js';
|
|
14
14
|
import { TreeListHeaderCellProps } from './interfaces/TreeListHeaderCellProps';
|
|
15
15
|
import { TreeListSelectionCell, TreeListSelectionCellProps } from './cells/TreeListSelectionCell.js';
|
|
16
|
-
import { TreeListHeaderSelectionCell, TreeListHeaderSelectionCellProps } from './header/TreeListHeaderSelectionCell.js';
|
|
16
|
+
import { TreeListHeaderSelectionCell, TreeListHeaderSelectionCellProps, TreeListHeaderSelectionCellHandle } from './header/TreeListHeaderSelectionCell.js';
|
|
17
17
|
import { TreeListRow } from './rows/TreeListRow.js';
|
|
18
|
-
import { TreeListDraggableRow } from './rows/TreeListDraggableRow.js';
|
|
18
|
+
import { TreeListDraggableRow, TreeListDraggableRowHandle } from './rows/TreeListDraggableRow.js';
|
|
19
19
|
import { TreeListRowProps } from './interfaces/TreeListRowProps';
|
|
20
20
|
import { TreeListToolbar, TreeListToolbarHandle } from './TreeListToolbar.js';
|
|
21
21
|
import { TreeListToolbarProps } from './interfaces/TreeListToolbarProps';
|
|
22
|
-
import { TreeListNoRecords } from './TreeListNoRecords.js';
|
|
22
|
+
import { TreeListNoRecords, TreeListNoRecordsHandle } from './TreeListNoRecords.js';
|
|
23
23
|
import { TreeListNoRecordsProps } from './interfaces/TreeListNoRecordsProps';
|
|
24
24
|
import { TreeListDataStateChangeEvent, TreeListFilterChangeEvent, TreeListSortChangeEvent, TreeListExpandChangeEvent, TreeListSelectionChangeEvent, TreeListItemChangeEvent, TreeListRowClickEvent, TreeListColumnResizeEvent, TreeListColumnReorderEvent, TreeListPageChangeEvent, TreeListRowDragEvent, TreeListColumnMenuFilterChangeEvent, TreeListHeaderSelectionChangeEvent, TreeListEvent, TreeListRowDoubleClickEvent, TreeListRowContextMenuEvent, TreeListDragSelectionReleaseEvent, TreeListKeyDownEvent } from './interfaces/events';
|
|
25
25
|
import { TreeListSortSettings, TreeListColumnSortSettings } from './interfaces/TreeListSortSettings';
|
|
@@ -37,6 +37,4 @@ import { DataItemWrapper } from './interfaces/DataItemWrapper';
|
|
|
37
37
|
import { setHeaderRowsTop, tableRowsVirtualization } from './utils/index.js';
|
|
38
38
|
import { TREELIST_COL_INDEX_ATTRIBUTE, TREELIST_ROW_INDEX_ATTRIBUTE, TREELIST_PREVENT_SELECTION_ELEMENT } from './constants/index.js';
|
|
39
39
|
import { TreeListSelectableMode, TreeListSelectableSettings } from './interfaces/TreeListSelectableSettings';
|
|
40
|
-
|
|
41
|
-
type TreeList = TreeListClassComponent;
|
|
42
|
-
export { TreeList, TreeListProps, TreeListColumnProps, TreeListCell, TreeListCellProps, TreeListRow, TreeListDraggableRow, TreeListRowProps, TreeListHeaderCell, TreeListHeaderCellProps, TreeListSelectionCell, TreeListSelectionCellProps, TreeListHeaderSelectionCell, TreeListHeaderSelectionCellProps, TreeListToolbar, TreeListToolbarProps, TreeListToolbarHandle, TreeListNoRecords, TreeListNoRecordsProps, TreeListSortSettings, TreeListColumnSortSettings, TreeListTextFilter, TreeListTextFilterProps, TreeListNumericFilter, TreeListNumericFilterProps, TreeListDateFilter, TreeListDateFilterProps, TreeListBooleanFilter, TreeListBooleanFilterProps, TreeListTextEditor, TreeListTextEditorProps, TreeListNumericEditor, TreeListNumericEditorProps, TreeListBooleanEditor, TreeListBooleanEditorProps, TreeListDateEditor, TreeListDateEditorProps, TreeListDataStateChangeEvent, TreeListFilterChangeEvent, TreeListColumnMenuFilterChangeEvent, TreeListSortChangeEvent, TreeListExpandChangeEvent, TreeListSelectionChangeEvent, TreeListItemChangeEvent, TreeListHeaderSelectionChangeEvent, TreeListRowClickEvent, TreeListColumnResizeEvent, TreeListColumnReorderEvent, TreeListPageChangeEvent, TreeListRowDragEvent, TreeListEvent, TreeListRowDoubleClickEvent, TreeListRowContextMenuEvent, TreeListDragSelectionReleaseEvent, TreeListKeyDownEvent, orderBy, filterBy, mapTree, createDataTree, extendDataItem, mapTreeItem, moveTreeItem, getItemPath, removeItems, modifySubItems, treeToFlat, DataItemWrapper, flatData, getNestedValue, getAbsoluteVirtualRowIndex, setHeaderRowsTop, tableRowsVirtualization, TREELIST_COL_INDEX_ATTRIBUTE, TREELIST_ROW_INDEX_ATTRIBUTE, TREELIST_PREVENT_SELECTION_ELEMENT, getSelectedState, getSelectedStateFromKeyDown, setSelectedState, TreeListSelectableSettings, TreeListSelectableMode };
|
|
40
|
+
export { TreeList, TreeListHandle, TreeListProps, TreeListColumnProps, TreeListCell, TreeListCellProps, TreeListRow, TreeListDraggableRow, TreeListDraggableRowHandle, TreeListRowProps, TreeListHeaderCell, TreeListHeaderCellProps, TreeListSelectionCell, TreeListSelectionCellProps, TreeListHeaderSelectionCell, TreeListHeaderSelectionCellProps, TreeListHeaderSelectionCellHandle, TreeListToolbar, TreeListToolbarProps, TreeListToolbarHandle, TreeListNoRecords, TreeListNoRecordsHandle, TreeListNoRecordsProps, TreeListSortSettings, TreeListColumnSortSettings, TreeListTextFilter, TreeListTextFilterProps, TreeListNumericFilter, TreeListNumericFilterProps, TreeListDateFilter, TreeListDateFilterProps, TreeListBooleanFilter, TreeListBooleanFilterProps, TreeListTextEditor, TreeListTextEditorProps, TreeListNumericEditor, TreeListNumericEditorProps, TreeListBooleanEditor, TreeListBooleanEditorProps, TreeListDateEditor, TreeListDateEditorProps, TreeListDataStateChangeEvent, TreeListFilterChangeEvent, TreeListColumnMenuFilterChangeEvent, TreeListSortChangeEvent, TreeListExpandChangeEvent, TreeListSelectionChangeEvent, TreeListItemChangeEvent, TreeListHeaderSelectionChangeEvent, TreeListRowClickEvent, TreeListColumnResizeEvent, TreeListColumnReorderEvent, TreeListPageChangeEvent, TreeListRowDragEvent, TreeListEvent, TreeListRowDoubleClickEvent, TreeListRowContextMenuEvent, TreeListDragSelectionReleaseEvent, TreeListKeyDownEvent, orderBy, filterBy, mapTree, createDataTree, extendDataItem, mapTreeItem, moveTreeItem, getItemPath, removeItems, modifySubItems, treeToFlat, DataItemWrapper, flatData, getNestedValue, getAbsoluteVirtualRowIndex, setHeaderRowsTop, tableRowsVirtualization, TREELIST_COL_INDEX_ATTRIBUTE, TREELIST_ROW_INDEX_ATTRIBUTE, TREELIST_PREVENT_SELECTION_ELEMENT, getSelectedState, getSelectedStateFromKeyDown, setSelectedState, TreeListSelectableSettings, TreeListSelectableMode };
|
package/index.js
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./TreeList.js"),T=require("./cells/TreeListCell.js"),l=require("./header/TreeListHeaderCell.js"),s=require("./cells/TreeListSelectionCell.js"),a=require("./header/TreeListHeaderSelectionCell.js"),n=require("./rows/TreeListRow.js"),u=require("./rows/TreeListDraggableRow.js"),c=require("./TreeListToolbar.js"),L=require("./TreeListNoRecords.js"),d=require("./cells/FilterCells/TreeListTextFilter.js"),m=require("./cells/FilterCells/TreeListNumericFilter.js"),b=require("./cells/FilterCells/TreeListDateFilter.js"),E=require("./cells/FilterCells/TreeListBooleanFilter.js"),g=require("./cells/EditCells/TreeListTextEditor.js"),R=require("./cells/EditCells/TreeListNumericEditor.js"),I=require("./cells/EditCells/TreeListBooleanEditor.js"),S=require("./cells/EditCells/TreeListDateEditor.js"),t=require("@progress/kendo-react-common"),e=require("@progress/kendo-react-data-tools"),i=require("./utils/index.js"),r=require("./constants/index.js");exports.TreeList=o.TreeList;exports.TreeListCell=T.TreeListCell;exports.TreeListHeaderCell=l.TreeListHeaderCell;exports.TreeListSelectionCell=s.TreeListSelectionCell;exports.TreeListHeaderSelectionCell=a.TreeListHeaderSelectionCell;exports.TreeListRow=n.TreeListRow;exports.TreeListDraggableRow=u.TreeListDraggableRow;exports.TreeListToolbar=c.TreeListToolbar;exports.TreeListNoRecords=L.TreeListNoRecords;exports.TreeListTextFilter=d.TreeListTextFilter;exports.TreeListNumericFilter=m.TreeListNumericFilter;exports.TreeListDateFilter=b.TreeListDateFilter;exports.TreeListBooleanFilter=E.TreeListBooleanFilter;exports.TreeListTextEditor=g.TreeListTextEditor;exports.TreeListNumericEditor=R.TreeListNumericEditor;exports.TreeListBooleanEditor=I.TreeListBooleanEditor;exports.TreeListDateEditor=S.TreeListDateEditor;Object.defineProperty(exports,"getAbsoluteVirtualRowIndex",{enumerable:!0,get:()=>t.getAbsoluteVirtualRowIndex});Object.defineProperty(exports,"getNestedValue",{enumerable:!0,get:()=>t.getNestedValue});Object.defineProperty(exports,"mapTree",{enumerable:!0,get:()=>t.mapTree});Object.defineProperty(exports,"mapTreeItem",{enumerable:!0,get:()=>t.mapTreeItem});Object.defineProperty(exports,"createDataTree",{enumerable:!0,get:()=>e.createDataTree});Object.defineProperty(exports,"extendDataItem",{enumerable:!0,get:()=>e.extendDataItem});Object.defineProperty(exports,"filterBy",{enumerable:!0,get:()=>e.filterBy});Object.defineProperty(exports,"flatData",{enumerable:!0,get:()=>e.flatData});Object.defineProperty(exports,"getItemPath",{enumerable:!0,get:()=>e.getItemPath});Object.defineProperty(exports,"getSelectedState",{enumerable:!0,get:()=>e.getSelectedState});Object.defineProperty(exports,"getSelectedStateFromKeyDown",{enumerable:!0,get:()=>e.getSelectedStateFromKeyDown});Object.defineProperty(exports,"modifySubItems",{enumerable:!0,get:()=>e.modifySubItems});Object.defineProperty(exports,"moveTreeItem",{enumerable:!0,get:()=>e.moveTreeItem});Object.defineProperty(exports,"orderBy",{enumerable:!0,get:()=>e.orderBy});Object.defineProperty(exports,"removeItems",{enumerable:!0,get:()=>e.removeItems});Object.defineProperty(exports,"setSelectedState",{enumerable:!0,get:()=>e.setSelectedState});Object.defineProperty(exports,"treeToFlat",{enumerable:!0,get:()=>e.treeToFlat});exports.setHeaderRowsTop=i.setHeaderRowsTop;exports.tableRowsVirtualization=i.tableRowsVirtualization;exports.TREELIST_COL_INDEX_ATTRIBUTE=r.TREELIST_COL_INDEX_ATTRIBUTE;exports.TREELIST_PREVENT_SELECTION_ELEMENT=r.TREELIST_PREVENT_SELECTION_ELEMENT;exports.TREELIST_ROW_INDEX_ATTRIBUTE=r.TREELIST_ROW_INDEX_ATTRIBUTE;
|
package/index.mjs
CHANGED
|
@@ -6,66 +6,65 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import {
|
|
10
|
-
import { TreeListCell as
|
|
11
|
-
import { TreeListHeaderCell as
|
|
12
|
-
import { TreeListSelectionCell as
|
|
9
|
+
import { TreeList as r } from "./TreeList.mjs";
|
|
10
|
+
import { TreeListCell as T } from "./cells/TreeListCell.mjs";
|
|
11
|
+
import { TreeListHeaderCell as m } from "./header/TreeListHeaderCell.mjs";
|
|
12
|
+
import { TreeListSelectionCell as l } from "./cells/TreeListSelectionCell.mjs";
|
|
13
13
|
import { TreeListHeaderSelectionCell as x } from "./header/TreeListHeaderSelectionCell.mjs";
|
|
14
|
-
import { TreeListRow as
|
|
15
|
-
import { TreeListDraggableRow as
|
|
16
|
-
import { TreeListToolbar as
|
|
17
|
-
import { TreeListNoRecords as
|
|
14
|
+
import { TreeListRow as p } from "./rows/TreeListRow.mjs";
|
|
15
|
+
import { TreeListDraggableRow as E } from "./rows/TreeListDraggableRow.mjs";
|
|
16
|
+
import { TreeListToolbar as I } from "./TreeListToolbar.mjs";
|
|
17
|
+
import { TreeListNoRecords as S } from "./TreeListNoRecords.mjs";
|
|
18
18
|
import { TreeListTextFilter as D } from "./cells/FilterCells/TreeListTextFilter.mjs";
|
|
19
19
|
import { TreeListNumericFilter as _ } from "./cells/FilterCells/TreeListNumericFilter.mjs";
|
|
20
|
-
import { TreeListDateFilter as
|
|
21
|
-
import { TreeListBooleanFilter as
|
|
22
|
-
import { TreeListTextEditor as
|
|
23
|
-
import { TreeListNumericEditor as
|
|
24
|
-
import { TreeListBooleanEditor as
|
|
25
|
-
import { TreeListDateEditor as
|
|
26
|
-
import { getAbsoluteVirtualRowIndex as
|
|
27
|
-
import { createDataTree as z, extendDataItem as K, filterBy as M, flatData as
|
|
28
|
-
import { setHeaderRowsTop as
|
|
29
|
-
import { TREELIST_COL_INDEX_ATTRIBUTE as
|
|
30
|
-
const r = e;
|
|
20
|
+
import { TreeListDateFilter as g } from "./cells/FilterCells/TreeListDateFilter.mjs";
|
|
21
|
+
import { TreeListBooleanFilter as w } from "./cells/FilterCells/TreeListBooleanFilter.mjs";
|
|
22
|
+
import { TreeListTextEditor as C } from "./cells/EditCells/TreeListTextEditor.mjs";
|
|
23
|
+
import { TreeListNumericEditor as b } from "./cells/EditCells/TreeListNumericEditor.mjs";
|
|
24
|
+
import { TreeListBooleanEditor as V } from "./cells/EditCells/TreeListBooleanEditor.mjs";
|
|
25
|
+
import { TreeListDateEditor as H } from "./cells/EditCells/TreeListDateEditor.mjs";
|
|
26
|
+
import { getAbsoluteVirtualRowIndex as v, getNestedValue as P, mapTree as U, mapTreeItem as X } from "@progress/kendo-react-common";
|
|
27
|
+
import { createDataTree as z, extendDataItem as K, filterBy as M, flatData as W, getItemPath as j, getSelectedState as k, getSelectedStateFromKeyDown as q, modifySubItems as G, moveTreeItem as J, orderBy as Q, removeItems as Y, setSelectedState as Z, treeToFlat as $ } from "@progress/kendo-react-data-tools";
|
|
28
|
+
import { setHeaderRowsTop as te, tableRowsVirtualization as re } from "./utils/index.mjs";
|
|
29
|
+
import { TREELIST_COL_INDEX_ATTRIBUTE as Te, TREELIST_PREVENT_SELECTION_ELEMENT as ie, TREELIST_ROW_INDEX_ATTRIBUTE as me } from "./constants/index.mjs";
|
|
31
30
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
Te as TREELIST_COL_INDEX_ATTRIBUTE,
|
|
32
|
+
ie as TREELIST_PREVENT_SELECTION_ELEMENT,
|
|
33
|
+
me as TREELIST_ROW_INDEX_ATTRIBUTE,
|
|
35
34
|
r as TreeList,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
V as TreeListBooleanEditor,
|
|
36
|
+
w as TreeListBooleanFilter,
|
|
37
|
+
T as TreeListCell,
|
|
38
|
+
H as TreeListDateEditor,
|
|
39
|
+
g as TreeListDateFilter,
|
|
40
|
+
E as TreeListDraggableRow,
|
|
41
|
+
m as TreeListHeaderCell,
|
|
43
42
|
x as TreeListHeaderSelectionCell,
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
S as TreeListNoRecords,
|
|
44
|
+
b as TreeListNumericEditor,
|
|
46
45
|
_ as TreeListNumericFilter,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
p as TreeListRow,
|
|
47
|
+
l as TreeListSelectionCell,
|
|
48
|
+
C as TreeListTextEditor,
|
|
50
49
|
D as TreeListTextFilter,
|
|
51
|
-
|
|
50
|
+
I as TreeListToolbar,
|
|
52
51
|
z as createDataTree,
|
|
53
52
|
K as extendDataItem,
|
|
54
53
|
M as filterBy,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
54
|
+
W as flatData,
|
|
55
|
+
v as getAbsoluteVirtualRowIndex,
|
|
56
|
+
j as getItemPath,
|
|
57
|
+
P as getNestedValue,
|
|
58
|
+
k as getSelectedState,
|
|
59
|
+
q as getSelectedStateFromKeyDown,
|
|
60
|
+
U as mapTree,
|
|
62
61
|
X as mapTreeItem,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
62
|
+
G as modifySubItems,
|
|
63
|
+
J as moveTreeItem,
|
|
64
|
+
Q as orderBy,
|
|
65
|
+
Y as removeItems,
|
|
66
|
+
te as setHeaderRowsTop,
|
|
67
|
+
Z as setSelectedState,
|
|
68
|
+
re as tableRowsVirtualization,
|
|
69
|
+
$ as treeToFlat
|
|
71
70
|
};
|
package/interfaces/events.d.ts
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { SortDescriptor, FilterDescriptor, CompositeFilterDescriptor } from '@progress/kendo-data-query';
|
|
9
|
-
import {
|
|
9
|
+
import { TreeListHandle } from '../TreeList.js';
|
|
10
10
|
import { TreeListColumnProps } from './TreeListColumnProps';
|
|
11
11
|
import { BaseEvent } from '@progress/kendo-react-common';
|
|
12
12
|
import { TableDragSelectionReleaseEvent, TableKeyDownEvent, TableSelectionChangeEvent } from '@progress/kendo-react-data-tools';
|
|
13
13
|
/**
|
|
14
14
|
* Represents the base event object of the TreeList.
|
|
15
15
|
*/
|
|
16
|
-
export interface TreeListEvent extends BaseEvent<
|
|
16
|
+
export interface TreeListEvent extends BaseEvent<TreeListHandle> {
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Represents the object of the `onDataStateChange` TreeList event.
|
|
@@ -98,7 +98,7 @@ export interface TreeListExpandChangeEvent extends TreeListEvent {
|
|
|
98
98
|
/**
|
|
99
99
|
* Represents the object of the `onSelectionChange` TreeList event.
|
|
100
100
|
*/
|
|
101
|
-
export interface TreeListSelectionChangeEvent extends TreeListEvent, TableSelectionChangeEvent<
|
|
101
|
+
export interface TreeListSelectionChangeEvent extends TreeListEvent, TableSelectionChangeEvent<TreeListHandle> {
|
|
102
102
|
/**
|
|
103
103
|
* An array of indexes of each parent and current item in the data tree.
|
|
104
104
|
*/
|
|
@@ -107,7 +107,7 @@ export interface TreeListSelectionChangeEvent extends TreeListEvent, TableSelect
|
|
|
107
107
|
/**
|
|
108
108
|
* Represents the object of the `onKeyDownEvent` TreeList event.
|
|
109
109
|
*/
|
|
110
|
-
export interface TreeListKeyDownEvent extends TreeListEvent, TableKeyDownEvent<
|
|
110
|
+
export interface TreeListKeyDownEvent extends TreeListEvent, TableKeyDownEvent<TreeListHandle> {
|
|
111
111
|
}
|
|
112
112
|
/** @hidden */
|
|
113
113
|
export interface TreeListDragSelectionReleaseEvent extends TableDragSelectionReleaseEvent {
|
|
@@ -189,7 +189,7 @@ interface ColumnDragEvent {
|
|
|
189
189
|
/**
|
|
190
190
|
* An event target.
|
|
191
191
|
*/
|
|
192
|
-
target:
|
|
192
|
+
target: TreeListHandle;
|
|
193
193
|
/**
|
|
194
194
|
* A native DOM event.
|
|
195
195
|
*/
|
|
@@ -253,7 +253,7 @@ export interface TreeListRowDragEvent {
|
|
|
253
253
|
/**
|
|
254
254
|
* An event target.
|
|
255
255
|
*/
|
|
256
|
-
target:
|
|
256
|
+
target: TreeListHandle;
|
|
257
257
|
/**
|
|
258
258
|
* The level of the dragged row.
|
|
259
259
|
* The level represents an array of indexes of each parent and current item in the data tree.
|
package/package-metadata.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-treelist",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-treelist",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1785775197,version:"15.2.0-develop.3",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = Object.freeze({
|
|
|
7
7
|
productName: 'KendoReact',
|
|
8
8
|
productCode: 'KENDOUIREACT',
|
|
9
9
|
productCodes: ['KENDOUIREACT'],
|
|
10
|
-
publishDate:
|
|
11
|
-
version: '15.2.0-develop.
|
|
10
|
+
publishDate: 1785775197,
|
|
11
|
+
version: '15.2.0-develop.3',
|
|
12
12
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/components/my-license/'
|
|
13
13
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-treelist",
|
|
3
|
-
"version": "15.2.0-develop.
|
|
3
|
+
"version": "15.2.0-develop.3",
|
|
4
4
|
"description": "React TreeList enables the display of self-referencing tabular data. KendoReact TreeList package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"@progress/kendo-date-math": "^1.4.1",
|
|
30
30
|
"@progress/kendo-drawing": "^1.21.2",
|
|
31
31
|
"@progress/kendo-licensing": "^1.7.2",
|
|
32
|
-
"@progress/kendo-react-common": "15.2.0-develop.
|
|
33
|
-
"@progress/kendo-react-data-tools": "15.2.0-develop.
|
|
34
|
-
"@progress/kendo-react-dateinputs": "15.2.0-develop.
|
|
35
|
-
"@progress/kendo-react-dialogs": "15.2.0-develop.
|
|
36
|
-
"@progress/kendo-react-dropdowns": "15.2.0-develop.
|
|
37
|
-
"@progress/kendo-react-inputs": "15.2.0-develop.
|
|
38
|
-
"@progress/kendo-react-intl": "15.2.0-develop.
|
|
32
|
+
"@progress/kendo-react-common": "15.2.0-develop.3",
|
|
33
|
+
"@progress/kendo-react-data-tools": "15.2.0-develop.3",
|
|
34
|
+
"@progress/kendo-react-dateinputs": "15.2.0-develop.3",
|
|
35
|
+
"@progress/kendo-react-dialogs": "15.2.0-develop.3",
|
|
36
|
+
"@progress/kendo-react-dropdowns": "15.2.0-develop.3",
|
|
37
|
+
"@progress/kendo-react-inputs": "15.2.0-develop.3",
|
|
38
|
+
"@progress/kendo-react-intl": "15.2.0-develop.3",
|
|
39
39
|
"@progress/kendo-svg-icons": "^4.9.0 || ^5.0.0",
|
|
40
40
|
"react": "^18.0.0 || ^19.0.0",
|
|
41
41
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"package": {
|
|
77
77
|
"productName": "KendoReact",
|
|
78
78
|
"productCode": "KENDOUIREACT",
|
|
79
|
-
"publishDate":
|
|
79
|
+
"publishDate": 1785775197,
|
|
80
80
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
81
81
|
}
|
|
82
82
|
},
|
|
@@ -7,33 +7,14 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { TreeListRowProps } from '../interfaces/TreeListRowProps';
|
|
9
9
|
import * as React from 'react';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
interface TreeListRowState {
|
|
18
|
-
clueProps: RowDragClueProps;
|
|
10
|
+
/**
|
|
11
|
+
* Represent the `ref` of the TreeListDraggableRow component.
|
|
12
|
+
*/
|
|
13
|
+
export interface TreeListDraggableRowHandle {
|
|
14
|
+
/** The props of the TreeListDraggableRow component. */
|
|
15
|
+
readonly props: Readonly<TreeListRowProps>;
|
|
19
16
|
}
|
|
20
17
|
/**
|
|
21
18
|
* The TreeList draggable row component.
|
|
22
19
|
*/
|
|
23
|
-
export declare
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
readonly state: TreeListRowState;
|
|
28
|
-
private draggable;
|
|
29
|
-
private dragged;
|
|
30
|
-
private draggedOver;
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
render(): React.JSX.Element;
|
|
35
|
-
private onPress;
|
|
36
|
-
private onDrag;
|
|
37
|
-
private onRelease;
|
|
38
|
-
}
|
|
39
|
-
export {};
|
|
20
|
+
export declare const TreeListDraggableRow: React.ForwardRefExoticComponent<TreeListRowProps & React.RefAttributes<TreeListDraggableRowHandle>>;
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("react"),M=require("react-dom"),m=require("@progress/kendo-react-common"),h=require("./TreeListRow.js"),w=require("@progress/kendo-svg-icons");function O(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,c.get?c:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const t=O(L),j=O(M),q=e=>e.visible&&m.canUseDOM?j.createPortal(t.createElement("div",{className:"k-header k-drag-clue",style:{display:"block",position:"absolute",zIndex:2e4,padding:"8px 12px",top:e.top+"px",left:e.left+"px"}},t.createElement(m.IconWrap,{className:m.classNames("k-drag-status"),name:e.allowDrop?"plus":"cancel",icon:e.allowDrop?w.plusIcon:w.cancelIcon}),e.text),document.body):null;function _(e,n,r){if(!e.originalEvent)return-1;const c=I(e,"tr",r);if(c){const i=n?n.childNodes:[];for(let o=0;o<i.length;o++)if(i[o]===c)return o}return-1}function I(e,n,r){const c=r?r.elementFromPoint(e.clientX,e.clientY):null;return n&&c?c.closest(n):null}const E="k-grid",y={visible:!1,top:0,left:0,text:"",allowDrop:!1},k=t.forwardRef((e,n)=>{const[r,c]=t.useState({...y}),i=t.useRef(null),o=t.useRef(null),R=t.useRef(null),u=t.useRef(null),D=t.useRef(r);D.current=r;const s=t.useRef(e);s.current=e;const b=t.useRef(null);t.useImperativeHandle(b,()=>({props:e})),t.useImperativeHandle(n,()=>b.current),t.useEffect(()=>()=>{u.current&&(u.current.style.userSelect="",u.current=null)},[]);const x=t.useCallback(()=>{var l;o.current=s.current.level;const g=(l=i.current)==null?void 0:l.element;g&&(u.current=g.closest("."+E),u.current&&(u.current.style.userSelect="none"))},[i]),S=t.useCallback(g=>{var v;if(!m.canUseDOM)return;const l=(v=i.current)==null?void 0:v.element,d=(l==null?void 0:l.ownerDocument)||document;if(!d)return;const a=g.event,f=o.current;if(l&&f){!a.isTouch&&a.type!=="scroll"&&a.originalEvent.preventDefault();const p=s.current.levels[_(a,l.parentNode,d)];R.current=p;const T=p?!f.every((C,N)=>C===p[N]):!!I(a,E,d);c({visible:!0,top:a.pageY+10,left:a.pageX,text:l.innerText,allowDrop:T}),s.current.onDrag&&s.current.onDrag({nativeEvent:a.originalEvent,dragged:f,draggedOver:p,draggedItem:s.current.dataItem})}},[i]),P=t.useCallback(g=>{u.current&&(u.current.style.userSelect="",u.current=null);const l=g.event;if(o.current){const d=[...o.current],a=R.current&&[...R.current],f=D.current.allowDrop;o.current=null,R.current=null,c({...y});const v=s.current.dataItem;f&&s.current.onDrop&&s.current.onDrop({nativeEvent:l.originalEvent,dragged:d,draggedOver:a,draggedItem:v})}},[]);return t.createElement(t.Fragment,null,t.createElement(m.Draggable,{ref:i,onPress:x,onDrag:S,onRelease:P},t.createElement(h.TreeListRow,{...e})),t.createElement(q,{...r}))});k.displayName="KendoReactTreeListDraggableRow";exports.TreeListDraggableRow=k;
|